]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
9df61a29 | 60 | #include <wx/tooltip.h> |
8ab979d7 | 61 | |
8ab979d7 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
3bcd5e1c | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
3bcd5e1c | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
3bcd5e1c | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
3bcd5e1c RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
3bcd5e1c RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
9a74fcaf RD |
89 | // Put some wx default wxChar* values into wxStrings. |
90 | DECLARE_DEF_STRING(PanelNameStr); | |
91 | static const wxString wxPyEmptyString(wxT("")); | |
92 | ||
2f90df85 RD |
93 | class wxPyValidator : public wxValidator { |
94 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
95 | public: | |
96 | wxPyValidator() { | |
97 | } | |
2f90df85 RD |
98 | |
99 | ~wxPyValidator() { | |
100 | } | |
101 | ||
059a841c | 102 | wxObject* Clone() const { |
694759cf RD |
103 | wxPyValidator* ptr = NULL; |
104 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 105 | |
474c48f9 | 106 | wxPyBeginBlockThreads(); |
694759cf RD |
107 | if (self->m_myInst.findCallback("Clone")) { |
108 | PyObject* ro; | |
109 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
110 | if (ro) { |
111 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
112 | Py_DECREF(ro); | |
113 | } | |
694759cf | 114 | } |
474c48f9 | 115 | wxPyEndBlockThreads(); |
059a841c | 116 | |
694759cf RD |
117 | // This is very dangerous!!! But is the only way I could find |
118 | // to squash a memory leak. Currently it is okay, but if the | |
119 | // validator architecture in wxWindows ever changes, problems | |
120 | // could arise. | |
121 | delete self; | |
694759cf RD |
122 | return ptr; |
123 | } | |
2f90df85 | 124 | |
9df61a29 | 125 | |
2f90df85 RD |
126 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
127 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
128 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
129 | ||
130 | PYPRIVATE; | |
2f90df85 RD |
131 | }; |
132 | ||
133 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
135 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
136 | ||
137 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 138 | |
298ae144 RD |
139 | |
140 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
141 | return wxWindow::FindWindowById(id, parent); | |
142 | } | |
143 | ||
144 | wxWindow* wxFindWindowByName( const wxString& name, | |
145 | const wxWindow *parent = NULL ) { | |
146 | return wxWindow::FindWindowByName(name, parent); | |
147 | } | |
148 | ||
149 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
150 | const wxWindow *parent = NULL ) { | |
151 | return wxWindow::FindWindowByLabel(label, parent); | |
152 | } | |
2f90df85 RD |
153 | #ifdef __cplusplus |
154 | extern "C" { | |
155 | #endif | |
298ae144 RD |
156 | static PyObject *_wrap_wxFindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
157 | PyObject * _resultobj; | |
158 | wxWindow * _result; | |
159 | long _arg0; | |
160 | wxWindow * _arg1 = (wxWindow *) NULL; | |
161 | PyObject * _argo1 = 0; | |
162 | char *_kwnames[] = { "id","parent", NULL }; | |
163 | ||
164 | self = self; | |
165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l|O:wxFindWindowById",_kwnames,&_arg0,&_argo1)) | |
166 | return NULL; | |
167 | if (_argo1) { | |
168 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
169 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowById. Expected _wxWindow_p."); | |
171 | return NULL; | |
172 | } | |
173 | } | |
174 | { | |
175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
176 | _result = (wxWindow *)wxFindWindowById(_arg0,_arg1); | |
177 | ||
178 | wxPyEndAllowThreads(__tstate); | |
179 | if (PyErr_Occurred()) return NULL; | |
180 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
181 | return _resultobj; | |
182 | } | |
183 | ||
184 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
185 | PyObject * _resultobj; | |
186 | wxWindow * _result; | |
187 | wxString * _arg0; | |
188 | wxWindow * _arg1 = (wxWindow *) NULL; | |
189 | PyObject * _obj0 = 0; | |
190 | PyObject * _argo1 = 0; | |
191 | char *_kwnames[] = { "name","parent", NULL }; | |
192 | ||
193 | self = self; | |
194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) | |
195 | return NULL; | |
196 | { | |
197 | _arg0 = wxString_in_helper(_obj0); | |
198 | if (_arg0 == NULL) | |
199 | return NULL; | |
200 | } | |
201 | if (_argo1) { | |
202 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
203 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); | |
205 | return NULL; | |
206 | } | |
207 | } | |
208 | { | |
209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
210 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
211 | ||
212 | wxPyEndAllowThreads(__tstate); | |
213 | if (PyErr_Occurred()) return NULL; | |
214 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
215 | { | |
216 | if (_obj0) | |
217 | delete _arg0; | |
218 | } | |
219 | return _resultobj; | |
220 | } | |
221 | ||
222 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
223 | PyObject * _resultobj; | |
224 | wxWindow * _result; | |
225 | wxString * _arg0; | |
226 | wxWindow * _arg1 = (wxWindow *) NULL; | |
227 | PyObject * _obj0 = 0; | |
228 | PyObject * _argo1 = 0; | |
229 | char *_kwnames[] = { "label","parent", NULL }; | |
230 | ||
231 | self = self; | |
232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) | |
233 | return NULL; | |
234 | { | |
235 | _arg0 = wxString_in_helper(_obj0); | |
236 | if (_arg0 == NULL) | |
237 | return NULL; | |
238 | } | |
239 | if (_argo1) { | |
240 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
241 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); | |
243 | return NULL; | |
244 | } | |
245 | } | |
246 | { | |
247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
248 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
249 | ||
250 | wxPyEndAllowThreads(__tstate); | |
251 | if (PyErr_Occurred()) return NULL; | |
252 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
253 | { | |
254 | if (_obj0) | |
255 | delete _arg0; | |
256 | } | |
257 | return _resultobj; | |
258 | } | |
259 | ||
9df61a29 RD |
260 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
261 | wxEvtHandler *src; | |
262 | wxObject *dest; | |
263 | src = (wxEvtHandler *) ptr; | |
264 | dest = (wxObject *) src; | |
265 | return (void *) dest; | |
266 | } | |
267 | ||
c368d904 RD |
268 | #define new_wxEvtHandler() (new wxEvtHandler()) |
269 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
270 | PyObject * _resultobj; | |
271 | wxEvtHandler * _result; | |
272 | char *_kwnames[] = { NULL }; | |
273 | char _ptemp[128]; | |
274 | ||
275 | self = self; | |
276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
277 | return NULL; | |
278 | { | |
474c48f9 | 279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 280 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 281 | |
474c48f9 | 282 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 283 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
284 | } if (_result) { |
285 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
286 | _resultobj = Py_BuildValue("s",_ptemp); | |
287 | } else { | |
288 | Py_INCREF(Py_None); | |
289 | _resultobj = Py_None; | |
290 | } | |
291 | return _resultobj; | |
292 | } | |
293 | ||
2f90df85 RD |
294 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
295 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
296 | PyObject * _resultobj; | |
297 | bool _result; | |
298 | wxEvtHandler * _arg0; | |
299 | wxEvent * _arg1; | |
300 | PyObject * _argo0 = 0; | |
301 | PyObject * _argo1 = 0; | |
302 | char *_kwnames[] = { "self","event", NULL }; | |
303 | ||
304 | self = self; | |
305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
306 | return NULL; | |
307 | if (_argo0) { | |
308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | if (_argo1) { | |
315 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
316 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
318 | return NULL; | |
319 | } | |
320 | } | |
321 | { | |
474c48f9 | 322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 323 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 324 | |
474c48f9 | 325 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 326 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
327 | } _resultobj = Py_BuildValue("i",_result); |
328 | return _resultobj; | |
329 | } | |
330 | ||
f6bcfd97 BP |
331 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
332 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
333 | PyObject * _resultobj; | |
334 | wxEvtHandler * _arg0; | |
335 | wxEvent * _arg1; | |
336 | PyObject * _argo0 = 0; | |
337 | PyObject * _argo1 = 0; | |
338 | char *_kwnames[] = { "self","event", NULL }; | |
339 | ||
340 | self = self; | |
341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
342 | return NULL; | |
343 | if (_argo0) { | |
344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
347 | return NULL; | |
348 | } | |
349 | } | |
350 | if (_argo1) { | |
351 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
352 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
354 | return NULL; | |
355 | } | |
356 | } | |
357 | { | |
474c48f9 | 358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 359 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 360 | |
474c48f9 | 361 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 362 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
363 | } Py_INCREF(Py_None); |
364 | _resultobj = Py_None; | |
365 | return _resultobj; | |
366 | } | |
367 | ||
2f90df85 RD |
368 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
369 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
370 | PyObject * _resultobj; | |
371 | bool _result; | |
372 | wxEvtHandler * _arg0; | |
373 | PyObject * _argo0 = 0; | |
374 | char *_kwnames[] = { "self", NULL }; | |
375 | ||
376 | self = self; | |
377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
378 | return NULL; | |
379 | if (_argo0) { | |
380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
383 | return NULL; | |
384 | } | |
385 | } | |
386 | { | |
474c48f9 | 387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 388 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 389 | |
474c48f9 | 390 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 391 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
392 | } _resultobj = Py_BuildValue("i",_result); |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
397 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | wxEvtHandler * _arg0; | |
400 | bool _arg1; | |
401 | PyObject * _argo0 = 0; | |
402 | int tempbool1; | |
403 | char *_kwnames[] = { "self","enabled", NULL }; | |
404 | ||
405 | self = self; | |
406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
407 | return NULL; | |
408 | if (_argo0) { | |
409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
412 | return NULL; | |
413 | } | |
414 | } | |
415 | _arg1 = (bool ) tempbool1; | |
416 | { | |
474c48f9 | 417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 418 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 419 | |
474c48f9 | 420 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 421 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
422 | } Py_INCREF(Py_None); |
423 | _resultobj = Py_None; | |
424 | return _resultobj; | |
425 | } | |
426 | ||
427 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
428 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
429 | PyObject * _resultobj; | |
430 | wxEvtHandler * _result; | |
431 | wxEvtHandler * _arg0; | |
432 | PyObject * _argo0 = 0; | |
433 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
434 | |
435 | self = self; | |
436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
437 | return NULL; | |
438 | if (_argo0) { | |
439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
442 | return NULL; | |
443 | } | |
444 | } | |
445 | { | |
474c48f9 | 446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 447 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 448 | |
474c48f9 | 449 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 450 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 451 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
452 | return _resultobj; |
453 | } | |
454 | ||
455 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
456 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
457 | PyObject * _resultobj; | |
458 | wxEvtHandler * _result; | |
459 | wxEvtHandler * _arg0; | |
460 | PyObject * _argo0 = 0; | |
461 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
462 | |
463 | self = self; | |
464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
465 | return NULL; | |
466 | if (_argo0) { | |
467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
470 | return NULL; | |
471 | } | |
472 | } | |
473 | { | |
474c48f9 | 474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 475 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 476 | |
474c48f9 | 477 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 478 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 479 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
480 | return _resultobj; |
481 | } | |
482 | ||
483 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
484 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
485 | PyObject * _resultobj; | |
486 | wxEvtHandler * _arg0; | |
487 | wxEvtHandler * _arg1; | |
488 | PyObject * _argo0 = 0; | |
489 | PyObject * _argo1 = 0; | |
490 | char *_kwnames[] = { "self","handler", NULL }; | |
491 | ||
492 | self = self; | |
493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
494 | return NULL; | |
495 | if (_argo0) { | |
496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
499 | return NULL; | |
500 | } | |
501 | } | |
502 | if (_argo1) { | |
503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
506 | return NULL; | |
507 | } | |
508 | } | |
509 | { | |
474c48f9 | 510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 511 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 512 | |
474c48f9 | 513 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 514 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
515 | } Py_INCREF(Py_None); |
516 | _resultobj = Py_None; | |
517 | return _resultobj; | |
518 | } | |
519 | ||
520 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
521 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
522 | PyObject * _resultobj; | |
523 | wxEvtHandler * _arg0; | |
524 | wxEvtHandler * _arg1; | |
525 | PyObject * _argo0 = 0; | |
526 | PyObject * _argo1 = 0; | |
527 | char *_kwnames[] = { "self","handler", NULL }; | |
528 | ||
529 | self = self; | |
530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
531 | return NULL; | |
532 | if (_argo0) { | |
533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
536 | return NULL; | |
537 | } | |
538 | } | |
539 | if (_argo1) { | |
540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
543 | return NULL; | |
544 | } | |
545 | } | |
546 | { | |
474c48f9 | 547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 548 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 549 | |
474c48f9 | 550 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 551 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
552 | } Py_INCREF(Py_None); |
553 | _resultobj = Py_None; | |
554 | return _resultobj; | |
555 | } | |
556 | ||
557 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
558 | if (PyCallable_Check(func)) { | |
559 | self->Connect(id, lastId, eventType, | |
560 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
561 | new wxPyCallback(func)); | |
562 | } | |
a57d56d6 RD |
563 | else if (func == Py_None) { |
564 | self->Disconnect(id, lastId, eventType, | |
565 | (wxObjectEventFunction) | |
566 | &wxPyCallback::EventThunker); | |
567 | } | |
568 | else { | |
569 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
570 | } | |
2f90df85 RD |
571 | } |
572 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
573 | PyObject * _resultobj; | |
574 | wxEvtHandler * _arg0; | |
575 | int _arg1; | |
576 | int _arg2; | |
577 | int _arg3; | |
578 | PyObject * _arg4; | |
579 | PyObject * _argo0 = 0; | |
580 | PyObject * _obj4 = 0; | |
581 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
582 | ||
583 | self = self; | |
584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
585 | return NULL; | |
586 | if (_argo0) { | |
587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
590 | return NULL; | |
591 | } | |
592 | } | |
593 | { | |
594 | _arg4 = _obj4; | |
595 | } | |
596 | { | |
474c48f9 | 597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 598 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 599 | |
474c48f9 | 600 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 601 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
602 | } Py_INCREF(Py_None); |
603 | _resultobj = Py_None; | |
604 | return _resultobj; | |
605 | } | |
606 | ||
6999b0d8 RD |
607 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
608 | return self->Disconnect(id, lastId, eventType, | |
609 | (wxObjectEventFunction) | |
610 | &wxPyCallback::EventThunker); | |
611 | } | |
612 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
613 | PyObject * _resultobj; | |
614 | bool _result; | |
615 | wxEvtHandler * _arg0; | |
616 | int _arg1; | |
617 | int _arg2 = (int ) -1; | |
618 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
619 | PyObject * _argo0 = 0; | |
620 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
621 | ||
622 | self = self; | |
623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
624 | return NULL; | |
625 | if (_argo0) { | |
626 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
627 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
628 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
629 | return NULL; | |
630 | } | |
631 | } | |
632 | { | |
474c48f9 | 633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 634 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 635 | |
474c48f9 | 636 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 637 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
638 | } _resultobj = Py_BuildValue("i",_result); |
639 | return _resultobj; | |
640 | } | |
641 | ||
0220cbc1 | 642 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
301dfd67 | 643 | self->SetClientObject(new wxPyOORClientData(_self)); |
0220cbc1 RD |
644 | } |
645 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
646 | PyObject * _resultobj; | |
647 | wxEvtHandler * _arg0; | |
648 | PyObject * _arg1; | |
649 | PyObject * _argo0 = 0; | |
650 | PyObject * _obj1 = 0; | |
651 | char *_kwnames[] = { "self","_self", NULL }; | |
652 | ||
653 | self = self; | |
654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
655 | return NULL; | |
656 | if (_argo0) { | |
657 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
658 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
660 | return NULL; | |
661 | } | |
662 | } | |
663 | { | |
664 | _arg1 = _obj1; | |
665 | } | |
666 | { | |
474c48f9 | 667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 668 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0220cbc1 | 669 | |
474c48f9 | 670 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
671 | if (PyErr_Occurred()) return NULL; |
672 | } Py_INCREF(Py_None); | |
673 | _resultobj = Py_None; | |
674 | return _resultobj; | |
675 | } | |
676 | ||
2f90df85 RD |
677 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
678 | wxValidator *src; | |
679 | wxEvtHandler *dest; | |
680 | src = (wxValidator *) ptr; | |
681 | dest = (wxEvtHandler *) src; | |
682 | return (void *) dest; | |
683 | } | |
684 | ||
9df61a29 RD |
685 | static void *SwigwxValidatorTowxObject(void *ptr) { |
686 | wxValidator *src; | |
687 | wxObject *dest; | |
688 | src = (wxValidator *) ptr; | |
689 | dest = (wxObject *) src; | |
690 | return (void *) dest; | |
691 | } | |
692 | ||
2f90df85 RD |
693 | #define new_wxValidator() (new wxValidator()) |
694 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
695 | PyObject * _resultobj; | |
696 | wxValidator * _result; | |
697 | char *_kwnames[] = { NULL }; | |
698 | char _ptemp[128]; | |
699 | ||
700 | self = self; | |
701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
702 | return NULL; | |
703 | { | |
474c48f9 | 704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 705 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 706 | |
474c48f9 | 707 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 708 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
709 | } if (_result) { |
710 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
711 | _resultobj = Py_BuildValue("s",_ptemp); | |
712 | } else { | |
713 | Py_INCREF(Py_None); | |
714 | _resultobj = Py_None; | |
715 | } | |
716 | return _resultobj; | |
af309447 | 717 | } |
2f90df85 RD |
718 | |
719 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
720 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 721 | PyObject * _resultobj; |
2f90df85 RD |
722 | wxValidator * _result; |
723 | wxValidator * _arg0; | |
724 | PyObject * _argo0 = 0; | |
725 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
726 | |
727 | self = self; | |
2f90df85 RD |
728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
729 | return NULL; | |
730 | if (_argo0) { | |
731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 734 | return NULL; |
2f90df85 RD |
735 | } |
736 | } | |
cf694132 | 737 | { |
474c48f9 | 738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 739 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 740 | |
474c48f9 | 741 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 742 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 743 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
744 | return _resultobj; |
745 | } | |
746 | ||
2f90df85 RD |
747 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
748 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
749 | PyObject * _resultobj; |
750 | wxWindow * _result; | |
2f90df85 RD |
751 | wxValidator * _arg0; |
752 | PyObject * _argo0 = 0; | |
753 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
754 | |
755 | self = self; | |
2f90df85 RD |
756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
757 | return NULL; | |
758 | if (_argo0) { | |
759 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
760 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
761 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 762 | return NULL; |
2f90df85 RD |
763 | } |
764 | } | |
cf694132 | 765 | { |
474c48f9 | 766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 767 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 768 | |
474c48f9 | 769 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 770 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 771 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
772 | return _resultobj; |
773 | } | |
774 | ||
2f90df85 RD |
775 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
776 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 777 | PyObject * _resultobj; |
2f90df85 RD |
778 | wxValidator * _arg0; |
779 | wxWindow * _arg1; | |
1d99702e RD |
780 | PyObject * _argo0 = 0; |
781 | PyObject * _argo1 = 0; | |
2f90df85 | 782 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
783 | |
784 | self = self; | |
2f90df85 | 785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 786 | return NULL; |
1d99702e RD |
787 | if (_argo0) { |
788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
791 | return NULL; |
792 | } | |
793 | } | |
1d99702e RD |
794 | if (_argo1) { |
795 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
796 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
798 | return NULL; |
799 | } | |
800 | } | |
801 | { | |
474c48f9 | 802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 803 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 804 | |
474c48f9 | 805 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 806 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
807 | } Py_INCREF(Py_None); |
808 | _resultobj = Py_None; | |
cf694132 RD |
809 | return _resultobj; |
810 | } | |
811 | ||
9df61a29 RD |
812 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
813 | PyObject * _resultobj; | |
814 | bool _result; | |
815 | char *_kwnames[] = { NULL }; | |
816 | ||
817 | self = self; | |
818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
819 | return NULL; | |
820 | { | |
474c48f9 | 821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 822 | _result = (bool )wxValidator::IsSilent(); |
9df61a29 | 823 | |
474c48f9 | 824 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 825 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
826 | } _resultobj = Py_BuildValue("i",_result); |
827 | return _resultobj; | |
828 | } | |
829 | ||
830 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
831 | PyObject * _resultobj; | |
832 | int _arg0 = (int ) TRUE; | |
833 | char *_kwnames[] = { "doIt", NULL }; | |
834 | ||
835 | self = self; | |
836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
837 | return NULL; | |
838 | { | |
474c48f9 | 839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 840 | wxValidator::SetBellOnError(_arg0); |
9df61a29 | 841 | |
474c48f9 | 842 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 843 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
844 | } Py_INCREF(Py_None); |
845 | _resultobj = Py_None; | |
846 | return _resultobj; | |
847 | } | |
848 | ||
2f90df85 RD |
849 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
850 | wxPyValidator *src; | |
851 | wxValidator *dest; | |
852 | src = (wxPyValidator *) ptr; | |
853 | dest = (wxValidator *) src; | |
854 | return (void *) dest; | |
855 | } | |
856 | ||
857 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
858 | wxPyValidator *src; | |
859 | wxEvtHandler *dest; | |
860 | src = (wxPyValidator *) ptr; | |
861 | dest = (wxEvtHandler *) src; | |
862 | return (void *) dest; | |
863 | } | |
864 | ||
9df61a29 RD |
865 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
866 | wxPyValidator *src; | |
867 | wxObject *dest; | |
868 | src = (wxPyValidator *) ptr; | |
869 | dest = (wxObject *) src; | |
870 | return (void *) dest; | |
871 | } | |
872 | ||
2f90df85 RD |
873 | #define new_wxPyValidator() (new wxPyValidator()) |
874 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
875 | PyObject * _resultobj; | |
876 | wxPyValidator * _result; | |
877 | char *_kwnames[] = { NULL }; | |
878 | char _ptemp[128]; | |
879 | ||
880 | self = self; | |
881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
882 | return NULL; | |
883 | { | |
474c48f9 | 884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 885 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 886 | |
474c48f9 | 887 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 888 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
889 | } if (_result) { |
890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
891 | _resultobj = Py_BuildValue("s",_ptemp); | |
892 | } else { | |
893 | Py_INCREF(Py_None); | |
894 | _resultobj = Py_None; | |
895 | } | |
896 | return _resultobj; | |
897 | } | |
898 | ||
0220cbc1 RD |
899 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
900 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 901 | PyObject * _resultobj; |
2f90df85 RD |
902 | wxPyValidator * _arg0; |
903 | PyObject * _arg1; | |
f6bcfd97 BP |
904 | PyObject * _arg2; |
905 | int _arg3 = (int ) TRUE; | |
1d99702e | 906 | PyObject * _argo0 = 0; |
2f90df85 | 907 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
908 | PyObject * _obj2 = 0; |
909 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
910 | |
911 | self = self; | |
0220cbc1 | 912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 913 | return NULL; |
1d99702e RD |
914 | if (_argo0) { |
915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0220cbc1 | 917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
918 | return NULL; |
919 | } | |
920 | } | |
921 | { | |
2f90df85 | 922 | _arg1 = _obj1; |
8ab979d7 | 923 | } |
f6bcfd97 BP |
924 | { |
925 | _arg2 = _obj2; | |
926 | } | |
cf694132 | 927 | { |
474c48f9 | 928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 929 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 930 | |
474c48f9 | 931 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 932 | if (PyErr_Occurred()) return NULL; |
cf694132 | 933 | } Py_INCREF(Py_None); |
8ab979d7 RD |
934 | _resultobj = Py_None; |
935 | return _resultobj; | |
936 | } | |
937 | ||
938 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
939 | wxWindow *src; | |
940 | wxEvtHandler *dest; | |
941 | src = (wxWindow *) ptr; | |
942 | dest = (wxEvtHandler *) src; | |
943 | return (void *) dest; | |
944 | } | |
945 | ||
9df61a29 RD |
946 | static void *SwigwxWindowTowxObject(void *ptr) { |
947 | wxWindow *src; | |
948 | wxObject *dest; | |
949 | src = (wxWindow *) ptr; | |
950 | dest = (wxObject *) src; | |
951 | return (void *) dest; | |
952 | } | |
953 | ||
8ab979d7 | 954 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 955 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
956 | PyObject * _resultobj; |
957 | wxWindow * _result; | |
958 | wxWindow * _arg0; | |
959 | wxWindowID _arg1; | |
b68dc582 RD |
960 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
961 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 962 | long _arg4 = (long ) 0; |
9a74fcaf | 963 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 964 | PyObject * _argo0 = 0; |
2f90df85 RD |
965 | wxPoint temp; |
966 | PyObject * _obj2 = 0; | |
967 | wxSize temp0; | |
968 | PyObject * _obj3 = 0; | |
9a74fcaf | 969 | PyObject * _obj5 = 0; |
efc5f224 | 970 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
971 | char _ptemp[128]; |
972 | ||
973 | self = self; | |
9a74fcaf | 974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 975 | return NULL; |
1d99702e RD |
976 | if (_argo0) { |
977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
980 | return NULL; | |
981 | } | |
982 | } | |
2f90df85 RD |
983 | if (_obj2) |
984 | { | |
985 | _arg2 = &temp; | |
986 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 987 | return NULL; |
2f90df85 RD |
988 | } |
989 | if (_obj3) | |
990 | { | |
991 | _arg3 = &temp0; | |
992 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 993 | return NULL; |
9a74fcaf RD |
994 | } |
995 | if (_obj5) | |
996 | { | |
997 | _arg5 = wxString_in_helper(_obj5); | |
998 | if (_arg5 == NULL) | |
999 | return NULL; | |
2f90df85 | 1000 | } |
cf694132 | 1001 | { |
474c48f9 | 1002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1003 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 1004 | |
474c48f9 | 1005 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1006 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1007 | } if (_result) { |
1008 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1009 | _resultobj = Py_BuildValue("s",_ptemp); | |
1010 | } else { | |
1011 | Py_INCREF(Py_None); | |
1012 | _resultobj = Py_None; | |
1013 | } | |
9a74fcaf RD |
1014 | { |
1015 | if (_obj5) | |
1016 | delete _arg5; | |
1017 | } | |
8ab979d7 RD |
1018 | return _resultobj; |
1019 | } | |
1020 | ||
aa2a5b86 RD |
1021 | #define new_wxPreWindow() (new wxWindow()) |
1022 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1023 | PyObject * _resultobj; | |
1024 | wxWindow * _result; | |
1025 | char *_kwnames[] = { NULL }; | |
1026 | char _ptemp[128]; | |
1027 | ||
1028 | self = self; | |
1029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
1030 | return NULL; | |
1031 | { | |
474c48f9 | 1032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1033 | _result = (wxWindow *)new_wxPreWindow(); |
aa2a5b86 | 1034 | |
474c48f9 | 1035 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1036 | if (PyErr_Occurred()) return NULL; |
1037 | } if (_result) { | |
1038 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1039 | _resultobj = Py_BuildValue("s",_ptemp); | |
1040 | } else { | |
1041 | Py_INCREF(Py_None); | |
1042 | _resultobj = Py_None; | |
1043 | } | |
1044 | return _resultobj; | |
1045 | } | |
1046 | ||
1047 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1048 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1049 | PyObject * _resultobj; | |
1050 | bool _result; | |
1051 | wxWindow * _arg0; | |
1052 | wxWindow * _arg1; | |
1053 | wxWindowID _arg2; | |
1054 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1055 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1056 | long _arg5 = (long ) 0; | |
9a74fcaf | 1057 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
1058 | PyObject * _argo0 = 0; |
1059 | PyObject * _argo1 = 0; | |
1060 | wxPoint temp; | |
1061 | PyObject * _obj3 = 0; | |
1062 | wxSize temp0; | |
1063 | PyObject * _obj4 = 0; | |
9a74fcaf | 1064 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
1065 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
1066 | ||
1067 | self = self; | |
9a74fcaf | 1068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
1069 | return NULL; |
1070 | if (_argo0) { | |
1071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
1074 | return NULL; | |
1075 | } | |
1076 | } | |
1077 | if (_argo1) { | |
1078 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1079 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
1081 | return NULL; | |
1082 | } | |
1083 | } | |
1084 | if (_obj3) | |
1085 | { | |
1086 | _arg3 = &temp; | |
1087 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1088 | return NULL; | |
1089 | } | |
1090 | if (_obj4) | |
1091 | { | |
1092 | _arg4 = &temp0; | |
1093 | if (! wxSize_helper(_obj4, &_arg4)) | |
1094 | return NULL; | |
9a74fcaf RD |
1095 | } |
1096 | if (_obj6) | |
1097 | { | |
1098 | _arg6 = wxString_in_helper(_obj6); | |
1099 | if (_arg6 == NULL) | |
1100 | return NULL; | |
aa2a5b86 RD |
1101 | } |
1102 | { | |
474c48f9 | 1103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1104 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 1105 | |
474c48f9 | 1106 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1107 | if (PyErr_Occurred()) return NULL; |
1108 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
1109 | { |
1110 | if (_obj6) | |
1111 | delete _arg6; | |
1112 | } | |
aa2a5b86 RD |
1113 | return _resultobj; |
1114 | } | |
1115 | ||
8ab979d7 | 1116 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
efc5f224 | 1117 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1118 | PyObject * _resultobj; |
1119 | wxWindow * _arg0; | |
1d99702e RD |
1120 | int _arg1 = (int ) wxBOTH; |
1121 | PyObject * _argo0 = 0; | |
efc5f224 | 1122 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1123 | |
1124 | self = self; | |
efc5f224 | 1125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1126 | return NULL; |
1d99702e RD |
1127 | if (_argo0) { |
1128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1131 | return NULL; | |
1132 | } | |
1133 | } | |
cf694132 | 1134 | { |
474c48f9 | 1135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1136 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1137 | |
474c48f9 | 1138 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1139 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1140 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1141 | _resultobj = Py_None; |
1142 | return _resultobj; | |
1143 | } | |
1144 | ||
1145 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1146 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1147 | PyObject * _resultobj; |
1148 | wxWindow * _arg0; | |
1d99702e RD |
1149 | int _arg1 = (int ) wxBOTH; |
1150 | PyObject * _argo0 = 0; | |
efc5f224 | 1151 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1152 | |
1153 | self = self; | |
efc5f224 | 1154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1155 | return NULL; |
1d99702e RD |
1156 | if (_argo0) { |
1157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1160 | return NULL; | |
1161 | } | |
1162 | } | |
cf694132 | 1163 | { |
474c48f9 | 1164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1165 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1166 | |
474c48f9 | 1167 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1168 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1169 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1170 | _resultobj = Py_None; |
1171 | return _resultobj; | |
1172 | } | |
1173 | ||
bb0054cd | 1174 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1175 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1176 | PyObject * _resultobj; |
1177 | wxWindow * _arg0; | |
1d99702e RD |
1178 | int _arg1 = (int ) wxBOTH; |
1179 | PyObject * _argo0 = 0; | |
efc5f224 | 1180 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1181 | |
1182 | self = self; | |
efc5f224 | 1183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1184 | return NULL; |
1d99702e RD |
1185 | if (_argo0) { |
1186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1189 | return NULL; | |
1190 | } | |
1191 | } | |
1192 | { | |
474c48f9 | 1193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1194 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1195 | |
474c48f9 | 1196 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1197 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1198 | } Py_INCREF(Py_None); |
1199 | _resultobj = Py_None; | |
1200 | return _resultobj; | |
1201 | } | |
1202 | ||
1203 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1204 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1205 | PyObject * _resultobj; |
1206 | wxWindow * _arg0; | |
1d99702e RD |
1207 | int _arg1 = (int ) wxBOTH; |
1208 | PyObject * _argo0 = 0; | |
efc5f224 | 1209 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1210 | |
1211 | self = self; | |
efc5f224 | 1212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1213 | return NULL; |
1d99702e RD |
1214 | if (_argo0) { |
1215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1218 | return NULL; | |
1219 | } | |
1220 | } | |
1221 | { | |
474c48f9 | 1222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1223 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1224 | |
474c48f9 | 1225 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1226 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1227 | } Py_INCREF(Py_None); |
1228 | _resultobj = Py_None; | |
1229 | return _resultobj; | |
1230 | } | |
1231 | ||
3ca6a5f0 BP |
1232 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1233 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1234 | PyObject * _resultobj; | |
1235 | wxWindow * _arg0; | |
1236 | int _arg1 = (int ) wxBOTH; | |
1237 | PyObject * _argo0 = 0; | |
1238 | char *_kwnames[] = { "self","direction", NULL }; | |
1239 | ||
1240 | self = self; | |
1241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1242 | return NULL; | |
1243 | if (_argo0) { | |
1244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1247 | return NULL; | |
1248 | } | |
1249 | } | |
1250 | { | |
474c48f9 | 1251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1252 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1253 | |
474c48f9 | 1254 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1255 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1256 | } Py_INCREF(Py_None); |
1257 | _resultobj = Py_None; | |
1258 | return _resultobj; | |
1259 | } | |
1260 | ||
1261 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1262 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1263 | PyObject * _resultobj; | |
1264 | wxWindow * _arg0; | |
1265 | int _arg1 = (int ) wxBOTH; | |
1266 | PyObject * _argo0 = 0; | |
1267 | char *_kwnames[] = { "self","direction", NULL }; | |
1268 | ||
1269 | self = self; | |
1270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1271 | return NULL; | |
1272 | if (_argo0) { | |
1273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1276 | return NULL; | |
1277 | } | |
1278 | } | |
1279 | { | |
474c48f9 | 1280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1281 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1282 | |
474c48f9 | 1283 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1284 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1285 | } Py_INCREF(Py_None); |
1286 | _resultobj = Py_None; | |
1287 | return _resultobj; | |
1288 | } | |
1289 | ||
9d6da64a RD |
1290 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1291 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1292 | PyObject * _resultobj; | |
1293 | wxWindow * _arg0; | |
1294 | PyObject * _argo0 = 0; | |
1295 | char *_kwnames[] = { "self", NULL }; | |
1296 | ||
1297 | self = self; | |
1298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1299 | return NULL; | |
1300 | if (_argo0) { | |
1301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1304 | return NULL; | |
1305 | } | |
1306 | } | |
1307 | { | |
474c48f9 | 1308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1309 | wxWindow_Clear(_arg0); |
9d6da64a | 1310 | |
474c48f9 | 1311 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
1312 | if (PyErr_Occurred()) return NULL; |
1313 | } Py_INCREF(Py_None); | |
1314 | _resultobj = Py_None; | |
1315 | return _resultobj; | |
1316 | } | |
1317 | ||
af309447 | 1318 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1319 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1320 | PyObject * _resultobj; |
1321 | wxWindow * _arg0; | |
1322 | int * _arg1; | |
1323 | int * _arg2; | |
1d99702e | 1324 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1325 | int temp; |
1326 | PyObject * _obj1 = 0; | |
1327 | int temp0; | |
1328 | PyObject * _obj2 = 0; | |
efc5f224 | 1329 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1330 | |
1331 | self = self; | |
efc5f224 | 1332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1333 | return NULL; |
1d99702e RD |
1334 | if (_argo0) { |
1335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1338 | return NULL; |
1339 | } | |
1340 | } | |
1341 | { | |
1342 | temp = (int) PyInt_AsLong(_obj1); | |
1343 | _arg1 = &temp; | |
1344 | } | |
1345 | { | |
1346 | temp0 = (int) PyInt_AsLong(_obj2); | |
1347 | _arg2 = &temp0; | |
1348 | } | |
cf694132 | 1349 | { |
474c48f9 | 1350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1351 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1352 | |
474c48f9 | 1353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1355 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1356 | _resultobj = Py_None; |
1357 | { | |
1358 | PyObject *o; | |
1359 | o = PyInt_FromLong((long) (*_arg1)); | |
1360 | _resultobj = t_output_helper(_resultobj, o); | |
1361 | } | |
1362 | { | |
1363 | PyObject *o; | |
1364 | o = PyInt_FromLong((long) (*_arg2)); | |
1365 | _resultobj = t_output_helper(_resultobj, o); | |
1366 | } | |
1367 | return _resultobj; | |
1368 | } | |
1369 | ||
af309447 | 1370 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1371 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1372 | PyObject * _resultobj; |
1373 | wxPoint * _result; | |
1374 | wxWindow * _arg0; | |
1375 | wxPoint * _arg1; | |
1d99702e | 1376 | PyObject * _argo0 = 0; |
2f90df85 RD |
1377 | wxPoint temp; |
1378 | PyObject * _obj1 = 0; | |
efc5f224 | 1379 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1380 | char _ptemp[128]; |
1381 | ||
1382 | self = self; | |
2f90df85 | 1383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1384 | return NULL; |
1d99702e RD |
1385 | if (_argo0) { |
1386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1389 | return NULL; | |
1390 | } | |
1391 | } | |
2f90df85 RD |
1392 | { |
1393 | _arg1 = &temp; | |
1394 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1395 | return NULL; |
2f90df85 | 1396 | } |
cf694132 | 1397 | { |
474c48f9 | 1398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1399 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1400 | |
474c48f9 | 1401 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1402 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1403 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1404 | _resultobj = Py_BuildValue("s",_ptemp); |
1405 | return _resultobj; | |
1406 | } | |
1407 | ||
8ab979d7 | 1408 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1409 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1410 | PyObject * _resultobj; |
1411 | bool _result; | |
1412 | wxWindow * _arg0; | |
1d99702e RD |
1413 | int _arg1 = (int ) FALSE; |
1414 | PyObject * _argo0 = 0; | |
efc5f224 | 1415 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1416 | |
1417 | self = self; | |
efc5f224 | 1418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1419 | return NULL; |
1d99702e RD |
1420 | if (_argo0) { |
1421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1424 | return NULL; | |
1425 | } | |
1426 | } | |
cf694132 | 1427 | { |
474c48f9 | 1428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1429 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1430 | |
474c48f9 | 1431 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1432 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1433 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1434 | return _resultobj; |
1435 | } | |
1436 | ||
1437 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1438 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1439 | PyObject * _resultobj; |
1440 | bool _result; | |
1441 | wxWindow * _arg0; | |
1d99702e | 1442 | PyObject * _argo0 = 0; |
efc5f224 | 1443 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1444 | |
1445 | self = self; | |
efc5f224 | 1446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1447 | return NULL; |
1d99702e RD |
1448 | if (_argo0) { |
1449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1452 | return NULL; | |
1453 | } | |
1454 | } | |
cf694132 | 1455 | { |
474c48f9 | 1456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1457 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1458 | |
474c48f9 | 1459 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1460 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1461 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1462 | return _resultobj; |
1463 | } | |
1464 | ||
1465 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1466 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1467 | PyObject * _resultobj; |
1468 | wxWindow * _arg0; | |
1d99702e | 1469 | PyObject * _argo0 = 0; |
efc5f224 | 1470 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1471 | |
1472 | self = self; | |
efc5f224 | 1473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1474 | return NULL; |
1d99702e RD |
1475 | if (_argo0) { |
1476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1479 | return NULL; | |
1480 | } | |
1481 | } | |
cf694132 | 1482 | { |
474c48f9 | 1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1484 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1485 | |
474c48f9 | 1486 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1487 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1488 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1489 | _resultobj = Py_None; |
1490 | return _resultobj; | |
1491 | } | |
1492 | ||
4dfaa61e RD |
1493 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1494 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1495 | PyObject * _resultobj; | |
1496 | bool _result; | |
1497 | wxWindow * _arg0; | |
1498 | PyObject * _argo0 = 0; | |
1499 | char *_kwnames[] = { "self", NULL }; | |
1500 | ||
1501 | self = self; | |
1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1503 | return NULL; | |
1504 | if (_argo0) { | |
1505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1508 | return NULL; | |
1509 | } | |
1510 | } | |
1511 | { | |
474c48f9 | 1512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1513 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
4dfaa61e | 1514 | |
474c48f9 | 1515 | wxPyEndAllowThreads(__tstate); |
4dfaa61e RD |
1516 | if (PyErr_Occurred()) return NULL; |
1517 | } _resultobj = Py_BuildValue("i",_result); | |
1518 | return _resultobj; | |
1519 | } | |
1520 | ||
8ab979d7 | 1521 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 1522 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1523 | PyObject * _resultobj; |
1524 | wxWindow * _arg0; | |
1525 | bool _arg1; | |
1d99702e | 1526 | PyObject * _argo0 = 0; |
8ab979d7 | 1527 | int tempbool1; |
efc5f224 | 1528 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1529 | |
1530 | self = self; | |
efc5f224 | 1531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1532 | return NULL; |
1d99702e RD |
1533 | if (_argo0) { |
1534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1537 | return NULL; | |
1538 | } | |
1539 | } | |
1540 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1541 | { |
474c48f9 | 1542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1543 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1544 | |
474c48f9 | 1545 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1546 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1547 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1548 | _resultobj = Py_None; |
1549 | return _resultobj; | |
1550 | } | |
1551 | ||
af309447 | 1552 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1553 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1554 | PyObject * _resultobj; |
1555 | wxWindow * _result; | |
1556 | wxWindow * _arg0; | |
1557 | long _arg1; | |
1d99702e | 1558 | PyObject * _argo0 = 0; |
efc5f224 | 1559 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1560 | |
1561 | self = self; | |
efc5f224 | 1562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1563 | return NULL; |
1d99702e RD |
1564 | if (_argo0) { |
1565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1568 | return NULL; |
1569 | } | |
1570 | } | |
cf694132 | 1571 | { |
474c48f9 | 1572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1573 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1574 | |
474c48f9 | 1575 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1576 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1577 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1578 | return _resultobj; |
1579 | } | |
1580 | ||
1581 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1582 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1583 | PyObject * _resultobj; |
1584 | wxWindow * _result; | |
1585 | wxWindow * _arg0; | |
1586 | wxString * _arg1; | |
1d99702e | 1587 | PyObject * _argo0 = 0; |
8ab979d7 | 1588 | PyObject * _obj1 = 0; |
efc5f224 | 1589 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1590 | |
1591 | self = self; | |
efc5f224 | 1592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1593 | return NULL; |
1d99702e RD |
1594 | if (_argo0) { |
1595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1598 | return NULL; | |
1599 | } | |
1600 | } | |
1601 | { | |
c8bc7bb8 RD |
1602 | _arg1 = wxString_in_helper(_obj1); |
1603 | if (_arg1 == NULL) | |
8ab979d7 | 1604 | return NULL; |
8ab979d7 | 1605 | } |
cf694132 | 1606 | { |
474c48f9 | 1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1608 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1609 | |
474c48f9 | 1610 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1611 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1612 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1613 | { |
1614 | if (_obj1) | |
1615 | delete _arg1; | |
1616 | } | |
1617 | return _resultobj; | |
1618 | } | |
1619 | ||
1620 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1621 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1622 | PyObject * _resultobj; |
1623 | wxWindow * _arg0; | |
1d99702e | 1624 | PyObject * _argo0 = 0; |
efc5f224 | 1625 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1626 | |
1627 | self = self; | |
efc5f224 | 1628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1629 | return NULL; |
1d99702e RD |
1630 | if (_argo0) { |
1631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1634 | return NULL; | |
1635 | } | |
1636 | } | |
cf694132 | 1637 | { |
474c48f9 | 1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1639 | wxWindow_Fit(_arg0); |
cf694132 | 1640 | |
474c48f9 | 1641 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1642 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1643 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1644 | _resultobj = Py_None; |
1645 | return _resultobj; | |
1646 | } | |
1647 | ||
1648 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1649 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1650 | PyObject * _resultobj; |
1651 | wxColour * _result; | |
1652 | wxWindow * _arg0; | |
1d99702e | 1653 | PyObject * _argo0 = 0; |
efc5f224 | 1654 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1655 | char _ptemp[128]; |
1656 | ||
1657 | self = self; | |
efc5f224 | 1658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1659 | return NULL; |
1d99702e RD |
1660 | if (_argo0) { |
1661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1664 | return NULL; | |
1665 | } | |
1666 | } | |
cf694132 | 1667 | { |
474c48f9 | 1668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1669 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1670 | |
474c48f9 | 1671 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1672 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1673 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1674 | _resultobj = Py_BuildValue("s",_ptemp); |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
8cb49012 RD |
1678 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1679 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1680 | PyObject * _resultobj; | |
1681 | wxBorder _result; | |
1682 | wxWindow * _arg0; | |
1683 | PyObject * _argo0 = 0; | |
1684 | char *_kwnames[] = { "self", NULL }; | |
1685 | ||
1686 | self = self; | |
1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1688 | return NULL; | |
1689 | if (_argo0) { | |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
1696 | { | |
1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1698 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
8cb49012 RD |
1699 | |
1700 | wxPyEndAllowThreads(__tstate); | |
1701 | if (PyErr_Occurred()) return NULL; | |
1702 | } _resultobj = Py_BuildValue("i",_result); | |
1703 | return _resultobj; | |
1704 | } | |
1705 | ||
d426c97e RD |
1706 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1707 | wxWindowList& list = self->GetChildren(); | |
1708 | return wxPy_ConvertList(&list, "wxWindow"); | |
1709 | } | |
1710 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1711 | PyObject * _resultobj; | |
1712 | PyObject * _result; | |
1713 | wxWindow * _arg0; | |
1714 | PyObject * _argo0 = 0; | |
1715 | char *_kwnames[] = { "self", NULL }; | |
1716 | ||
1717 | self = self; | |
1718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1719 | return NULL; | |
1720 | if (_argo0) { | |
1721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1724 | return NULL; | |
1725 | } | |
1726 | } | |
1727 | { | |
474c48f9 | 1728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1729 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1730 | |
474c48f9 | 1731 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1732 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1733 | }{ |
1734 | _resultobj = _result; | |
1735 | } | |
1736 | return _resultobj; | |
1737 | } | |
1738 | ||
8ab979d7 | 1739 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1740 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1741 | PyObject * _resultobj; |
1742 | int _result; | |
1743 | wxWindow * _arg0; | |
1d99702e | 1744 | PyObject * _argo0 = 0; |
efc5f224 | 1745 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1746 | |
1747 | self = self; | |
efc5f224 | 1748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1749 | return NULL; |
1d99702e RD |
1750 | if (_argo0) { |
1751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1754 | return NULL; | |
1755 | } | |
1756 | } | |
cf694132 | 1757 | { |
474c48f9 | 1758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1759 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1760 | |
474c48f9 | 1761 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1762 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1763 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1764 | return _resultobj; |
1765 | } | |
1766 | ||
1767 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1768 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1769 | PyObject * _resultobj; |
1770 | int _result; | |
1771 | wxWindow * _arg0; | |
1d99702e | 1772 | PyObject * _argo0 = 0; |
efc5f224 | 1773 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1774 | |
1775 | self = self; | |
efc5f224 | 1776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1777 | return NULL; |
1d99702e RD |
1778 | if (_argo0) { |
1779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1782 | return NULL; | |
1783 | } | |
1784 | } | |
cf694132 | 1785 | { |
474c48f9 | 1786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1787 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1788 | |
474c48f9 | 1789 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1790 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1791 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1792 | return _resultobj; |
1793 | } | |
1794 | ||
b8b8dda7 | 1795 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1796 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1797 | PyObject * _resultobj; |
1798 | wxWindow * _arg0; | |
1799 | int * _arg1; | |
1800 | int temp; | |
1801 | int * _arg2; | |
1802 | int temp0; | |
1d99702e | 1803 | PyObject * _argo0 = 0; |
efc5f224 | 1804 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1805 | |
1806 | self = self; | |
1807 | { | |
1808 | _arg1 = &temp; | |
1809 | } | |
1810 | { | |
1811 | _arg2 = &temp0; | |
1812 | } | |
efc5f224 | 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1814 | return NULL; |
1d99702e RD |
1815 | if (_argo0) { |
1816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1819 | return NULL; |
1820 | } | |
1821 | } | |
cf694132 | 1822 | { |
474c48f9 | 1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1824 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1825 | |
474c48f9 | 1826 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1827 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1828 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1829 | _resultobj = Py_None; |
1830 | { | |
1831 | PyObject *o; | |
1832 | o = PyInt_FromLong((long) (*_arg1)); | |
1833 | _resultobj = t_output_helper(_resultobj, o); | |
1834 | } | |
1835 | { | |
1836 | PyObject *o; | |
1837 | o = PyInt_FromLong((long) (*_arg2)); | |
1838 | _resultobj = t_output_helper(_resultobj, o); | |
1839 | } | |
1840 | return _resultobj; | |
1841 | } | |
1842 | ||
b8b8dda7 | 1843 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1844 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1845 | PyObject * _resultobj; |
1846 | wxSize * _result; | |
1847 | wxWindow * _arg0; | |
1d99702e | 1848 | PyObject * _argo0 = 0; |
efc5f224 | 1849 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1850 | char _ptemp[128]; |
1851 | ||
1852 | self = self; | |
efc5f224 | 1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1854 | return NULL; |
1d99702e RD |
1855 | if (_argo0) { |
1856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1859 | return NULL; | |
1860 | } | |
1861 | } | |
cf694132 | 1862 | { |
474c48f9 | 1863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1864 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1865 | |
474c48f9 | 1866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1867 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1868 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1869 | _resultobj = Py_BuildValue("s",_ptemp); |
1870 | return _resultobj; | |
1871 | } | |
1872 | ||
8cb49012 RD |
1873 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1874 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1875 | PyObject * _resultobj; | |
1876 | wxPoint * _result; | |
1877 | wxWindow * _arg0; | |
1878 | PyObject * _argo0 = 0; | |
1879 | char *_kwnames[] = { "self", NULL }; | |
1880 | char _ptemp[128]; | |
1881 | ||
1882 | self = self; | |
1883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1884 | return NULL; | |
1885 | if (_argo0) { | |
1886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1889 | return NULL; | |
1890 | } | |
1891 | } | |
1892 | { | |
1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1894 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
8cb49012 RD |
1895 | |
1896 | wxPyEndAllowThreads(__tstate); | |
1897 | if (PyErr_Occurred()) return NULL; | |
1898 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1899 | _resultobj = Py_BuildValue("s",_ptemp); | |
1900 | return _resultobj; | |
1901 | } | |
1902 | ||
1903 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1904 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1905 | PyObject * _resultobj; | |
1906 | wxRect * _result; | |
1907 | wxWindow * _arg0; | |
1908 | PyObject * _argo0 = 0; | |
1909 | char *_kwnames[] = { "self", NULL }; | |
1910 | char _ptemp[128]; | |
1911 | ||
1912 | self = self; | |
1913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1914 | return NULL; | |
1915 | if (_argo0) { | |
1916 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1917 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1919 | return NULL; | |
1920 | } | |
1921 | } | |
1922 | { | |
1923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1924 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
8cb49012 RD |
1925 | |
1926 | wxPyEndAllowThreads(__tstate); | |
1927 | if (PyErr_Occurred()) return NULL; | |
1928 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1929 | _resultobj = Py_BuildValue("s",_ptemp); | |
1930 | return _resultobj; | |
1931 | } | |
1932 | ||
8ab979d7 | 1933 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1934 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1935 | PyObject * _resultobj; |
1936 | wxLayoutConstraints * _result; | |
1937 | wxWindow * _arg0; | |
1d99702e | 1938 | PyObject * _argo0 = 0; |
efc5f224 | 1939 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1940 | char _ptemp[128]; |
1941 | ||
1942 | self = self; | |
efc5f224 | 1943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1944 | return NULL; |
1d99702e RD |
1945 | if (_argo0) { |
1946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1949 | return NULL; | |
1950 | } | |
1951 | } | |
cf694132 | 1952 | { |
474c48f9 | 1953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1954 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 1955 | |
474c48f9 | 1956 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1957 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1958 | } if (_result) { |
1959 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1960 | _resultobj = Py_BuildValue("s",_ptemp); | |
1961 | } else { | |
1962 | Py_INCREF(Py_None); | |
1963 | _resultobj = Py_None; | |
1964 | } | |
8ab979d7 RD |
1965 | return _resultobj; |
1966 | } | |
1967 | ||
1afc06c2 RD |
1968 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1969 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject * _resultobj; | |
1971 | wxEvtHandler * _result; | |
1972 | wxWindow * _arg0; | |
1973 | PyObject * _argo0 = 0; | |
1974 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1975 | |
1976 | self = self; | |
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1978 | return NULL; | |
1979 | if (_argo0) { | |
1980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1983 | return NULL; | |
1984 | } | |
1985 | } | |
1986 | { | |
474c48f9 | 1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1988 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 1989 | |
474c48f9 | 1990 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1991 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1992 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1993 | return _resultobj; |
1994 | } | |
1995 | ||
8ab979d7 | 1996 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1997 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1998 | PyObject * _resultobj; |
1999 | wxFont * _result; | |
2000 | wxWindow * _arg0; | |
1d99702e | 2001 | PyObject * _argo0 = 0; |
efc5f224 | 2002 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2003 | char _ptemp[128]; |
2004 | ||
2005 | self = self; | |
efc5f224 | 2006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 2007 | return NULL; |
1d99702e RD |
2008 | if (_argo0) { |
2009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
2012 | return NULL; | |
2013 | } | |
2014 | } | |
cf694132 | 2015 | { |
474c48f9 | 2016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2017 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 2018 | |
474c48f9 | 2019 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2020 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
2021 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
2022 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2023 | return _resultobj; |
2024 | } | |
2025 | ||
2026 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 2027 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2028 | PyObject * _resultobj; |
2029 | wxColour * _result; | |
2030 | wxWindow * _arg0; | |
1d99702e | 2031 | PyObject * _argo0 = 0; |
efc5f224 | 2032 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2033 | char _ptemp[128]; |
2034 | ||
2035 | self = self; | |
efc5f224 | 2036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 2037 | return NULL; |
1d99702e RD |
2038 | if (_argo0) { |
2039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
2042 | return NULL; | |
2043 | } | |
2044 | } | |
cf694132 | 2045 | { |
474c48f9 | 2046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2047 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 2048 | |
474c48f9 | 2049 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2050 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2051 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
2052 | _resultobj = Py_BuildValue("s",_ptemp); |
2053 | return _resultobj; | |
2054 | } | |
2055 | ||
2056 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 2057 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2058 | PyObject * _resultobj; |
2059 | wxWindow * _result; | |
2060 | wxWindow * _arg0; | |
1d99702e | 2061 | PyObject * _argo0 = 0; |
efc5f224 | 2062 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2063 | |
2064 | self = self; | |
efc5f224 | 2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 2066 | return NULL; |
1d99702e RD |
2067 | if (_argo0) { |
2068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
2071 | return NULL; | |
2072 | } | |
2073 | } | |
cf694132 | 2074 | { |
474c48f9 | 2075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2076 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 2077 | |
474c48f9 | 2078 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2079 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2080 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2081 | return _resultobj; |
2082 | } | |
2083 | ||
2abc0a0f | 2084 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2085 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2086 | } |
2087 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2088 | PyObject * _resultobj; | |
2089 | long _result; | |
2090 | wxWindow * _arg0; | |
2091 | PyObject * _argo0 = 0; | |
2092 | char *_kwnames[] = { "self", NULL }; | |
2093 | ||
2094 | self = self; | |
2095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2096 | return NULL; | |
2097 | if (_argo0) { | |
2098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2101 | return NULL; | |
2102 | } | |
2103 | } | |
2104 | { | |
474c48f9 | 2105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2106 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2107 | |
474c48f9 | 2108 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2109 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2110 | } _resultobj = Py_BuildValue("l",_result); |
2111 | return _resultobj; | |
2112 | } | |
2113 | ||
8ab979d7 | 2114 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2115 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2116 | PyObject * _resultobj; |
2117 | int _result; | |
2118 | wxWindow * _arg0; | |
1d99702e | 2119 | PyObject * _argo0 = 0; |
efc5f224 | 2120 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2121 | |
2122 | self = self; | |
efc5f224 | 2123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2124 | return NULL; |
1d99702e RD |
2125 | if (_argo0) { |
2126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2129 | return NULL; | |
2130 | } | |
2131 | } | |
cf694132 | 2132 | { |
474c48f9 | 2133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2134 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2135 | |
474c48f9 | 2136 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2137 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2138 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2139 | return _resultobj; |
2140 | } | |
2141 | ||
8ab979d7 | 2142 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2143 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2144 | PyObject * _resultobj; |
2145 | wxString * _result; | |
2146 | wxWindow * _arg0; | |
1d99702e | 2147 | PyObject * _argo0 = 0; |
efc5f224 | 2148 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2149 | |
2150 | self = self; | |
efc5f224 | 2151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2152 | return NULL; |
1d99702e RD |
2153 | if (_argo0) { |
2154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2157 | return NULL; | |
2158 | } | |
2159 | } | |
8ab979d7 | 2160 | { |
474c48f9 | 2161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2162 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2163 | |
474c48f9 | 2164 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2165 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2166 | }{ |
c8bc7bb8 RD |
2167 | #if wxUSE_UNICODE |
2168 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2169 | #else | |
eec92d76 | 2170 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2171 | #endif |
8ab979d7 RD |
2172 | } |
2173 | { | |
2174 | delete _result; | |
2175 | } | |
2176 | return _resultobj; | |
2177 | } | |
2178 | ||
bb0054cd | 2179 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2180 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2181 | PyObject * _resultobj; |
2182 | wxWindow * _arg0; | |
2183 | wxString * _arg1; | |
1d99702e | 2184 | PyObject * _argo0 = 0; |
bb0054cd | 2185 | PyObject * _obj1 = 0; |
efc5f224 | 2186 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2187 | |
2188 | self = self; | |
efc5f224 | 2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2190 | return NULL; |
1d99702e RD |
2191 | if (_argo0) { |
2192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2195 | return NULL; | |
2196 | } | |
2197 | } | |
2198 | { | |
c8bc7bb8 RD |
2199 | _arg1 = wxString_in_helper(_obj1); |
2200 | if (_arg1 == NULL) | |
bb0054cd | 2201 | return NULL; |
bb0054cd RD |
2202 | } |
2203 | { | |
474c48f9 | 2204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2205 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2206 | |
474c48f9 | 2207 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2208 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2209 | } Py_INCREF(Py_None); |
2210 | _resultobj = Py_None; | |
2211 | { | |
2212 | if (_obj1) | |
2213 | delete _arg1; | |
2214 | } | |
2215 | return _resultobj; | |
2216 | } | |
2217 | ||
8ab979d7 | 2218 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2219 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2220 | PyObject * _resultobj; |
2221 | wxString * _result; | |
2222 | wxWindow * _arg0; | |
1d99702e | 2223 | PyObject * _argo0 = 0; |
efc5f224 | 2224 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2225 | |
2226 | self = self; | |
efc5f224 | 2227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2228 | return NULL; |
1d99702e RD |
2229 | if (_argo0) { |
2230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2233 | return NULL; | |
2234 | } | |
2235 | } | |
8ab979d7 | 2236 | { |
474c48f9 | 2237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2238 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2239 | |
474c48f9 | 2240 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2241 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2242 | }{ |
c8bc7bb8 RD |
2243 | #if wxUSE_UNICODE |
2244 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2245 | #else | |
eec92d76 | 2246 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2247 | #endif |
8ab979d7 RD |
2248 | } |
2249 | { | |
2250 | delete _result; | |
2251 | } | |
2252 | return _resultobj; | |
2253 | } | |
2254 | ||
2255 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2256 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2257 | PyObject * _resultobj; |
2258 | wxWindow * _result; | |
2259 | wxWindow * _arg0; | |
1d99702e | 2260 | PyObject * _argo0 = 0; |
efc5f224 | 2261 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2262 | |
2263 | self = self; | |
efc5f224 | 2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2265 | return NULL; |
1d99702e RD |
2266 | if (_argo0) { |
2267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2270 | return NULL; | |
2271 | } | |
2272 | } | |
cf694132 | 2273 | { |
474c48f9 | 2274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2275 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2276 | |
474c48f9 | 2277 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2278 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2279 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2280 | return _resultobj; |
2281 | } | |
2282 | ||
b8b8dda7 | 2283 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2284 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2285 | PyObject * _resultobj; |
2286 | wxWindow * _arg0; | |
2287 | int * _arg1; | |
2288 | int temp; | |
2289 | int * _arg2; | |
2290 | int temp0; | |
1d99702e | 2291 | PyObject * _argo0 = 0; |
efc5f224 | 2292 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2293 | |
2294 | self = self; | |
2295 | { | |
2296 | _arg1 = &temp; | |
2297 | } | |
2298 | { | |
2299 | _arg2 = &temp0; | |
2300 | } | |
efc5f224 | 2301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2302 | return NULL; |
1d99702e RD |
2303 | if (_argo0) { |
2304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2307 | return NULL; | |
2308 | } | |
2309 | } | |
cf694132 | 2310 | { |
474c48f9 | 2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2312 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2313 | |
474c48f9 | 2314 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2315 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2316 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2317 | _resultobj = Py_None; |
2318 | { | |
2319 | PyObject *o; | |
2320 | o = PyInt_FromLong((long) (*_arg1)); | |
2321 | _resultobj = t_output_helper(_resultobj, o); | |
2322 | } | |
2323 | { | |
2324 | PyObject *o; | |
2325 | o = PyInt_FromLong((long) (*_arg2)); | |
2326 | _resultobj = t_output_helper(_resultobj, o); | |
2327 | } | |
2328 | return _resultobj; | |
2329 | } | |
2330 | ||
2331 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2332 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2333 | PyObject * _resultobj; |
2334 | wxPoint * _result; | |
2335 | wxWindow * _arg0; | |
1d99702e | 2336 | PyObject * _argo0 = 0; |
efc5f224 | 2337 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2338 | char _ptemp[128]; |
2339 | ||
2340 | self = self; | |
efc5f224 | 2341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2342 | return NULL; |
1d99702e RD |
2343 | if (_argo0) { |
2344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2347 | return NULL; | |
2348 | } | |
2349 | } | |
cf694132 | 2350 | { |
474c48f9 | 2351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2352 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2353 | |
474c48f9 | 2354 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2355 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2356 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2357 | _resultobj = Py_BuildValue("s",_ptemp); |
2358 | return _resultobj; | |
2359 | } | |
2360 | ||
2361 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2362 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2363 | PyObject * _resultobj; |
2364 | wxRect * _result; | |
2365 | wxWindow * _arg0; | |
1d99702e | 2366 | PyObject * _argo0 = 0; |
efc5f224 | 2367 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2368 | char _ptemp[128]; |
2369 | ||
2370 | self = self; | |
efc5f224 | 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2372 | return NULL; |
1d99702e RD |
2373 | if (_argo0) { |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2377 | return NULL; | |
2378 | } | |
2379 | } | |
cf694132 | 2380 | { |
474c48f9 | 2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2382 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2383 | |
474c48f9 | 2384 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2386 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2387 | _resultobj = Py_BuildValue("s",_ptemp); |
2388 | return _resultobj; | |
2389 | } | |
2390 | ||
8ab979d7 | 2391 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2392 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2393 | PyObject * _resultobj; |
2394 | int _result; | |
2395 | wxWindow * _arg0; | |
2396 | int _arg1; | |
1d99702e | 2397 | PyObject * _argo0 = 0; |
efc5f224 | 2398 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2399 | |
2400 | self = self; | |
efc5f224 | 2401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2402 | return NULL; |
1d99702e RD |
2403 | if (_argo0) { |
2404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2407 | return NULL; | |
2408 | } | |
2409 | } | |
cf694132 | 2410 | { |
474c48f9 | 2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2412 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2413 | |
474c48f9 | 2414 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2415 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2416 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2417 | return _resultobj; |
2418 | } | |
2419 | ||
2420 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2421 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2422 | PyObject * _resultobj; |
2423 | int _result; | |
2424 | wxWindow * _arg0; | |
2425 | int _arg1; | |
1d99702e | 2426 | PyObject * _argo0 = 0; |
efc5f224 | 2427 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2428 | |
2429 | self = self; | |
efc5f224 | 2430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2431 | return NULL; |
1d99702e RD |
2432 | if (_argo0) { |
2433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2436 | return NULL; | |
2437 | } | |
2438 | } | |
cf694132 | 2439 | { |
474c48f9 | 2440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2441 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2442 | |
474c48f9 | 2443 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2444 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2445 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2446 | return _resultobj; |
2447 | } | |
2448 | ||
2449 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2450 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2451 | PyObject * _resultobj; |
2452 | int _result; | |
2453 | wxWindow * _arg0; | |
2454 | int _arg1; | |
1d99702e | 2455 | PyObject * _argo0 = 0; |
efc5f224 | 2456 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2457 | |
2458 | self = self; | |
efc5f224 | 2459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2460 | return NULL; |
1d99702e RD |
2461 | if (_argo0) { |
2462 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2463 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2465 | return NULL; | |
2466 | } | |
2467 | } | |
cf694132 | 2468 | { |
474c48f9 | 2469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2470 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2471 | |
474c48f9 | 2472 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2473 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2474 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2475 | return _resultobj; |
2476 | } | |
2477 | ||
b8b8dda7 | 2478 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2479 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2480 | PyObject * _resultobj; |
2481 | wxWindow * _arg0; | |
2482 | int * _arg1; | |
2483 | int temp; | |
2484 | int * _arg2; | |
2485 | int temp0; | |
1d99702e | 2486 | PyObject * _argo0 = 0; |
efc5f224 | 2487 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2488 | |
2489 | self = self; | |
2490 | { | |
2491 | _arg1 = &temp; | |
2492 | } | |
2493 | { | |
2494 | _arg2 = &temp0; | |
2495 | } | |
efc5f224 | 2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2497 | return NULL; |
1d99702e RD |
2498 | if (_argo0) { |
2499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2502 | return NULL; |
2503 | } | |
2504 | } | |
cf694132 | 2505 | { |
474c48f9 | 2506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2507 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2508 | |
474c48f9 | 2509 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2510 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2511 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2512 | _resultobj = Py_None; |
2513 | { | |
2514 | PyObject *o; | |
2515 | o = PyInt_FromLong((long) (*_arg1)); | |
2516 | _resultobj = t_output_helper(_resultobj, o); | |
2517 | } | |
2518 | { | |
2519 | PyObject *o; | |
2520 | o = PyInt_FromLong((long) (*_arg2)); | |
2521 | _resultobj = t_output_helper(_resultobj, o); | |
2522 | } | |
2523 | return _resultobj; | |
2524 | } | |
2525 | ||
b8b8dda7 | 2526 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2527 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2528 | PyObject * _resultobj; |
2529 | wxSize * _result; | |
2530 | wxWindow * _arg0; | |
1d99702e | 2531 | PyObject * _argo0 = 0; |
efc5f224 | 2532 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2533 | char _ptemp[128]; |
2534 | ||
2535 | self = self; | |
efc5f224 | 2536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2537 | return NULL; |
1d99702e RD |
2538 | if (_argo0) { |
2539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2542 | return NULL; | |
2543 | } | |
2544 | } | |
cf694132 | 2545 | { |
474c48f9 | 2546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2547 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2548 | |
474c48f9 | 2549 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2550 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2551 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2552 | _resultobj = Py_BuildValue("s",_ptemp); |
2553 | return _resultobj; | |
2554 | } | |
2555 | ||
8ab979d7 | 2556 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2557 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2558 | PyObject * _resultobj; |
2559 | wxWindow * _arg0; | |
2560 | wxString * _arg1; | |
2561 | int * _arg2; | |
2562 | int temp; | |
2563 | int * _arg3; | |
2564 | int temp0; | |
1d99702e | 2565 | PyObject * _argo0 = 0; |
8ab979d7 | 2566 | PyObject * _obj1 = 0; |
efc5f224 | 2567 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2568 | |
2569 | self = self; | |
2570 | { | |
2571 | _arg2 = &temp; | |
2572 | } | |
2573 | { | |
2574 | _arg3 = &temp0; | |
2575 | } | |
efc5f224 | 2576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2577 | return NULL; |
1d99702e RD |
2578 | if (_argo0) { |
2579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2582 | return NULL; | |
2583 | } | |
2584 | } | |
2585 | { | |
c8bc7bb8 RD |
2586 | _arg1 = wxString_in_helper(_obj1); |
2587 | if (_arg1 == NULL) | |
8ab979d7 | 2588 | return NULL; |
8ab979d7 | 2589 | } |
cf694132 | 2590 | { |
474c48f9 | 2591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2592 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2593 | |
474c48f9 | 2594 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2595 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2596 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2597 | _resultobj = Py_None; |
2598 | { | |
2599 | PyObject *o; | |
2600 | o = PyInt_FromLong((long) (*_arg2)); | |
2601 | _resultobj = t_output_helper(_resultobj, o); | |
2602 | } | |
2603 | { | |
2604 | PyObject *o; | |
2605 | o = PyInt_FromLong((long) (*_arg3)); | |
2606 | _resultobj = t_output_helper(_resultobj, o); | |
2607 | } | |
2608 | { | |
2609 | if (_obj1) | |
2610 | delete _arg1; | |
2611 | } | |
2612 | return _resultobj; | |
2613 | } | |
2614 | ||
af309447 | 2615 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2616 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2617 | PyObject * _resultobj; |
2618 | wxWindow * _arg0; | |
2619 | wxString * _arg1; | |
2620 | int * _arg2; | |
2621 | int temp; | |
2622 | int * _arg3; | |
2623 | int temp0; | |
2624 | int * _arg4; | |
2625 | int temp1; | |
2626 | int * _arg5; | |
2627 | int temp2; | |
1d99702e RD |
2628 | wxFont * _arg6 = (wxFont *) NULL; |
2629 | PyObject * _argo0 = 0; | |
af309447 | 2630 | PyObject * _obj1 = 0; |
1d99702e | 2631 | PyObject * _argo6 = 0; |
efc5f224 | 2632 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2633 | |
2634 | self = self; | |
2635 | { | |
2636 | _arg2 = &temp; | |
2637 | } | |
2638 | { | |
2639 | _arg3 = &temp0; | |
2640 | } | |
2641 | { | |
2642 | _arg4 = &temp1; | |
2643 | } | |
2644 | { | |
2645 | _arg5 = &temp2; | |
2646 | } | |
efc5f224 | 2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2648 | return NULL; |
1d99702e RD |
2649 | if (_argo0) { |
2650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2653 | return NULL; | |
2654 | } | |
2655 | } | |
2656 | { | |
c8bc7bb8 RD |
2657 | _arg1 = wxString_in_helper(_obj1); |
2658 | if (_arg1 == NULL) | |
af309447 | 2659 | return NULL; |
af309447 | 2660 | } |
1d99702e RD |
2661 | if (_argo6) { |
2662 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2663 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2665 | return NULL; | |
2666 | } | |
2667 | } | |
cf694132 | 2668 | { |
474c48f9 | 2669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2670 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2671 | |
474c48f9 | 2672 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2673 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2674 | } Py_INCREF(Py_None); |
af309447 RD |
2675 | _resultobj = Py_None; |
2676 | { | |
2677 | PyObject *o; | |
2678 | o = PyInt_FromLong((long) (*_arg2)); | |
2679 | _resultobj = t_output_helper(_resultobj, o); | |
2680 | } | |
2681 | { | |
2682 | PyObject *o; | |
2683 | o = PyInt_FromLong((long) (*_arg3)); | |
2684 | _resultobj = t_output_helper(_resultobj, o); | |
2685 | } | |
2686 | { | |
2687 | PyObject *o; | |
2688 | o = PyInt_FromLong((long) (*_arg4)); | |
2689 | _resultobj = t_output_helper(_resultobj, o); | |
2690 | } | |
2691 | { | |
2692 | PyObject *o; | |
2693 | o = PyInt_FromLong((long) (*_arg5)); | |
2694 | _resultobj = t_output_helper(_resultobj, o); | |
2695 | } | |
2696 | { | |
2697 | if (_obj1) | |
2698 | delete _arg1; | |
2699 | } | |
2700 | return _resultobj; | |
2701 | } | |
2702 | ||
8ab979d7 | 2703 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2704 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2705 | PyObject * _resultobj; |
2706 | wxString * _result; | |
2707 | wxWindow * _arg0; | |
1d99702e | 2708 | PyObject * _argo0 = 0; |
efc5f224 | 2709 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2710 | |
2711 | self = self; | |
efc5f224 | 2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2713 | return NULL; |
1d99702e RD |
2714 | if (_argo0) { |
2715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2718 | return NULL; | |
2719 | } | |
2720 | } | |
8ab979d7 | 2721 | { |
474c48f9 | 2722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2723 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2724 | |
474c48f9 | 2725 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2726 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2727 | }{ |
c8bc7bb8 RD |
2728 | #if wxUSE_UNICODE |
2729 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2730 | #else | |
eec92d76 | 2731 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2732 | #endif |
8ab979d7 RD |
2733 | } |
2734 | { | |
2735 | delete _result; | |
2736 | } | |
2737 | return _resultobj; | |
2738 | } | |
2739 | ||
8bf5d46e | 2740 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2741 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2742 | PyObject * _resultobj; |
2743 | wxRegion * _result; | |
2744 | wxWindow * _arg0; | |
1d99702e | 2745 | PyObject * _argo0 = 0; |
efc5f224 | 2746 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2747 | char _ptemp[128]; |
2748 | ||
2749 | self = self; | |
efc5f224 | 2750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2751 | return NULL; |
1d99702e RD |
2752 | if (_argo0) { |
2753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2756 | return NULL; | |
2757 | } | |
2758 | } | |
2759 | { | |
474c48f9 | 2760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2761 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2762 | |
474c48f9 | 2763 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2764 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2765 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2766 | _resultobj = Py_BuildValue("s",_ptemp); | |
2767 | return _resultobj; | |
2768 | } | |
2769 | ||
8ab979d7 | 2770 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2771 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2772 | PyObject * _resultobj; |
2773 | long _result; | |
2774 | wxWindow * _arg0; | |
1d99702e | 2775 | PyObject * _argo0 = 0; |
efc5f224 | 2776 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2777 | |
2778 | self = self; | |
efc5f224 | 2779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2780 | return NULL; |
1d99702e RD |
2781 | if (_argo0) { |
2782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2785 | return NULL; | |
2786 | } | |
2787 | } | |
cf694132 | 2788 | { |
474c48f9 | 2789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2790 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2791 | |
474c48f9 | 2792 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2793 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2794 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2795 | return _resultobj; |
2796 | } | |
2797 | ||
f6bcfd97 BP |
2798 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2799 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2800 | PyObject * _resultobj; | |
2801 | wxWindow * _arg0; | |
2802 | long _arg1; | |
2803 | PyObject * _argo0 = 0; | |
2804 | char *_kwnames[] = { "self","style", NULL }; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2808 | return NULL; | |
2809 | if (_argo0) { | |
2810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2813 | return NULL; | |
2814 | } | |
2815 | } | |
2816 | { | |
474c48f9 | 2817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2818 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2819 | |
474c48f9 | 2820 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2821 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2822 | } Py_INCREF(Py_None); |
2823 | _resultobj = Py_None; | |
2824 | return _resultobj; | |
2825 | } | |
2826 | ||
2827 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2828 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2829 | PyObject * _resultobj; | |
2830 | wxWindow * _arg0; | |
2831 | long _arg1; | |
2832 | PyObject * _argo0 = 0; | |
2833 | char *_kwnames[] = { "self","style", NULL }; | |
2834 | ||
2835 | self = self; | |
2836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2837 | return NULL; | |
2838 | if (_argo0) { | |
2839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2842 | return NULL; | |
2843 | } | |
2844 | } | |
2845 | { | |
474c48f9 | 2846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2847 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2848 | |
474c48f9 | 2849 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2850 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2851 | } Py_INCREF(Py_None); |
2852 | _resultobj = Py_None; | |
2853 | return _resultobj; | |
2854 | } | |
2855 | ||
8cb49012 RD |
2856 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2857 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2858 | PyObject * _resultobj; | |
2859 | bool _result; | |
2860 | wxWindow * _arg0; | |
2861 | int _arg1; | |
2862 | PyObject * _argo0 = 0; | |
2863 | char *_kwnames[] = { "self","orient", NULL }; | |
2864 | ||
2865 | self = self; | |
2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2867 | return NULL; | |
2868 | if (_argo0) { | |
2869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2872 | return NULL; | |
2873 | } | |
2874 | } | |
2875 | { | |
2876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2877 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
8cb49012 RD |
2878 | |
2879 | wxPyEndAllowThreads(__tstate); | |
2880 | if (PyErr_Occurred()) return NULL; | |
2881 | } _resultobj = Py_BuildValue("i",_result); | |
2882 | return _resultobj; | |
2883 | } | |
2884 | ||
bb0054cd | 2885 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2886 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2887 | PyObject * _resultobj; |
2888 | bool _result; | |
2889 | wxWindow * _arg0; | |
1d99702e | 2890 | PyObject * _argo0 = 0; |
efc5f224 | 2891 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2892 | |
2893 | self = self; | |
efc5f224 | 2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2895 | return NULL; |
1d99702e RD |
2896 | if (_argo0) { |
2897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2900 | return NULL; | |
2901 | } | |
2902 | } | |
2903 | { | |
474c48f9 | 2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2905 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2906 | |
474c48f9 | 2907 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2908 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2909 | } _resultobj = Py_BuildValue("i",_result); |
2910 | return _resultobj; | |
2911 | } | |
2912 | ||
8cb49012 RD |
2913 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2914 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2915 | PyObject * _resultobj; | |
2916 | wxHitTest _result; | |
2917 | wxWindow * _arg0; | |
2918 | wxPoint * _arg1; | |
2919 | PyObject * _argo0 = 0; | |
2920 | wxPoint temp; | |
2921 | PyObject * _obj1 = 0; | |
2922 | char *_kwnames[] = { "self","pt", NULL }; | |
2923 | ||
2924 | self = self; | |
2925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2926 | return NULL; | |
2927 | if (_argo0) { | |
2928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2931 | return NULL; | |
2932 | } | |
2933 | } | |
2934 | { | |
2935 | _arg1 = &temp; | |
2936 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2937 | return NULL; | |
2938 | } | |
2939 | { | |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2941 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
8cb49012 RD |
2942 | |
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) return NULL; | |
2945 | } _resultobj = Py_BuildValue("i",_result); | |
2946 | return _resultobj; | |
2947 | } | |
2948 | ||
8ab979d7 | 2949 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2950 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2951 | PyObject * _resultobj; |
2952 | wxWindow * _arg0; | |
1d99702e | 2953 | PyObject * _argo0 = 0; |
efc5f224 | 2954 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2955 | |
2956 | self = self; | |
efc5f224 | 2957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2958 | return NULL; |
1d99702e RD |
2959 | if (_argo0) { |
2960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2963 | return NULL; | |
2964 | } | |
2965 | } | |
cf694132 | 2966 | { |
474c48f9 | 2967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2968 | wxWindow_InitDialog(_arg0); |
cf694132 | 2969 | |
474c48f9 | 2970 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2971 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2972 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2973 | _resultobj = Py_None; |
2974 | return _resultobj; | |
2975 | } | |
2976 | ||
2977 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2978 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2979 | PyObject * _resultobj; |
2980 | bool _result; | |
2981 | wxWindow * _arg0; | |
1d99702e | 2982 | PyObject * _argo0 = 0; |
efc5f224 | 2983 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2984 | |
2985 | self = self; | |
efc5f224 | 2986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2987 | return NULL; |
1d99702e RD |
2988 | if (_argo0) { |
2989 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2990 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2991 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2992 | return NULL; | |
2993 | } | |
2994 | } | |
cf694132 | 2995 | { |
474c48f9 | 2996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2997 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 2998 | |
474c48f9 | 2999 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3000 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3001 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3002 | return _resultobj; |
3003 | } | |
3004 | ||
1b55cabf RD |
3005 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3006 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3007 | PyObject * _resultobj; | |
3008 | bool _result; | |
3009 | wxWindow * _arg0; | |
3010 | int _arg1; | |
3011 | int _arg2; | |
3012 | int _arg3 = (int ) 0; | |
3013 | int _arg4 = (int ) 0; | |
3014 | PyObject * _argo0 = 0; | |
3015 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
3016 | ||
3017 | self = self; | |
3018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
3019 | return NULL; | |
3020 | if (_argo0) { | |
3021 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3022 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
3024 | return NULL; | |
3025 | } | |
3026 | } | |
3027 | { | |
474c48f9 | 3028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3029 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 3030 | |
474c48f9 | 3031 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3032 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3033 | } _resultobj = Py_BuildValue("i",_result); |
3034 | return _resultobj; | |
3035 | } | |
3036 | ||
3037 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3038 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3039 | PyObject * _resultobj; | |
3040 | bool _result; | |
3041 | wxWindow * _arg0; | |
3042 | wxPoint * _arg1; | |
3043 | PyObject * _argo0 = 0; | |
3044 | wxPoint temp; | |
3045 | PyObject * _obj1 = 0; | |
3046 | char *_kwnames[] = { "self","pt", NULL }; | |
3047 | ||
3048 | self = self; | |
3049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
3050 | return NULL; | |
3051 | if (_argo0) { | |
3052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
3055 | return NULL; | |
3056 | } | |
3057 | } | |
3058 | { | |
3059 | _arg1 = &temp; | |
3060 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3061 | return NULL; | |
3062 | } | |
3063 | { | |
474c48f9 | 3064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3065 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 3066 | |
474c48f9 | 3067 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3068 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3069 | } _resultobj = Py_BuildValue("i",_result); |
3070 | return _resultobj; | |
3071 | } | |
3072 | ||
3073 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3074 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3075 | PyObject * _resultobj; | |
3076 | bool _result; | |
3077 | wxWindow * _arg0; | |
3078 | wxRect * _arg1; | |
3079 | PyObject * _argo0 = 0; | |
3080 | wxRect temp; | |
3081 | PyObject * _obj1 = 0; | |
3082 | char *_kwnames[] = { "self","rect", NULL }; | |
3083 | ||
3084 | self = self; | |
3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3086 | return NULL; | |
3087 | if (_argo0) { | |
3088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3091 | return NULL; | |
3092 | } | |
3093 | } | |
3094 | { | |
3095 | _arg1 = &temp; | |
3096 | if (! wxRect_helper(_obj1, &_arg1)) | |
3097 | return NULL; | |
3098 | } | |
3099 | { | |
474c48f9 | 3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3101 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3102 | |
474c48f9 | 3103 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3104 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3105 | } _resultobj = Py_BuildValue("i",_result); |
3106 | return _resultobj; | |
3107 | } | |
3108 | ||
8ab979d7 | 3109 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3110 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3111 | PyObject * _resultobj; |
3112 | bool _result; | |
3113 | wxWindow * _arg0; | |
1d99702e | 3114 | PyObject * _argo0 = 0; |
efc5f224 | 3115 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3116 | |
3117 | self = self; | |
efc5f224 | 3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3119 | return NULL; |
1d99702e RD |
3120 | if (_argo0) { |
3121 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3122 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3124 | return NULL; | |
3125 | } | |
3126 | } | |
cf694132 | 3127 | { |
474c48f9 | 3128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3129 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3130 | |
474c48f9 | 3131 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3132 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3133 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3134 | return _resultobj; |
3135 | } | |
3136 | ||
3137 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3138 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3139 | PyObject * _resultobj; |
3140 | bool _result; | |
3141 | wxWindow * _arg0; | |
1d99702e | 3142 | PyObject * _argo0 = 0; |
efc5f224 | 3143 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3144 | |
3145 | self = self; | |
efc5f224 | 3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3147 | return NULL; |
1d99702e RD |
3148 | if (_argo0) { |
3149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3152 | return NULL; | |
3153 | } | |
3154 | } | |
cf694132 | 3155 | { |
474c48f9 | 3156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3157 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3158 | |
474c48f9 | 3159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3161 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3162 | return _resultobj; |
3163 | } | |
3164 | ||
bb0054cd | 3165 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3166 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3167 | PyObject * _resultobj; |
3168 | bool _result; | |
3169 | wxWindow * _arg0; | |
1d99702e | 3170 | PyObject * _argo0 = 0; |
efc5f224 | 3171 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3172 | |
3173 | self = self; | |
efc5f224 | 3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3175 | return NULL; |
1d99702e RD |
3176 | if (_argo0) { |
3177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3180 | return NULL; | |
3181 | } | |
3182 | } | |
3183 | { | |
474c48f9 | 3184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3185 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3186 | |
474c48f9 | 3187 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3188 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3189 | } _resultobj = Py_BuildValue("i",_result); |
3190 | return _resultobj; | |
3191 | } | |
3192 | ||
8ab979d7 | 3193 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3194 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3195 | PyObject * _resultobj; |
3196 | wxWindow * _arg0; | |
1d99702e | 3197 | PyObject * _argo0 = 0; |
efc5f224 | 3198 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3199 | |
3200 | self = self; | |
efc5f224 | 3201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3202 | return NULL; |
1d99702e RD |
3203 | if (_argo0) { |
3204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3207 | return NULL; | |
3208 | } | |
3209 | } | |
cf694132 | 3210 | { |
474c48f9 | 3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3212 | wxWindow_Layout(_arg0); |
cf694132 | 3213 | |
474c48f9 | 3214 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3215 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3216 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3217 | _resultobj = Py_None; |
3218 | return _resultobj; | |
3219 | } | |
3220 | ||
3221 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3222 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3223 | PyObject * _resultobj; |
3224 | bool _result; | |
3225 | wxWindow * _arg0; | |
3226 | wxWindow * _arg1; | |
3227 | wxString * _arg2; | |
1d99702e RD |
3228 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3229 | PyObject * _argo0 = 0; | |
3230 | PyObject * _argo1 = 0; | |
8ab979d7 | 3231 | PyObject * _obj2 = 0; |
1d99702e | 3232 | PyObject * _argo3 = 0; |
efc5f224 | 3233 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3234 | |
3235 | self = self; | |
efc5f224 | 3236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3237 | return NULL; |
1d99702e RD |
3238 | if (_argo0) { |
3239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3242 | return NULL; | |
3243 | } | |
3244 | } | |
1d99702e RD |
3245 | if (_argo1) { |
3246 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3247 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3248 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3249 | return NULL; | |
3250 | } | |
3251 | } | |
3252 | { | |
c8bc7bb8 RD |
3253 | _arg2 = wxString_in_helper(_obj2); |
3254 | if (_arg2 == NULL) | |
8ab979d7 | 3255 | return NULL; |
8ab979d7 | 3256 | } |
1d99702e RD |
3257 | if (_argo3) { |
3258 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3259 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3261 | return NULL; | |
3262 | } | |
3263 | } | |
cf694132 | 3264 | { |
474c48f9 | 3265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3266 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 3267 | |
474c48f9 | 3268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3269 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3270 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3271 | { |
3272 | if (_obj2) | |
3273 | delete _arg2; | |
3274 | } | |
3275 | return _resultobj; | |
3276 | } | |
3277 | ||
3278 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3279 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3280 | PyObject * _resultobj; |
3281 | wxWindow * _arg0; | |
1d99702e | 3282 | PyObject * _argo0 = 0; |
efc5f224 | 3283 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3284 | |
3285 | self = self; | |
efc5f224 | 3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3287 | return NULL; |
1d99702e RD |
3288 | if (_argo0) { |
3289 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3290 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3292 | return NULL; | |
3293 | } | |
3294 | } | |
cf694132 | 3295 | { |
474c48f9 | 3296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3297 | wxWindow_Lower(_arg0); |
cf694132 | 3298 | |
474c48f9 | 3299 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3300 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3301 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3302 | _resultobj = Py_None; |
3303 | return _resultobj; | |
3304 | } | |
3305 | ||
3306 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3307 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3308 | PyObject * _resultobj; |
3309 | wxWindow * _arg0; | |
65191ae8 | 3310 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3311 | PyObject * _argo0 = 0; |
65191ae8 | 3312 | int tempbool1 = (int) TRUE; |
efc5f224 | 3313 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3314 | |
3315 | self = self; | |
65191ae8 | 3316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3317 | return NULL; |
1d99702e RD |
3318 | if (_argo0) { |
3319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3322 | return NULL; | |
3323 | } | |
3324 | } | |
3325 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3326 | { |
474c48f9 | 3327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3328 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3329 | |
474c48f9 | 3330 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3331 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3332 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3333 | _resultobj = Py_None; |
3334 | return _resultobj; | |
3335 | } | |
3336 | ||
8cb49012 | 3337 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3338 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3339 | PyObject * _resultobj; |
3340 | wxWindow * _arg0; | |
3341 | int _arg1; | |
3342 | int _arg2; | |
8cb49012 | 3343 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3344 | PyObject * _argo0 = 0; |
8cb49012 | 3345 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3346 | |
3347 | self = self; | |
8cb49012 | 3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3349 | return NULL; |
1d99702e RD |
3350 | if (_argo0) { |
3351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3354 | return NULL; | |
3355 | } | |
3356 | } | |
cf694132 | 3357 | { |
474c48f9 | 3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3359 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3360 | |
474c48f9 | 3361 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3362 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3363 | } Py_INCREF(Py_None); |
af309447 RD |
3364 | _resultobj = Py_None; |
3365 | return _resultobj; | |
3366 | } | |
3367 | ||
8cb49012 | 3368 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3369 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3370 | PyObject * _resultobj; |
3371 | wxWindow * _arg0; | |
3372 | wxPoint * _arg1; | |
8cb49012 | 3373 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3374 | PyObject * _argo0 = 0; |
2f90df85 RD |
3375 | wxPoint temp; |
3376 | PyObject * _obj1 = 0; | |
8cb49012 | 3377 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3378 | |
3379 | self = self; | |
8cb49012 | 3380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3381 | return NULL; |
1d99702e RD |
3382 | if (_argo0) { |
3383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3386 | return NULL; | |
3387 | } | |
3388 | } | |
2f90df85 RD |
3389 | { |
3390 | _arg1 = &temp; | |
3391 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3392 | return NULL; |
2f90df85 | 3393 | } |
cf694132 | 3394 | { |
474c48f9 | 3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3396 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3397 | |
474c48f9 | 3398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3400 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3401 | _resultobj = Py_None; |
3402 | return _resultobj; | |
3403 | } | |
3404 | ||
1afc06c2 RD |
3405 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3406 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3407 | PyObject * _resultobj; | |
3408 | wxEvtHandler * _result; | |
3409 | wxWindow * _arg0; | |
3410 | bool _arg1 = (bool ) FALSE; | |
3411 | PyObject * _argo0 = 0; | |
3412 | int tempbool1 = (int) FALSE; | |
3413 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3414 | |
3415 | self = self; | |
3416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3417 | return NULL; | |
3418 | if (_argo0) { | |
3419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3422 | return NULL; | |
3423 | } | |
3424 | } | |
3425 | _arg1 = (bool ) tempbool1; | |
3426 | { | |
474c48f9 | 3427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3428 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3429 | |
474c48f9 | 3430 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3431 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3432 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3433 | return _resultobj; |
3434 | } | |
3435 | ||
3436 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3437 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3438 | PyObject * _resultobj; | |
3439 | wxWindow * _arg0; | |
3440 | wxEvtHandler * _arg1; | |
3441 | PyObject * _argo0 = 0; | |
3442 | PyObject * _argo1 = 0; | |
3443 | char *_kwnames[] = { "self","handler", NULL }; | |
3444 | ||
3445 | self = self; | |
3446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3447 | return NULL; | |
3448 | if (_argo0) { | |
3449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3452 | return NULL; | |
3453 | } | |
3454 | } | |
3455 | if (_argo1) { | |
3456 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3459 | return NULL; | |
3460 | } | |
3461 | } | |
3462 | { | |
474c48f9 | 3463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3464 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3465 | |
474c48f9 | 3466 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3467 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3468 | } Py_INCREF(Py_None); |
3469 | _resultobj = Py_None; | |
3470 | return _resultobj; | |
3471 | } | |
3472 | ||
5d413391 RD |
3473 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3474 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3475 | PyObject * _resultobj; | |
3476 | bool _result; | |
3477 | wxWindow * _arg0; | |
3478 | wxEvtHandler * _arg1; | |
3479 | PyObject * _argo0 = 0; | |
3480 | PyObject * _argo1 = 0; | |
3481 | char *_kwnames[] = { "self","handler", NULL }; | |
3482 | ||
3483 | self = self; | |
3484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3485 | return NULL; | |
3486 | if (_argo0) { | |
3487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3490 | return NULL; | |
3491 | } | |
3492 | } | |
3493 | if (_argo1) { | |
3494 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3495 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3497 | return NULL; | |
3498 | } | |
3499 | } | |
3500 | { | |
3501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3502 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
5d413391 RD |
3503 | |
3504 | wxPyEndAllowThreads(__tstate); | |
3505 | if (PyErr_Occurred()) return NULL; | |
3506 | } _resultobj = Py_BuildValue("i",_result); | |
3507 | return _resultobj; | |
3508 | } | |
3509 | ||
8bf5d46e | 3510 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3511 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3512 | PyObject * _resultobj; |
3513 | bool _result; | |
3514 | wxWindow * _arg0; | |
3515 | wxMenu * _arg1; | |
3516 | int _arg2; | |
3517 | int _arg3; | |
1d99702e RD |
3518 | PyObject * _argo0 = 0; |
3519 | PyObject * _argo1 = 0; | |
efc5f224 | 3520 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3521 | |
3522 | self = self; | |
efc5f224 | 3523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3524 | return NULL; |
1d99702e RD |
3525 | if (_argo0) { |
3526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3529 | return NULL; | |
3530 | } | |
3531 | } | |
1d99702e RD |
3532 | if (_argo1) { |
3533 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3534 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3536 | return NULL; | |
3537 | } | |
3538 | } | |
3539 | { | |
474c48f9 | 3540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3541 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3542 | |
474c48f9 | 3543 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3544 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3545 | } _resultobj = Py_BuildValue("i",_result); |
3546 | return _resultobj; | |
3547 | } | |
3548 | ||
3549 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3550 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3551 | PyObject * _resultobj; |
3552 | bool _result; | |
3553 | wxWindow * _arg0; | |
3554 | wxMenu * _arg1; | |
3555 | wxPoint * _arg2; | |
1d99702e RD |
3556 | PyObject * _argo0 = 0; |
3557 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3558 | wxPoint temp; |
3559 | PyObject * _obj2 = 0; | |
efc5f224 | 3560 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3561 | |
3562 | self = self; | |
2f90df85 | 3563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3564 | return NULL; |
1d99702e RD |
3565 | if (_argo0) { |
3566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3569 | return NULL; | |
3570 | } | |
3571 | } | |
1d99702e RD |
3572 | if (_argo1) { |
3573 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3574 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3576 | return NULL; | |
3577 | } | |
3578 | } | |
2f90df85 RD |
3579 | { |
3580 | _arg2 = &temp; | |
3581 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3582 | return NULL; |
2f90df85 | 3583 | } |
cf694132 | 3584 | { |
474c48f9 | 3585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3586 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3587 | |
474c48f9 | 3588 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3589 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3590 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3591 | return _resultobj; |
3592 | } | |
3593 | ||
3594 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3595 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3596 | PyObject * _resultobj; |
3597 | wxWindow * _arg0; | |
1d99702e | 3598 | PyObject * _argo0 = 0; |
efc5f224 | 3599 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3600 | |
3601 | self = self; | |
efc5f224 | 3602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3603 | return NULL; |
1d99702e RD |
3604 | if (_argo0) { |
3605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3608 | return NULL; | |
3609 | } | |
3610 | } | |
cf694132 | 3611 | { |
474c48f9 | 3612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3613 | wxWindow_Raise(_arg0); |
cf694132 | 3614 | |
474c48f9 | 3615 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3616 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3617 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3618 | _resultobj = Py_None; |
3619 | return _resultobj; | |
3620 | } | |
3621 | ||
3622 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3623 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3624 | PyObject * _resultobj; |
3625 | wxWindow * _arg0; | |
1d99702e RD |
3626 | bool _arg1 = (bool ) TRUE; |
3627 | wxRect * _arg2 = (wxRect *) NULL; | |
3628 | PyObject * _argo0 = 0; | |
3629 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3630 | wxRect temp; |
3631 | PyObject * _obj2 = 0; | |
efc5f224 | 3632 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3633 | |
3634 | self = self; | |
2f90df85 | 3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3636 | return NULL; |
1d99702e RD |
3637 | if (_argo0) { |
3638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3641 | return NULL; | |
3642 | } | |
3643 | } | |
3644 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3645 | if (_obj2) |
3646 | { | |
3647 | _arg2 = &temp; | |
3648 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3649 | return NULL; |
2f90df85 | 3650 | } |
cf694132 | 3651 | { |
474c48f9 | 3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3653 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3654 | |
474c48f9 | 3655 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3656 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3657 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3658 | _resultobj = Py_None; |
3659 | return _resultobj; | |
3660 | } | |
3661 | ||
aa2a5b86 RD |
3662 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3663 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3664 | PyObject * _resultobj; | |
3665 | wxWindow * _arg0; | |
3666 | wxRect * _arg1; | |
3667 | PyObject * _argo0 = 0; | |
3668 | wxRect temp; | |
3669 | PyObject * _obj1 = 0; | |
3670 | char *_kwnames[] = { "self","rect", NULL }; | |
3671 | ||
3672 | self = self; | |
3673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3674 | return NULL; | |
3675 | if (_argo0) { | |
3676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3679 | return NULL; | |
3680 | } | |
3681 | } | |
3682 | { | |
3683 | _arg1 = &temp; | |
3684 | if (! wxRect_helper(_obj1, &_arg1)) | |
3685 | return NULL; | |
3686 | } | |
3687 | { | |
474c48f9 | 3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3689 | wxWindow_RefreshRect(_arg0,*_arg1); |
aa2a5b86 | 3690 | |
474c48f9 | 3691 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3692 | if (PyErr_Occurred()) return NULL; |
3693 | } Py_INCREF(Py_None); | |
3694 | _resultobj = Py_None; | |
3695 | return _resultobj; | |
3696 | } | |
3697 | ||
298ae144 RD |
3698 | #define wxWindow_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0)) |
3699 | static PyObject *_wrap_wxWindow_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3700 | PyObject * _resultobj; | |
3701 | wxWindow * _arg0; | |
3702 | wxWindow * _arg1; | |
3703 | PyObject * _argo0 = 0; | |
3704 | PyObject * _argo1 = 0; | |
3705 | char *_kwnames[] = { "self","child", NULL }; | |
3706 | ||
3707 | self = self; | |
3708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_AddChild",_kwnames,&_argo0,&_argo1)) | |
3709 | return NULL; | |
3710 | if (_argo0) { | |
3711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3714 | return NULL; | |
3715 | } | |
3716 | } | |
3717 | if (_argo1) { | |
3718 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3719 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3721 | return NULL; | |
3722 | } | |
3723 | } | |
3724 | { | |
3725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3726 | wxWindow_AddChild(_arg0,_arg1); | |
3727 | ||
3728 | wxPyEndAllowThreads(__tstate); | |
3729 | if (PyErr_Occurred()) return NULL; | |
3730 | } Py_INCREF(Py_None); | |
3731 | _resultobj = Py_None; | |
3732 | return _resultobj; | |
3733 | } | |
3734 | ||
b7e72427 RD |
3735 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3736 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3737 | PyObject * _resultobj; | |
3738 | wxWindow * _arg0; | |
3739 | wxWindow * _arg1; | |
3740 | PyObject * _argo0 = 0; | |
3741 | PyObject * _argo1 = 0; | |
3742 | char *_kwnames[] = { "self","child", NULL }; | |
3743 | ||
3744 | self = self; | |
3745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3746 | return NULL; | |
3747 | if (_argo0) { | |
3748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3751 | return NULL; | |
3752 | } | |
3753 | } | |
3754 | if (_argo1) { | |
3755 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3756 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3758 | return NULL; | |
3759 | } | |
3760 | } | |
3761 | { | |
474c48f9 | 3762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3763 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3764 | |
474c48f9 | 3765 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3766 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3767 | } Py_INCREF(Py_None); |
3768 | _resultobj = Py_None; | |
3769 | return _resultobj; | |
3770 | } | |
3771 | ||
bb0054cd | 3772 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3773 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3774 | PyObject * _resultobj; |
3775 | bool _result; | |
3776 | wxWindow * _arg0; | |
3777 | wxWindow * _arg1; | |
1d99702e RD |
3778 | PyObject * _argo0 = 0; |
3779 | PyObject * _argo1 = 0; | |
efc5f224 | 3780 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3781 | |
3782 | self = self; | |
efc5f224 | 3783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3784 | return NULL; |
1d99702e RD |
3785 | if (_argo0) { |
3786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3789 | return NULL; | |
3790 | } | |
3791 | } | |
1d99702e RD |
3792 | if (_argo1) { |
3793 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3794 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3796 | return NULL; | |
3797 | } | |
3798 | } | |
3799 | { | |
474c48f9 | 3800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3801 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3802 | |
474c48f9 | 3803 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3804 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3805 | } _resultobj = Py_BuildValue("i",_result); |
3806 | return _resultobj; | |
3807 | } | |
3808 | ||
af309447 | 3809 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3810 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3811 | PyObject * _resultobj; |
3812 | wxWindow * _arg0; | |
3813 | int * _arg1; | |
3814 | int * _arg2; | |
1d99702e | 3815 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3816 | int temp; |
3817 | PyObject * _obj1 = 0; | |
3818 | int temp0; | |
3819 | PyObject * _obj2 = 0; | |
efc5f224 | 3820 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3821 | |
3822 | self = self; | |
efc5f224 | 3823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3824 | return NULL; |
1d99702e RD |
3825 | if (_argo0) { |
3826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3829 | return NULL; |
3830 | } | |
3831 | } | |
3832 | { | |
3833 | temp = (int) PyInt_AsLong(_obj1); | |
3834 | _arg1 = &temp; | |
3835 | } | |
3836 | { | |
3837 | temp0 = (int) PyInt_AsLong(_obj2); | |
3838 | _arg2 = &temp0; | |
3839 | } | |
cf694132 | 3840 | { |
474c48f9 | 3841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3842 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3843 | |
474c48f9 | 3844 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3845 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3846 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3847 | _resultobj = Py_None; |
3848 | { | |
3849 | PyObject *o; | |
3850 | o = PyInt_FromLong((long) (*_arg1)); | |
3851 | _resultobj = t_output_helper(_resultobj, o); | |
3852 | } | |
3853 | { | |
3854 | PyObject *o; | |
3855 | o = PyInt_FromLong((long) (*_arg2)); | |
3856 | _resultobj = t_output_helper(_resultobj, o); | |
3857 | } | |
3858 | return _resultobj; | |
3859 | } | |
3860 | ||
af309447 | 3861 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3862 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3863 | PyObject * _resultobj; |
3864 | wxPoint * _result; | |
3865 | wxWindow * _arg0; | |
3866 | wxPoint * _arg1; | |
1d99702e | 3867 | PyObject * _argo0 = 0; |
2f90df85 RD |
3868 | wxPoint temp; |
3869 | PyObject * _obj1 = 0; | |
efc5f224 | 3870 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3871 | char _ptemp[128]; |
3872 | ||
3873 | self = self; | |
2f90df85 | 3874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3875 | return NULL; |
1d99702e RD |
3876 | if (_argo0) { |
3877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3880 | return NULL; | |
3881 | } | |
3882 | } | |
2f90df85 RD |
3883 | { |
3884 | _arg1 = &temp; | |
3885 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3886 | return NULL; |
2f90df85 | 3887 | } |
cf694132 | 3888 | { |
474c48f9 | 3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3890 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3891 | |
474c48f9 | 3892 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3893 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3894 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3895 | _resultobj = Py_BuildValue("s",_ptemp); |
3896 | return _resultobj; | |
3897 | } | |
3898 | ||
8ab979d7 | 3899 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3900 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3901 | PyObject * _resultobj; |
3902 | wxWindow * _arg0; | |
3903 | int _arg1; | |
3904 | int _arg2; | |
1d99702e RD |
3905 | wxRect * _arg3 = (wxRect *) NULL; |
3906 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3907 | wxRect temp; |
3908 | PyObject * _obj3 = 0; | |
efc5f224 | 3909 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3910 | |
3911 | self = self; | |
2f90df85 | 3912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3913 | return NULL; |
1d99702e RD |
3914 | if (_argo0) { |
3915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3918 | return NULL; | |
3919 | } | |
3920 | } | |
2f90df85 RD |
3921 | if (_obj3) |
3922 | { | |
3923 | _arg3 = &temp; | |
3924 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3925 | return NULL; |
2f90df85 | 3926 | } |
cf694132 | 3927 | { |
474c48f9 | 3928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3929 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3930 | |
474c48f9 | 3931 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3932 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3933 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3934 | _resultobj = Py_None; |
3935 | return _resultobj; | |
3936 | } | |
3937 | ||
3938 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3939 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3940 | PyObject * _resultobj; |
3941 | wxWindow * _arg0; | |
3942 | bool _arg1; | |
1d99702e | 3943 | PyObject * _argo0 = 0; |
8ab979d7 | 3944 | int tempbool1; |
efc5f224 | 3945 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3946 | |
3947 | self = self; | |
efc5f224 | 3948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3949 | return NULL; |
1d99702e RD |
3950 | if (_argo0) { |
3951 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3952 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3953 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3954 | return NULL; | |
3955 | } | |
3956 | } | |
3957 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3958 | { |
474c48f9 | 3959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3960 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3961 | |
474c48f9 | 3962 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3963 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3964 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3965 | _resultobj = Py_None; |
3966 | return _resultobj; | |
3967 | } | |
3968 | ||
9d8bd15f RD |
3969 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3970 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3971 | PyObject * _resultobj; | |
3972 | bool _result; | |
3973 | wxWindow * _arg0; | |
3974 | PyObject * _argo0 = 0; | |
3975 | char *_kwnames[] = { "self", NULL }; | |
3976 | ||
3977 | self = self; | |
3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3979 | return NULL; | |
3980 | if (_argo0) { | |
3981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3984 | return NULL; | |
3985 | } | |
3986 | } | |
3987 | { | |
474c48f9 | 3988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3989 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3990 | |
474c48f9 | 3991 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3992 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3993 | } _resultobj = Py_BuildValue("i",_result); |
3994 | return _resultobj; | |
3995 | } | |
3996 | ||
8ab979d7 | 3997 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3998 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3999 | PyObject * _resultobj; |
4000 | wxWindow * _arg0; | |
4001 | wxColour * _arg1; | |
1d99702e | 4002 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4003 | wxColour temp; |
4004 | PyObject * _obj1 = 0; | |
efc5f224 | 4005 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4006 | |
4007 | self = self; | |
f6bcfd97 | 4008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4009 | return NULL; |
1d99702e RD |
4010 | if (_argo0) { |
4011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
4014 | return NULL; | |
4015 | } | |
4016 | } | |
f6bcfd97 BP |
4017 | { |
4018 | _arg1 = &temp; | |
4019 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4020 | return NULL; |
f6bcfd97 | 4021 | } |
cf694132 | 4022 | { |
474c48f9 | 4023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4024 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 4025 | |
474c48f9 | 4026 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4027 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4028 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4029 | _resultobj = Py_None; |
4030 | return _resultobj; | |
4031 | } | |
4032 | ||
4033 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 4034 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4035 | PyObject * _resultobj; |
4036 | wxWindow * _arg0; | |
4037 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
4038 | PyObject * _argo0 = 0; |
4039 | PyObject * _argo1 = 0; | |
efc5f224 | 4040 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
4041 | |
4042 | self = self; | |
efc5f224 | 4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4044 | return NULL; |
1d99702e RD |
4045 | if (_argo0) { |
4046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
4049 | return NULL; | |
4050 | } | |
4051 | } | |
1d99702e RD |
4052 | if (_argo1) { |
4053 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4054 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
4055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
4056 | return NULL; | |
4057 | } | |
4058 | } | |
cf694132 | 4059 | { |
474c48f9 | 4060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4061 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 4062 | |
474c48f9 | 4063 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4064 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4065 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4066 | _resultobj = Py_None; |
4067 | return _resultobj; | |
4068 | } | |
4069 | ||
2f90df85 RD |
4070 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
4071 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4072 | PyObject * _resultobj; | |
4073 | wxWindow * _arg0; | |
4074 | wxLayoutConstraints * _arg1; | |
4075 | PyObject * _argo0 = 0; | |
4076 | PyObject * _argo1 = 0; | |
4077 | char *_kwnames[] = { "self","constraints", NULL }; | |
4078 | ||
4079 | self = self; | |
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
4081 | return NULL; | |
4082 | if (_argo0) { | |
4083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
4086 | return NULL; | |
4087 | } | |
4088 | } | |
4089 | if (_argo1) { | |
4090 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4091 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
4093 | return NULL; | |
4094 | } | |
4095 | } | |
4096 | { | |
474c48f9 | 4097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4098 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4099 | |
474c48f9 | 4100 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4101 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4102 | } Py_INCREF(Py_None); |
4103 | _resultobj = Py_None; | |
4104 | return _resultobj; | |
4105 | } | |
4106 | ||
8ab979d7 | 4107 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4108 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4109 | PyObject * _resultobj; |
4110 | wxWindow * _arg0; | |
1d99702e | 4111 | PyObject * _argo0 = 0; |
efc5f224 | 4112 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4113 | |
4114 | self = self; | |
efc5f224 | 4115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4116 | return NULL; |
1d99702e RD |
4117 | if (_argo0) { |
4118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4121 | return NULL; | |
4122 | } | |
4123 | } | |
cf694132 | 4124 | { |
474c48f9 | 4125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4126 | wxWindow_SetFocus(_arg0); |
cf694132 | 4127 | |
474c48f9 | 4128 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4129 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4130 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4131 | _resultobj = Py_None; |
4132 | return _resultobj; | |
4133 | } | |
4134 | ||
8381e4cd RD |
4135 | #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd()) |
4136 | static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4137 | PyObject * _resultobj; | |
4138 | wxWindow * _arg0; | |
4139 | PyObject * _argo0 = 0; | |
4140 | char *_kwnames[] = { "self", NULL }; | |
4141 | ||
4142 | self = self; | |
4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0)) | |
4144 | return NULL; | |
4145 | if (_argo0) { | |
4146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p."); | |
4149 | return NULL; | |
4150 | } | |
4151 | } | |
4152 | { | |
4153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4154 | wxWindow_SetFocusFromKbd(_arg0); | |
4155 | ||
4156 | wxPyEndAllowThreads(__tstate); | |
4157 | if (PyErr_Occurred()) return NULL; | |
4158 | } Py_INCREF(Py_None); | |
4159 | _resultobj = Py_None; | |
4160 | return _resultobj; | |
4161 | } | |
4162 | ||
2f90df85 RD |
4163 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4164 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4165 | PyObject * _resultobj; | |
4166 | bool _result; | |
4167 | wxWindow * _arg0; | |
4168 | PyObject * _argo0 = 0; | |
4169 | char *_kwnames[] = { "self", NULL }; | |
4170 | ||
4171 | self = self; | |
4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4173 | return NULL; | |
4174 | if (_argo0) { | |
4175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4178 | return NULL; | |
4179 | } | |
4180 | } | |
4181 | { | |
474c48f9 | 4182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4183 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4184 | |
474c48f9 | 4185 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4186 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4187 | } _resultobj = Py_BuildValue("i",_result); |
4188 | return _resultobj; | |
4189 | } | |
4190 | ||
8ab979d7 | 4191 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4192 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4193 | PyObject * _resultobj; |
4194 | wxWindow * _arg0; | |
4195 | wxFont * _arg1; | |
1d99702e RD |
4196 | PyObject * _argo0 = 0; |
4197 | PyObject * _argo1 = 0; | |
efc5f224 | 4198 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4199 | |
4200 | self = self; | |
efc5f224 | 4201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4202 | return NULL; |
1d99702e RD |
4203 | if (_argo0) { |
4204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4207 | return NULL; | |
4208 | } | |
4209 | } | |
1d99702e RD |
4210 | if (_argo1) { |
4211 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4212 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4214 | return NULL; | |
4215 | } | |
4216 | } | |
cf694132 | 4217 | { |
474c48f9 | 4218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4219 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4220 | |
474c48f9 | 4221 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4222 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4223 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4224 | _resultobj = Py_None; |
4225 | return _resultobj; | |
4226 | } | |
4227 | ||
4228 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4229 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4230 | PyObject * _resultobj; |
4231 | wxWindow * _arg0; | |
4232 | wxColour * _arg1; | |
1d99702e | 4233 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4234 | wxColour temp; |
4235 | PyObject * _obj1 = 0; | |
efc5f224 | 4236 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4237 | |
4238 | self = self; | |
f6bcfd97 | 4239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4240 | return NULL; |
1d99702e RD |
4241 | if (_argo0) { |
4242 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4243 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4244 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4245 | return NULL; | |
4246 | } | |
4247 | } | |
f6bcfd97 BP |
4248 | { |
4249 | _arg1 = &temp; | |
4250 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4251 | return NULL; |
f6bcfd97 | 4252 | } |
cf694132 | 4253 | { |
474c48f9 | 4254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4255 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4256 | |
474c48f9 | 4257 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4258 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4259 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4260 | _resultobj = Py_None; |
4261 | return _resultobj; | |
4262 | } | |
4263 | ||
4264 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4265 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4266 | PyObject * _resultobj; |
4267 | wxWindow * _arg0; | |
4268 | int _arg1; | |
1d99702e | 4269 | PyObject * _argo0 = 0; |
efc5f224 | 4270 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4271 | |
4272 | self = self; | |
efc5f224 | 4273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4274 | return NULL; |
1d99702e RD |
4275 | if (_argo0) { |
4276 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4277 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4278 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4279 | return NULL; | |
4280 | } | |
4281 | } | |
cf694132 | 4282 | { |
474c48f9 | 4283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4284 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4285 | |
474c48f9 | 4286 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4287 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4288 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4289 | _resultobj = Py_None; |
4290 | return _resultobj; | |
4291 | } | |
4292 | ||
4293 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4294 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4295 | PyObject * _resultobj; |
4296 | wxWindow * _arg0; | |
4297 | wxString * _arg1; | |
1d99702e | 4298 | PyObject * _argo0 = 0; |
8ab979d7 | 4299 | PyObject * _obj1 = 0; |
efc5f224 | 4300 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4301 | |
4302 | self = self; | |
efc5f224 | 4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4304 | return NULL; |
1d99702e RD |
4305 | if (_argo0) { |
4306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4309 | return NULL; | |
4310 | } | |
4311 | } | |
4312 | { | |
c8bc7bb8 RD |
4313 | _arg1 = wxString_in_helper(_obj1); |
4314 | if (_arg1 == NULL) | |
2cd2fac8 | 4315 | return NULL; |
8ab979d7 | 4316 | } |
cf694132 | 4317 | { |
474c48f9 | 4318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4319 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4320 | |
474c48f9 | 4321 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4322 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4323 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4324 | _resultobj = Py_None; |
4325 | { | |
4326 | if (_obj1) | |
4327 | delete _arg1; | |
4328 | } | |
4329 | return _resultobj; | |
4330 | } | |
4331 | ||
8ab979d7 | 4332 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4333 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4334 | PyObject * _resultobj; |
4335 | wxWindow * _arg0; | |
4336 | int _arg1; | |
4337 | int _arg2; | |
4338 | int _arg3; | |
4339 | int _arg4; | |
eb715945 | 4340 | int _arg5 = (int ) TRUE; |
1d99702e | 4341 | PyObject * _argo0 = 0; |
efc5f224 | 4342 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4343 | |
4344 | self = self; | |
eb715945 | 4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4346 | return NULL; |
1d99702e RD |
4347 | if (_argo0) { |
4348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4351 | return NULL; | |
4352 | } | |
4353 | } | |
cf694132 | 4354 | { |
474c48f9 | 4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4356 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4357 | |
474c48f9 | 4358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4359 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4360 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4361 | _resultobj = Py_None; |
4362 | return _resultobj; | |
4363 | } | |
4364 | ||
4365 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4366 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4367 | PyObject * _resultobj; |
4368 | wxWindow * _arg0; | |
4369 | int _arg1; | |
4370 | int _arg2; | |
1d99702e RD |
4371 | bool _arg3 = (bool ) TRUE; |
4372 | PyObject * _argo0 = 0; | |
4373 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4374 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4375 | |
4376 | self = self; | |
efc5f224 | 4377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4378 | return NULL; |
1d99702e RD |
4379 | if (_argo0) { |
4380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4383 | return NULL; | |
4384 | } | |
4385 | } | |
4386 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4387 | { |
474c48f9 | 4388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4389 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4390 | |
474c48f9 | 4391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4392 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4393 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4394 | _resultobj = Py_None; |
4395 | return _resultobj; | |
4396 | } | |
4397 | ||
4398 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4399 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4400 | PyObject * _resultobj; |
4401 | wxWindow * _arg0; | |
4402 | int _arg1; | |
4403 | int _arg2; | |
4404 | int _arg3; | |
4405 | int _arg4; | |
1d99702e RD |
4406 | int _arg5 = (int ) wxSIZE_AUTO; |
4407 | PyObject * _argo0 = 0; | |
efc5f224 | 4408 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4409 | |
4410 | self = self; | |
efc5f224 | 4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4412 | return NULL; |
1d99702e RD |
4413 | if (_argo0) { |
4414 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4415 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4416 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4417 | return NULL; | |
4418 | } | |
4419 | } | |
cf694132 | 4420 | { |
474c48f9 | 4421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4422 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4423 | |
474c48f9 | 4424 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4426 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4427 | _resultobj = Py_None; |
4428 | return _resultobj; | |
4429 | } | |
4430 | ||
4431 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4432 | self->SetSize(size); |
8ab979d7 | 4433 | } |
efc5f224 | 4434 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4435 | PyObject * _resultobj; |
4436 | wxWindow * _arg0; | |
4437 | wxSize * _arg1; | |
1d99702e | 4438 | PyObject * _argo0 = 0; |
2f90df85 RD |
4439 | wxSize temp; |
4440 | PyObject * _obj1 = 0; | |
efc5f224 | 4441 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4442 | |
4443 | self = self; | |
2f90df85 | 4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4445 | return NULL; |
1d99702e RD |
4446 | if (_argo0) { |
4447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4450 | return NULL; | |
4451 | } | |
4452 | } | |
2f90df85 RD |
4453 | { |
4454 | _arg1 = &temp; | |
4455 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4456 | return NULL; |
2f90df85 | 4457 | } |
cf694132 | 4458 | { |
474c48f9 | 4459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4460 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4461 | |
474c48f9 | 4462 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4463 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4464 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4465 | _resultobj = Py_None; |
4466 | return _resultobj; | |
4467 | } | |
4468 | ||
8cb49012 RD |
4469 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4470 | self->Move(pos, flags); | |
8ab979d7 | 4471 | } |
efc5f224 | 4472 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4473 | PyObject * _resultobj; |
4474 | wxWindow * _arg0; | |
4475 | wxPoint * _arg1; | |
8cb49012 | 4476 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4477 | PyObject * _argo0 = 0; |
2f90df85 RD |
4478 | wxPoint temp; |
4479 | PyObject * _obj1 = 0; | |
8cb49012 | 4480 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4481 | |
4482 | self = self; | |
8cb49012 | 4483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4484 | return NULL; |
1d99702e RD |
4485 | if (_argo0) { |
4486 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4487 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4488 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4489 | return NULL; | |
4490 | } | |
4491 | } | |
2f90df85 RD |
4492 | { |
4493 | _arg1 = &temp; | |
4494 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4495 | return NULL; |
2f90df85 | 4496 | } |
cf694132 | 4497 | { |
474c48f9 | 4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4499 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4500 | |
474c48f9 | 4501 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4502 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4503 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4504 | _resultobj = Py_None; |
4505 | return _resultobj; | |
4506 | } | |
4507 | ||
2cd2fac8 RD |
4508 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4509 | self->SetSize(rect, sizeFlags); | |
4510 | } | |
4511 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4512 | PyObject * _resultobj; | |
4513 | wxWindow * _arg0; | |
4514 | wxRect * _arg1; | |
4515 | int _arg2 = (int ) wxSIZE_AUTO; | |
4516 | PyObject * _argo0 = 0; | |
4517 | wxRect temp; | |
4518 | PyObject * _obj1 = 0; | |
4519 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4520 | ||
4521 | self = self; | |
4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4523 | return NULL; | |
4524 | if (_argo0) { | |
4525 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4526 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4528 | return NULL; | |
4529 | } | |
4530 | } | |
4531 | { | |
4532 | _arg1 = &temp; | |
4533 | if (! wxRect_helper(_obj1, &_arg1)) | |
4534 | return NULL; | |
4535 | } | |
4536 | { | |
474c48f9 | 4537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4538 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
2cd2fac8 | 4539 | |
474c48f9 | 4540 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4541 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4542 | } Py_INCREF(Py_None); |
4543 | _resultobj = Py_None; | |
4544 | return _resultobj; | |
4545 | } | |
4546 | ||
8ab979d7 | 4547 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4548 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4549 | PyObject * _resultobj; |
4550 | wxWindow * _arg0; | |
8381e4cd RD |
4551 | int _arg1; |
4552 | int _arg2; | |
1d99702e RD |
4553 | int _arg3 = (int ) -1; |
4554 | int _arg4 = (int ) -1; | |
4555 | int _arg5 = (int ) -1; | |
4556 | int _arg6 = (int ) -1; | |
4557 | PyObject * _argo0 = 0; | |
efc5f224 | 4558 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4559 | |
4560 | self = self; | |
8381e4cd | 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4562 | return NULL; |
1d99702e RD |
4563 | if (_argo0) { |
4564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4567 | return NULL; | |
4568 | } | |
4569 | } | |
cf694132 | 4570 | { |
474c48f9 | 4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4572 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4573 | |
474c48f9 | 4574 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4575 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4576 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4577 | _resultobj = Py_None; |
4578 | return _resultobj; | |
4579 | } | |
4580 | ||
8381e4cd RD |
4581 | #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4582 | static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4583 | PyObject * _resultobj; | |
4584 | wxWindow * _arg0; | |
4585 | int _arg1; | |
4586 | int _arg2; | |
4587 | int _arg3 = (int ) -1; | |
4588 | int _arg4 = (int ) -1; | |
4589 | PyObject * _argo0 = 0; | |
4590 | char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL }; | |
4591 | ||
4592 | self = self; | |
4593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
4594 | return NULL; | |
4595 | if (_argo0) { | |
4596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p."); | |
4599 | return NULL; | |
4600 | } | |
4601 | } | |
4602 | { | |
4603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4604 | wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4605 | ||
4606 | wxPyEndAllowThreads(__tstate); | |
4607 | if (PyErr_Occurred()) return NULL; | |
4608 | } Py_INCREF(Py_None); | |
4609 | _resultobj = Py_None; | |
4610 | return _resultobj; | |
4611 | } | |
4612 | ||
4613 | #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0)) | |
4614 | static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4615 | PyObject * _resultobj; | |
4616 | wxWindow * _arg0; | |
4617 | wxSize * _arg1; | |
4618 | PyObject * _argo0 = 0; | |
4619 | wxSize temp; | |
4620 | PyObject * _obj1 = 0; | |
4621 | char *_kwnames[] = { "self","size", NULL }; | |
4622 | ||
4623 | self = self; | |
4624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1)) | |
4625 | return NULL; | |
4626 | if (_argo0) { | |
4627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p."); | |
4630 | return NULL; | |
4631 | } | |
4632 | } | |
4633 | { | |
4634 | _arg1 = &temp; | |
4635 | if (! wxSize_helper(_obj1, &_arg1)) | |
4636 | return NULL; | |
4637 | } | |
4638 | { | |
4639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4640 | wxWindow_SetVirtualSize(_arg0,*_arg1); | |
4641 | ||
4642 | wxPyEndAllowThreads(__tstate); | |
4643 | if (PyErr_Occurred()) return NULL; | |
4644 | } Py_INCREF(Py_None); | |
4645 | _resultobj = Py_None; | |
4646 | return _resultobj; | |
4647 | } | |
4648 | ||
4649 | #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1)) | |
4650 | static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4651 | PyObject * _resultobj; | |
4652 | wxWindow * _arg0; | |
4653 | int _arg1; | |
4654 | int _arg2; | |
4655 | PyObject * _argo0 = 0; | |
4656 | char *_kwnames[] = { "self","x","y", NULL }; | |
4657 | ||
4658 | self = self; | |
4659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4660 | return NULL; | |
4661 | if (_argo0) { | |
4662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p."); | |
4665 | return NULL; | |
4666 | } | |
4667 | } | |
4668 | { | |
4669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4670 | wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2); | |
4671 | ||
4672 | wxPyEndAllowThreads(__tstate); | |
4673 | if (PyErr_Occurred()) return NULL; | |
4674 | } Py_INCREF(Py_None); | |
4675 | _resultobj = Py_None; | |
4676 | return _resultobj; | |
4677 | } | |
4678 | ||
4679 | #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize()) | |
4680 | static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4681 | PyObject * _resultobj; | |
4682 | wxSize * _result; | |
4683 | wxWindow * _arg0; | |
4684 | PyObject * _argo0 = 0; | |
4685 | char *_kwnames[] = { "self", NULL }; | |
4686 | char _ptemp[128]; | |
4687 | ||
4688 | self = self; | |
4689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0)) | |
4690 | return NULL; | |
4691 | if (_argo0) { | |
4692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p."); | |
4695 | return NULL; | |
4696 | } | |
4697 | } | |
4698 | { | |
4699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4700 | _result = new wxSize (wxWindow_GetVirtualSize(_arg0)); | |
4701 | ||
4702 | wxPyEndAllowThreads(__tstate); | |
4703 | if (PyErr_Occurred()) return NULL; | |
4704 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4705 | _resultobj = Py_BuildValue("s",_ptemp); | |
4706 | return _resultobj; | |
4707 | } | |
4708 | ||
4709 | #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
4710 | static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4711 | PyObject * _resultobj; | |
4712 | wxWindow * _arg0; | |
4713 | int * _arg1; | |
4714 | int temp; | |
4715 | int * _arg2; | |
4716 | int temp0; | |
4717 | PyObject * _argo0 = 0; | |
4718 | char *_kwnames[] = { "self", NULL }; | |
4719 | ||
4720 | self = self; | |
4721 | { | |
4722 | _arg1 = &temp; | |
4723 | } | |
4724 | { | |
4725 | _arg2 = &temp0; | |
4726 | } | |
4727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0)) | |
4728 | return NULL; | |
4729 | if (_argo0) { | |
4730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p."); | |
4733 | return NULL; | |
4734 | } | |
4735 | } | |
4736 | { | |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4738 | wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
4741 | if (PyErr_Occurred()) return NULL; | |
4742 | } Py_INCREF(Py_None); | |
4743 | _resultobj = Py_None; | |
4744 | { | |
4745 | PyObject *o; | |
4746 | o = PyInt_FromLong((long) (*_arg1)); | |
4747 | _resultobj = t_output_helper(_resultobj, o); | |
4748 | } | |
4749 | { | |
4750 | PyObject *o; | |
4751 | o = PyInt_FromLong((long) (*_arg2)); | |
4752 | _resultobj = t_output_helper(_resultobj, o); | |
4753 | } | |
4754 | return _resultobj; | |
4755 | } | |
4756 | ||
af309447 | 4757 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4758 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4759 | PyObject * _resultobj; |
4760 | wxWindow * _arg0; | |
4761 | int _arg1; | |
4762 | int _arg2; | |
1d99702e | 4763 | PyObject * _argo0 = 0; |
efc5f224 | 4764 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4765 | |
4766 | self = self; | |
efc5f224 | 4767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4768 | return NULL; |
1d99702e RD |
4769 | if (_argo0) { |
4770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4773 | return NULL; | |
4774 | } | |
4775 | } | |
cf694132 | 4776 | { |
474c48f9 | 4777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4778 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4779 | |
474c48f9 | 4780 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4781 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4782 | } Py_INCREF(Py_None); |
af309447 RD |
4783 | _resultobj = Py_None; |
4784 | return _resultobj; | |
4785 | } | |
4786 | ||
4787 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4788 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4789 | PyObject * _resultobj; |
4790 | wxWindow * _arg0; | |
4791 | wxSize * _arg1; | |
1d99702e | 4792 | PyObject * _argo0 = 0; |
2f90df85 RD |
4793 | wxSize temp; |
4794 | PyObject * _obj1 = 0; | |
efc5f224 | 4795 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4796 | |
4797 | self = self; | |
2f90df85 | 4798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4799 | return NULL; |
1d99702e RD |
4800 | if (_argo0) { |
4801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4804 | return NULL; | |
4805 | } | |
4806 | } | |
2f90df85 RD |
4807 | { |
4808 | _arg1 = &temp; | |
4809 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4810 | return NULL; |
2f90df85 | 4811 | } |
cf694132 | 4812 | { |
474c48f9 | 4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4814 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4815 | |
474c48f9 | 4816 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4817 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4818 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4819 | _resultobj = Py_None; |
4820 | return _resultobj; | |
4821 | } | |
4822 | ||
4823 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4824 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4825 | PyObject * _resultobj; |
298ae144 | 4826 | bool _result; |
8ab979d7 RD |
4827 | wxWindow * _arg0; |
4828 | wxCursor * _arg1; | |
1d99702e RD |
4829 | PyObject * _argo0 = 0; |
4830 | PyObject * _argo1 = 0; | |
efc5f224 | 4831 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4832 | |
4833 | self = self; | |
efc5f224 | 4834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4835 | return NULL; |
1d99702e RD |
4836 | if (_argo0) { |
4837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4840 | return NULL; | |
4841 | } | |
4842 | } | |
1d99702e RD |
4843 | if (_argo1) { |
4844 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4845 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4847 | return NULL; | |
4848 | } | |
4849 | } | |
cf694132 | 4850 | { |
474c48f9 | 4851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
298ae144 | 4852 | _result = (bool )wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4853 | |
474c48f9 | 4854 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4855 | if (PyErr_Occurred()) return NULL; |
298ae144 RD |
4856 | } _resultobj = Py_BuildValue("i",_result); |
4857 | return _resultobj; | |
4858 | } | |
4859 | ||
4860 | #define wxWindow_GetCursor(_swigobj) (_swigobj->GetCursor()) | |
4861 | static PyObject *_wrap_wxWindow_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4862 | PyObject * _resultobj; | |
4863 | wxCursor * _result; | |
4864 | wxWindow * _arg0; | |
4865 | PyObject * _argo0 = 0; | |
4866 | char *_kwnames[] = { "self", NULL }; | |
4867 | char _ptemp[128]; | |
4868 | ||
4869 | self = self; | |
4870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCursor",_kwnames,&_argo0)) | |
4871 | return NULL; | |
4872 | if (_argo0) { | |
4873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCursor. Expected _wxWindow_p."); | |
4876 | return NULL; | |
4877 | } | |
4878 | } | |
4879 | { | |
4880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4881 | wxCursor & _result_ref = wxWindow_GetCursor(_arg0); | |
4882 | _result = (wxCursor *) &_result_ref; | |
4883 | ||
4884 | wxPyEndAllowThreads(__tstate); | |
4885 | if (PyErr_Occurred()) return NULL; | |
4886 | } if (_result) { | |
4887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
4888 | _resultobj = Py_BuildValue("s",_ptemp); | |
4889 | } else { | |
4890 | Py_INCREF(Py_None); | |
4891 | _resultobj = Py_None; | |
4892 | } | |
8ab979d7 RD |
4893 | return _resultobj; |
4894 | } | |
4895 | ||
1afc06c2 RD |
4896 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4897 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4898 | PyObject * _resultobj; | |
4899 | wxWindow * _arg0; | |
4900 | wxEvtHandler * _arg1; | |
4901 | PyObject * _argo0 = 0; | |
4902 | PyObject * _argo1 = 0; | |
4903 | char *_kwnames[] = { "self","handler", NULL }; | |
4904 | ||
4905 | self = self; | |
4906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4907 | return NULL; | |
4908 | if (_argo0) { | |
4909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4912 | return NULL; | |
4913 | } | |
4914 | } | |
4915 | if (_argo1) { | |
4916 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4917 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4918 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4919 | return NULL; | |
4920 | } | |
4921 | } | |
4922 | { | |
474c48f9 | 4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4924 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4925 | |
474c48f9 | 4926 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4927 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4928 | } Py_INCREF(Py_None); |
4929 | _resultobj = Py_None; | |
4930 | return _resultobj; | |
4931 | } | |
4932 | ||
5e40f9dd RD |
4933 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4934 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4935 | PyObject * _resultobj; | |
4936 | wxWindow * _arg0; | |
4937 | long _arg1; | |
4938 | PyObject * _argo0 = 0; | |
4939 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4940 | ||
4941 | self = self; | |
4942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4943 | return NULL; | |
4944 | if (_argo0) { | |
4945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4948 | return NULL; | |
4949 | } | |
4950 | } | |
4951 | { | |
474c48f9 | 4952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4953 | wxWindow_SetExtraStyle(_arg0,_arg1); |
5e40f9dd | 4954 | |
474c48f9 | 4955 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4956 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4957 | } Py_INCREF(Py_None); |
4958 | _resultobj = Py_None; | |
4959 | return _resultobj; | |
4960 | } | |
4961 | ||
8ab979d7 | 4962 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4963 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4964 | PyObject * _resultobj; |
4965 | wxWindow * _arg0; | |
4966 | wxString * _arg1; | |
1d99702e | 4967 | PyObject * _argo0 = 0; |
8ab979d7 | 4968 | PyObject * _obj1 = 0; |
efc5f224 | 4969 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4970 | |
4971 | self = self; | |
efc5f224 | 4972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4973 | return NULL; |
1d99702e RD |
4974 | if (_argo0) { |
4975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4978 | return NULL; | |
4979 | } | |
4980 | } | |
4981 | { | |
c8bc7bb8 RD |
4982 | _arg1 = wxString_in_helper(_obj1); |
4983 | if (_arg1 == NULL) | |
2cd2fac8 | 4984 | return NULL; |
8ab979d7 | 4985 | } |
cf694132 | 4986 | { |
474c48f9 | 4987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4988 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 4989 | |
474c48f9 | 4990 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4991 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4992 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4993 | _resultobj = Py_None; |
4994 | { | |
4995 | if (_obj1) | |
4996 | delete _arg1; | |
4997 | } | |
4998 | return _resultobj; | |
4999 | } | |
5000 | ||
5001 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 5002 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5003 | PyObject * _resultobj; |
5004 | bool _result; | |
5005 | wxWindow * _arg0; | |
3e212503 | 5006 | bool _arg1 = (bool ) TRUE; |
1d99702e | 5007 | PyObject * _argo0 = 0; |
3e212503 | 5008 | int tempbool1 = (int) TRUE; |
efc5f224 | 5009 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5010 | |
5011 | self = self; | |
3e212503 | 5012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5013 | return NULL; |
1d99702e RD |
5014 | if (_argo0) { |
5015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
5018 | return NULL; | |
5019 | } | |
5020 | } | |
5021 | _arg1 = (bool ) tempbool1; | |
cf694132 | 5022 | { |
474c48f9 | 5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5024 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 5025 | |
474c48f9 | 5026 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5027 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5028 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5029 | return _resultobj; |
5030 | } | |
5031 | ||
5032 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 5033 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5034 | PyObject * _resultobj; |
5035 | bool _result; | |
5036 | wxWindow * _arg0; | |
1d99702e | 5037 | PyObject * _argo0 = 0; |
efc5f224 | 5038 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5039 | |
5040 | self = self; | |
efc5f224 | 5041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 5042 | return NULL; |
1d99702e RD |
5043 | if (_argo0) { |
5044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
5047 | return NULL; | |
5048 | } | |
5049 | } | |
cf694132 | 5050 | { |
474c48f9 | 5051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5052 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 5053 | |
474c48f9 | 5054 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5055 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5056 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5057 | return _resultobj; |
5058 | } | |
5059 | ||
5060 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 5061 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5062 | PyObject * _resultobj; |
5063 | bool _result; | |
5064 | wxWindow * _arg0; | |
1d99702e | 5065 | PyObject * _argo0 = 0; |
efc5f224 | 5066 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5067 | |
5068 | self = self; | |
efc5f224 | 5069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 5070 | return NULL; |
1d99702e RD |
5071 | if (_argo0) { |
5072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
5075 | return NULL; | |
5076 | } | |
5077 | } | |
cf694132 | 5078 | { |
474c48f9 | 5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5080 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 5081 | |
474c48f9 | 5082 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5083 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5084 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5085 | return _resultobj; |
5086 | } | |
5087 | ||
8cb49012 RD |
5088 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
5089 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5090 | PyObject * _resultobj; | |
5091 | wxWindow * _arg0; | |
5092 | PyObject * _argo0 = 0; | |
5093 | char *_kwnames[] = { "self", NULL }; | |
5094 | ||
5095 | self = self; | |
5096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
5097 | return NULL; | |
5098 | if (_argo0) { | |
5099 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5100 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5101 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
5102 | return NULL; | |
5103 | } | |
5104 | } | |
5105 | { | |
5106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5107 | wxWindow_UpdateWindowUI(_arg0); |
8cb49012 RD |
5108 | |
5109 | wxPyEndAllowThreads(__tstate); | |
5110 | if (PyErr_Occurred()) return NULL; | |
5111 | } Py_INCREF(Py_None); | |
5112 | _resultobj = Py_None; | |
5113 | return _resultobj; | |
5114 | } | |
5115 | ||
8ab979d7 | 5116 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 5117 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5118 | PyObject * _resultobj; |
5119 | bool _result; | |
5120 | wxWindow * _arg0; | |
1d99702e | 5121 | PyObject * _argo0 = 0; |
efc5f224 | 5122 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5123 | |
5124 | self = self; | |
efc5f224 | 5125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 5126 | return NULL; |
1d99702e RD |
5127 | if (_argo0) { |
5128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
5131 | return NULL; | |
5132 | } | |
5133 | } | |
cf694132 | 5134 | { |
474c48f9 | 5135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5136 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 5137 | |
474c48f9 | 5138 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5139 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5140 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5141 | return _resultobj; |
5142 | } | |
5143 | ||
b8b8dda7 | 5144 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 5145 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5146 | PyObject * _resultobj; |
5147 | wxPoint * _result; | |
5148 | wxWindow * _arg0; | |
5149 | wxPoint * _arg1; | |
1d99702e | 5150 | PyObject * _argo0 = 0; |
2f90df85 RD |
5151 | wxPoint temp; |
5152 | PyObject * _obj1 = 0; | |
efc5f224 | 5153 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5154 | char _ptemp[128]; |
5155 | ||
5156 | self = self; | |
2f90df85 | 5157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5158 | return NULL; |
1d99702e RD |
5159 | if (_argo0) { |
5160 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5161 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
5163 | return NULL; | |
5164 | } | |
5165 | } | |
2f90df85 RD |
5166 | { |
5167 | _arg1 = &temp; | |
5168 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5169 | return NULL; |
2f90df85 | 5170 | } |
cf694132 | 5171 | { |
474c48f9 | 5172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5173 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 5174 | |
474c48f9 | 5175 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5176 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5177 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5178 | _resultobj = Py_BuildValue("s",_ptemp); |
5179 | return _resultobj; | |
5180 | } | |
5181 | ||
5182 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 5183 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5184 | PyObject * _resultobj; |
5185 | wxSize * _result; | |
5186 | wxWindow * _arg0; | |
5187 | wxSize * _arg1; | |
1d99702e | 5188 | PyObject * _argo0 = 0; |
2f90df85 RD |
5189 | wxSize temp; |
5190 | PyObject * _obj1 = 0; | |
efc5f224 | 5191 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5192 | char _ptemp[128]; |
5193 | ||
5194 | self = self; | |
2f90df85 | 5195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5196 | return NULL; |
1d99702e RD |
5197 | if (_argo0) { |
5198 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5199 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5200 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
5201 | return NULL; | |
5202 | } | |
5203 | } | |
2f90df85 RD |
5204 | { |
5205 | _arg1 = &temp; | |
5206 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5207 | return NULL; |
2f90df85 | 5208 | } |
cf694132 | 5209 | { |
474c48f9 | 5210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5211 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 5212 | |
474c48f9 | 5213 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5214 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5215 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5216 | _resultobj = Py_BuildValue("s",_ptemp); |
5217 | return _resultobj; | |
5218 | } | |
5219 | ||
5220 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5221 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5222 | PyObject * _resultobj; |
5223 | wxPoint * _result; | |
5224 | wxWindow * _arg0; | |
5225 | wxPoint * _arg1; | |
1d99702e | 5226 | PyObject * _argo0 = 0; |
2f90df85 RD |
5227 | wxPoint temp; |
5228 | PyObject * _obj1 = 0; | |
efc5f224 | 5229 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5230 | char _ptemp[128]; |
5231 | ||
5232 | self = self; | |
2f90df85 | 5233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5234 | return NULL; |
1d99702e RD |
5235 | if (_argo0) { |
5236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
5239 | return NULL; | |
5240 | } | |
5241 | } | |
2f90df85 RD |
5242 | { |
5243 | _arg1 = &temp; | |
5244 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5245 | return NULL; |
2f90df85 | 5246 | } |
cf694132 | 5247 | { |
474c48f9 | 5248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5249 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 5250 | |
474c48f9 | 5251 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5252 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5253 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5254 | _resultobj = Py_BuildValue("s",_ptemp); |
5255 | return _resultobj; | |
5256 | } | |
5257 | ||
5258 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5259 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5260 | PyObject * _resultobj; |
5261 | wxSize * _result; | |
5262 | wxWindow * _arg0; | |
5263 | wxSize * _arg1; | |
1d99702e | 5264 | PyObject * _argo0 = 0; |
2f90df85 RD |
5265 | wxSize temp; |
5266 | PyObject * _obj1 = 0; | |
efc5f224 | 5267 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5268 | char _ptemp[128]; |
5269 | ||
5270 | self = self; | |
2f90df85 | 5271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5272 | return NULL; |
1d99702e RD |
5273 | if (_argo0) { |
5274 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5275 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5276 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
5277 | return NULL; | |
5278 | } | |
5279 | } | |
2f90df85 RD |
5280 | { |
5281 | _arg1 = &temp; | |
5282 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5283 | return NULL; |
2f90df85 | 5284 | } |
cf694132 | 5285 | { |
474c48f9 | 5286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5287 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 5288 | |
474c48f9 | 5289 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5290 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5291 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5292 | _resultobj = Py_BuildValue("s",_ptemp); |
5293 | return _resultobj; | |
5294 | } | |
5295 | ||
af309447 | 5296 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5297 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5298 | PyObject * _resultobj; |
5299 | wxWindow * _arg0; | |
5300 | wxString * _arg1; | |
1d99702e | 5301 | PyObject * _argo0 = 0; |
af309447 | 5302 | PyObject * _obj1 = 0; |
efc5f224 | 5303 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5304 | |
5305 | self = self; | |
efc5f224 | 5306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5307 | return NULL; |
1d99702e RD |
5308 | if (_argo0) { |
5309 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5310 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5312 | return NULL; | |
5313 | } | |
5314 | } | |
5315 | { | |
c8bc7bb8 RD |
5316 | _arg1 = wxString_in_helper(_obj1); |
5317 | if (_arg1 == NULL) | |
2cd2fac8 | 5318 | return NULL; |
af309447 | 5319 | } |
cf694132 | 5320 | { |
474c48f9 | 5321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5322 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5323 | |
474c48f9 | 5324 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5325 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5326 | } Py_INCREF(Py_None); |
af309447 RD |
5327 | _resultobj = Py_None; |
5328 | { | |
5329 | if (_obj1) | |
5330 | delete _arg1; | |
5331 | } | |
5332 | return _resultobj; | |
5333 | } | |
5334 | ||
5335 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5336 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5337 | PyObject * _resultobj; |
5338 | wxWindow * _arg0; | |
5339 | wxToolTip * _arg1; | |
1d99702e RD |
5340 | PyObject * _argo0 = 0; |
5341 | PyObject * _argo1 = 0; | |
efc5f224 | 5342 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5343 | |
5344 | self = self; | |
efc5f224 | 5345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5346 | return NULL; |
1d99702e RD |
5347 | if (_argo0) { |
5348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5351 | return NULL; | |
5352 | } | |
5353 | } | |
1d99702e RD |
5354 | if (_argo1) { |
5355 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5356 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5358 | return NULL; | |
5359 | } | |
5360 | } | |
cf694132 | 5361 | { |
474c48f9 | 5362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5363 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5364 | |
474c48f9 | 5365 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5366 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5367 | } Py_INCREF(Py_None); |
af309447 RD |
5368 | _resultobj = Py_None; |
5369 | return _resultobj; | |
5370 | } | |
5371 | ||
5372 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5373 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5374 | PyObject * _resultobj; |
5375 | wxToolTip * _result; | |
5376 | wxWindow * _arg0; | |
1d99702e | 5377 | PyObject * _argo0 = 0; |
efc5f224 | 5378 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5379 | |
5380 | self = self; | |
efc5f224 | 5381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5382 | return NULL; |
1d99702e RD |
5383 | if (_argo0) { |
5384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5387 | return NULL; | |
5388 | } | |
5389 | } | |
cf694132 | 5390 | { |
474c48f9 | 5391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5392 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5393 | |
474c48f9 | 5394 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5395 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5396 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5397 | return _resultobj; |
5398 | } | |
5399 | ||
49df1f52 | 5400 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5401 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5402 | PyObject * _resultobj; | |
5403 | wxWindow * _arg0; | |
5404 | wxSizer * _arg1; | |
49df1f52 | 5405 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5406 | PyObject * _argo0 = 0; |
5407 | PyObject * _argo1 = 0; | |
49df1f52 RD |
5408 | int tempbool2 = (int) TRUE; |
5409 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5410 | |
5411 | self = self; | |
49df1f52 | 5412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5413 | return NULL; |
5414 | if (_argo0) { | |
5415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5418 | return NULL; | |
5419 | } | |
5420 | } | |
5421 | if (_argo1) { | |
5422 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5425 | return NULL; | |
5426 | } | |
5427 | } | |
49df1f52 | 5428 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5429 | { |
474c48f9 | 5430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
49df1f52 | 5431 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5432 | |
474c48f9 | 5433 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5434 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5435 | } Py_INCREF(Py_None); |
5436 | _resultobj = Py_None; | |
5437 | return _resultobj; | |
5438 | } | |
5439 | ||
8381e4cd RD |
5440 | #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1)) |
5441 | static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5442 | PyObject * _resultobj; | |
5443 | wxWindow * _arg0; | |
5444 | wxSizer * _arg1; | |
5445 | bool _arg2 = (bool ) TRUE; | |
5446 | PyObject * _argo0 = 0; | |
5447 | PyObject * _argo1 = 0; | |
5448 | int tempbool2 = (int) TRUE; | |
5449 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
5450 | ||
5451 | self = self; | |
5452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
5453 | return NULL; | |
5454 | if (_argo0) { | |
5455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p."); | |
5458 | return NULL; | |
5459 | } | |
5460 | } | |
5461 | if (_argo1) { | |
5462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p."); | |
5465 | return NULL; | |
5466 | } | |
5467 | } | |
5468 | _arg2 = (bool ) tempbool2; | |
5469 | { | |
5470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5471 | wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2); | |
5472 | ||
5473 | wxPyEndAllowThreads(__tstate); | |
5474 | if (PyErr_Occurred()) return NULL; | |
5475 | } Py_INCREF(Py_None); | |
5476 | _resultobj = Py_None; | |
5477 | return _resultobj; | |
5478 | } | |
5479 | ||
f6bcfd97 BP |
5480 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5481 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5482 | PyObject * _resultobj; | |
5483 | wxSizer * _result; | |
5484 | wxWindow * _arg0; | |
5485 | PyObject * _argo0 = 0; | |
5486 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5487 | |
5488 | self = self; | |
5489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5490 | return NULL; | |
5491 | if (_argo0) { | |
5492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5495 | return NULL; | |
5496 | } | |
5497 | } | |
5498 | { | |
474c48f9 | 5499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5500 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5501 | |
474c48f9 | 5502 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5503 | if (PyErr_Occurred()) return NULL; |
7a9b33db | 5504 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5505 | return _resultobj; |
5506 | } | |
5507 | ||
94082a71 RD |
5508 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5509 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5510 | PyObject * _resultobj; | |
5511 | wxWindow * _arg0; | |
5512 | wxSizer * _arg1; | |
5513 | PyObject * _argo0 = 0; | |
5514 | PyObject * _argo1 = 0; | |
5515 | char *_kwnames[] = { "self","sizer", NULL }; | |
5516 | ||
5517 | self = self; | |
5518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5519 | return NULL; | |
5520 | if (_argo0) { | |
5521 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5522 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5524 | return NULL; | |
5525 | } | |
5526 | } | |
5527 | if (_argo1) { | |
5528 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5529 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5531 | return NULL; | |
5532 | } | |
5533 | } | |
5534 | { | |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5536 | wxWindow_SetContainingSizer(_arg0,_arg1); |
94082a71 RD |
5537 | |
5538 | wxPyEndAllowThreads(__tstate); | |
5539 | if (PyErr_Occurred()) return NULL; | |
5540 | } Py_INCREF(Py_None); | |
5541 | _resultobj = Py_None; | |
5542 | return _resultobj; | |
5543 | } | |
5544 | ||
5545 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5546 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5547 | PyObject * _resultobj; | |
5548 | wxSizer * _result; | |
5549 | wxWindow * _arg0; | |
5550 | PyObject * _argo0 = 0; | |
5551 | char *_kwnames[] = { "self", NULL }; | |
5552 | ||
5553 | self = self; | |
5554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5555 | return NULL; | |
5556 | if (_argo0) { | |
5557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5560 | return NULL; | |
5561 | } | |
5562 | } | |
5563 | { | |
5564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5565 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
94082a71 RD |
5566 | |
5567 | wxPyEndAllowThreads(__tstate); | |
5568 | if (PyErr_Occurred()) return NULL; | |
5569 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5570 | return _resultobj; | |
5571 | } | |
5572 | ||
2f90df85 RD |
5573 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5574 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5575 | PyObject * _resultobj; | |
5576 | wxValidator * _result; | |
5577 | wxWindow * _arg0; | |
5578 | PyObject * _argo0 = 0; | |
5579 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5580 | |
5581 | self = self; | |
5582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5583 | return NULL; | |
5584 | if (_argo0) { | |
5585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5588 | return NULL; | |
5589 | } | |
5590 | } | |
5591 | { | |
474c48f9 | 5592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5593 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5594 | |
474c48f9 | 5595 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5596 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5597 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5598 | return _resultobj; |
5599 | } | |
5600 | ||
5601 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5602 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5603 | PyObject * _resultobj; | |
5604 | wxWindow * _arg0; | |
5605 | wxValidator * _arg1; | |
5606 | PyObject * _argo0 = 0; | |
5607 | PyObject * _argo1 = 0; | |
5608 | char *_kwnames[] = { "self","validator", NULL }; | |
5609 | ||
5610 | self = self; | |
5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5612 | return NULL; | |
5613 | if (_argo0) { | |
5614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5617 | return NULL; | |
5618 | } | |
5619 | } | |
5620 | if (_argo1) { | |
5621 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5622 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5624 | return NULL; | |
5625 | } | |
5626 | } | |
5627 | { | |
474c48f9 | 5628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5629 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5630 | |
474c48f9 | 5631 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5632 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5633 | } Py_INCREF(Py_None); |
5634 | _resultobj = Py_None; | |
5635 | return _resultobj; | |
5636 | } | |
5637 | ||
b1462dfa RD |
5638 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5639 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5640 | PyObject * _resultobj; | |
5641 | wxWindow * _arg0; | |
5642 | wxDropTarget * _arg1; | |
5643 | PyObject * _argo0 = 0; | |
5644 | PyObject * _argo1 = 0; | |
5645 | char *_kwnames[] = { "self","target", NULL }; | |
5646 | ||
5647 | self = self; | |
5648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5649 | return NULL; | |
5650 | if (_argo0) { | |
5651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5654 | return NULL; | |
5655 | } | |
5656 | } | |
5657 | if (_argo1) { | |
5658 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5659 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5661 | return NULL; | |
5662 | } | |
5663 | } | |
5664 | { | |
474c48f9 | 5665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5666 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5667 | |
474c48f9 | 5668 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5669 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5670 | } Py_INCREF(Py_None); |
5671 | _resultobj = Py_None; | |
5672 | return _resultobj; | |
5673 | } | |
5674 | ||
5675 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5676 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5677 | PyObject * _resultobj; | |
5678 | wxDropTarget * _result; | |
5679 | wxWindow * _arg0; | |
5680 | PyObject * _argo0 = 0; | |
5681 | char *_kwnames[] = { "self", NULL }; | |
5682 | char _ptemp[128]; | |
5683 | ||
5684 | self = self; | |
5685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5686 | return NULL; | |
5687 | if (_argo0) { | |
5688 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5689 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5690 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5691 | return NULL; | |
5692 | } | |
5693 | } | |
5694 | { | |
474c48f9 | 5695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5696 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5697 | |
474c48f9 | 5698 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5699 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5700 | } if (_result) { |
5701 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5702 | _resultobj = Py_BuildValue("s",_ptemp); | |
5703 | } else { | |
5704 | Py_INCREF(Py_None); | |
5705 | _resultobj = Py_None; | |
5706 | } | |
5707 | return _resultobj; | |
5708 | } | |
5709 | ||
694759cf RD |
5710 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5711 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5712 | PyObject * _resultobj; | |
5713 | wxSize * _result; | |
5714 | wxWindow * _arg0; | |
5715 | PyObject * _argo0 = 0; | |
5716 | char *_kwnames[] = { "self", NULL }; | |
5717 | char _ptemp[128]; | |
5718 | ||
5719 | self = self; | |
5720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5721 | return NULL; | |
5722 | if (_argo0) { | |
5723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5726 | return NULL; | |
5727 | } | |
5728 | } | |
5729 | { | |
474c48f9 | 5730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5731 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5732 | |
474c48f9 | 5733 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5734 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5735 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5736 | _resultobj = Py_BuildValue("s",_ptemp); | |
5737 | return _resultobj; | |
5738 | } | |
5739 | ||
49df1f52 RD |
5740 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5741 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5742 | PyObject * _resultobj; | |
5743 | wxSize * _result; | |
5744 | wxWindow * _arg0; | |
5745 | PyObject * _argo0 = 0; | |
5746 | char *_kwnames[] = { "self", NULL }; | |
5747 | char _ptemp[128]; | |
5748 | ||
5749 | self = self; | |
5750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5751 | return NULL; | |
5752 | if (_argo0) { | |
5753 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5754 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5756 | return NULL; | |
5757 | } | |
5758 | } | |
5759 | { | |
5760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5761 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5762 | ||
5763 | wxPyEndAllowThreads(__tstate); | |
5764 | if (PyErr_Occurred()) return NULL; | |
5765 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5766 | _resultobj = Py_BuildValue("s",_ptemp); | |
5767 | return _resultobj; | |
5768 | } | |
5769 | ||
a1df7a95 RD |
5770 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5771 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5772 | PyObject * _resultobj; | |
5773 | wxWindow * _arg0; | |
5774 | wxCaret * _arg1; | |
5775 | PyObject * _argo0 = 0; | |
5776 | PyObject * _argo1 = 0; | |
5777 | char *_kwnames[] = { "self","caret", NULL }; | |
5778 | ||
5779 | self = self; | |
5780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5781 | return NULL; | |
5782 | if (_argo0) { | |
5783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5786 | return NULL; | |
5787 | } | |
5788 | } | |
5789 | if (_argo1) { | |
5790 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5791 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5793 | return NULL; | |
5794 | } | |
5795 | } | |
5796 | { | |
474c48f9 | 5797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5798 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5799 | |
474c48f9 | 5800 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5801 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5802 | } Py_INCREF(Py_None); |
5803 | _resultobj = Py_None; | |
5804 | return _resultobj; | |
5805 | } | |
5806 | ||
5807 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5808 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5809 | PyObject * _resultobj; | |
5810 | wxCaret * _result; | |
5811 | wxWindow * _arg0; | |
5812 | PyObject * _argo0 = 0; | |
5813 | char *_kwnames[] = { "self", NULL }; | |
5814 | char _ptemp[128]; | |
5815 | ||
5816 | self = self; | |
5817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5818 | return NULL; | |
5819 | if (_argo0) { | |
5820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5823 | return NULL; | |
5824 | } | |
5825 | } | |
5826 | { | |
474c48f9 | 5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5828 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5829 | |
474c48f9 | 5830 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5831 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5832 | } if (_result) { |
5833 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5834 | _resultobj = Py_BuildValue("s",_ptemp); | |
5835 | } else { | |
5836 | Py_INCREF(Py_None); | |
5837 | _resultobj = Py_None; | |
5838 | } | |
5839 | return _resultobj; | |
5840 | } | |
5841 | ||
10be44ac RD |
5842 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5843 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5844 | PyObject * _resultobj; | |
5845 | wxWindow * _arg0; | |
5846 | PyObject * _argo0 = 0; | |
5847 | char *_kwnames[] = { "self", NULL }; | |
5848 | ||
5849 | self = self; | |
5850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5851 | return NULL; | |
5852 | if (_argo0) { | |
5853 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5854 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5855 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5856 | return NULL; | |
5857 | } | |
5858 | } | |
5859 | { | |
474c48f9 | 5860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5861 | wxWindow_Freeze(_arg0); |
10be44ac | 5862 | |
474c48f9 | 5863 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5864 | if (PyErr_Occurred()) return NULL; |
5865 | } Py_INCREF(Py_None); | |
5866 | _resultobj = Py_None; | |
5867 | return _resultobj; | |
5868 | } | |
5869 | ||
5870 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5871 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5872 | PyObject * _resultobj; | |
5873 | wxWindow * _arg0; | |
5874 | PyObject * _argo0 = 0; | |
5875 | char *_kwnames[] = { "self", NULL }; | |
5876 | ||
5877 | self = self; | |
5878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5879 | return NULL; | |
5880 | if (_argo0) { | |
5881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5884 | return NULL; | |
5885 | } | |
5886 | } | |
5887 | { | |
474c48f9 | 5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5889 | wxWindow_Thaw(_arg0); |
10be44ac | 5890 | |
474c48f9 | 5891 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5892 | if (PyErr_Occurred()) return NULL; |
5893 | } Py_INCREF(Py_None); | |
5894 | _resultobj = Py_None; | |
5895 | return _resultobj; | |
5896 | } | |
5897 | ||
aa2a5b86 RD |
5898 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5899 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5900 | PyObject * _resultobj; | |
5901 | wxWindow * _arg0; | |
5902 | PyObject * _argo0 = 0; | |
5903 | char *_kwnames[] = { "self", NULL }; | |
5904 | ||
5905 | self = self; | |
5906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5907 | return NULL; | |
5908 | if (_argo0) { | |
5909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5912 | return NULL; | |
5913 | } | |
5914 | } | |
5915 | { | |
474c48f9 | 5916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5917 | wxWindow_Update(_arg0); |
aa2a5b86 | 5918 | |
474c48f9 | 5919 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5920 | if (PyErr_Occurred()) return NULL; |
5921 | } Py_INCREF(Py_None); | |
5922 | _resultobj = Py_None; | |
5923 | return _resultobj; | |
5924 | } | |
5925 | ||
cd096152 RD |
5926 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5927 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5928 | PyObject * _resultobj; | |
5929 | wxString * _result; | |
5930 | wxWindow * _arg0; | |
5931 | PyObject * _argo0 = 0; | |
5932 | char *_kwnames[] = { "self", NULL }; | |
5933 | ||
5934 | self = self; | |
5935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5936 | return NULL; | |
5937 | if (_argo0) { | |
5938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5941 | return NULL; | |
5942 | } | |
5943 | } | |
5944 | { | |
474c48f9 | 5945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5946 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
cd096152 | 5947 | |
474c48f9 | 5948 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5949 | if (PyErr_Occurred()) return NULL; |
5950 | }{ | |
c8bc7bb8 RD |
5951 | #if wxUSE_UNICODE |
5952 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5953 | #else | |
cd096152 | 5954 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5955 | #endif |
cd096152 RD |
5956 | } |
5957 | { | |
5958 | delete _result; | |
5959 | } | |
5960 | return _resultobj; | |
5961 | } | |
5962 | ||
5963 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5964 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5965 | PyObject * _resultobj; | |
5966 | wxWindow * _arg0; | |
5967 | wxString * _arg1; | |
5968 | PyObject * _argo0 = 0; | |
5969 | PyObject * _obj1 = 0; | |
5970 | char *_kwnames[] = { "self","helpText", NULL }; | |
5971 | ||
5972 | self = self; | |
5973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5974 | return NULL; | |
5975 | if (_argo0) { | |
5976 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5977 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5978 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5979 | return NULL; | |
5980 | } | |
5981 | } | |
5982 | { | |
c8bc7bb8 RD |
5983 | _arg1 = wxString_in_helper(_obj1); |
5984 | if (_arg1 == NULL) | |
cd096152 | 5985 | return NULL; |
cd096152 RD |
5986 | } |
5987 | { | |
474c48f9 | 5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5989 | wxWindow_SetHelpText(_arg0,*_arg1); |
cd096152 | 5990 | |
474c48f9 | 5991 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5992 | if (PyErr_Occurred()) return NULL; |
5993 | } Py_INCREF(Py_None); | |
5994 | _resultobj = Py_None; | |
5995 | { | |
5996 | if (_obj1) | |
5997 | delete _arg1; | |
5998 | } | |
5999 | return _resultobj; | |
6000 | } | |
6001 | ||
8cb49012 RD |
6002 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
6003 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject * _resultobj; | |
6005 | wxWindow * _arg0; | |
6006 | wxString * _arg1; | |
6007 | PyObject * _argo0 = 0; | |
6008 | PyObject * _obj1 = 0; | |
6009 | char *_kwnames[] = { "self","text", NULL }; | |
6010 | ||
6011 | self = self; | |
6012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
6013 | return NULL; | |
6014 | if (_argo0) { | |
6015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
6018 | return NULL; | |
6019 | } | |
6020 | } | |
6021 | { | |
c8bc7bb8 RD |
6022 | _arg1 = wxString_in_helper(_obj1); |
6023 | if (_arg1 == NULL) | |
8cb49012 | 6024 | return NULL; |
8cb49012 RD |
6025 | } |
6026 | { | |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6028 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
8cb49012 RD |
6029 | |
6030 | wxPyEndAllowThreads(__tstate); | |
6031 | if (PyErr_Occurred()) return NULL; | |
6032 | } Py_INCREF(Py_None); | |
6033 | _resultobj = Py_None; | |
6034 | { | |
6035 | if (_obj1) | |
6036 | delete _arg1; | |
6037 | } | |
6038 | return _resultobj; | |
6039 | } | |
6040 | ||
cd096152 RD |
6041 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
6042 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6043 | PyObject * _resultobj; | |
6044 | bool _result; | |
6045 | wxWindow * _arg0; | |
6046 | int _arg1; | |
6047 | PyObject * _argo0 = 0; | |
6048 | char *_kwnames[] = { "self","lines", NULL }; | |
6049 | ||
6050 | self = self; | |
6051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
6052 | return NULL; | |
6053 | if (_argo0) { | |
6054 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6055 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6056 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
6057 | return NULL; | |
6058 | } | |
6059 | } | |
6060 | { | |
474c48f9 | 6061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6062 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
cd096152 | 6063 | |
474c48f9 | 6064 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6065 | if (PyErr_Occurred()) return NULL; |
6066 | } _resultobj = Py_BuildValue("i",_result); | |
6067 | return _resultobj; | |
6068 | } | |
6069 | ||
6070 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
6071 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6072 | PyObject * _resultobj; | |
6073 | bool _result; | |
6074 | wxWindow * _arg0; | |
6075 | int _arg1; | |
6076 | PyObject * _argo0 = 0; | |
6077 | char *_kwnames[] = { "self","pages", NULL }; | |
6078 | ||
6079 | self = self; | |
6080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
6081 | return NULL; | |
6082 | if (_argo0) { | |
6083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
6086 | return NULL; | |
6087 | } | |
6088 | } | |
6089 | { | |
474c48f9 | 6090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6091 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
cd096152 | 6092 | |
474c48f9 | 6093 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6094 | if (PyErr_Occurred()) return NULL; |
6095 | } _resultobj = Py_BuildValue("i",_result); | |
6096 | return _resultobj; | |
6097 | } | |
6098 | ||
6099 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
6100 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6101 | PyObject * _resultobj; | |
6102 | bool _result; | |
6103 | wxWindow * _arg0; | |
6104 | PyObject * _argo0 = 0; | |
6105 | char *_kwnames[] = { "self", NULL }; | |
6106 | ||
6107 | self = self; | |
6108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
6109 | return NULL; | |
6110 | if (_argo0) { | |
6111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
6114 | return NULL; | |
6115 | } | |
6116 | } | |
6117 | { | |
474c48f9 | 6118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6119 | _result = (bool )wxWindow_LineUp(_arg0); |
cd096152 | 6120 | |
474c48f9 | 6121 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6122 | if (PyErr_Occurred()) return NULL; |
6123 | } _resultobj = Py_BuildValue("i",_result); | |
6124 | return _resultobj; | |
6125 | } | |
6126 | ||
6127 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
6128 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6129 | PyObject * _resultobj; | |
6130 | bool _result; | |
6131 | wxWindow * _arg0; | |
6132 | PyObject * _argo0 = 0; | |
6133 | char *_kwnames[] = { "self", NULL }; | |
6134 | ||
6135 | self = self; | |
6136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
6137 | return NULL; | |
6138 | if (_argo0) { | |
6139 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6140 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
6142 | return NULL; | |
6143 | } | |
6144 | } | |
6145 | { | |
474c48f9 | 6146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6147 | _result = (bool )wxWindow_LineDown(_arg0); |
cd096152 | 6148 | |
474c48f9 | 6149 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6150 | if (PyErr_Occurred()) return NULL; |
6151 | } _resultobj = Py_BuildValue("i",_result); | |
6152 | return _resultobj; | |
6153 | } | |
6154 | ||
6155 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
6156 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject * _resultobj; | |
6158 | bool _result; | |
6159 | wxWindow * _arg0; | |
6160 | PyObject * _argo0 = 0; | |
6161 | char *_kwnames[] = { "self", NULL }; | |
6162 | ||
6163 | self = self; | |
6164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
6165 | return NULL; | |
6166 | if (_argo0) { | |
6167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
6170 | return NULL; | |
6171 | } | |
6172 | } | |
6173 | { | |
474c48f9 | 6174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6175 | _result = (bool )wxWindow_PageUp(_arg0); |
cd096152 | 6176 | |
474c48f9 | 6177 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6178 | if (PyErr_Occurred()) return NULL; |
6179 | } _resultobj = Py_BuildValue("i",_result); | |
6180 | return _resultobj; | |
6181 | } | |
6182 | ||
6183 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
6184 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6185 | PyObject * _resultobj; | |
6186 | bool _result; | |
6187 | wxWindow * _arg0; | |
6188 | PyObject * _argo0 = 0; | |
6189 | char *_kwnames[] = { "self", NULL }; | |
6190 | ||
6191 | self = self; | |
6192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
6193 | return NULL; | |
6194 | if (_argo0) { | |
6195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
6198 | return NULL; | |
6199 | } | |
6200 | } | |
6201 | { | |
474c48f9 | 6202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6203 | _result = (bool )wxWindow_PageDown(_arg0); |
cd096152 | 6204 | |
474c48f9 | 6205 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6206 | if (PyErr_Occurred()) return NULL; |
6207 | } _resultobj = Py_BuildValue("i",_result); | |
6208 | return _resultobj; | |
6209 | } | |
6210 | ||
aa2a5b86 RD |
6211 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
6212 | PyObject * _resultobj; | |
6213 | wxWindow * _result; | |
6214 | char *_kwnames[] = { NULL }; | |
6215 | ||
6216 | self = self; | |
6217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
6218 | return NULL; | |
6219 | { | |
474c48f9 | 6220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6221 | _result = (wxWindow *)wxWindow::FindFocus(); |
aa2a5b86 | 6222 | |
474c48f9 | 6223 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6224 | if (PyErr_Occurred()) return NULL; |
6225 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6226 | return _resultobj; | |
6227 | } | |
6228 | ||
6229 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6230 | PyObject * _resultobj; | |
6231 | int _result; | |
6232 | char *_kwnames[] = { NULL }; | |
6233 | ||
6234 | self = self; | |
6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
6236 | return NULL; | |
6237 | { | |
474c48f9 | 6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6239 | _result = (int )wxWindow::NewControlId(); |
aa2a5b86 | 6240 | |
474c48f9 | 6241 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6242 | if (PyErr_Occurred()) return NULL; |
6243 | } _resultobj = Py_BuildValue("i",_result); | |
6244 | return _resultobj; | |
6245 | } | |
6246 | ||
6247 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6248 | PyObject * _resultobj; | |
6249 | int _result; | |
6250 | int _arg0; | |
6251 | char *_kwnames[] = { "id", NULL }; | |
6252 | ||
6253 | self = self; | |
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
6255 | return NULL; | |
6256 | { | |
474c48f9 | 6257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6258 | _result = (int )wxWindow::NextControlId(_arg0); |
aa2a5b86 | 6259 | |
474c48f9 | 6260 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6261 | if (PyErr_Occurred()) return NULL; |
6262 | } _resultobj = Py_BuildValue("i",_result); | |
6263 | return _resultobj; | |
6264 | } | |
6265 | ||
6266 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6267 | PyObject * _resultobj; | |
6268 | int _result; | |
6269 | int _arg0; | |
6270 | char *_kwnames[] = { "id", NULL }; | |
6271 | ||
6272 | self = self; | |
6273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
6274 | return NULL; | |
6275 | { | |
474c48f9 | 6276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6277 | _result = (int )wxWindow::PrevControlId(_arg0); |
aa2a5b86 | 6278 | |
474c48f9 | 6279 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6280 | if (PyErr_Occurred()) return NULL; |
6281 | } _resultobj = Py_BuildValue("i",_result); | |
6282 | return _resultobj; | |
6283 | } | |
6284 | ||
32c988a3 RD |
6285 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
6286 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6287 | PyObject * _resultobj; | |
6288 | wxWindow * _arg0; | |
6289 | wxAcceleratorTable * _arg1; | |
6290 | PyObject * _argo0 = 0; | |
6291 | PyObject * _argo1 = 0; | |
6292 | char *_kwnames[] = { "self","accel", NULL }; | |
6293 | ||
6294 | self = self; | |
6295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
6296 | return NULL; | |
6297 | if (_argo0) { | |
6298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6301 | return NULL; | |
6302 | } | |
6303 | } | |
6304 | if (_argo1) { | |
6305 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6306 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
6307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
6308 | return NULL; | |
6309 | } | |
6310 | } | |
6311 | { | |
474c48f9 | 6312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6313 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
32c988a3 | 6314 | |
474c48f9 | 6315 | wxPyEndAllowThreads(__tstate); |
32c988a3 RD |
6316 | if (PyErr_Occurred()) return NULL; |
6317 | } Py_INCREF(Py_None); | |
6318 | _resultobj = Py_None; | |
6319 | return _resultobj; | |
6320 | } | |
6321 | ||
65191ae8 RD |
6322 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6323 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject * _resultobj; | |
6325 | wxAcceleratorTable * _result; | |
6326 | wxWindow * _arg0; | |
6327 | PyObject * _argo0 = 0; | |
6328 | char *_kwnames[] = { "self", NULL }; | |
6329 | char _ptemp[128]; | |
6330 | ||
6331 | self = self; | |
6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6333 | return NULL; | |
6334 | if (_argo0) { | |
6335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6338 | return NULL; | |
6339 | } | |
6340 | } | |
6341 | { | |
474c48f9 | 6342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6343 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
65191ae8 | 6344 | |
474c48f9 | 6345 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
6346 | if (PyErr_Occurred()) return NULL; |
6347 | } if (_result) { | |
6348 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6349 | _resultobj = Py_BuildValue("s",_ptemp); | |
6350 | } else { | |
6351 | Py_INCREF(Py_None); | |
6352 | _resultobj = Py_None; | |
6353 | } | |
6354 | return _resultobj; | |
6355 | } | |
6356 | ||
1893b029 RD |
6357 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6358 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6359 | PyObject * _resultobj; | |
49df1f52 | 6360 | wxWindow * _result; |
1893b029 RD |
6361 | wxWindow * _arg0; |
6362 | PyObject * _argo0 = 0; | |
6363 | char *_kwnames[] = { "self", NULL }; | |
6364 | ||
6365 | self = self; | |
6366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6367 | return NULL; | |
6368 | if (_argo0) { | |
6369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6372 | return NULL; | |
6373 | } | |
6374 | } | |
6375 | { | |
6376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6377 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
1893b029 RD |
6378 | |
6379 | wxPyEndAllowThreads(__tstate); | |
6380 | if (PyErr_Occurred()) return NULL; | |
6381 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6382 | return _resultobj; | |
6383 | } | |
6384 | ||
6385 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6386 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6387 | PyObject * _resultobj; | |
49df1f52 | 6388 | wxWindow * _result; |
1893b029 | 6389 | wxWindow * _arg0; |
49df1f52 | 6390 | wxWindow * _arg1; |
1893b029 RD |
6391 | PyObject * _argo0 = 0; |
6392 | PyObject * _argo1 = 0; | |
6393 | char *_kwnames[] = { "self","btn", NULL }; | |
6394 | ||
6395 | self = self; | |
6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6397 | return NULL; | |
6398 | if (_argo0) { | |
6399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6402 | return NULL; | |
6403 | } | |
6404 | } | |
6405 | if (_argo1) { | |
6406 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
49df1f52 RD |
6407 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
1893b029 RD |
6409 | return NULL; |
6410 | } | |
6411 | } | |
6412 | { | |
6413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6414 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
1893b029 RD |
6415 | |
6416 | wxPyEndAllowThreads(__tstate); | |
6417 | if (PyErr_Occurred()) return NULL; | |
49df1f52 | 6418 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1893b029 RD |
6419 | return _resultobj; |
6420 | } | |
6421 | ||
12d1116b RD |
6422 | #define wxWindow_SetTmpDefaultItem(_swigobj,_swigarg0) (_swigobj->SetTmpDefaultItem(_swigarg0)) |
6423 | static PyObject *_wrap_wxWindow_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6424 | PyObject * _resultobj; | |
6425 | wxWindow * _arg0; | |
6426 | wxWindow * _arg1; | |
6427 | PyObject * _argo0 = 0; | |
6428 | PyObject * _argo1 = 0; | |
6429 | char *_kwnames[] = { "self","win", NULL }; | |
6430 | ||
6431 | self = self; | |
6432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTmpDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6433 | return NULL; | |
6434 | if (_argo0) { | |
6435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6438 | return NULL; | |
6439 | } | |
6440 | } | |
6441 | if (_argo1) { | |
6442 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6443 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6444 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6445 | return NULL; | |
6446 | } | |
6447 | } | |
6448 | { | |
6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6450 | wxWindow_SetTmpDefaultItem(_arg0,_arg1); | |
6451 | ||
6452 | wxPyEndAllowThreads(__tstate); | |
6453 | if (PyErr_Occurred()) return NULL; | |
6454 | } Py_INCREF(Py_None); | |
6455 | _resultobj = Py_None; | |
6456 | return _resultobj; | |
6457 | } | |
6458 | ||
94c16279 RD |
6459 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
6460 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6461 | PyObject * _resultobj; | |
6462 | wxWindow * _arg0; | |
6463 | int _arg1; | |
6464 | int _arg2; | |
6465 | PyObject * _argo0 = 0; | |
6466 | char *_kwnames[] = { "self","x","y", NULL }; | |
6467 | ||
6468 | self = self; | |
6469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6470 | return NULL; | |
6471 | if (_argo0) { | |
6472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
6475 | return NULL; | |
6476 | } | |
6477 | } | |
6478 | { | |
6479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6480 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
6481 | ||
6482 | wxPyEndAllowThreads(__tstate); | |
6483 | if (PyErr_Occurred()) return NULL; | |
6484 | } Py_INCREF(Py_None); | |
6485 | _resultobj = Py_None; | |
6486 | return _resultobj; | |
6487 | } | |
6488 | ||
6489 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
6490 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6491 | PyObject * _resultobj; | |
6492 | wxWindow * _arg0; | |
6493 | PyObject * _argo0 = 0; | |
6494 | char *_kwnames[] = { "self", NULL }; | |
6495 | ||
6496 | self = self; | |
6497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) | |
6498 | return NULL; | |
6499 | if (_argo0) { | |
6500 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6501 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
6503 | return NULL; | |
6504 | } | |
6505 | } | |
6506 | { | |
6507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6508 | wxWindow_CaptureMouse(_arg0); | |
6509 | ||
6510 | wxPyEndAllowThreads(__tstate); | |
6511 | if (PyErr_Occurred()) return NULL; | |
6512 | } Py_INCREF(Py_None); | |
6513 | _resultobj = Py_None; | |
6514 | return _resultobj; | |
6515 | } | |
6516 | ||
6517 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
6518 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6519 | PyObject * _resultobj; | |
6520 | wxWindow * _arg0; | |
6521 | PyObject * _argo0 = 0; | |
6522 | char *_kwnames[] = { "self", NULL }; | |
6523 | ||
6524 | self = self; | |
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) | |
6526 | return NULL; | |
6527 | if (_argo0) { | |
6528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
6531 | return NULL; | |
6532 | } | |
6533 | } | |
6534 | { | |
6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6536 | wxWindow_ReleaseMouse(_arg0); | |
6537 | ||
6538 | wxPyEndAllowThreads(__tstate); | |
6539 | if (PyErr_Occurred()) return NULL; | |
6540 | } Py_INCREF(Py_None); | |
6541 | _resultobj = Py_None; | |
6542 | return _resultobj; | |
6543 | } | |
6544 | ||
6545 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6546 | PyObject * _resultobj; | |
6547 | wxWindow * _result; | |
6548 | char *_kwnames[] = { NULL }; | |
6549 | ||
6550 | self = self; | |
6551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) | |
6552 | return NULL; | |
6553 | { | |
6554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6555 | _result = (wxWindow *)wxWindow::GetCapture(); | |
6556 | ||
6557 | wxPyEndAllowThreads(__tstate); | |
6558 | if (PyErr_Occurred()) return NULL; | |
6559 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6560 | return _resultobj; | |
6561 | } | |
6562 | ||
6563 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) | |
6564 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6565 | PyObject * _resultobj; | |
6566 | bool _result; | |
6567 | wxWindow * _arg0; | |
6568 | PyObject * _argo0 = 0; | |
6569 | char *_kwnames[] = { "self", NULL }; | |
6570 | ||
6571 | self = self; | |
6572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) | |
6573 | return NULL; | |
6574 | if (_argo0) { | |
6575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); | |
6578 | return NULL; | |
6579 | } | |
6580 | } | |
6581 | { | |
6582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6583 | _result = (bool )wxWindow_HasCapture(_arg0); | |
6584 | ||
6585 | wxPyEndAllowThreads(__tstate); | |
6586 | if (PyErr_Occurred()) return NULL; | |
6587 | } _resultobj = Py_BuildValue("i",_result); | |
6588 | return _resultobj; | |
6589 | } | |
6590 | ||
8ab979d7 RD |
6591 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6592 | wxPanel *src; | |
6593 | wxWindow *dest; | |
6594 | src = (wxPanel *) ptr; | |
6595 | dest = (wxWindow *) src; | |
6596 | return (void *) dest; | |
6597 | } | |
6598 | ||
6599 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6600 | wxPanel *src; | |
6601 | wxEvtHandler *dest; | |
6602 | src = (wxPanel *) ptr; | |
6603 | dest = (wxEvtHandler *) src; | |
6604 | return (void *) dest; | |
6605 | } | |
6606 | ||
9df61a29 RD |
6607 | static void *SwigwxPanelTowxObject(void *ptr) { |
6608 | wxPanel *src; | |
6609 | wxObject *dest; | |
6610 | src = (wxPanel *) ptr; | |
6611 | dest = (wxObject *) src; | |
6612 | return (void *) dest; | |
6613 | } | |
6614 | ||
8ab979d7 | 6615 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6616 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6617 | PyObject * _resultobj; |
6618 | wxPanel * _result; | |
6619 | wxWindow * _arg0; | |
6620 | wxWindowID _arg1; | |
b68dc582 RD |
6621 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6622 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6623 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
9a74fcaf | 6624 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6625 | PyObject * _argo0 = 0; |
2f90df85 RD |
6626 | wxPoint temp; |
6627 | PyObject * _obj2 = 0; | |
6628 | wxSize temp0; | |
6629 | PyObject * _obj3 = 0; | |
9a74fcaf | 6630 | PyObject * _obj5 = 0; |
efc5f224 | 6631 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6632 | char _ptemp[128]; |
6633 | ||
6634 | self = self; | |
9a74fcaf | 6635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6636 | return NULL; |
1d99702e RD |
6637 | if (_argo0) { |
6638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6641 | return NULL; | |
6642 | } | |
6643 | } | |
2f90df85 RD |
6644 | if (_obj2) |
6645 | { | |
6646 | _arg2 = &temp; | |
6647 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6648 | return NULL; |
2f90df85 RD |
6649 | } |
6650 | if (_obj3) | |
6651 | { | |
6652 | _arg3 = &temp0; | |
6653 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6654 | return NULL; |
9a74fcaf RD |
6655 | } |
6656 | if (_obj5) | |
6657 | { | |
6658 | _arg5 = wxString_in_helper(_obj5); | |
6659 | if (_arg5 == NULL) | |
6660 | return NULL; | |
2f90df85 | 6661 | } |
cf694132 | 6662 | { |
474c48f9 | 6663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6664 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6665 | |
474c48f9 | 6666 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6667 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6668 | } if (_result) { |
6669 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6670 | _resultobj = Py_BuildValue("s",_ptemp); | |
6671 | } else { | |
6672 | Py_INCREF(Py_None); | |
6673 | _resultobj = Py_None; | |
6674 | } | |
9a74fcaf RD |
6675 | { |
6676 | if (_obj5) | |
6677 | delete _arg5; | |
6678 | } | |
8ab979d7 RD |
6679 | return _resultobj; |
6680 | } | |
6681 | ||
aa2a5b86 RD |
6682 | #define new_wxPrePanel() (new wxPanel()) |
6683 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6684 | PyObject * _resultobj; | |
6685 | wxPanel * _result; | |
6686 | char *_kwnames[] = { NULL }; | |
6687 | char _ptemp[128]; | |
6688 | ||
6689 | self = self; | |
6690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6691 | return NULL; | |
6692 | { | |
474c48f9 | 6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6694 | _result = (wxPanel *)new_wxPrePanel(); |
aa2a5b86 | 6695 | |
474c48f9 | 6696 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6697 | if (PyErr_Occurred()) return NULL; |
6698 | } if (_result) { | |
6699 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6700 | _resultobj = Py_BuildValue("s",_ptemp); | |
6701 | } else { | |
6702 | Py_INCREF(Py_None); | |
6703 | _resultobj = Py_None; | |
6704 | } | |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
6708 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6709 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6710 | PyObject * _resultobj; | |
6711 | bool _result; | |
6712 | wxPanel * _arg0; | |
6713 | wxWindow * _arg1; | |
6714 | wxWindowID _arg2; | |
6715 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6716 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6717 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
9a74fcaf | 6718 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
6719 | PyObject * _argo0 = 0; |
6720 | PyObject * _argo1 = 0; | |
6721 | wxPoint temp; | |
6722 | PyObject * _obj3 = 0; | |
6723 | wxSize temp0; | |
6724 | PyObject * _obj4 = 0; | |
9a74fcaf | 6725 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
6726 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6727 | ||
6728 | self = self; | |
9a74fcaf | 6729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
6730 | return NULL; |
6731 | if (_argo0) { | |
6732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6735 | return NULL; | |
6736 | } | |
6737 | } | |
6738 | if (_argo1) { | |
6739 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6740 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6741 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6742 | return NULL; | |
6743 | } | |
6744 | } | |
6745 | if (_obj3) | |
6746 | { | |
6747 | _arg3 = &temp; | |
6748 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6749 | return NULL; | |
6750 | } | |
6751 | if (_obj4) | |
6752 | { | |
6753 | _arg4 = &temp0; | |
6754 | if (! wxSize_helper(_obj4, &_arg4)) | |
6755 | return NULL; | |
9a74fcaf RD |
6756 | } |
6757 | if (_obj6) | |
6758 | { | |
6759 | _arg6 = wxString_in_helper(_obj6); | |
6760 | if (_arg6 == NULL) | |
6761 | return NULL; | |
aa2a5b86 RD |
6762 | } |
6763 | { | |
474c48f9 | 6764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6765 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 6766 | |
474c48f9 | 6767 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6768 | if (PyErr_Occurred()) return NULL; |
6769 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
6770 | { |
6771 | if (_obj6) | |
6772 | delete _arg6; | |
6773 | } | |
aa2a5b86 RD |
6774 | return _resultobj; |
6775 | } | |
6776 | ||
8ab979d7 | 6777 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6778 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6779 | PyObject * _resultobj; |
6780 | wxPanel * _arg0; | |
1d99702e | 6781 | PyObject * _argo0 = 0; |
efc5f224 | 6782 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6783 | |
6784 | self = self; | |
efc5f224 | 6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6786 | return NULL; |
1d99702e RD |
6787 | if (_argo0) { |
6788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6791 | return NULL; | |
6792 | } | |
6793 | } | |
cf694132 | 6794 | { |
474c48f9 | 6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6796 | wxPanel_InitDialog(_arg0); |
cf694132 | 6797 | |
474c48f9 | 6798 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6799 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6800 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6801 | _resultobj = Py_None; |
6802 | return _resultobj; | |
6803 | } | |
6804 | ||
bb0054cd RD |
6805 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6806 | wxScrolledWindow *src; | |
6807 | wxPanel *dest; | |
6808 | src = (wxScrolledWindow *) ptr; | |
6809 | dest = (wxPanel *) src; | |
6810 | return (void *) dest; | |
6811 | } | |
6812 | ||
8ab979d7 RD |
6813 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6814 | wxScrolledWindow *src; | |
6815 | wxWindow *dest; | |
6816 | src = (wxScrolledWindow *) ptr; | |
6817 | dest = (wxWindow *) src; | |
6818 | return (void *) dest; | |
6819 | } | |
6820 | ||
6821 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6822 | wxScrolledWindow *src; | |
6823 | wxEvtHandler *dest; | |
6824 | src = (wxScrolledWindow *) ptr; | |
6825 | dest = (wxEvtHandler *) src; | |
6826 | return (void *) dest; | |
6827 | } | |
6828 | ||
9df61a29 RD |
6829 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6830 | wxScrolledWindow *src; | |
6831 | wxObject *dest; | |
6832 | src = (wxScrolledWindow *) ptr; | |
6833 | dest = (wxObject *) src; | |
6834 | return (void *) dest; | |
6835 | } | |
6836 | ||
8ab979d7 | 6837 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6838 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6839 | PyObject * _resultobj; |
6840 | wxScrolledWindow * _result; | |
6841 | wxWindow * _arg0; | |
1d99702e | 6842 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6843 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6844 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6845 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
9a74fcaf | 6846 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6847 | PyObject * _argo0 = 0; |
2f90df85 RD |
6848 | wxPoint temp; |
6849 | PyObject * _obj2 = 0; | |
6850 | wxSize temp0; | |
6851 | PyObject * _obj3 = 0; | |
9a74fcaf | 6852 | PyObject * _obj5 = 0; |
efc5f224 | 6853 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6854 | char _ptemp[128]; |
6855 | ||
6856 | self = self; | |
9a74fcaf | 6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6858 | return NULL; |
1d99702e RD |
6859 | if (_argo0) { |
6860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6863 | return NULL; | |
6864 | } | |
6865 | } | |
2f90df85 RD |
6866 | if (_obj2) |
6867 | { | |
6868 | _arg2 = &temp; | |
6869 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6870 | return NULL; |
2f90df85 RD |
6871 | } |
6872 | if (_obj3) | |
6873 | { | |
6874 | _arg3 = &temp0; | |
6875 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6876 | return NULL; |
9a74fcaf RD |
6877 | } |
6878 | if (_obj5) | |
6879 | { | |
6880 | _arg5 = wxString_in_helper(_obj5); | |
6881 | if (_arg5 == NULL) | |
6882 | return NULL; | |
2f90df85 | 6883 | } |
cf694132 | 6884 | { |
474c48f9 | 6885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6886 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6887 | |
474c48f9 | 6888 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6889 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6890 | } if (_result) { |
6891 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6892 | _resultobj = Py_BuildValue("s",_ptemp); | |
6893 | } else { | |
6894 | Py_INCREF(Py_None); | |
6895 | _resultobj = Py_None; | |
6896 | } | |
9a74fcaf RD |
6897 | { |
6898 | if (_obj5) | |
6899 | delete _arg5; | |
6900 | } | |
8ab979d7 RD |
6901 | return _resultobj; |
6902 | } | |
6903 | ||
aa2a5b86 RD |
6904 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6905 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6906 | PyObject * _resultobj; | |
6907 | wxScrolledWindow * _result; | |
6908 | char *_kwnames[] = { NULL }; | |
6909 | char _ptemp[128]; | |
6910 | ||
6911 | self = self; | |
6912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6913 | return NULL; | |
6914 | { | |
474c48f9 | 6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6916 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
aa2a5b86 | 6917 | |
474c48f9 | 6918 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6919 | if (PyErr_Occurred()) return NULL; |
6920 | } if (_result) { | |
6921 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6922 | _resultobj = Py_BuildValue("s",_ptemp); | |
6923 | } else { | |
6924 | Py_INCREF(Py_None); | |
6925 | _resultobj = Py_None; | |
6926 | } | |
6927 | return _resultobj; | |
6928 | } | |
6929 | ||
6930 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6931 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6932 | PyObject * _resultobj; | |
6933 | bool _result; | |
6934 | wxScrolledWindow * _arg0; | |
6935 | wxWindow * _arg1; | |
6936 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6937 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6938 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6939 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
9a74fcaf | 6940 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
6941 | PyObject * _argo0 = 0; |
6942 | PyObject * _argo1 = 0; | |
6943 | wxPoint temp; | |
6944 | PyObject * _obj3 = 0; | |
6945 | wxSize temp0; | |
6946 | PyObject * _obj4 = 0; | |
9a74fcaf | 6947 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
6948 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6949 | ||
6950 | self = self; | |
9a74fcaf | 6951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
6952 | return NULL; |
6953 | if (_argo0) { | |
6954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6957 | return NULL; | |
6958 | } | |
6959 | } | |
6960 | if (_argo1) { | |
6961 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6962 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6964 | return NULL; | |
6965 | } | |
6966 | } | |
6967 | if (_obj3) | |
6968 | { | |
6969 | _arg3 = &temp; | |
6970 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6971 | return NULL; | |
6972 | } | |
6973 | if (_obj4) | |
6974 | { | |
6975 | _arg4 = &temp0; | |
6976 | if (! wxSize_helper(_obj4, &_arg4)) | |
6977 | return NULL; | |
9a74fcaf RD |
6978 | } |
6979 | if (_obj6) | |
6980 | { | |
6981 | _arg6 = wxString_in_helper(_obj6); | |
6982 | if (_arg6 == NULL) | |
6983 | return NULL; | |
aa2a5b86 RD |
6984 | } |
6985 | { | |
474c48f9 | 6986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6987 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 6988 | |
474c48f9 | 6989 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6990 | if (PyErr_Occurred()) return NULL; |
6991 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
6992 | { |
6993 | if (_obj6) | |
6994 | delete _arg6; | |
6995 | } | |
aa2a5b86 RD |
6996 | return _resultobj; |
6997 | } | |
6998 | ||
8ab979d7 | 6999 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 7000 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7001 | PyObject * _resultobj; |
7002 | wxScrolledWindow * _arg0; | |
7003 | bool _arg1; | |
7004 | bool _arg2; | |
1d99702e | 7005 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7006 | int tempbool1; |
7007 | int tempbool2; | |
efc5f224 | 7008 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
7009 | |
7010 | self = self; | |
efc5f224 | 7011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 7012 | return NULL; |
1d99702e RD |
7013 | if (_argo0) { |
7014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
7017 | return NULL; | |
7018 | } | |
7019 | } | |
7020 | _arg1 = (bool ) tempbool1; | |
7021 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7022 | { |
474c48f9 | 7023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7024 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 7025 | |
474c48f9 | 7026 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7027 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7028 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7029 | _resultobj = Py_None; |
7030 | return _resultobj; | |
7031 | } | |
7032 | ||
b7e72427 RD |
7033 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
7034 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7035 | PyObject * _resultobj; | |
7036 | int _result; | |
7037 | wxScrolledWindow * _arg0; | |
7038 | int _arg1; | |
7039 | PyObject * _argo0 = 0; | |
7040 | char *_kwnames[] = { "self","orient", NULL }; | |
7041 | ||
7042 | self = self; | |
7043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
7044 | return NULL; | |
7045 | if (_argo0) { | |
7046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7049 | return NULL; | |
7050 | } | |
7051 | } | |
7052 | { | |
474c48f9 | 7053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7054 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 7055 | |
474c48f9 | 7056 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7057 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7058 | } _resultobj = Py_BuildValue("i",_result); |
7059 | return _resultobj; | |
7060 | } | |
7061 | ||
8ab979d7 | 7062 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 7063 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7064 | PyObject * _resultobj; |
7065 | wxScrolledWindow * _arg0; | |
7066 | int * _arg1; | |
7067 | int temp; | |
7068 | int * _arg2; | |
7069 | int temp0; | |
1d99702e | 7070 | PyObject * _argo0 = 0; |
efc5f224 | 7071 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7072 | |
7073 | self = self; | |
7074 | { | |
7075 | _arg1 = &temp; | |
7076 | } | |
7077 | { | |
7078 | _arg2 = &temp0; | |
7079 | } | |
efc5f224 | 7080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 7081 | return NULL; |
1d99702e RD |
7082 | if (_argo0) { |
7083 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7084 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7085 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
7086 | return NULL; | |
7087 | } | |
7088 | } | |
cf694132 | 7089 | { |
474c48f9 | 7090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7091 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 7092 | |
474c48f9 | 7093 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7094 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7095 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7096 | _resultobj = Py_None; |
7097 | { | |
7098 | PyObject *o; | |
7099 | o = PyInt_FromLong((long) (*_arg1)); | |
7100 | _resultobj = t_output_helper(_resultobj, o); | |
7101 | } | |
7102 | { | |
7103 | PyObject *o; | |
7104 | o = PyInt_FromLong((long) (*_arg2)); | |
7105 | _resultobj = t_output_helper(_resultobj, o); | |
7106 | } | |
7107 | return _resultobj; | |
7108 | } | |
7109 | ||
b7e72427 RD |
7110 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
7111 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject * _resultobj; | |
7113 | wxWindow * _result; | |
7114 | wxScrolledWindow * _arg0; | |
7115 | PyObject * _argo0 = 0; | |
7116 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
7117 | |
7118 | self = self; | |
7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
7120 | return NULL; | |
7121 | if (_argo0) { | |
7122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
7125 | return NULL; | |
7126 | } | |
7127 | } | |
7128 | { | |
474c48f9 | 7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7130 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 7131 | |
474c48f9 | 7132 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7133 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7134 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
7135 | return _resultobj; |
7136 | } | |
7137 | ||
8ab979d7 | 7138 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 7139 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7140 | PyObject * _resultobj; |
7141 | bool _result; | |
7142 | wxScrolledWindow * _arg0; | |
1d99702e | 7143 | PyObject * _argo0 = 0; |
efc5f224 | 7144 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7145 | |
7146 | self = self; | |
efc5f224 | 7147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 7148 | return NULL; |
1d99702e RD |
7149 | if (_argo0) { |
7150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
7153 | return NULL; | |
7154 | } | |
7155 | } | |
cf694132 | 7156 | { |
474c48f9 | 7157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7158 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 7159 | |
474c48f9 | 7160 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7161 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7162 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7163 | return _resultobj; |
7164 | } | |
7165 | ||
7166 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 7167 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7168 | PyObject * _resultobj; |
7169 | wxScrolledWindow * _arg0; | |
7170 | wxDC * _arg1; | |
1d99702e RD |
7171 | PyObject * _argo0 = 0; |
7172 | PyObject * _argo1 = 0; | |
efc5f224 | 7173 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
7174 | |
7175 | self = self; | |
efc5f224 | 7176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7177 | return NULL; |
1d99702e RD |
7178 | if (_argo0) { |
7179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
7182 | return NULL; | |
7183 | } | |
7184 | } | |
1d99702e RD |
7185 | if (_argo1) { |
7186 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7187 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
7188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
7189 | return NULL; | |
7190 | } | |
7191 | } | |
cf694132 | 7192 | { |
474c48f9 | 7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7194 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 7195 | |
474c48f9 | 7196 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7197 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7198 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7199 | _resultobj = Py_None; |
7200 | return _resultobj; | |
7201 | } | |
7202 | ||
7203 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 7204 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7205 | PyObject * _resultobj; |
7206 | wxScrolledWindow * _arg0; | |
7207 | int _arg1; | |
7208 | int _arg2; | |
1d99702e | 7209 | PyObject * _argo0 = 0; |
efc5f224 | 7210 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7211 | |
7212 | self = self; | |
efc5f224 | 7213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7214 | return NULL; |
1d99702e RD |
7215 | if (_argo0) { |
7216 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7217 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7218 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
7219 | return NULL; | |
7220 | } | |
7221 | } | |
cf694132 | 7222 | { |
474c48f9 | 7223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7224 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 7225 | |
474c48f9 | 7226 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7227 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7228 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7229 | _resultobj = Py_None; |
7230 | return _resultobj; | |
7231 | } | |
7232 | ||
f6bcfd97 | 7233 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7234 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7235 | PyObject * _resultobj; |
7236 | wxScrolledWindow * _arg0; | |
7237 | int _arg1; | |
7238 | int _arg2; | |
7239 | int _arg3; | |
7240 | int _arg4; | |
1d99702e RD |
7241 | int _arg5 = (int ) 0; |
7242 | int _arg6 = (int ) 0; | |
f6bcfd97 | 7243 | int _arg7 = (int ) FALSE; |
1d99702e | 7244 | PyObject * _argo0 = 0; |
f6bcfd97 | 7245 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
7246 | |
7247 | self = self; | |
f6bcfd97 | 7248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 7249 | return NULL; |
1d99702e RD |
7250 | if (_argo0) { |
7251 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7252 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7253 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
7254 | return NULL; | |
7255 | } | |
7256 | } | |
cf694132 | 7257 | { |
474c48f9 | 7258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7259 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 7260 | |
474c48f9 | 7261 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7262 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7263 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7264 | _resultobj = Py_None; |
7265 | return _resultobj; | |
7266 | } | |
7267 | ||
b7e72427 RD |
7268 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
7269 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7270 | PyObject * _resultobj; | |
7271 | wxScrolledWindow * _arg0; | |
7272 | int _arg1; | |
7273 | int _arg2; | |
7274 | PyObject * _argo0 = 0; | |
7275 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
7276 | ||
7277 | self = self; | |
7278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7279 | return NULL; | |
7280 | if (_argo0) { | |
7281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7284 | return NULL; | |
7285 | } | |
7286 | } | |
7287 | { | |
474c48f9 | 7288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7289 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 7290 | |
474c48f9 | 7291 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7292 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7293 | } Py_INCREF(Py_None); |
7294 | _resultobj = Py_None; | |
7295 | return _resultobj; | |
7296 | } | |
7297 | ||
eb715945 RD |
7298 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
7299 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7300 | PyObject * _resultobj; | |
7301 | wxScrolledWindow * _arg0; | |
7302 | wxWindow * _arg1; | |
7303 | PyObject * _argo0 = 0; | |
7304 | PyObject * _argo1 = 0; | |
7305 | char *_kwnames[] = { "self","window", NULL }; | |
7306 | ||
7307 | self = self; | |
7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
7309 | return NULL; | |
7310 | if (_argo0) { | |
7311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
7314 | return NULL; | |
7315 | } | |
7316 | } | |
7317 | if (_argo1) { | |
7318 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7319 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
7321 | return NULL; | |
7322 | } | |
7323 | } | |
7324 | { | |
474c48f9 | 7325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7326 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 7327 | |
474c48f9 | 7328 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7329 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
7330 | } Py_INCREF(Py_None); |
7331 | _resultobj = Py_None; | |
7332 | return _resultobj; | |
7333 | } | |
7334 | ||
4c9993c3 RD |
7335 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
7336 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7337 | PyObject * _resultobj; | |
7338 | wxScrolledWindow * _arg0; | |
7339 | int * _arg1; | |
7340 | int temp; | |
7341 | int * _arg2; | |
7342 | int temp0; | |
7343 | PyObject * _argo0 = 0; | |
7344 | char *_kwnames[] = { "self", NULL }; | |
7345 | ||
7346 | self = self; | |
7347 | { | |
7348 | _arg1 = &temp; | |
7349 | } | |
7350 | { | |
7351 | _arg2 = &temp0; | |
7352 | } | |
7353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
7354 | return NULL; | |
7355 | if (_argo0) { | |
7356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
7359 | return NULL; | |
7360 | } | |
7361 | } | |
7362 | { | |
474c48f9 | 7363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7364 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 7365 | |
474c48f9 | 7366 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7367 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
7368 | } Py_INCREF(Py_None); |
7369 | _resultobj = Py_None; | |
7370 | { | |
7371 | PyObject *o; | |
7372 | o = PyInt_FromLong((long) (*_arg1)); | |
7373 | _resultobj = t_output_helper(_resultobj, o); | |
7374 | } | |
7375 | { | |
7376 | PyObject *o; | |
7377 | o = PyInt_FromLong((long) (*_arg2)); | |
7378 | _resultobj = t_output_helper(_resultobj, o); | |
7379 | } | |
7380 | return _resultobj; | |
7381 | } | |
7382 | ||
a884bee5 RD |
7383 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
7384 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7385 | PyObject * _resultobj; | |
7386 | wxPoint * _result; | |
7387 | wxScrolledWindow * _arg0; | |
7388 | wxPoint * _arg1; | |
7389 | PyObject * _argo0 = 0; | |
7390 | wxPoint temp; | |
7391 | PyObject * _obj1 = 0; | |
7392 | char *_kwnames[] = { "self","pt", NULL }; | |
7393 | char _ptemp[128]; | |
7394 | ||
7395 | self = self; | |
7396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7397 | return NULL; | |
7398 | if (_argo0) { | |
7399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
7402 | return NULL; | |
7403 | } | |
7404 | } | |
7405 | { | |
7406 | _arg1 = &temp; | |
7407 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7408 | return NULL; | |
7409 | } | |
7410 | { | |
7411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7412 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
7413 | ||
7414 | wxPyEndAllowThreads(__tstate); | |
7415 | if (PyErr_Occurred()) return NULL; | |
7416 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7417 | _resultobj = Py_BuildValue("s",_ptemp); | |
7418 | return _resultobj; | |
7419 | } | |
7420 | ||
7421 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7422 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7423 | PyObject * _resultobj; |
7424 | wxScrolledWindow * _arg0; | |
7425 | int _arg1; | |
7426 | int _arg2; | |
7427 | int * _arg3; | |
7428 | int temp; | |
7429 | int * _arg4; | |
7430 | int temp0; | |
7431 | PyObject * _argo0 = 0; | |
7432 | char *_kwnames[] = { "self","x","y", NULL }; | |
7433 | ||
7434 | self = self; | |
7435 | { | |
7436 | _arg3 = &temp; | |
7437 | } | |
7438 | { | |
7439 | _arg4 = &temp0; | |
7440 | } | |
a884bee5 | 7441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7442 | return NULL; |
7443 | if (_argo0) { | |
7444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7447 | return NULL; |
7448 | } | |
7449 | } | |
7450 | { | |
474c48f9 | 7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7452 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7453 | |
474c48f9 | 7454 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7455 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7456 | } Py_INCREF(Py_None); |
7457 | _resultobj = Py_None; | |
7458 | { | |
7459 | PyObject *o; | |
7460 | o = PyInt_FromLong((long) (*_arg3)); | |
7461 | _resultobj = t_output_helper(_resultobj, o); | |
7462 | } | |
7463 | { | |
7464 | PyObject *o; | |
7465 | o = PyInt_FromLong((long) (*_arg4)); | |
7466 | _resultobj = t_output_helper(_resultobj, o); | |
7467 | } | |
7468 | return _resultobj; | |
7469 | } | |
7470 | ||
a884bee5 RD |
7471 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7472 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject * _resultobj; | |
7474 | wxPoint * _result; | |
7475 | wxScrolledWindow * _arg0; | |
7476 | wxPoint * _arg1; | |
7477 | PyObject * _argo0 = 0; | |
7478 | wxPoint temp; | |
7479 | PyObject * _obj1 = 0; | |
7480 | char *_kwnames[] = { "self","pt", NULL }; | |
7481 | char _ptemp[128]; | |
7482 | ||
7483 | self = self; | |
7484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7485 | return NULL; | |
7486 | if (_argo0) { | |
7487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7490 | return NULL; | |
7491 | } | |
7492 | } | |
7493 | { | |
7494 | _arg1 = &temp; | |
7495 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7496 | return NULL; | |
7497 | } | |
7498 | { | |
7499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7500 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7501 | ||
7502 | wxPyEndAllowThreads(__tstate); | |
7503 | if (PyErr_Occurred()) return NULL; | |
7504 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7505 | _resultobj = Py_BuildValue("s",_ptemp); | |
7506 | return _resultobj; | |
7507 | } | |
7508 | ||
7509 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7510 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7511 | PyObject * _resultobj; |
7512 | wxScrolledWindow * _arg0; | |
7513 | int _arg1; | |
7514 | int _arg2; | |
7515 | int * _arg3; | |
7516 | int temp; | |
7517 | int * _arg4; | |
7518 | int temp0; | |
7519 | PyObject * _argo0 = 0; | |
7520 | char *_kwnames[] = { "self","x","y", NULL }; | |
7521 | ||
7522 | self = self; | |
7523 | { | |
7524 | _arg3 = &temp; | |
7525 | } | |
7526 | { | |
7527 | _arg4 = &temp0; | |
7528 | } | |
a884bee5 | 7529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7530 | return NULL; |
7531 | if (_argo0) { | |
7532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 7534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7535 | return NULL; |
7536 | } | |
7537 | } | |
7538 | { | |
474c48f9 | 7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7540 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7541 | |
474c48f9 | 7542 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7543 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7544 | } Py_INCREF(Py_None); |
7545 | _resultobj = Py_None; | |
7546 | { | |
7547 | PyObject *o; | |
7548 | o = PyInt_FromLong((long) (*_arg3)); | |
7549 | _resultobj = t_output_helper(_resultobj, o); | |
7550 | } | |
7551 | { | |
7552 | PyObject *o; | |
7553 | o = PyInt_FromLong((long) (*_arg4)); | |
7554 | _resultobj = t_output_helper(_resultobj, o); | |
7555 | } | |
7556 | return _resultobj; | |
7557 | } | |
7558 | ||
7a446686 RD |
7559 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7560 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7561 | PyObject * _resultobj; | |
7562 | wxScrolledWindow * _arg0; | |
7563 | double _arg1; | |
7564 | double _arg2; | |
7565 | PyObject * _argo0 = 0; | |
7566 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7567 | ||
7568 | self = self; | |
7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7570 | return NULL; | |
7571 | if (_argo0) { | |
7572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7575 | return NULL; | |
7576 | } | |
7577 | } | |
7578 | { | |
474c48f9 | 7579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7580 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
7a446686 | 7581 | |
474c48f9 | 7582 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7583 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7584 | } Py_INCREF(Py_None); |
7585 | _resultobj = Py_None; | |
7586 | return _resultobj; | |
7587 | } | |
7588 | ||
7589 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7590 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7591 | PyObject * _resultobj; | |
7592 | double _result; | |
7593 | wxScrolledWindow * _arg0; | |
7594 | PyObject * _argo0 = 0; | |
7595 | char *_kwnames[] = { "self", NULL }; | |
7596 | ||
7597 | self = self; | |
7598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7599 | return NULL; | |
7600 | if (_argo0) { | |
7601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7604 | return NULL; | |
7605 | } | |
7606 | } | |
7607 | { | |
474c48f9 | 7608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 RD |
7609 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7610 | ||
7611 | wxPyEndAllowThreads(__tstate); | |
7612 | if (PyErr_Occurred()) return NULL; | |
7613 | } _resultobj = Py_BuildValue("d",_result); | |
7614 | return _resultobj; | |
7615 | } | |
7616 | ||
7617 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7618 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7619 | PyObject * _resultobj; | |
7620 | double _result; | |
7621 | wxScrolledWindow * _arg0; | |
7622 | PyObject * _argo0 = 0; | |
7623 | char *_kwnames[] = { "self", NULL }; | |
7624 | ||
7625 | self = self; | |
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7627 | return NULL; | |
7628 | if (_argo0) { | |
7629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7632 | return NULL; | |
7633 | } | |
7634 | } | |
7635 | { | |
7636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7637 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7638 | ||
7639 | wxPyEndAllowThreads(__tstate); | |
7640 | if (PyErr_Occurred()) return NULL; | |
7641 | } _resultobj = Py_BuildValue("d",_result); | |
7642 | return _resultobj; | |
7643 | } | |
7644 | ||
7645 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7646 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7647 | PyObject * _resultobj; | |
7648 | wxScrolledWindow * _arg0; | |
7649 | PyObject * _argo0 = 0; | |
7650 | char *_kwnames[] = { "self", NULL }; | |
7651 | ||
7652 | self = self; | |
7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7654 | return NULL; | |
7655 | if (_argo0) { | |
7656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7659 | return NULL; | |
7660 | } | |
7661 | } | |
7662 | { | |
7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7664 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7665 | ||
7666 | wxPyEndAllowThreads(__tstate); | |
7667 | if (PyErr_Occurred()) return NULL; | |
7668 | } Py_INCREF(Py_None); | |
7669 | _resultobj = Py_None; | |
7670 | return _resultobj; | |
7671 | } | |
7672 | ||
7673 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7674 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7675 | PyObject * _resultobj; | |
7676 | bool _result; | |
7677 | wxScrolledWindow * _arg0; | |
7678 | PyObject * _argo0 = 0; | |
7679 | char *_kwnames[] = { "self", NULL }; | |
7680 | ||
7681 | self = self; | |
7682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7683 | return NULL; | |
7684 | if (_argo0) { | |
7685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7688 | return NULL; | |
7689 | } | |
7690 | } | |
7691 | { | |
7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7693 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7694 | ||
7695 | wxPyEndAllowThreads(__tstate); | |
7696 | if (PyErr_Occurred()) return NULL; | |
7697 | } _resultobj = Py_BuildValue("i",_result); | |
7698 | return _resultobj; | |
7699 | } | |
7700 | ||
8381e4cd RD |
7701 | #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1)) |
7702 | static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7703 | PyObject * _resultobj; | |
7704 | wxScrolledWindow * _arg0; | |
7705 | int _arg1; | |
7706 | int _arg2; | |
7707 | PyObject * _argo0 = 0; | |
7708 | char *_kwnames[] = { "self","xstep","ystep", NULL }; | |
7709 | ||
7710 | self = self; | |
7711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7712 | return NULL; | |
7713 | if (_argo0) { | |
7714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p."); | |
7717 | return NULL; | |
7718 | } | |
7719 | } | |
7720 | { | |
7721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7722 | wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2); | |
7723 | ||
7724 | wxPyEndAllowThreads(__tstate); | |
7725 | if (PyErr_Occurred()) return NULL; | |
7726 | } Py_INCREF(Py_None); | |
7727 | _resultobj = Py_None; | |
7728 | return _resultobj; | |
7729 | } | |
7730 | ||
a884bee5 RD |
7731 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7732 | wxMenu *src; | |
7733 | wxEvtHandler *dest; | |
7734 | src = (wxMenu *) ptr; | |
7735 | dest = (wxEvtHandler *) src; | |
7736 | return (void *) dest; | |
7737 | } | |
7738 | ||
7739 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7740 | wxMenu *src; | |
7741 | wxObject *dest; | |
7742 | src = (wxMenu *) ptr; | |
7743 | dest = (wxObject *) src; | |
7744 | return (void *) dest; | |
7745 | } | |
7746 | ||
7747 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7748 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7749 | PyObject * _resultobj; | |
7750 | wxMenu * _result; | |
9a74fcaf | 7751 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7752 | long _arg1 = (long ) 0; |
7753 | PyObject * _obj0 = 0; | |
7754 | char *_kwnames[] = { "title","style", NULL }; | |
7755 | char _ptemp[128]; | |
7756 | ||
7757 | self = self; | |
7758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7759 | return NULL; | |
7760 | if (_obj0) | |
7761 | { | |
7762 | _arg0 = wxString_in_helper(_obj0); | |
7763 | if (_arg0 == NULL) | |
7764 | return NULL; | |
7765 | } | |
7766 | { | |
7767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7768 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7769 | ||
7770 | wxPyEndAllowThreads(__tstate); | |
7771 | if (PyErr_Occurred()) return NULL; | |
7772 | } if (_result) { | |
7773 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7774 | _resultobj = Py_BuildValue("s",_ptemp); | |
7775 | } else { | |
7776 | Py_INCREF(Py_None); | |
7777 | _resultobj = Py_None; | |
7778 | } | |
7779 | { | |
7780 | if (_obj0) | |
7781 | delete _arg0; | |
7782 | } | |
7783 | return _resultobj; | |
7784 | } | |
7785 | ||
7786 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7787 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7788 | PyObject * _resultobj; | |
7789 | wxMenu * _arg0; | |
7790 | int _arg1; | |
7791 | wxString * _arg2; | |
9a74fcaf | 7792 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7793 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
7794 | PyObject * _argo0 = 0; |
7795 | PyObject * _obj2 = 0; | |
7796 | PyObject * _obj3 = 0; | |
7797 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7798 | ||
7799 | self = self; | |
7800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7801 | return NULL; | |
7802 | if (_argo0) { | |
7803 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7804 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7805 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7806 | return NULL; | |
7807 | } | |
7808 | } | |
7809 | { | |
7810 | _arg2 = wxString_in_helper(_obj2); | |
7811 | if (_arg2 == NULL) | |
7812 | return NULL; | |
7813 | } | |
7814 | if (_obj3) | |
7815 | { | |
7816 | _arg3 = wxString_in_helper(_obj3); | |
7817 | if (_arg3 == NULL) | |
7818 | return NULL; | |
7819 | } | |
7820 | { | |
7821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7822 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7823 | ||
7824 | wxPyEndAllowThreads(__tstate); | |
7825 | if (PyErr_Occurred()) return NULL; | |
7826 | } Py_INCREF(Py_None); | |
7827 | _resultobj = Py_None; | |
7828 | { | |
7829 | if (_obj2) | |
7830 | delete _arg2; | |
7831 | } | |
7832 | { | |
7833 | if (_obj3) | |
7834 | delete _arg3; | |
7835 | } | |
7836 | return _resultobj; | |
7837 | } | |
7838 | ||
7839 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7840 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7841 | PyObject * _resultobj; | |
7842 | wxMenu * _arg0; | |
7843 | int _arg1; | |
7844 | wxString * _arg2; | |
7845 | wxMenu * _arg3; | |
9a74fcaf | 7846 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7847 | PyObject * _argo0 = 0; |
7848 | PyObject * _obj2 = 0; | |
7849 | PyObject * _argo3 = 0; | |
7850 | PyObject * _obj4 = 0; | |
7851 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7852 | ||
7853 | self = self; | |
7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7855 | return NULL; | |
7856 | if (_argo0) { | |
7857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7860 | return NULL; | |
7861 | } | |
7862 | } | |
7863 | { | |
7864 | _arg2 = wxString_in_helper(_obj2); | |
7865 | if (_arg2 == NULL) | |
7866 | return NULL; | |
7867 | } | |
7868 | if (_argo3) { | |
7869 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7870 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7872 | return NULL; | |
7873 | } | |
7874 | } | |
7875 | if (_obj4) | |
7876 | { | |
7877 | _arg4 = wxString_in_helper(_obj4); | |
7878 | if (_arg4 == NULL) | |
7879 | return NULL; | |
7880 | } | |
7881 | { | |
7882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7883 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7884 | ||
7885 | wxPyEndAllowThreads(__tstate); | |
7886 | if (PyErr_Occurred()) return NULL; | |
7887 | } Py_INCREF(Py_None); | |
7888 | _resultobj = Py_None; | |
7889 | { | |
7890 | if (_obj2) | |
7891 | delete _arg2; | |
7892 | } | |
7893 | { | |
7894 | if (_obj4) | |
7895 | delete _arg4; | |
7896 | } | |
7897 | return _resultobj; | |
7898 | } | |
7899 | ||
7900 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7901 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7902 | PyObject * _resultobj; | |
7903 | wxMenu * _arg0; | |
7904 | wxMenuItem * _arg1; | |
7905 | PyObject * _argo0 = 0; | |
7906 | PyObject * _argo1 = 0; | |
7907 | char *_kwnames[] = { "self","item", NULL }; | |
7908 | ||
7909 | self = self; | |
7910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7911 | return NULL; | |
7912 | if (_argo0) { | |
7913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7916 | return NULL; | |
7917 | } | |
7918 | } | |
7919 | if (_argo1) { | |
7920 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7921 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7923 | return NULL; | |
7924 | } | |
7925 | } | |
7926 | { | |
7927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7928 | wxMenu_AppendItem(_arg0,_arg1); | |
7929 | ||
7930 | wxPyEndAllowThreads(__tstate); | |
7931 | if (PyErr_Occurred()) return NULL; | |
7932 | } Py_INCREF(Py_None); | |
7933 | _resultobj = Py_None; | |
7934 | return _resultobj; | |
7935 | } | |
7936 | ||
7937 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
7938 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7939 | PyObject * _resultobj; | |
7940 | wxMenu * _arg0; | |
7941 | int _arg1; | |
7942 | wxString * _arg2; | |
9a74fcaf | 7943 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7944 | PyObject * _argo0 = 0; |
7945 | PyObject * _obj2 = 0; | |
7946 | PyObject * _obj3 = 0; | |
7947 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7948 | ||
7949 | self = self; | |
7950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7951 | return NULL; | |
7952 | if (_argo0) { | |
7953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
7956 | return NULL; | |
7957 | } | |
7958 | } | |
7959 | { | |
7960 | _arg2 = wxString_in_helper(_obj2); | |
7961 | if (_arg2 == NULL) | |
7962 | return NULL; | |
7963 | } | |
7964 | if (_obj3) | |
7965 | { | |
7966 | _arg3 = wxString_in_helper(_obj3); | |
7967 | if (_arg3 == NULL) | |
7968 | return NULL; | |
7969 | } | |
7970 | { | |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) return NULL; | |
7976 | } Py_INCREF(Py_None); | |
7977 | _resultobj = Py_None; | |
7978 | { | |
7979 | if (_obj2) | |
7980 | delete _arg2; | |
7981 | } | |
7982 | { | |
7983 | if (_obj3) | |
7984 | delete _arg3; | |
7985 | } | |
7986 | return _resultobj; | |
7987 | } | |
7988 | ||
7989 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
7990 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7991 | PyObject * _resultobj; | |
7992 | wxMenu * _arg0; | |
7993 | int _arg1; | |
7994 | wxString * _arg2; | |
9a74fcaf | 7995 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7996 | PyObject * _argo0 = 0; |
7997 | PyObject * _obj2 = 0; | |
7998 | PyObject * _obj3 = 0; | |
7999 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8000 | ||
8001 | self = self; | |
8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
8003 | return NULL; | |
8004 | if (_argo0) { | |
8005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
8008 | return NULL; | |
8009 | } | |
8010 | } | |
8011 | { | |
8012 | _arg2 = wxString_in_helper(_obj2); | |
8013 | if (_arg2 == NULL) | |
8014 | return NULL; | |
8015 | } | |
8016 | if (_obj3) | |
8017 | { | |
8018 | _arg3 = wxString_in_helper(_obj3); | |
8019 | if (_arg3 == NULL) | |
8020 | return NULL; | |
8021 | } | |
8022 | { | |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) return NULL; | |
8028 | } Py_INCREF(Py_None); | |
8029 | _resultobj = Py_None; | |
8030 | { | |
8031 | if (_obj2) | |
8032 | delete _arg2; | |
8033 | } | |
8034 | { | |
8035 | if (_obj3) | |
8036 | delete _arg3; | |
8037 | } | |
8038 | return _resultobj; | |
8039 | } | |
8040 | ||
8041 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
8042 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject * _resultobj; | |
8044 | wxMenu * _arg0; | |
8045 | PyObject * _argo0 = 0; | |
8046 | char *_kwnames[] = { "self", NULL }; | |
8047 | ||
8048 | self = self; | |
8049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
8050 | return NULL; | |
8051 | if (_argo0) { | |
8052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
8055 | return NULL; | |
8056 | } | |
8057 | } | |
8058 | { | |
8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8060 | wxMenu_AppendSeparator(_arg0); | |
8061 | ||
8062 | wxPyEndAllowThreads(__tstate); | |
8063 | if (PyErr_Occurred()) return NULL; | |
8064 | } Py_INCREF(Py_None); | |
8065 | _resultobj = Py_None; | |
8066 | return _resultobj; | |
8067 | } | |
8068 | ||
8069 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8070 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8071 | PyObject * _resultobj; | |
8072 | wxMenu * _arg0; | |
8073 | size_t _arg1; | |
8074 | int _arg2; | |
8075 | wxString * _arg3; | |
9a74fcaf | 8076 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
546bfbea | 8077 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
8078 | PyObject * _argo0 = 0; |
8079 | PyObject * _obj3 = 0; | |
8080 | PyObject * _obj4 = 0; | |
8081 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
8082 | ||
8083 | self = self; | |
8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
8085 | return NULL; | |
8086 | if (_argo0) { | |
8087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
8090 | return NULL; | |
8091 | } | |
8092 | } | |
8093 | { | |
8094 | _arg3 = wxString_in_helper(_obj3); | |
8095 | if (_arg3 == NULL) | |
8096 | return NULL; | |
8097 | } | |
8098 | if (_obj4) | |
8099 | { | |
8100 | _arg4 = wxString_in_helper(_obj4); | |
8101 | if (_arg4 == NULL) | |
8102 | return NULL; | |
8103 | } | |
8104 | { | |
8105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8106 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
8107 | ||
8108 | wxPyEndAllowThreads(__tstate); | |
8109 | if (PyErr_Occurred()) return NULL; | |
8110 | } Py_INCREF(Py_None); | |
8111 | _resultobj = Py_None; | |
8112 | { | |
8113 | if (_obj3) | |
8114 | delete _arg3; | |
8115 | } | |
8116 | { | |
8117 | if (_obj4) | |
8118 | delete _arg4; | |
8119 | } | |
8120 | return _resultobj; | |
8121 | } | |
8122 | ||
8123 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
8124 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8125 | PyObject * _resultobj; | |
8126 | wxMenu * _arg0; | |
8127 | size_t _arg1; | |
8128 | PyObject * _argo0 = 0; | |
8129 | char *_kwnames[] = { "self","pos", NULL }; | |
8130 | ||
8131 | self = self; | |
8132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
8133 | return NULL; | |
8134 | if (_argo0) { | |
8135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
8138 | return NULL; | |
8139 | } | |
8140 | } | |
8141 | { | |
8142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8143 | wxMenu_InsertSeparator(_arg0,_arg1); | |
8144 | ||
8145 | wxPyEndAllowThreads(__tstate); | |
8146 | if (PyErr_Occurred()) return NULL; | |
8147 | } Py_INCREF(Py_None); | |
8148 | _resultobj = Py_None; | |
8149 | return _resultobj; | |
8150 | } | |
8151 | ||
8152 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8153 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8154 | PyObject * _resultobj; | |
8155 | wxMenu * _arg0; | |
8156 | size_t _arg1; | |
8157 | int _arg2; | |
8158 | wxString * _arg3; | |
9a74fcaf | 8159 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8160 | PyObject * _argo0 = 0; |
8161 | PyObject * _obj3 = 0; | |
8162 | PyObject * _obj4 = 0; | |
8163 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8164 | ||
8165 | self = self; | |
8166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8167 | return NULL; | |
8168 | if (_argo0) { | |
8169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
8172 | return NULL; | |
8173 | } | |
8174 | } | |
8175 | { | |
8176 | _arg3 = wxString_in_helper(_obj3); | |
8177 | if (_arg3 == NULL) | |
8178 | return NULL; | |
8179 | } | |
8180 | if (_obj4) | |
8181 | { | |
8182 | _arg4 = wxString_in_helper(_obj4); | |
8183 | if (_arg4 == NULL) | |
8184 | return NULL; | |
8185 | } | |
8186 | { | |
8187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8188 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8189 | ||
8190 | wxPyEndAllowThreads(__tstate); | |
8191 | if (PyErr_Occurred()) return NULL; | |
8192 | } Py_INCREF(Py_None); | |
8193 | _resultobj = Py_None; | |
8194 | { | |
8195 | if (_obj3) | |
8196 | delete _arg3; | |
8197 | } | |
8198 | { | |
8199 | if (_obj4) | |
8200 | delete _arg4; | |
8201 | } | |
8202 | return _resultobj; | |
8203 | } | |
8204 | ||
8205 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8206 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8207 | PyObject * _resultobj; | |
8208 | wxMenu * _arg0; | |
8209 | size_t _arg1; | |
8210 | int _arg2; | |
8211 | wxString * _arg3; | |
9a74fcaf | 8212 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8213 | PyObject * _argo0 = 0; |
8214 | PyObject * _obj3 = 0; | |
8215 | PyObject * _obj4 = 0; | |
8216 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8217 | ||
8218 | self = self; | |
8219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
8220 | return NULL; | |
8221 | if (_argo0) { | |
8222 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8223 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8224 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
8225 | return NULL; | |
8226 | } | |
8227 | } | |
8228 | { | |
8229 | _arg3 = wxString_in_helper(_obj3); | |
8230 | if (_arg3 == NULL) | |
8231 | return NULL; | |
8232 | } | |
8233 | if (_obj4) | |
8234 | { | |
8235 | _arg4 = wxString_in_helper(_obj4); | |
8236 | if (_arg4 == NULL) | |
8237 | return NULL; | |
8238 | } | |
8239 | { | |
8240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8241 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8242 | ||
8243 | wxPyEndAllowThreads(__tstate); | |
8244 | if (PyErr_Occurred()) return NULL; | |
8245 | } Py_INCREF(Py_None); | |
8246 | _resultobj = Py_None; | |
8247 | { | |
8248 | if (_obj3) | |
8249 | delete _arg3; | |
8250 | } | |
8251 | { | |
8252 | if (_obj4) | |
8253 | delete _arg4; | |
8254 | } | |
8255 | return _resultobj; | |
8256 | } | |
8257 | ||
8258 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8259 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8260 | PyObject * _resultobj; | |
8261 | wxMenu * _arg0; | |
8262 | size_t _arg1; | |
8263 | int _arg2; | |
8264 | wxString * _arg3; | |
8265 | wxMenu * _arg4; | |
9a74fcaf | 8266 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8267 | PyObject * _argo0 = 0; |
8268 | PyObject * _obj3 = 0; | |
8269 | PyObject * _argo4 = 0; | |
8270 | PyObject * _obj5 = 0; | |
8271 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
8272 | ||
8273 | self = self; | |
8274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
8275 | return NULL; | |
8276 | if (_argo0) { | |
8277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8280 | return NULL; | |
8281 | } | |
8282 | } | |
8283 | { | |
8284 | _arg3 = wxString_in_helper(_obj3); | |
8285 | if (_arg3 == NULL) | |
8286 | return NULL; | |
8287 | } | |
8288 | if (_argo4) { | |
8289 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8290 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
8291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8292 | return NULL; | |
8293 | } | |
8294 | } | |
8295 | if (_obj5) | |
8296 | { | |
8297 | _arg5 = wxString_in_helper(_obj5); | |
8298 | if (_arg5 == NULL) | |
8299 | return NULL; | |
8300 | } | |
8301 | { | |
8302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8303 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
7a446686 | 8304 | |
474c48f9 | 8305 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8306 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
8307 | } Py_INCREF(Py_None); |
8308 | _resultobj = Py_None; | |
8309 | { | |
8310 | if (_obj3) | |
8311 | delete _arg3; | |
8312 | } | |
8313 | { | |
8314 | if (_obj5) | |
8315 | delete _arg5; | |
8316 | } | |
7a446686 RD |
8317 | return _resultobj; |
8318 | } | |
8319 | ||
a884bee5 RD |
8320 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8321 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 8322 | PyObject * _resultobj; |
a884bee5 RD |
8323 | bool _result; |
8324 | wxMenu * _arg0; | |
8325 | size_t _arg1; | |
8326 | wxMenuItem * _arg2; | |
7a446686 | 8327 | PyObject * _argo0 = 0; |
a884bee5 RD |
8328 | PyObject * _argo2 = 0; |
8329 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7a446686 RD |
8330 | |
8331 | self = self; | |
a884bee5 | 8332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
7a446686 RD |
8333 | return NULL; |
8334 | if (_argo0) { | |
8335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
8338 | return NULL; | |
8339 | } | |
8340 | } | |
8341 | if (_argo2) { | |
8342 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8343 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
7a446686 RD |
8345 | return NULL; |
8346 | } | |
8347 | } | |
8348 | { | |
474c48f9 | 8349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8350 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
7a446686 | 8351 | |
474c48f9 | 8352 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8353 | if (PyErr_Occurred()) return NULL; |
a884bee5 | 8354 | } _resultobj = Py_BuildValue("i",_result); |
7a446686 RD |
8355 | return _resultobj; |
8356 | } | |
8357 | ||
a884bee5 RD |
8358 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8359 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 8360 | PyObject * _resultobj; |
a884bee5 RD |
8361 | wxMenu * _arg0; |
8362 | int _arg1; | |
8363 | wxString * _arg2; | |
9a74fcaf | 8364 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 8365 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
7a446686 | 8366 | PyObject * _argo0 = 0; |
a884bee5 RD |
8367 | PyObject * _obj2 = 0; |
8368 | PyObject * _obj3 = 0; | |
8369 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
7a446686 RD |
8370 | |
8371 | self = self; | |
a884bee5 | 8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
7a446686 RD |
8373 | return NULL; |
8374 | if (_argo0) { | |
8375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
7a446686 RD |
8378 | return NULL; |
8379 | } | |
8380 | } | |
a884bee5 RD |
8381 | { |
8382 | _arg2 = wxString_in_helper(_obj2); | |
8383 | if (_arg2 == NULL) | |
8384 | return NULL; | |
8385 | } | |
8386 | if (_obj3) | |
8387 | { | |
8388 | _arg3 = wxString_in_helper(_obj3); | |
8389 | if (_arg3 == NULL) | |
8390 | return NULL; | |
8391 | } | |
7a446686 | 8392 | { |
474c48f9 | 8393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8394 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
7a446686 | 8395 | |
474c48f9 | 8396 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8397 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
8398 | } Py_INCREF(Py_None); |
8399 | _resultobj = Py_None; | |
a884bee5 RD |
8400 | { |
8401 | if (_obj2) | |
8402 | delete _arg2; | |
8403 | } | |
8404 | { | |
8405 | if (_obj3) | |
8406 | delete _arg3; | |
8407 | } | |
7a446686 RD |
8408 | return _resultobj; |
8409 | } | |
8410 | ||
a884bee5 RD |
8411 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
8412 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
49df1f52 | 8413 | PyObject * _resultobj; |
a884bee5 | 8414 | wxMenu * _arg0; |
49df1f52 RD |
8415 | PyObject * _argo0 = 0; |
8416 | char *_kwnames[] = { "self", NULL }; | |
8417 | ||
8418 | self = self; | |
a884bee5 | 8419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
49df1f52 RD |
8420 | return NULL; |
8421 | if (_argo0) { | |
8422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
49df1f52 RD |
8425 | return NULL; |
8426 | } | |
8427 | } | |
8428 | { | |
8429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a884bee5 | 8430 | wxMenu_PrependSeparator(_arg0); |
49df1f52 RD |
8431 | |
8432 | wxPyEndAllowThreads(__tstate); | |
8433 | if (PyErr_Occurred()) return NULL; | |
a884bee5 RD |
8434 | } Py_INCREF(Py_None); |
8435 | _resultobj = Py_None; | |
49df1f52 RD |
8436 | return _resultobj; |
8437 | } | |
8438 | ||
a884bee5 RD |
8439 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
8440 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8441 | PyObject * _resultobj; |
a884bee5 RD |
8442 | wxMenu * _arg0; |
8443 | int _arg1; | |
8444 | wxString * _arg2; | |
9a74fcaf | 8445 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8446 | PyObject * _argo0 = 0; |
8447 | PyObject * _obj2 = 0; | |
8448 | PyObject * _obj3 = 0; | |
8449 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
8450 | |
8451 | self = self; | |
a884bee5 | 8452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8453 | return NULL; |
a884bee5 RD |
8454 | if (_argo0) { |
8455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
8458 | return NULL; | |
8459 | } | |
8460 | } | |
8ab979d7 | 8461 | { |
a884bee5 RD |
8462 | _arg2 = wxString_in_helper(_obj2); |
8463 | if (_arg2 == NULL) | |
8464 | return NULL; | |
8465 | } | |
8466 | if (_obj3) | |
8467 | { | |
8468 | _arg3 = wxString_in_helper(_obj3); | |
8469 | if (_arg3 == NULL) | |
2cd2fac8 | 8470 | return NULL; |
8ab979d7 | 8471 | } |
cf694132 | 8472 | { |
474c48f9 | 8473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8474 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8475 | |
474c48f9 | 8476 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8477 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
8478 | } Py_INCREF(Py_None); |
8479 | _resultobj = Py_None; | |
8ab979d7 | 8480 | { |
a884bee5 RD |
8481 | if (_obj2) |
8482 | delete _arg2; | |
8483 | } | |
8484 | { | |
8485 | if (_obj3) | |
8486 | delete _arg3; | |
8ab979d7 RD |
8487 | } |
8488 | return _resultobj; | |
8489 | } | |
8490 | ||
a884bee5 RD |
8491 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
8492 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8493 | PyObject * _resultobj; |
8494 | wxMenu * _arg0; | |
8495 | int _arg1; | |
8496 | wxString * _arg2; | |
9a74fcaf | 8497 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
1d99702e | 8498 | PyObject * _argo0 = 0; |
8ab979d7 RD |
8499 | PyObject * _obj2 = 0; |
8500 | PyObject * _obj3 = 0; | |
a884bee5 | 8501 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8502 | |
8503 | self = self; | |
a884bee5 | 8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8505 | return NULL; |
1d99702e RD |
8506 | if (_argo0) { |
8507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8510 | return NULL; |
8511 | } | |
8512 | } | |
8513 | { | |
c8bc7bb8 RD |
8514 | _arg2 = wxString_in_helper(_obj2); |
8515 | if (_arg2 == NULL) | |
8ab979d7 | 8516 | return NULL; |
8ab979d7 RD |
8517 | } |
8518 | if (_obj3) | |
8519 | { | |
c8bc7bb8 RD |
8520 | _arg3 = wxString_in_helper(_obj3); |
8521 | if (_arg3 == NULL) | |
8ab979d7 | 8522 | return NULL; |
8ab979d7 | 8523 | } |
cf694132 | 8524 | { |
474c48f9 | 8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8526 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8527 | |
474c48f9 | 8528 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8529 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8530 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8531 | _resultobj = Py_None; |
8532 | { | |
8533 | if (_obj2) | |
8534 | delete _arg2; | |
8535 | } | |
8536 | { | |
8537 | if (_obj3) | |
8538 | delete _arg3; | |
8539 | } | |
8540 | return _resultobj; | |
8541 | } | |
8542 | ||
a884bee5 RD |
8543 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8544 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8545 | PyObject * _resultobj; |
8546 | wxMenu * _arg0; | |
8547 | int _arg1; | |
8548 | wxString * _arg2; | |
8549 | wxMenu * _arg3; | |
9a74fcaf | 8550 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
1d99702e | 8551 | PyObject * _argo0 = 0; |
8ab979d7 | 8552 | PyObject * _obj2 = 0; |
1d99702e | 8553 | PyObject * _argo3 = 0; |
8ab979d7 | 8554 | PyObject * _obj4 = 0; |
a884bee5 | 8555 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8556 | |
8557 | self = self; | |
a884bee5 | 8558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8559 | return NULL; |
1d99702e RD |
8560 | if (_argo0) { |
8561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8564 | return NULL; |
8565 | } | |
8566 | } | |
8567 | { | |
c8bc7bb8 RD |
8568 | _arg2 = wxString_in_helper(_obj2); |
8569 | if (_arg2 == NULL) | |
2cd2fac8 | 8570 | return NULL; |
8ab979d7 | 8571 | } |
1d99702e RD |
8572 | if (_argo3) { |
8573 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8574 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
a884bee5 | 8575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8576 | return NULL; |
8577 | } | |
8578 | } | |
8579 | if (_obj4) | |
8580 | { | |
c8bc7bb8 RD |
8581 | _arg4 = wxString_in_helper(_obj4); |
8582 | if (_arg4 == NULL) | |
2cd2fac8 | 8583 | return NULL; |
8ab979d7 | 8584 | } |
cf694132 | 8585 | { |
474c48f9 | 8586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8587 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8588 | |
474c48f9 | 8589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8590 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8591 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8592 | _resultobj = Py_None; |
8593 | { | |
8594 | if (_obj2) | |
8595 | delete _arg2; | |
8596 | } | |
8597 | { | |
8598 | if (_obj4) | |
8599 | delete _arg4; | |
8600 | } | |
8601 | return _resultobj; | |
8602 | } | |
8603 | ||
a884bee5 RD |
8604 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8605 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8606 | PyObject * _resultobj; |
8607 | wxMenu * _arg0; | |
8608 | wxMenuItem * _arg1; | |
1d99702e RD |
8609 | PyObject * _argo0 = 0; |
8610 | PyObject * _argo1 = 0; | |
efc5f224 | 8611 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8612 | |
8613 | self = self; | |
a884bee5 | 8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8615 | return NULL; |
1d99702e RD |
8616 | if (_argo0) { |
8617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8620 | return NULL; |
8621 | } | |
8622 | } | |
1d99702e RD |
8623 | if (_argo1) { |
8624 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8625 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
a884bee5 | 8626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8627 | return NULL; |
8628 | } | |
8629 | } | |
cf694132 | 8630 | { |
474c48f9 | 8631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8632 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8633 | |
474c48f9 | 8634 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8635 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8636 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8637 | _resultobj = Py_None; |
8638 | return _resultobj; | |
8639 | } | |
8640 | ||
8641 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8642 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8643 | PyObject * _resultobj; |
8644 | wxMenu * _arg0; | |
1d99702e | 8645 | PyObject * _argo0 = 0; |
efc5f224 | 8646 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8647 | |
8648 | self = self; | |
efc5f224 | 8649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8650 | return NULL; |
1d99702e RD |
8651 | if (_argo0) { |
8652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8655 | return NULL; | |
8656 | } | |
8657 | } | |
cf694132 | 8658 | { |
474c48f9 | 8659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8660 | wxMenu_Break(_arg0); |
cf694132 | 8661 | |
474c48f9 | 8662 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8663 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8664 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8665 | _resultobj = Py_None; |
8666 | return _resultobj; | |
8667 | } | |
8668 | ||
8669 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8670 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8671 | PyObject * _resultobj; |
8672 | wxMenu * _arg0; | |
8673 | int _arg1; | |
8674 | bool _arg2; | |
1d99702e | 8675 | PyObject * _argo0 = 0; |
8ab979d7 | 8676 | int tempbool2; |
efc5f224 | 8677 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8678 | |
8679 | self = self; | |
efc5f224 | 8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8681 | return NULL; |
1d99702e RD |
8682 | if (_argo0) { |
8683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
8686 | return NULL; | |
8687 | } | |
8688 | } | |
8689 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8690 | { |
474c48f9 | 8691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8692 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8693 | |
474c48f9 | 8694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8695 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8696 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8697 | _resultobj = Py_None; |
8698 | return _resultobj; | |
8699 | } | |
8700 | ||
b1462dfa RD |
8701 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8702 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8703 | PyObject * _resultobj; | |
8704 | bool _result; | |
8705 | wxMenu * _arg0; | |
8706 | int _arg1; | |
8707 | PyObject * _argo0 = 0; | |
8708 | char *_kwnames[] = { "self","id", NULL }; | |
8709 | ||
8710 | self = self; | |
8711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8712 | return NULL; | |
8713 | if (_argo0) { | |
8714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8717 | return NULL; | |
8718 | } | |
8719 | } | |
8720 | { | |
474c48f9 | 8721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8722 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8723 | |
474c48f9 | 8724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8725 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8726 | } _resultobj = Py_BuildValue("i",_result); |
8727 | return _resultobj; | |
8728 | } | |
8729 | ||
8ab979d7 | 8730 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8731 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8732 | PyObject * _resultobj; |
8733 | wxMenu * _arg0; | |
8734 | int _arg1; | |
8735 | bool _arg2; | |
1d99702e | 8736 | PyObject * _argo0 = 0; |
8ab979d7 | 8737 | int tempbool2; |
efc5f224 | 8738 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8739 | |
8740 | self = self; | |
efc5f224 | 8741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8742 | return NULL; |
1d99702e RD |
8743 | if (_argo0) { |
8744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8747 | return NULL; | |
8748 | } | |
8749 | } | |
8750 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8751 | { |
474c48f9 | 8752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8753 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8754 | |
474c48f9 | 8755 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8756 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8757 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8758 | _resultobj = Py_None; |
8759 | return _resultobj; | |
8760 | } | |
8761 | ||
b1462dfa RD |
8762 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8763 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8764 | PyObject * _resultobj; | |
8765 | bool _result; | |
8766 | wxMenu * _arg0; | |
8767 | int _arg1; | |
8768 | PyObject * _argo0 = 0; | |
8769 | char *_kwnames[] = { "self","id", NULL }; | |
8770 | ||
8771 | self = self; | |
8772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8773 | return NULL; | |
8774 | if (_argo0) { | |
8775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8778 | return NULL; | |
8779 | } | |
8780 | } | |
8781 | { | |
474c48f9 | 8782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8783 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8784 | |
474c48f9 | 8785 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8786 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8787 | } _resultobj = Py_BuildValue("i",_result); |
8788 | return _resultobj; | |
8789 | } | |
8790 | ||
8ab979d7 | 8791 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 8792 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8793 | PyObject * _resultobj; |
8794 | int _result; | |
8795 | wxMenu * _arg0; | |
8796 | wxString * _arg1; | |
1d99702e | 8797 | PyObject * _argo0 = 0; |
8ab979d7 | 8798 | PyObject * _obj1 = 0; |
efc5f224 | 8799 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
8800 | |
8801 | self = self; | |
efc5f224 | 8802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8803 | return NULL; |
1d99702e RD |
8804 | if (_argo0) { |
8805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
8808 | return NULL; | |
8809 | } | |
8810 | } | |
8811 | { | |
c8bc7bb8 RD |
8812 | _arg1 = wxString_in_helper(_obj1); |
8813 | if (_arg1 == NULL) | |
2cd2fac8 | 8814 | return NULL; |
8ab979d7 | 8815 | } |
cf694132 | 8816 | { |
474c48f9 | 8817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8818 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 8819 | |
474c48f9 | 8820 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8821 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8822 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8823 | { |
8824 | if (_obj1) | |
8825 | delete _arg1; | |
8826 | } | |
8827 | return _resultobj; | |
8828 | } | |
8829 | ||
b1462dfa RD |
8830 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
8831 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8832 | PyObject * _resultobj; | |
8833 | wxMenuItem * _result; | |
8834 | wxMenu * _arg0; | |
8835 | int _arg1; | |
8836 | PyObject * _argo0 = 0; | |
8837 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8838 | |
8839 | self = self; | |
8840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8841 | return NULL; | |
8842 | if (_argo0) { | |
8843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8846 | return NULL; | |
8847 | } | |
8848 | } | |
8849 | { | |
474c48f9 | 8850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8851 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 8852 | |
474c48f9 | 8853 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8854 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8855 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
8856 | return _resultobj; |
8857 | } | |
8858 | ||
8ab979d7 | 8859 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 8860 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8861 | PyObject * _resultobj; |
8862 | wxString * _result; | |
8863 | wxMenu * _arg0; | |
1d99702e | 8864 | PyObject * _argo0 = 0; |
efc5f224 | 8865 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8866 | |
8867 | self = self; | |
efc5f224 | 8868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 8869 | return NULL; |
1d99702e RD |
8870 | if (_argo0) { |
8871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
8874 | return NULL; | |
8875 | } | |
8876 | } | |
8ab979d7 | 8877 | { |
474c48f9 | 8878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8879 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 8880 | |
474c48f9 | 8881 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8882 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8883 | }{ |
c8bc7bb8 RD |
8884 | #if wxUSE_UNICODE |
8885 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8886 | #else | |
eec92d76 | 8887 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8888 | #endif |
8ab979d7 RD |
8889 | } |
8890 | { | |
8891 | delete _result; | |
8892 | } | |
8893 | return _resultobj; | |
8894 | } | |
8895 | ||
8896 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 8897 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8898 | PyObject * _resultobj; |
8899 | wxMenu * _arg0; | |
8900 | wxString * _arg1; | |
1d99702e | 8901 | PyObject * _argo0 = 0; |
8ab979d7 | 8902 | PyObject * _obj1 = 0; |
efc5f224 | 8903 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
8904 | |
8905 | self = self; | |
efc5f224 | 8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8907 | return NULL; |
1d99702e RD |
8908 | if (_argo0) { |
8909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
8912 | return NULL; | |
8913 | } | |
8914 | } | |
8915 | { | |
c8bc7bb8 RD |
8916 | _arg1 = wxString_in_helper(_obj1); |
8917 | if (_arg1 == NULL) | |
2cd2fac8 | 8918 | return NULL; |
8ab979d7 | 8919 | } |
cf694132 | 8920 | { |
474c48f9 | 8921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8922 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 8923 | |
474c48f9 | 8924 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8925 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8926 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8927 | _resultobj = Py_None; |
8928 | { | |
8929 | if (_obj1) | |
8930 | delete _arg1; | |
8931 | } | |
8932 | return _resultobj; | |
8933 | } | |
8934 | ||
b1462dfa RD |
8935 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8936 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8937 | PyObject * _resultobj; |
b1462dfa | 8938 | wxString * _result; |
8ab979d7 RD |
8939 | wxMenu * _arg0; |
8940 | int _arg1; | |
1d99702e | 8941 | PyObject * _argo0 = 0; |
efc5f224 | 8942 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8943 | |
8944 | self = self; | |
b1462dfa | 8945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8946 | return NULL; |
1d99702e RD |
8947 | if (_argo0) { |
8948 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8949 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8950 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8951 | return NULL; |
8952 | } | |
8953 | } | |
cf694132 | 8954 | { |
474c48f9 | 8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8956 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 8957 | |
474c48f9 | 8958 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8959 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8960 | }{ |
c8bc7bb8 RD |
8961 | #if wxUSE_UNICODE |
8962 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8963 | #else | |
eec92d76 | 8964 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8965 | #endif |
b1462dfa RD |
8966 | } |
8967 | { | |
8968 | delete _result; | |
8969 | } | |
8ab979d7 RD |
8970 | return _resultobj; |
8971 | } | |
8972 | ||
b1462dfa RD |
8973 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8974 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8975 | PyObject * _resultobj; |
8ab979d7 RD |
8976 | wxMenu * _arg0; |
8977 | int _arg1; | |
b1462dfa | 8978 | wxString * _arg2; |
1d99702e | 8979 | PyObject * _argo0 = 0; |
b1462dfa RD |
8980 | PyObject * _obj2 = 0; |
8981 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8982 | |
8983 | self = self; | |
b1462dfa | 8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8985 | return NULL; |
1d99702e RD |
8986 | if (_argo0) { |
8987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8990 | return NULL; |
8991 | } | |
8992 | } | |
b1462dfa | 8993 | { |
c8bc7bb8 RD |
8994 | _arg2 = wxString_in_helper(_obj2); |
8995 | if (_arg2 == NULL) | |
2cd2fac8 | 8996 | return NULL; |
b1462dfa | 8997 | } |
8ab979d7 | 8998 | { |
474c48f9 | 8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9000 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9001 | |
474c48f9 | 9002 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9003 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9004 | } Py_INCREF(Py_None); |
9005 | _resultobj = Py_None; | |
8ab979d7 | 9006 | { |
b1462dfa RD |
9007 | if (_obj2) |
9008 | delete _arg2; | |
8ab979d7 RD |
9009 | } |
9010 | return _resultobj; | |
9011 | } | |
9012 | ||
b1462dfa RD |
9013 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
9014 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9015 | PyObject * _resultobj; |
9016 | wxString * _result; | |
9017 | wxMenu * _arg0; | |
9018 | int _arg1; | |
1d99702e | 9019 | PyObject * _argo0 = 0; |
efc5f224 | 9020 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9021 | |
9022 | self = self; | |
b1462dfa | 9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9024 | return NULL; |
1d99702e RD |
9025 | if (_argo0) { |
9026 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9027 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9028 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
9029 | return NULL; |
9030 | } | |
9031 | } | |
8ab979d7 | 9032 | { |
474c48f9 | 9033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9034 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 9035 | |
474c48f9 | 9036 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9037 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9038 | }{ |
c8bc7bb8 RD |
9039 | #if wxUSE_UNICODE |
9040 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9041 | #else | |
eec92d76 | 9042 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9043 | #endif |
8ab979d7 RD |
9044 | } |
9045 | { | |
9046 | delete _result; | |
9047 | } | |
9048 | return _resultobj; | |
9049 | } | |
9050 | ||
9051 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 9052 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9053 | PyObject * _resultobj; |
9054 | wxMenu * _arg0; | |
9055 | int _arg1; | |
9056 | wxString * _arg2; | |
1d99702e | 9057 | PyObject * _argo0 = 0; |
8ab979d7 | 9058 | PyObject * _obj2 = 0; |
efc5f224 | 9059 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
9060 | |
9061 | self = self; | |
efc5f224 | 9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9063 | return NULL; |
1d99702e RD |
9064 | if (_argo0) { |
9065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
9068 | return NULL; | |
9069 | } | |
9070 | } | |
9071 | { | |
c8bc7bb8 RD |
9072 | _arg2 = wxString_in_helper(_obj2); |
9073 | if (_arg2 == NULL) | |
2cd2fac8 | 9074 | return NULL; |
8ab979d7 | 9075 | } |
cf694132 | 9076 | { |
474c48f9 | 9077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9078 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 9079 | |
474c48f9 | 9080 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9081 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9082 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9083 | _resultobj = Py_None; |
9084 | { | |
9085 | if (_obj2) | |
9086 | delete _arg2; | |
9087 | } | |
9088 | return _resultobj; | |
9089 | } | |
9090 | ||
b1462dfa RD |
9091 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
9092 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9093 | PyObject * _resultobj; |
8ab979d7 | 9094 | wxMenu * _arg0; |
b1462dfa | 9095 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 9096 | PyObject * _argo0 = 0; |
b1462dfa RD |
9097 | PyObject * _argo1 = 0; |
9098 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
9099 | |
9100 | self = self; | |
b1462dfa | 9101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9102 | return NULL; |
1d99702e RD |
9103 | if (_argo0) { |
9104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
9106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
9107 | return NULL; | |
9108 | } | |
9109 | } | |
9110 | if (_argo1) { | |
9111 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9112 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
9114 | return NULL; |
9115 | } | |
9116 | } | |
cf694132 | 9117 | { |
474c48f9 | 9118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9119 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 9120 | |
474c48f9 | 9121 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9122 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9123 | } Py_INCREF(Py_None); |
9124 | _resultobj = Py_None; | |
8ab979d7 RD |
9125 | return _resultobj; |
9126 | } | |
9127 | ||
b1462dfa RD |
9128 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9129 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9130 | PyObject * _resultobj; |
9131 | bool _result; | |
9132 | wxMenu * _arg0; | |
9133 | int _arg1; | |
1d99702e | 9134 | PyObject * _argo0 = 0; |
efc5f224 | 9135 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9136 | |
9137 | self = self; | |
b1462dfa | 9138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9139 | return NULL; |
1d99702e RD |
9140 | if (_argo0) { |
9141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
9144 | return NULL; |
9145 | } | |
9146 | } | |
cf694132 | 9147 | { |
474c48f9 | 9148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9149 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 9150 | |
474c48f9 | 9151 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9152 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9153 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9154 | return _resultobj; |
9155 | } | |
9156 | ||
b1462dfa RD |
9157 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9158 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9159 | PyObject * _resultobj; |
b1462dfa | 9160 | bool _result; |
8ab979d7 | 9161 | wxMenu * _arg0; |
b1462dfa | 9162 | wxMenuItem * _arg1; |
1d99702e | 9163 | PyObject * _argo0 = 0; |
b1462dfa RD |
9164 | PyObject * _argo1 = 0; |
9165 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9166 | |
9167 | self = self; | |
b1462dfa | 9168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9169 | return NULL; |
1d99702e RD |
9170 | if (_argo0) { |
9171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
9174 | return NULL; |
9175 | } | |
9176 | } | |
b1462dfa RD |
9177 | if (_argo1) { |
9178 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9179 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9181 | return NULL; |
b1462dfa | 9182 | } |
8ab979d7 | 9183 | } |
cf694132 | 9184 | { |
474c48f9 | 9185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9186 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 9187 | |
474c48f9 | 9188 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9189 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9190 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9191 | return _resultobj; |
9192 | } | |
9193 | ||
b1462dfa RD |
9194 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9195 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 9196 | PyObject * _resultobj; |
b1462dfa | 9197 | wxMenuItem * _result; |
efc5f224 | 9198 | wxMenu * _arg0; |
b1462dfa | 9199 | int _arg1; |
efc5f224 | 9200 | PyObject * _argo0 = 0; |
b1462dfa | 9201 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
9202 | |
9203 | self = self; | |
b1462dfa | 9204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
9205 | return NULL; |
9206 | if (_argo0) { | |
9207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
9210 | return NULL; |
9211 | } | |
9212 | } | |
9213 | { | |
474c48f9 | 9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9215 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 9216 | |
474c48f9 | 9217 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9218 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9219 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
9220 | return _resultobj; |
9221 | } | |
9222 | ||
b1462dfa RD |
9223 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9224 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9225 | PyObject * _resultobj; |
b1462dfa RD |
9226 | wxMenuItem * _result; |
9227 | wxMenu * _arg0; | |
9228 | wxMenuItem * _arg1; | |
9229 | PyObject * _argo0 = 0; | |
9230 | PyObject * _argo1 = 0; | |
9231 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9232 | |
9233 | self = self; | |
b1462dfa RD |
9234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
9235 | return NULL; | |
9236 | if (_argo0) { | |
9237 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9238 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9239 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
9240 | return NULL; | |
9241 | } | |
9242 | } | |
9243 | if (_argo1) { | |
9244 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9245 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9247 | return NULL; |
b1462dfa RD |
9248 | } |
9249 | } | |
cf694132 | 9250 | { |
474c48f9 | 9251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9252 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 9253 | |
474c48f9 | 9254 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9255 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9256 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9257 | return _resultobj; |
9258 | } | |
9259 | ||
eb715945 | 9260 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 9261 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 9262 | PyObject * _resultobj; |
b1462dfa | 9263 | wxMenu * _arg0; |
1d99702e | 9264 | PyObject * _argo0 = 0; |
b1462dfa | 9265 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9266 | |
9267 | self = self; | |
b1462dfa | 9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 9269 | return NULL; |
1d99702e RD |
9270 | if (_argo0) { |
9271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
9274 | return NULL; |
9275 | } | |
9276 | } | |
cf694132 | 9277 | { |
474c48f9 | 9278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9279 | wxMenu_Destroy(_arg0); |
cf694132 | 9280 | |
474c48f9 | 9281 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9282 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9283 | } Py_INCREF(Py_None); |
8ab979d7 | 9284 | _resultobj = Py_None; |
8ab979d7 RD |
9285 | return _resultobj; |
9286 | } | |
9287 | ||
b1462dfa RD |
9288 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9289 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9290 | PyObject * _resultobj; |
b1462dfa RD |
9291 | bool _result; |
9292 | wxMenu * _arg0; | |
8ab979d7 | 9293 | int _arg1; |
1d99702e | 9294 | PyObject * _argo0 = 0; |
b1462dfa | 9295 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9296 | |
9297 | self = self; | |
b1462dfa | 9298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9299 | return NULL; |
1d99702e RD |
9300 | if (_argo0) { |
9301 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9302 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9303 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
9304 | return NULL; |
9305 | } | |
9306 | } | |
cf694132 | 9307 | { |
474c48f9 | 9308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9309 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 9310 | |
474c48f9 | 9311 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9312 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9313 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9314 | return _resultobj; |
9315 | } | |
9316 | ||
b1462dfa RD |
9317 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9318 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9319 | PyObject * _resultobj; |
b1462dfa RD |
9320 | bool _result; |
9321 | wxMenu * _arg0; | |
9322 | wxMenuItem * _arg1; | |
1d99702e | 9323 | PyObject * _argo0 = 0; |
b1462dfa RD |
9324 | PyObject * _argo1 = 0; |
9325 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9326 | |
9327 | self = self; | |
b1462dfa | 9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9329 | return NULL; |
1d99702e RD |
9330 | if (_argo0) { |
9331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
9334 | return NULL; | |
9335 | } | |
9336 | } | |
9337 | if (_argo1) { | |
9338 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9339 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9340 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
9341 | return NULL; |
9342 | } | |
9343 | } | |
cf694132 | 9344 | { |
474c48f9 | 9345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9346 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 9347 | |
474c48f9 | 9348 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9349 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9350 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9351 | return _resultobj; |
9352 | } | |
9353 | ||
b1462dfa RD |
9354 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
9355 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9356 | PyObject * _resultobj; |
b1462dfa RD |
9357 | size_t _result; |
9358 | wxMenu * _arg0; | |
1d99702e | 9359 | PyObject * _argo0 = 0; |
b1462dfa | 9360 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9361 | |
9362 | self = self; | |
b1462dfa | 9363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 9364 | return NULL; |
1d99702e RD |
9365 | if (_argo0) { |
9366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
9369 | return NULL; |
9370 | } | |
9371 | } | |
cf694132 | 9372 | { |
474c48f9 | 9373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9374 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 9375 | |
474c48f9 | 9376 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9377 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 9378 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9379 | return _resultobj; |
9380 | } | |
9381 | ||
b1462dfa RD |
9382 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
9383 | wxMenuItemList& list = self->GetMenuItems(); | |
9384 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
9385 | } | |
9386 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9387 | PyObject * _resultobj; |
b1462dfa RD |
9388 | PyObject * _result; |
9389 | wxMenu * _arg0; | |
1d99702e | 9390 | PyObject * _argo0 = 0; |
b1462dfa | 9391 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9392 | |
9393 | self = self; | |
b1462dfa | 9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 9395 | return NULL; |
1d99702e RD |
9396 | if (_argo0) { |
9397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
9400 | return NULL; |
9401 | } | |
9402 | } | |
cf694132 | 9403 | { |
474c48f9 | 9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9405 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 9406 | |
474c48f9 | 9407 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9408 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9409 | }{ |
9410 | _resultobj = _result; | |
9411 | } | |
8ab979d7 RD |
9412 | return _resultobj; |
9413 | } | |
9414 | ||
b1462dfa RD |
9415 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
9416 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9417 | PyObject * _resultobj; |
b1462dfa RD |
9418 | wxMenu * _arg0; |
9419 | wxEvtHandler * _arg1; | |
1d99702e | 9420 | PyObject * _argo0 = 0; |
b1462dfa RD |
9421 | PyObject * _argo1 = 0; |
9422 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
9423 | |
9424 | self = self; | |
b1462dfa | 9425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9426 | return NULL; |
1d99702e RD |
9427 | if (_argo0) { |
9428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9431 | return NULL; |
9432 | } | |
9433 | } | |
b1462dfa RD |
9434 | if (_argo1) { |
9435 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9436 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 9438 | return NULL; |
b1462dfa | 9439 | } |
8ab979d7 | 9440 | } |
cf694132 | 9441 | { |
474c48f9 | 9442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9443 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 9444 | |
474c48f9 | 9445 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9446 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9447 | } Py_INCREF(Py_None); |
9448 | _resultobj = Py_None; | |
8ab979d7 RD |
9449 | return _resultobj; |
9450 | } | |
9451 | ||
b1462dfa RD |
9452 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
9453 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9454 | PyObject * _resultobj; |
b1462dfa RD |
9455 | wxEvtHandler * _result; |
9456 | wxMenu * _arg0; | |
1d99702e | 9457 | PyObject * _argo0 = 0; |
b1462dfa | 9458 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9459 | |
9460 | self = self; | |
b1462dfa | 9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 9462 | return NULL; |
1d99702e RD |
9463 | if (_argo0) { |
9464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9467 | return NULL; |
9468 | } | |
9469 | } | |
cf694132 | 9470 | { |
474c48f9 | 9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9472 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 9473 | |
474c48f9 | 9474 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9475 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9476 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9477 | return _resultobj; |
9478 | } | |
9479 | ||
b1462dfa RD |
9480 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
9481 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 9482 | PyObject * _resultobj; |
b1462dfa RD |
9483 | wxMenu * _arg0; |
9484 | wxWindow * _arg1; | |
2f90df85 | 9485 | PyObject * _argo0 = 0; |
b1462dfa RD |
9486 | PyObject * _argo1 = 0; |
9487 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
9488 | |
9489 | self = self; | |
b1462dfa | 9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
9491 | return NULL; |
9492 | if (_argo0) { | |
9493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
9496 | return NULL; |
9497 | } | |
9498 | } | |
b1462dfa RD |
9499 | if (_argo1) { |
9500 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9503 | return NULL; |
b1462dfa | 9504 | } |
2f90df85 | 9505 | } |
2f90df85 | 9506 | { |
474c48f9 | 9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9508 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9509 | |
474c48f9 | 9510 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9511 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9512 | } Py_INCREF(Py_None); |
9513 | _resultobj = Py_None; | |
2f90df85 RD |
9514 | return _resultobj; |
9515 | } | |
9516 | ||
b1462dfa RD |
9517 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9518 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9519 | PyObject * _resultobj; |
b1462dfa RD |
9520 | wxWindow * _result; |
9521 | wxMenu * _arg0; | |
1d99702e | 9522 | PyObject * _argo0 = 0; |
b1462dfa | 9523 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9524 | |
9525 | self = self; | |
b1462dfa | 9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9527 | return NULL; |
1d99702e RD |
9528 | if (_argo0) { |
9529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9532 | return NULL; |
9533 | } | |
9534 | } | |
cf694132 | 9535 | { |
474c48f9 | 9536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9537 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9538 | |
474c48f9 | 9539 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9540 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9541 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9542 | return _resultobj; |
9543 | } | |
9544 | ||
b1462dfa RD |
9545 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9546 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9547 | PyObject * _resultobj; |
b1462dfa RD |
9548 | long _result; |
9549 | wxMenu * _arg0; | |
1d99702e | 9550 | PyObject * _argo0 = 0; |
b1462dfa | 9551 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9552 | |
9553 | self = self; | |
b1462dfa | 9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9555 | return NULL; |
1d99702e RD |
9556 | if (_argo0) { |
9557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9560 | return NULL; |
9561 | } | |
9562 | } | |
8ab979d7 | 9563 | { |
474c48f9 | 9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9565 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9566 | |
474c48f9 | 9567 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9568 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9569 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9570 | return _resultobj; |
9571 | } | |
9572 | ||
b1462dfa RD |
9573 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9574 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9575 | PyObject * _resultobj; |
b1462dfa RD |
9576 | bool _result; |
9577 | wxMenu * _arg0; | |
1d99702e | 9578 | PyObject * _argo0 = 0; |
b1462dfa | 9579 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9580 | |
9581 | self = self; | |
b1462dfa | 9582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9583 | return NULL; |
1d99702e RD |
9584 | if (_argo0) { |
9585 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9586 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9587 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9588 | return NULL; |
9589 | } | |
9590 | } | |
8ab979d7 | 9591 | { |
474c48f9 | 9592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9593 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 9594 | |
474c48f9 | 9595 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9596 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9597 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9598 | return _resultobj; |
9599 | } | |
9600 | ||
b1462dfa RD |
9601 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9602 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9603 | PyObject * _resultobj; |
b1462dfa RD |
9604 | wxMenu * _arg0; |
9605 | wxMenu * _arg1; | |
1d99702e | 9606 | PyObject * _argo0 = 0; |
b1462dfa RD |
9607 | PyObject * _argo1 = 0; |
9608 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9609 | |
9610 | self = self; | |
b1462dfa | 9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9612 | return NULL; |
1d99702e RD |
9613 | if (_argo0) { |
9614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9617 | return NULL; |
9618 | } | |
9619 | } | |
b1462dfa RD |
9620 | if (_argo1) { |
9621 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9622 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9624 | return NULL; |
b1462dfa | 9625 | } |
8ab979d7 | 9626 | } |
cf694132 | 9627 | { |
474c48f9 | 9628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9629 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9630 | |
474c48f9 | 9631 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9632 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9633 | } Py_INCREF(Py_None); |
8ab979d7 | 9634 | _resultobj = Py_None; |
8ab979d7 RD |
9635 | return _resultobj; |
9636 | } | |
9637 | ||
b1462dfa RD |
9638 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9639 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9640 | PyObject * _resultobj; |
b1462dfa RD |
9641 | wxMenu * _result; |
9642 | wxMenu * _arg0; | |
1d99702e | 9643 | PyObject * _argo0 = 0; |
b1462dfa | 9644 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9645 | |
9646 | self = self; | |
b1462dfa | 9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9648 | return NULL; |
1d99702e RD |
9649 | if (_argo0) { |
9650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9653 | return NULL; |
9654 | } | |
9655 | } | |
8ab979d7 | 9656 | { |
474c48f9 | 9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9658 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9659 | |
474c48f9 | 9660 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9661 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9662 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9663 | return _resultobj; |
8ab979d7 | 9664 | } |
b1462dfa RD |
9665 | |
9666 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9667 | wxMenuBar *src; | |
9668 | wxWindow *dest; | |
9669 | src = (wxMenuBar *) ptr; | |
9670 | dest = (wxWindow *) src; | |
9671 | return (void *) dest; | |
9672 | } | |
9673 | ||
9674 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9675 | wxMenuBar *src; | |
9676 | wxEvtHandler *dest; | |
9677 | src = (wxMenuBar *) ptr; | |
9678 | dest = (wxEvtHandler *) src; | |
9679 | return (void *) dest; | |
8ab979d7 | 9680 | } |
b1462dfa | 9681 | |
9df61a29 RD |
9682 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9683 | wxMenuBar *src; | |
9684 | wxObject *dest; | |
9685 | src = (wxMenuBar *) ptr; | |
9686 | dest = (wxObject *) src; | |
9687 | return (void *) dest; | |
9688 | } | |
9689 | ||
c368d904 | 9690 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9691 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9692 | PyObject * _resultobj; | |
9693 | wxMenuBar * _result; | |
c368d904 RD |
9694 | long _arg0 = (long ) 0; |
9695 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9696 | char _ptemp[128]; |
9697 | ||
9698 | self = self; | |
c368d904 | 9699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9700 | return NULL; |
9701 | { | |
474c48f9 | 9702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9703 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9704 | |
474c48f9 | 9705 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9706 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9707 | } if (_result) { |
9708 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9709 | _resultobj = Py_BuildValue("s",_ptemp); | |
9710 | } else { | |
9711 | Py_INCREF(Py_None); | |
9712 | _resultobj = Py_None; | |
9713 | } | |
8ab979d7 RD |
9714 | return _resultobj; |
9715 | } | |
9716 | ||
b1462dfa RD |
9717 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9718 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9719 | PyObject * _resultobj; |
b1462dfa | 9720 | bool _result; |
8ab979d7 | 9721 | wxMenuBar * _arg0; |
b1462dfa | 9722 | wxMenu * _arg1; |
8ab979d7 | 9723 | wxString * _arg2; |
1d99702e | 9724 | PyObject * _argo0 = 0; |
b1462dfa | 9725 | PyObject * _argo1 = 0; |
8ab979d7 | 9726 | PyObject * _obj2 = 0; |
b1462dfa | 9727 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9728 | |
9729 | self = self; | |
b1462dfa | 9730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9731 | return NULL; |
1d99702e RD |
9732 | if (_argo0) { |
9733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9736 | return NULL; | |
9737 | } | |
9738 | } | |
9739 | if (_argo1) { | |
9740 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9741 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9743 | return NULL; |
9744 | } | |
9745 | } | |
9746 | { | |
c8bc7bb8 RD |
9747 | _arg2 = wxString_in_helper(_obj2); |
9748 | if (_arg2 == NULL) | |
2cd2fac8 | 9749 | return NULL; |
8ab979d7 | 9750 | } |
cf694132 | 9751 | { |
474c48f9 | 9752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9753 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9754 | |
474c48f9 | 9755 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9756 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9757 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9758 | { |
9759 | if (_obj2) | |
9760 | delete _arg2; | |
9761 | } | |
9762 | return _resultobj; | |
9763 | } | |
9764 | ||
b1462dfa RD |
9765 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
9766 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9767 | PyObject * _resultobj; |
b1462dfa | 9768 | bool _result; |
8ab979d7 | 9769 | wxMenuBar * _arg0; |
b1462dfa RD |
9770 | size_t _arg1; |
9771 | wxMenu * _arg2; | |
9772 | wxString * _arg3; | |
1d99702e | 9773 | PyObject * _argo0 = 0; |
b1462dfa RD |
9774 | PyObject * _argo2 = 0; |
9775 | PyObject * _obj3 = 0; | |
9776 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
9777 | |
9778 | self = self; | |
b1462dfa | 9779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 9780 | return NULL; |
1d99702e RD |
9781 | if (_argo0) { |
9782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
9785 | return NULL; | |
9786 | } | |
9787 | } | |
9788 | if (_argo2) { | |
9789 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9790 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
9792 | return NULL; |
9793 | } | |
9794 | } | |
b1462dfa | 9795 | { |
c8bc7bb8 RD |
9796 | _arg3 = wxString_in_helper(_obj3); |
9797 | if (_arg3 == NULL) | |
2cd2fac8 | 9798 | return NULL; |
b1462dfa | 9799 | } |
cf694132 | 9800 | { |
474c48f9 | 9801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9802 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9803 | |
474c48f9 | 9804 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9805 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9806 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
9807 | { |
9808 | if (_obj3) | |
9809 | delete _arg3; | |
9810 | } | |
8ab979d7 RD |
9811 | return _resultobj; |
9812 | } | |
9813 | ||
b1462dfa RD |
9814 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
9815 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9816 | PyObject * _resultobj; |
b1462dfa | 9817 | size_t _result; |
8ab979d7 | 9818 | wxMenuBar * _arg0; |
1d99702e | 9819 | PyObject * _argo0 = 0; |
b1462dfa | 9820 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9821 | |
9822 | self = self; | |
b1462dfa | 9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9824 | return NULL; |
1d99702e RD |
9825 | if (_argo0) { |
9826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9829 | return NULL; |
9830 | } | |
9831 | } | |
cf694132 | 9832 | { |
474c48f9 | 9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9834 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 9835 | |
474c48f9 | 9836 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9837 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9838 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9839 | return _resultobj; |
9840 | } | |
9841 | ||
b1462dfa RD |
9842 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9843 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9844 | PyObject * _resultobj; |
b1462dfa | 9845 | wxMenu * _result; |
06c0fba4 | 9846 | wxMenuBar * _arg0; |
b1462dfa | 9847 | size_t _arg1; |
06c0fba4 | 9848 | PyObject * _argo0 = 0; |
b1462dfa | 9849 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9850 | |
9851 | self = self; | |
b1462dfa | 9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9853 | return NULL; |
9854 | if (_argo0) { | |
9855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
9858 | return NULL; |
9859 | } | |
9860 | } | |
9861 | { | |
474c48f9 | 9862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9863 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 9864 | |
474c48f9 | 9865 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9866 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9867 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
9868 | return _resultobj; |
9869 | } | |
9870 | ||
2abc0a0f RD |
9871 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
9872 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9873 | PyObject * _resultobj; | |
9874 | wxMenu * _result; | |
9875 | wxMenuBar * _arg0; | |
9876 | size_t _arg1; | |
9877 | wxMenu * _arg2; | |
9878 | wxString * _arg3; | |
9879 | PyObject * _argo0 = 0; | |
9880 | PyObject * _argo2 = 0; | |
9881 | PyObject * _obj3 = 0; | |
9882 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
9883 | |
9884 | self = self; | |
9885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9886 | return NULL; | |
9887 | if (_argo0) { | |
9888 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9889 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9890 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
9891 | return NULL; | |
9892 | } | |
9893 | } | |
9894 | if (_argo2) { | |
9895 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9896 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9898 | return NULL; | |
9899 | } | |
9900 | } | |
9901 | { | |
c8bc7bb8 RD |
9902 | _arg3 = wxString_in_helper(_obj3); |
9903 | if (_arg3 == NULL) | |
2cd2fac8 | 9904 | return NULL; |
2abc0a0f RD |
9905 | } |
9906 | { | |
474c48f9 | 9907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9908 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 9909 | |
474c48f9 | 9910 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9911 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9912 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9913 | { |
9914 | if (_obj3) | |
9915 | delete _arg3; | |
9916 | } | |
9917 | return _resultobj; | |
9918 | } | |
9919 | ||
9920 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9921 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject * _resultobj; | |
9923 | wxMenu * _result; | |
9924 | wxMenuBar * _arg0; | |
9925 | size_t _arg1; | |
9926 | PyObject * _argo0 = 0; | |
9927 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
9928 | |
9929 | self = self; | |
9930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9931 | return NULL; | |
9932 | if (_argo0) { | |
9933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9936 | return NULL; | |
9937 | } | |
9938 | } | |
9939 | { | |
474c48f9 | 9940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9941 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 9942 | |
474c48f9 | 9943 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9944 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9945 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9946 | return _resultobj; |
9947 | } | |
9948 | ||
b1462dfa RD |
9949 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
9950 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9951 | PyObject * _resultobj; |
b1462dfa RD |
9952 | wxMenuBar * _arg0; |
9953 | size_t _arg1; | |
9954 | bool _arg2; | |
9955 | PyObject * _argo0 = 0; | |
9956 | int tempbool2; | |
9957 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9958 | ||
9959 | self = self; | |
9960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9961 | return NULL; | |
9962 | if (_argo0) { | |
9963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9966 | return NULL; | |
9967 | } | |
9968 | } | |
9969 | _arg2 = (bool ) tempbool2; | |
9970 | { | |
474c48f9 | 9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9972 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 9973 | |
474c48f9 | 9974 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9975 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9976 | } Py_INCREF(Py_None); |
9977 | _resultobj = Py_None; | |
9978 | return _resultobj; | |
9979 | } | |
9980 | ||
9981 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9982 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9983 | PyObject * _resultobj; | |
9984 | wxMenuBar * _arg0; | |
9985 | size_t _arg1; | |
9986 | wxString * _arg2; | |
1d99702e | 9987 | PyObject * _argo0 = 0; |
cf694132 | 9988 | PyObject * _obj2 = 0; |
b1462dfa | 9989 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
9990 | |
9991 | self = self; | |
b1462dfa | 9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 9993 | return NULL; |
1d99702e RD |
9994 | if (_argo0) { |
9995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
9998 | return NULL; |
9999 | } | |
10000 | } | |
cf694132 | 10001 | { |
c8bc7bb8 RD |
10002 | _arg2 = wxString_in_helper(_obj2); |
10003 | if (_arg2 == NULL) | |
2cd2fac8 | 10004 | return NULL; |
cf694132 | 10005 | } |
cf694132 | 10006 | { |
474c48f9 | 10007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10008 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 10009 | |
474c48f9 | 10010 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10011 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10012 | } Py_INCREF(Py_None); |
10013 | _resultobj = Py_None; | |
10014 | { | |
10015 | if (_obj2) | |
10016 | delete _arg2; | |
10017 | } | |
10018 | return _resultobj; | |
10019 | } | |
10020 | ||
10021 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
10022 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10023 | PyObject * _resultobj; | |
10024 | wxString * _result; | |
10025 | wxMenuBar * _arg0; | |
10026 | size_t _arg1; | |
10027 | PyObject * _argo0 = 0; | |
10028 | char *_kwnames[] = { "self","pos", NULL }; | |
10029 | ||
10030 | self = self; | |
10031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
10032 | return NULL; | |
10033 | if (_argo0) { | |
10034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
10037 | return NULL; | |
10038 | } | |
10039 | } | |
10040 | { | |
474c48f9 | 10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10042 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 10043 | |
474c48f9 | 10044 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10045 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10046 | }{ |
c8bc7bb8 RD |
10047 | #if wxUSE_UNICODE |
10048 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10049 | #else | |
eec92d76 | 10050 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10051 | #endif |
b1462dfa RD |
10052 | } |
10053 | { | |
10054 | delete _result; | |
10055 | } | |
10056 | return _resultobj; | |
10057 | } | |
10058 | ||
10be44ac RD |
10059 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
10060 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10061 | PyObject * _resultobj; | |
10062 | int _result; | |
10063 | wxMenuBar * _arg0; | |
10064 | wxString * _arg1; | |
10065 | PyObject * _argo0 = 0; | |
10066 | PyObject * _obj1 = 0; | |
10067 | char *_kwnames[] = { "self","title", NULL }; | |
10068 | ||
10069 | self = self; | |
10070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
10071 | return NULL; | |
10072 | if (_argo0) { | |
10073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
10076 | return NULL; | |
10077 | } | |
10078 | } | |
10079 | { | |
c8bc7bb8 RD |
10080 | _arg1 = wxString_in_helper(_obj1); |
10081 | if (_arg1 == NULL) | |
10be44ac | 10082 | return NULL; |
10be44ac RD |
10083 | } |
10084 | { | |
474c48f9 | 10085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10086 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
10be44ac | 10087 | |
474c48f9 | 10088 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
10089 | if (PyErr_Occurred()) return NULL; |
10090 | } _resultobj = Py_BuildValue("i",_result); | |
10091 | { | |
10092 | if (_obj1) | |
10093 | delete _arg1; | |
10094 | } | |
10095 | return _resultobj; | |
10096 | } | |
10097 | ||
b1462dfa RD |
10098 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
10099 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10100 | PyObject * _resultobj; | |
10101 | int _result; | |
10102 | wxMenuBar * _arg0; | |
10103 | wxString * _arg1; | |
10104 | wxString * _arg2; | |
10105 | PyObject * _argo0 = 0; | |
10106 | PyObject * _obj1 = 0; | |
10107 | PyObject * _obj2 = 0; | |
10108 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
10109 | ||
10110 | self = self; | |
10111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10112 | return NULL; | |
10113 | if (_argo0) { | |
10114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
10117 | return NULL; | |
10118 | } | |
10119 | } | |
10120 | { | |
c8bc7bb8 RD |
10121 | _arg1 = wxString_in_helper(_obj1); |
10122 | if (_arg1 == NULL) | |
2cd2fac8 | 10123 | return NULL; |
cf694132 | 10124 | } |
b1462dfa | 10125 | { |
c8bc7bb8 RD |
10126 | _arg2 = wxString_in_helper(_obj2); |
10127 | if (_arg2 == NULL) | |
b1462dfa | 10128 | return NULL; |
b1462dfa RD |
10129 | } |
10130 | { | |
474c48f9 | 10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10132 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 10133 | |
474c48f9 | 10134 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10135 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10136 | } _resultobj = Py_BuildValue("i",_result); |
10137 | { | |
10138 | if (_obj1) | |
10139 | delete _arg1; | |
10140 | } | |
10141 | { | |
10142 | if (_obj2) | |
10143 | delete _arg2; | |
10144 | } | |
10145 | return _resultobj; | |
10146 | } | |
10147 | ||
10148 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
10149 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10150 | PyObject * _resultobj; | |
10151 | wxMenuItem * _result; | |
10152 | wxMenuBar * _arg0; | |
10153 | int _arg1; | |
10154 | PyObject * _argo0 = 0; | |
10155 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
10156 | |
10157 | self = self; | |
10158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
10159 | return NULL; | |
10160 | if (_argo0) { | |
10161 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10162 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
10164 | return NULL; |
10165 | } | |
10166 | } | |
10167 | { | |
474c48f9 | 10168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10169 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 10170 | |
474c48f9 | 10171 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10172 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10173 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 10174 | return _resultobj; |
cf694132 | 10175 | } |
b1462dfa RD |
10176 | |
10177 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
10178 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10179 | PyObject * _resultobj; | |
10180 | wxMenuBar * _arg0; | |
10181 | int _arg1; | |
10182 | bool _arg2; | |
10183 | PyObject * _argo0 = 0; | |
10184 | int tempbool2; | |
10185 | char *_kwnames[] = { "self","id","enable", NULL }; | |
10186 | ||
10187 | self = self; | |
10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10189 | return NULL; | |
10190 | if (_argo0) { | |
10191 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10192 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10193 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
10194 | return NULL; | |
10195 | } | |
10196 | } | |
10197 | _arg2 = (bool ) tempbool2; | |
cf694132 | 10198 | { |
474c48f9 | 10199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10200 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 10201 | |
474c48f9 | 10202 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10203 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10204 | } Py_INCREF(Py_None); |
10205 | _resultobj = Py_None; | |
10206 | return _resultobj; | |
cf694132 | 10207 | } |
b1462dfa RD |
10208 | |
10209 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
10210 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10211 | PyObject * _resultobj; | |
10212 | wxMenuBar * _arg0; | |
10213 | int _arg1; | |
10214 | bool _arg2; | |
10215 | PyObject * _argo0 = 0; | |
10216 | int tempbool2; | |
10217 | char *_kwnames[] = { "self","id","check", NULL }; | |
10218 | ||
10219 | self = self; | |
10220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
10221 | return NULL; | |
10222 | if (_argo0) { | |
10223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
10226 | return NULL; | |
10227 | } | |
10228 | } | |
10229 | _arg2 = (bool ) tempbool2; | |
10230 | { | |
474c48f9 | 10231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10232 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 10233 | |
474c48f9 | 10234 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10235 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10236 | } Py_INCREF(Py_None); |
10237 | _resultobj = Py_None; | |
cf694132 RD |
10238 | return _resultobj; |
10239 | } | |
10240 | ||
b1462dfa RD |
10241 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
10242 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10243 | PyObject * _resultobj; |
10244 | bool _result; | |
b1462dfa RD |
10245 | wxMenuBar * _arg0; |
10246 | int _arg1; | |
1d99702e | 10247 | PyObject * _argo0 = 0; |
b1462dfa | 10248 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10249 | |
10250 | self = self; | |
b1462dfa | 10251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10252 | return NULL; |
1d99702e RD |
10253 | if (_argo0) { |
10254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10257 | return NULL; |
10258 | } | |
10259 | } | |
cf694132 | 10260 | { |
474c48f9 | 10261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10262 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 10263 | |
474c48f9 | 10264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10265 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10266 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10267 | return _resultobj; |
10268 | } | |
10269 | ||
b1462dfa RD |
10270 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
10271 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10272 | PyObject * _resultobj; |
10273 | bool _result; | |
b1462dfa RD |
10274 | wxMenuBar * _arg0; |
10275 | int _arg1; | |
1d99702e | 10276 | PyObject * _argo0 = 0; |
b1462dfa | 10277 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10278 | |
10279 | self = self; | |
b1462dfa | 10280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10281 | return NULL; |
1d99702e RD |
10282 | if (_argo0) { |
10283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10286 | return NULL; |
10287 | } | |
10288 | } | |
cf694132 | 10289 | { |
474c48f9 | 10290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10291 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 10292 | |
474c48f9 | 10293 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10294 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10295 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10296 | return _resultobj; |
10297 | } | |
10298 | ||
b1462dfa RD |
10299 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
10300 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10301 | PyObject * _resultobj; |
b1462dfa RD |
10302 | wxMenuBar * _arg0; |
10303 | int _arg1; | |
10304 | wxString * _arg2; | |
1d99702e | 10305 | PyObject * _argo0 = 0; |
b1462dfa RD |
10306 | PyObject * _obj2 = 0; |
10307 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
10308 | |
10309 | self = self; | |
b1462dfa | 10310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 10311 | return NULL; |
1d99702e RD |
10312 | if (_argo0) { |
10313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10316 | return NULL; |
10317 | } | |
10318 | } | |
b1462dfa | 10319 | { |
c8bc7bb8 RD |
10320 | _arg2 = wxString_in_helper(_obj2); |
10321 | if (_arg2 == NULL) | |
b1462dfa | 10322 | return NULL; |
b1462dfa | 10323 | } |
cf694132 | 10324 | { |
474c48f9 | 10325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10326 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 10327 | |
474c48f9 | 10328 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10329 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10330 | } Py_INCREF(Py_None); |
10331 | _resultobj = Py_None; | |
10332 | { | |
10333 | if (_obj2) | |
10334 | delete _arg2; | |
10335 | } | |
8ab979d7 RD |
10336 | return _resultobj; |
10337 | } | |
10338 | ||
b1462dfa RD |
10339 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
10340 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10341 | PyObject * _resultobj; |
b1462dfa RD |
10342 | wxString * _result; |
10343 | wxMenuBar * _arg0; | |
10344 | int _arg1; | |
1d99702e | 10345 | PyObject * _argo0 = 0; |
b1462dfa | 10346 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10347 | |
10348 | self = self; | |
b1462dfa | 10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10350 | return NULL; |
1d99702e RD |
10351 | if (_argo0) { |
10352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
10355 | return NULL; | |
10356 | } | |
10357 | } | |
10358 | { | |
474c48f9 | 10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10360 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 10361 | |
474c48f9 | 10362 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10363 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10364 | }{ |
c8bc7bb8 RD |
10365 | #if wxUSE_UNICODE |
10366 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10367 | #else | |
eec92d76 | 10368 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10369 | #endif |
b1462dfa RD |
10370 | } |
10371 | { | |
10372 | delete _result; | |
10373 | } | |
10374 | return _resultobj; | |
10375 | } | |
10376 | ||
10377 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
10378 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10379 | PyObject * _resultobj; | |
10380 | wxMenuBar * _arg0; | |
10381 | int _arg1; | |
10382 | wxString * _arg2; | |
10383 | PyObject * _argo0 = 0; | |
10384 | PyObject * _obj2 = 0; | |
10385 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
10386 | ||
10387 | self = self; | |
10388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
10389 | return NULL; | |
10390 | if (_argo0) { | |
10391 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10392 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
10394 | return NULL; | |
10395 | } | |
10396 | } | |
10397 | { | |
c8bc7bb8 RD |
10398 | _arg2 = wxString_in_helper(_obj2); |
10399 | if (_arg2 == NULL) | |
b1462dfa | 10400 | return NULL; |
b1462dfa RD |
10401 | } |
10402 | { | |
474c48f9 | 10403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10404 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 10405 | |
474c48f9 | 10406 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10407 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10408 | } Py_INCREF(Py_None); |
10409 | _resultobj = Py_None; | |
10410 | { | |
10411 | if (_obj2) | |
10412 | delete _arg2; | |
10413 | } | |
10414 | return _resultobj; | |
10415 | } | |
10416 | ||
10417 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
10418 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10419 | PyObject * _resultobj; | |
10420 | wxString * _result; | |
10421 | wxMenuBar * _arg0; | |
10422 | int _arg1; | |
10423 | PyObject * _argo0 = 0; | |
10424 | char *_kwnames[] = { "self","id", NULL }; | |
10425 | ||
10426 | self = self; | |
10427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
10428 | return NULL; | |
10429 | if (_argo0) { | |
10430 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10431 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10433 | return NULL; |
10434 | } | |
10435 | } | |
cf694132 | 10436 | { |
474c48f9 | 10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10438 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 10439 | |
474c48f9 | 10440 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10441 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10442 | }{ |
c8bc7bb8 RD |
10443 | #if wxUSE_UNICODE |
10444 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10445 | #else | |
eec92d76 | 10446 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10447 | #endif |
b1462dfa RD |
10448 | } |
10449 | { | |
10450 | delete _result; | |
10451 | } | |
8ab979d7 RD |
10452 | return _resultobj; |
10453 | } | |
10454 | ||
9df61a29 RD |
10455 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
10456 | wxMenuItem *src; | |
10457 | wxObject *dest; | |
10458 | src = (wxMenuItem *) ptr; | |
10459 | dest = (wxObject *) src; | |
10460 | return (void *) dest; | |
10461 | } | |
10462 | ||
b1462dfa RD |
10463 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
10464 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10465 | PyObject * _resultobj; |
b1462dfa RD |
10466 | wxMenuItem * _result; |
10467 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 10468 | int _arg1 = (int ) wxID_SEPARATOR; |
9a74fcaf RD |
10469 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
10470 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 10471 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
b1462dfa | 10472 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 10473 | PyObject * _argo0 = 0; |
b1462dfa RD |
10474 | PyObject * _obj2 = 0; |
10475 | PyObject * _obj3 = 0; | |
b1462dfa | 10476 | PyObject * _argo5 = 0; |
a884bee5 | 10477 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 10478 | char _ptemp[128]; |
8ab979d7 RD |
10479 | |
10480 | self = self; | |
a884bee5 | 10481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 10482 | return NULL; |
1d99702e RD |
10483 | if (_argo0) { |
10484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
10486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10487 | return NULL; | |
10488 | } | |
10489 | } | |
10490 | if (_obj2) | |
10491 | { | |
c8bc7bb8 RD |
10492 | _arg2 = wxString_in_helper(_obj2); |
10493 | if (_arg2 == NULL) | |
b1462dfa | 10494 | return NULL; |
b1462dfa RD |
10495 | } |
10496 | if (_obj3) | |
10497 | { | |
c8bc7bb8 RD |
10498 | _arg3 = wxString_in_helper(_obj3); |
10499 | if (_arg3 == NULL) | |
b1462dfa | 10500 | return NULL; |
b1462dfa | 10501 | } |
b1462dfa RD |
10502 | if (_argo5) { |
10503 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10504 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10506 | return NULL; |
10507 | } | |
10508 | } | |
cf694132 | 10509 | { |
474c48f9 | 10510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10511 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10512 | |
474c48f9 | 10513 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10514 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10515 | } if (_result) { |
10516 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10517 | _resultobj = Py_BuildValue("s",_ptemp); | |
10518 | } else { | |
10519 | Py_INCREF(Py_None); | |
10520 | _resultobj = Py_None; | |
10521 | } | |
10522 | { | |
10523 | if (_obj2) | |
10524 | delete _arg2; | |
10525 | } | |
10526 | { | |
10527 | if (_obj3) | |
10528 | delete _arg3; | |
10529 | } | |
8ab979d7 RD |
10530 | return _resultobj; |
10531 | } | |
10532 | ||
b1462dfa RD |
10533 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10534 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10535 | PyObject * _resultobj; |
b1462dfa | 10536 | wxMenu * _result; |
8ab979d7 | 10537 | wxMenuItem * _arg0; |
1d99702e | 10538 | PyObject * _argo0 = 0; |
efc5f224 | 10539 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10540 | |
10541 | self = self; | |
b1462dfa | 10542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10543 | return NULL; |
1d99702e RD |
10544 | if (_argo0) { |
10545 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10546 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10547 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10548 | return NULL; |
10549 | } | |
10550 | } | |
cf694132 | 10551 | { |
474c48f9 | 10552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10553 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10554 | |
474c48f9 | 10555 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10556 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10557 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10558 | return _resultobj; |
10559 | } | |
10560 | ||
2abc0a0f RD |
10561 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10562 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10563 | PyObject * _resultobj; |
10564 | wxMenuItem * _arg0; | |
2abc0a0f | 10565 | int _arg1; |
1d99702e | 10566 | PyObject * _argo0 = 0; |
2abc0a0f | 10567 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10568 | |
10569 | self = self; | |
2abc0a0f | 10570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10571 | return NULL; |
1d99702e RD |
10572 | if (_argo0) { |
10573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10576 | return NULL; |
10577 | } | |
10578 | } | |
cf694132 | 10579 | { |
474c48f9 | 10580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10581 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10582 | |
474c48f9 | 10583 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10584 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10585 | } Py_INCREF(Py_None); |
8ab979d7 | 10586 | _resultobj = Py_None; |
8ab979d7 RD |
10587 | return _resultobj; |
10588 | } | |
10589 | ||
b1462dfa RD |
10590 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10591 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10592 | PyObject * _resultobj; |
b1462dfa | 10593 | int _result; |
8ab979d7 | 10594 | wxMenuItem * _arg0; |
1d99702e | 10595 | PyObject * _argo0 = 0; |
efc5f224 | 10596 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10597 | |
10598 | self = self; | |
b1462dfa | 10599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 10600 | return NULL; |
1d99702e RD |
10601 | if (_argo0) { |
10602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10605 | return NULL; |
10606 | } | |
10607 | } | |
8ab979d7 | 10608 | { |
474c48f9 | 10609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10610 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10611 | |
474c48f9 | 10612 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10613 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10614 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10615 | return _resultobj; |
10616 | } | |
10617 | ||
b1462dfa RD |
10618 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10619 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10620 | PyObject * _resultobj; |
b1462dfa | 10621 | bool _result; |
8ab979d7 | 10622 | wxMenuItem * _arg0; |
1d99702e | 10623 | PyObject * _argo0 = 0; |
efc5f224 | 10624 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10625 | |
10626 | self = self; | |
b1462dfa | 10627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 10628 | return NULL; |
1d99702e RD |
10629 | if (_argo0) { |
10630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10633 | return NULL; |
10634 | } | |
10635 | } | |
8ab979d7 | 10636 | { |
474c48f9 | 10637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10638 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10639 | |
474c48f9 | 10640 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10641 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10642 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10643 | return _resultobj; |
10644 | } | |
10645 | ||
b1462dfa RD |
10646 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10647 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10648 | PyObject * _resultobj; |
10649 | wxMenuItem * _arg0; | |
10650 | wxString * _arg1; | |
1d99702e | 10651 | PyObject * _argo0 = 0; |
8ab979d7 | 10652 | PyObject * _obj1 = 0; |
b1462dfa | 10653 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10654 | |
10655 | self = self; | |
b1462dfa | 10656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10657 | return NULL; |
1d99702e RD |
10658 | if (_argo0) { |
10659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10662 | return NULL; |
10663 | } | |
10664 | } | |
10665 | { | |
c8bc7bb8 RD |
10666 | _arg1 = wxString_in_helper(_obj1); |
10667 | if (_arg1 == NULL) | |
2cd2fac8 | 10668 | return NULL; |
8ab979d7 | 10669 | } |
cf694132 | 10670 | { |
474c48f9 | 10671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10672 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10673 | |
474c48f9 | 10674 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10675 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10676 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10677 | _resultobj = Py_None; |
10678 | { | |
10679 | if (_obj1) | |
10680 | delete _arg1; | |
10681 | } | |
10682 | return _resultobj; | |
10683 | } | |
10684 | ||
b1462dfa RD |
10685 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10686 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10687 | PyObject * _resultobj; |
b1462dfa | 10688 | wxString * _result; |
8ab979d7 | 10689 | wxMenuItem * _arg0; |
1d99702e | 10690 | PyObject * _argo0 = 0; |
b1462dfa | 10691 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10692 | |
10693 | self = self; | |
b1462dfa | 10694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 10695 | return NULL; |
1d99702e RD |
10696 | if (_argo0) { |
10697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10700 | return NULL; |
10701 | } | |
10702 | } | |
cf694132 | 10703 | { |
474c48f9 | 10704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10705 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 10706 | |
474c48f9 | 10707 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10708 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10709 | }{ |
c8bc7bb8 RD |
10710 | #if wxUSE_UNICODE |
10711 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10712 | #else | |
eec92d76 | 10713 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10714 | #endif |
8ab979d7 | 10715 | } |
cf694132 | 10716 | { |
b1462dfa RD |
10717 | delete _result; |
10718 | } | |
cf694132 RD |
10719 | return _resultobj; |
10720 | } | |
10721 | ||
b1462dfa RD |
10722 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10723 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10724 | PyObject * _resultobj; |
b1462dfa | 10725 | wxString * _result; |
cf694132 | 10726 | wxMenuItem * _arg0; |
1d99702e | 10727 | PyObject * _argo0 = 0; |
efc5f224 | 10728 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10729 | |
10730 | self = self; | |
b1462dfa | 10731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10732 | return NULL; |
1d99702e RD |
10733 | if (_argo0) { |
10734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10737 | return NULL; |
10738 | } | |
10739 | } | |
10740 | { | |
474c48f9 | 10741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10742 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 10743 | _result = (wxString *) &_result_ref; |
cf694132 | 10744 | |
474c48f9 | 10745 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10746 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10747 | }{ |
c8bc7bb8 RD |
10748 | #if wxUSE_UNICODE |
10749 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10750 | #else | |
eec92d76 | 10751 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10752 | #endif |
cf694132 | 10753 | } |
cf694132 RD |
10754 | return _resultobj; |
10755 | } | |
10756 | ||
a884bee5 RD |
10757 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10758 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10759 | PyObject * _resultobj; | |
10760 | wxItemKind _result; | |
10761 | wxMenuItem * _arg0; | |
10762 | PyObject * _argo0 = 0; | |
10763 | char *_kwnames[] = { "self", NULL }; | |
10764 | ||
10765 | self = self; | |
10766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10767 | return NULL; | |
10768 | if (_argo0) { | |
10769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10772 | return NULL; | |
10773 | } | |
10774 | } | |
10775 | { | |
10776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10777 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10778 | ||
10779 | wxPyEndAllowThreads(__tstate); | |
10780 | if (PyErr_Occurred()) return NULL; | |
10781 | } _resultobj = Py_BuildValue("i",_result); | |
10782 | return _resultobj; | |
10783 | } | |
10784 | ||
b1462dfa RD |
10785 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10786 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10787 | PyObject * _resultobj; |
cf694132 | 10788 | wxMenuItem * _arg0; |
b1462dfa | 10789 | bool _arg1; |
1d99702e | 10790 | PyObject * _argo0 = 0; |
b1462dfa RD |
10791 | int tempbool1; |
10792 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10793 | |
10794 | self = self; | |
b1462dfa | 10795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10796 | return NULL; |
1d99702e RD |
10797 | if (_argo0) { |
10798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10801 | return NULL; |
10802 | } | |
10803 | } | |
b1462dfa | 10804 | _arg1 = (bool ) tempbool1; |
cf694132 | 10805 | { |
474c48f9 | 10806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10807 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 10808 | |
474c48f9 | 10809 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10810 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10811 | } Py_INCREF(Py_None); |
10812 | _resultobj = Py_None; | |
cf694132 RD |
10813 | return _resultobj; |
10814 | } | |
10815 | ||
b1462dfa RD |
10816 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10817 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10818 | PyObject * _resultobj; |
b1462dfa | 10819 | bool _result; |
cf694132 | 10820 | wxMenuItem * _arg0; |
1d99702e | 10821 | PyObject * _argo0 = 0; |
efc5f224 | 10822 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10823 | |
10824 | self = self; | |
b1462dfa | 10825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 10826 | return NULL; |
1d99702e RD |
10827 | if (_argo0) { |
10828 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10829 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10830 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10831 | return NULL; |
10832 | } | |
10833 | } | |
10834 | { | |
474c48f9 | 10835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10836 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 10837 | |
474c48f9 | 10838 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10839 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10840 | } _resultobj = Py_BuildValue("i",_result); |
10841 | return _resultobj; | |
10842 | } | |
10843 | ||
b1462dfa RD |
10844 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
10845 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10846 | PyObject * _resultobj; |
b1462dfa | 10847 | bool _result; |
cf694132 | 10848 | wxMenuItem * _arg0; |
1d99702e | 10849 | PyObject * _argo0 = 0; |
efc5f224 | 10850 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10851 | |
10852 | self = self; | |
b1462dfa | 10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 10854 | return NULL; |
1d99702e RD |
10855 | if (_argo0) { |
10856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10859 | return NULL; |
10860 | } | |
10861 | } | |
10862 | { | |
474c48f9 | 10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10864 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 10865 | |
474c48f9 | 10866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10867 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10868 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10869 | return _resultobj; |
10870 | } | |
10871 | ||
b1462dfa RD |
10872 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
10873 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10874 | PyObject * _resultobj; |
10875 | wxMenuItem * _arg0; | |
b1462dfa | 10876 | wxMenu * _arg1; |
1d99702e RD |
10877 | PyObject * _argo0 = 0; |
10878 | PyObject * _argo1 = 0; | |
b1462dfa | 10879 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
10880 | |
10881 | self = self; | |
b1462dfa | 10882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 10883 | return NULL; |
1d99702e RD |
10884 | if (_argo0) { |
10885 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10886 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10888 | return NULL; |
10889 | } | |
10890 | } | |
1d99702e RD |
10891 | if (_argo1) { |
10892 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10893 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
10894 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
10895 | return NULL; |
10896 | } | |
10897 | } | |
10898 | { | |
474c48f9 | 10899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10900 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 10901 | |
474c48f9 | 10902 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10903 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10904 | } Py_INCREF(Py_None); |
10905 | _resultobj = Py_None; | |
10906 | return _resultobj; | |
10907 | } | |
10908 | ||
b1462dfa RD |
10909 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
10910 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10911 | PyObject * _resultobj; |
b1462dfa | 10912 | wxMenu * _result; |
cf694132 | 10913 | wxMenuItem * _arg0; |
1d99702e | 10914 | PyObject * _argo0 = 0; |
b1462dfa | 10915 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10916 | |
10917 | self = self; | |
b1462dfa | 10918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 10919 | return NULL; |
1d99702e RD |
10920 | if (_argo0) { |
10921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10924 | return NULL; |
10925 | } | |
10926 | } | |
b1462dfa | 10927 | { |
474c48f9 | 10928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10929 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 10930 | |
474c48f9 | 10931 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10932 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10933 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
10934 | return _resultobj; |
10935 | } | |
10936 | ||
10937 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10938 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10939 | PyObject * _resultobj; | |
10940 | wxMenuItem * _arg0; | |
10941 | bool _arg1 = (bool ) TRUE; | |
10942 | PyObject * _argo0 = 0; | |
10943 | int tempbool1 = (int) TRUE; | |
10944 | char *_kwnames[] = { "self","enable", NULL }; | |
10945 | ||
10946 | self = self; | |
10947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10948 | return NULL; | |
10949 | if (_argo0) { | |
10950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
10953 | return NULL; |
10954 | } | |
10955 | } | |
b1462dfa | 10956 | _arg1 = (bool ) tempbool1; |
cf694132 | 10957 | { |
474c48f9 | 10958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10959 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 10960 | |
474c48f9 | 10961 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10962 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10963 | } Py_INCREF(Py_None); |
10964 | _resultobj = Py_None; | |
10965 | return _resultobj; | |
10966 | } | |
10967 | ||
b1462dfa RD |
10968 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
10969 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10970 | PyObject * _resultobj; |
b1462dfa | 10971 | bool _result; |
cf694132 | 10972 | wxMenuItem * _arg0; |
1d99702e | 10973 | PyObject * _argo0 = 0; |
b1462dfa | 10974 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10975 | |
10976 | self = self; | |
b1462dfa | 10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 10978 | return NULL; |
1d99702e RD |
10979 | if (_argo0) { |
10980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
10983 | return NULL; |
10984 | } | |
10985 | } | |
10986 | { | |
474c48f9 | 10987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10988 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 10989 | |
474c48f9 | 10990 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10991 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10992 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10993 | return _resultobj; |
10994 | } | |
10995 | ||
b1462dfa RD |
10996 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
10997 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10998 | PyObject * _resultobj; |
10999 | wxMenuItem * _arg0; | |
b1462dfa | 11000 | bool _arg1 = (bool ) TRUE; |
1d99702e | 11001 | PyObject * _argo0 = 0; |
b1462dfa RD |
11002 | int tempbool1 = (int) TRUE; |
11003 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
11004 | |
11005 | self = self; | |
b1462dfa | 11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 11007 | return NULL; |
1d99702e RD |
11008 | if (_argo0) { |
11009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
11012 | return NULL; |
11013 | } | |
11014 | } | |
b1462dfa | 11015 | _arg1 = (bool ) tempbool1; |
cf694132 | 11016 | { |
474c48f9 | 11017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11018 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 11019 | |
474c48f9 | 11020 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11021 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11022 | } Py_INCREF(Py_None); |
11023 | _resultobj = Py_None; | |
11024 | return _resultobj; | |
11025 | } | |
11026 | ||
b1462dfa RD |
11027 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
11028 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11029 | PyObject * _resultobj; |
b1462dfa | 11030 | bool _result; |
2abc0a0f | 11031 | wxMenuItem * _arg0; |
2abc0a0f | 11032 | PyObject * _argo0 = 0; |
b1462dfa | 11033 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
11034 | |
11035 | self = self; | |
b1462dfa | 11036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
11037 | return NULL; |
11038 | if (_argo0) { | |
11039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11042 | return NULL; |
11043 | } | |
11044 | } | |
2abc0a0f | 11045 | { |
474c48f9 | 11046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11047 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 11048 | |
474c48f9 | 11049 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11050 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11051 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
11052 | return _resultobj; |
11053 | } | |
11054 | ||
b1462dfa RD |
11055 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
11056 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11057 | PyObject * _resultobj; |
2abc0a0f RD |
11058 | wxMenuItem * _arg0; |
11059 | PyObject * _argo0 = 0; | |
11060 | char *_kwnames[] = { "self", NULL }; | |
11061 | ||
11062 | self = self; | |
b1462dfa | 11063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
11064 | return NULL; |
11065 | if (_argo0) { | |
11066 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11067 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11068 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11069 | return NULL; |
11070 | } | |
11071 | } | |
11072 | { | |
474c48f9 | 11073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11074 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 11075 | |
474c48f9 | 11076 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11077 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11078 | } Py_INCREF(Py_None); |
11079 | _resultobj = Py_None; | |
2abc0a0f RD |
11080 | return _resultobj; |
11081 | } | |
11082 | ||
b1462dfa RD |
11083 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
11084 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11085 | PyObject * _resultobj; |
11086 | wxMenuItem * _arg0; | |
b1462dfa | 11087 | wxString * _arg1; |
1d99702e | 11088 | PyObject * _argo0 = 0; |
b1462dfa RD |
11089 | PyObject * _obj1 = 0; |
11090 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
11091 | |
11092 | self = self; | |
b1462dfa | 11093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 11094 | return NULL; |
1d99702e RD |
11095 | if (_argo0) { |
11096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
11099 | return NULL; |
11100 | } | |
11101 | } | |
b1462dfa | 11102 | { |
c8bc7bb8 RD |
11103 | _arg1 = wxString_in_helper(_obj1); |
11104 | if (_arg1 == NULL) | |
2cd2fac8 | 11105 | return NULL; |
b1462dfa | 11106 | } |
cf694132 | 11107 | { |
474c48f9 | 11108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11109 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 11110 | |
474c48f9 | 11111 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11112 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11113 | } Py_INCREF(Py_None); |
8ab979d7 | 11114 | _resultobj = Py_None; |
b1462dfa RD |
11115 | { |
11116 | if (_obj1) | |
11117 | delete _arg1; | |
11118 | } | |
8ab979d7 RD |
11119 | return _resultobj; |
11120 | } | |
11121 | ||
b1462dfa RD |
11122 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
11123 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 11124 | PyObject * _resultobj; |
b1462dfa | 11125 | wxString * _result; |
be4d9c1f | 11126 | wxMenuItem * _arg0; |
1d99702e | 11127 | PyObject * _argo0 = 0; |
efc5f224 | 11128 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
11129 | |
11130 | self = self; | |
b1462dfa | 11131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 11132 | return NULL; |
1d99702e RD |
11133 | if (_argo0) { |
11134 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11135 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11136 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
11137 | return NULL; |
11138 | } | |
11139 | } | |
cf694132 | 11140 | { |
474c48f9 | 11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11142 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 11143 | _result = (wxString *) &_result_ref; |
cf694132 | 11144 | |
474c48f9 | 11145 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11146 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11147 | }{ |
c8bc7bb8 RD |
11148 | #if wxUSE_UNICODE |
11149 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
11150 | #else | |
eec92d76 | 11151 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11152 | #endif |
b1462dfa | 11153 | } |
be4d9c1f RD |
11154 | return _resultobj; |
11155 | } | |
11156 | ||
b1462dfa RD |
11157 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
11158 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11159 | PyObject * _resultobj; |
b1462dfa | 11160 | wxAcceleratorEntry * _result; |
2abc0a0f | 11161 | wxMenuItem * _arg0; |
2abc0a0f | 11162 | PyObject * _argo0 = 0; |
b1462dfa RD |
11163 | char *_kwnames[] = { "self", NULL }; |
11164 | char _ptemp[128]; | |
2abc0a0f RD |
11165 | |
11166 | self = self; | |
b1462dfa | 11167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
11168 | return NULL; |
11169 | if (_argo0) { | |
11170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11173 | return NULL; |
11174 | } | |
11175 | } | |
2abc0a0f | 11176 | { |
474c48f9 | 11177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11178 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 11179 | |
474c48f9 | 11180 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11181 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11182 | } if (_result) { |
11183 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
11184 | _resultobj = Py_BuildValue("s",_ptemp); | |
11185 | } else { | |
11186 | Py_INCREF(Py_None); | |
11187 | _resultobj = Py_None; | |
11188 | } | |
2abc0a0f RD |
11189 | return _resultobj; |
11190 | } | |
11191 | ||
b1462dfa RD |
11192 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
11193 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
11194 | PyObject * _resultobj; |
11195 | wxMenuItem * _arg0; | |
b1462dfa | 11196 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
11197 | PyObject * _argo0 = 0; |
11198 | PyObject * _argo1 = 0; | |
b1462dfa | 11199 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
11200 | |
11201 | self = self; | |
b1462dfa | 11202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
11203 | return NULL; |
11204 | if (_argo0) { | |
11205 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11206 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11207 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11208 | return NULL; |
11209 | } | |
11210 | } | |
11211 | if (_argo1) { | |
11212 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11213 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
11214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
11215 | return NULL; |
11216 | } | |
11217 | } | |
11218 | { | |
474c48f9 | 11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11220 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 11221 | |
474c48f9 | 11222 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11223 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
11224 | } Py_INCREF(Py_None); |
11225 | _resultobj = Py_None; | |
11226 | return _resultobj; | |
11227 | } | |
11228 | ||
9c4165ad RD |
11229 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
11230 | PyObject * _resultobj; | |
11231 | wxString * _result; | |
11232 | wxString * _arg0; | |
11233 | PyObject * _obj0 = 0; | |
11234 | char *_kwnames[] = { "text", NULL }; | |
11235 | ||
11236 | self = self; | |
11237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
11238 | return NULL; | |
11239 | { | |
c8bc7bb8 RD |
11240 | _arg0 = wxString_in_helper(_obj0); |
11241 | if (_arg0 == NULL) | |
9c4165ad | 11242 | return NULL; |
9c4165ad RD |
11243 | } |
11244 | { | |
474c48f9 | 11245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11246 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
9c4165ad | 11247 | |
474c48f9 | 11248 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11249 | if (PyErr_Occurred()) return NULL; |
9c4165ad | 11250 | }{ |
c8bc7bb8 RD |
11251 | #if wxUSE_UNICODE |
11252 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
11253 | #else | |
9c4165ad | 11254 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11255 | #endif |
9c4165ad RD |
11256 | } |
11257 | { | |
11258 | if (_obj0) | |
11259 | delete _arg0; | |
11260 | } | |
11261 | { | |
11262 | delete _result; | |
11263 | } | |
11264 | return _resultobj; | |
11265 | } | |
11266 | ||
8ab979d7 | 11267 | static PyMethodDef windowscMethods[] = { |
9c4165ad | 11268 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11269 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
11270 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11271 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11272 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11273 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11275 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11276 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11277 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11278 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11279 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 11280 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11281 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11282 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 | 11283 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11284 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
11285 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11286 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11287 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11288 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
11289 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11291 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11292 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11293 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
11294 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11295 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
11296 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11297 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11298 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11299 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
11300 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 11302 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11303 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
11304 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11309 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11310 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11311 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
11312 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11313 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
11314 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11315 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11316 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11317 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11318 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11319 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11320 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11321 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11322 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11323 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11324 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11325 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11326 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
11327 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11328 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
11329 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11330 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11331 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11332 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11333 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11334 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11335 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
11336 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 11337 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11338 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11339 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11340 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11341 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11342 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
11343 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
11344 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
11345 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11346 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11347 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11348 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11349 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11351 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11352 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11353 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11356 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 RD |
11357 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
11358 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11359 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
11360 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
8381e4cd | 11363 | { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, |
49df1f52 | 11364 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
7a446686 RD |
11365 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11366 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
11369 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
11370 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 11373 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11374 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11375 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11376 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11377 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
11378 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
11379 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11380 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11381 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11382 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11383 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11384 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11385 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11386 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11387 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11388 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
11389 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11390 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
94c16279 RD |
11391 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
11392 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11393 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
12d1116b | 11396 | { "wxWindow_SetTmpDefaultItem", (PyCFunction) _wrap_wxWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
1893b029 RD |
11397 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
11398 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 11399 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
32c988a3 | 11400 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11401 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
11402 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
11403 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
11404 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
11405 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
11406 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
11410 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11411 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11412 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
11413 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 11414 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
10be44ac RD |
11415 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
11416 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11417 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
11418 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
49df1f52 | 11419 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11420 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11421 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
11422 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11423 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
11424 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
94082a71 RD |
11425 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
11426 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11427 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd | 11428 | { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11429 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11430 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
11431 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11439 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11440 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11441 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
11442 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
11443 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11444 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 11445 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11446 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
298ae144 | 11447 | { "wxWindow_GetCursor", (PyCFunction) _wrap_wxWindow_GetCursor, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11448 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
11449 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
8381e4cd RD |
11451 | { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
11452 | { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11453 | { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11454 | { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11456 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
2cd2fac8 | 11457 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11458 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
11459 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
11461 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11462 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11467 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd | 11468 | { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11469 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11470 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11471 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
11472 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 11473 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11474 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11475 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
11476 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11479 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
298ae144 | 11480 | { "wxWindow_AddChild", (PyCFunction) _wrap_wxWindow_AddChild, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11481 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11482 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
11483 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
5d413391 | 11486 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11487 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
11488 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11489 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
11490 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11491 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
11492 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
11493 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
11498 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
11499 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
11500 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11501 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11502 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11503 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11504 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11505 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11506 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
11507 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11508 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
11509 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
11510 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11511 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11512 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11513 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11514 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11515 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11516 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11517 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11518 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11519 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11520 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11521 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11522 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11524 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11525 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 11526 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11527 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
11528 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11530 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11531 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 RD |
11532 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
11533 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11534 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11535 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11536 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11537 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11538 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11539 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11540 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11541 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11542 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11543 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11544 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 11545 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11546 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11547 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a | 11551 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11552 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11553 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11554 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11555 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11558 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11559 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11560 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0220cbc1 | 11561 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11562 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
11563 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11564 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11565 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11566 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11567 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11568 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11569 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11570 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11571 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11572 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11573 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11574 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11575 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11576 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11577 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11578 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11579 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11580 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
298ae144 RD |
11581 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, |
11582 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11583 | { "wxFindWindowById", (PyCFunction) _wrap_wxFindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11584 | { NULL, NULL } |
11585 | }; | |
1d99702e RD |
11586 | #ifdef __cplusplus |
11587 | } | |
11588 | #endif | |
11589 | /* | |
11590 | * This table is used by the pointer type-checker | |
11591 | */ | |
11592 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11593 | { "_signed_long","_long",0}, |
b1462dfa | 11594 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11595 | { "_wxPrintQuality","_int",0}, |
11596 | { "_wxPrintQuality","_signed_int",0}, | |
11597 | { "_wxPrintQuality","_unsigned_int",0}, | |
11598 | { "_wxPrintQuality","_wxWindowID",0}, | |
11599 | { "_wxPrintQuality","_uint",0}, | |
11600 | { "_wxPrintQuality","_EBool",0}, | |
11601 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11602 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11603 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11604 | { "_long","_unsigned_long",0}, |
11605 | { "_long","_signed_long",0}, | |
b1462dfa | 11606 | { "_size_t","_wxCoord",0}, |
1d99702e | 11607 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11608 | { "_size_t","_time_t",0}, |
1d99702e RD |
11609 | { "_size_t","_unsigned_int",0}, |
11610 | { "_size_t","_int",0}, | |
11611 | { "_size_t","_wxWindowID",0}, | |
11612 | { "_size_t","_uint",0}, | |
1d99702e | 11613 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 11614 | { "_uint","_wxCoord",0}, |
1d99702e | 11615 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11616 | { "_uint","_time_t",0}, |
1d99702e RD |
11617 | { "_uint","_size_t",0}, |
11618 | { "_uint","_unsigned_int",0}, | |
11619 | { "_uint","_int",0}, | |
11620 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11621 | { "_wxChar","_char",0}, |
f6bcfd97 | 11622 | { "_char","_wxChar",0}, |
059a841c | 11623 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11624 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11625 | { "_EBool","_wxPrintQuality",0}, |
11626 | { "_EBool","_signed_int",0}, | |
11627 | { "_EBool","_int",0}, | |
11628 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11629 | { "_unsigned_long","_long",0}, |
059a841c | 11630 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11631 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11632 | { "_signed_int","_wxPrintQuality",0}, |
11633 | { "_signed_int","_EBool",0}, | |
11634 | { "_signed_int","_wxWindowID",0}, | |
11635 | { "_signed_int","_int",0}, | |
1d99702e RD |
11636 | { "_WXTYPE","_short",0}, |
11637 | { "_WXTYPE","_signed_short",0}, | |
11638 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11639 | { "_unsigned_short","_WXTYPE",0}, |
11640 | { "_unsigned_short","_short",0}, | |
9df61a29 | 11641 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9df61a29 | 11642 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9df61a29 | 11643 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9df61a29 | 11644 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9df61a29 | 11645 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9df61a29 | 11646 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9df61a29 | 11647 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9df61a29 | 11648 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9df61a29 | 11649 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
11650 | { "_signed_short","_WXTYPE",0}, |
11651 | { "_signed_short","_short",0}, | |
1d99702e | 11652 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11653 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11654 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11655 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11656 | { "_unsigned_int","_size_t",0}, |
11657 | { "_unsigned_int","_uint",0}, | |
11658 | { "_unsigned_int","_wxWindowID",0}, | |
11659 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11660 | { "_short","_WXTYPE",0}, |
11661 | { "_short","_unsigned_short",0}, | |
11662 | { "_short","_signed_short",0}, | |
b1462dfa | 11663 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11664 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11665 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11666 | { "_wxWindowID","_size_t",0}, |
11667 | { "_wxWindowID","_EBool",0}, | |
11668 | { "_wxWindowID","_uint",0}, | |
11669 | { "_wxWindowID","_int",0}, | |
11670 | { "_wxWindowID","_signed_int",0}, | |
11671 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11672 | { "_int","_wxCoord",0}, |
1d99702e | 11673 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11674 | { "_int","_time_t",0}, |
1d99702e RD |
11675 | { "_int","_size_t",0}, |
11676 | { "_int","_EBool",0}, | |
11677 | { "_int","_uint",0}, | |
11678 | { "_int","_wxWindowID",0}, | |
11679 | { "_int","_unsigned_int",0}, | |
11680 | { "_int","_signed_int",0}, | |
c368d904 RD |
11681 | { "_time_t","_wxCoord",0}, |
11682 | { "_time_t","_wxPrintQuality",0}, | |
11683 | { "_time_t","_unsigned_int",0}, | |
11684 | { "_time_t","_int",0}, | |
11685 | { "_time_t","_wxWindowID",0}, | |
11686 | { "_time_t","_uint",0}, | |
11687 | { "_time_t","_size_t",0}, | |
2f90df85 | 11688 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
11689 | { "_wxCoord","_int",0}, |
11690 | { "_wxCoord","_signed_int",0}, | |
11691 | { "_wxCoord","_unsigned_int",0}, | |
11692 | { "_wxCoord","_wxWindowID",0}, | |
11693 | { "_wxCoord","_uint",0}, | |
11694 | { "_wxCoord","_EBool",0}, | |
11695 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11696 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11697 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 11698 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 11699 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 11700 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 11701 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 11702 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 11703 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 11704 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 11705 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 11706 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 11707 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
11708 | {0,0,0}}; |
11709 | ||
8ab979d7 RD |
11710 | static PyObject *SWIG_globals; |
11711 | #ifdef __cplusplus | |
11712 | extern "C" | |
11713 | #endif | |
1d99702e | 11714 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
11715 | PyObject *m, *d; |
11716 | SWIG_globals = SWIG_newvarlink(); | |
11717 | m = Py_InitModule("windowsc", windowscMethods); | |
11718 | d = PyModule_GetDict(m); | |
1d99702e RD |
11719 | { |
11720 | int i; | |
11721 | for (i = 0; _swig_mapping[i].n1; i++) | |
11722 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11723 | } | |
8ab979d7 | 11724 | } |