]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/windows.cpp |
faeb124b | 3 | * |
8ab979d7 RD |
4 | * This file was automatically generated by : |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
faeb124b | 7 | * |
8ab979d7 RD |
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. | |
faeb124b | 12 | * |
8ab979d7 RD |
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 | |
b67a9327 RD |
22 | #include "Python.h" |
23 | ||
8ab979d7 RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 33 | # else |
3bcd5e1c | 34 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
35 | # endif |
36 | # endif | |
37 | #else | |
3bcd5e1c | 38 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
8ab979d7 RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
8ab979d7 RD |
53 | #define SWIG_init initwindowsc |
54 | ||
55 | #define SWIG_name "windowsc" | |
56 | ||
57 | #include "helpers.h" | |
8ab979d7 | 58 | #include <wx/menuitem.h> |
9df61a29 | 59 | #include <wx/tooltip.h> |
8ab979d7 | 60 | |
8ab979d7 RD |
61 | |
62 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
63 | PyObject* o2; | |
64 | PyObject* o3; | |
65 | ||
3bcd5e1c | 66 | if (!target) { |
8ab979d7 | 67 | target = o; |
3bcd5e1c | 68 | } else if (target == Py_None) { |
8ab979d7 RD |
69 | Py_DECREF(Py_None); |
70 | target = o; | |
3bcd5e1c | 71 | } else { |
8ab979d7 RD |
72 | if (!PyTuple_Check(target)) { |
73 | o2 = target; | |
74 | target = PyTuple_New(1); | |
75 | PyTuple_SetItem(target, 0, o2); | |
76 | } | |
3bcd5e1c RD |
77 | o3 = PyTuple_New(1); |
78 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
79 | |
80 | o2 = target; | |
3bcd5e1c RD |
81 | target = PySequence_Concat(o2, o3); |
82 | Py_DECREF(o2); | |
8ab979d7 RD |
83 | Py_DECREF(o3); |
84 | } | |
85 | return target; | |
86 | } | |
87 | ||
9a74fcaf RD |
88 | // Put some wx default wxChar* values into wxStrings. |
89 | DECLARE_DEF_STRING(PanelNameStr); | |
90 | static const wxString wxPyEmptyString(wxT("")); | |
91 | ||
2f90df85 RD |
92 | class wxPyValidator : public wxValidator { |
93 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
94 | public: | |
95 | wxPyValidator() { | |
96 | } | |
2f90df85 RD |
97 | |
98 | ~wxPyValidator() { | |
99 | } | |
100 | ||
059a841c | 101 | wxObject* Clone() const { |
694759cf RD |
102 | wxPyValidator* ptr = NULL; |
103 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 104 | |
474c48f9 | 105 | wxPyBeginBlockThreads(); |
694759cf RD |
106 | if (self->m_myInst.findCallback("Clone")) { |
107 | PyObject* ro; | |
108 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
109 | if (ro) { |
110 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
111 | Py_DECREF(ro); | |
112 | } | |
694759cf | 113 | } |
474c48f9 | 114 | wxPyEndBlockThreads(); |
059a841c | 115 | |
694759cf RD |
116 | // This is very dangerous!!! But is the only way I could find |
117 | // to squash a memory leak. Currently it is okay, but if the | |
118 | // validator architecture in wxWindows ever changes, problems | |
119 | // could arise. | |
120 | delete self; | |
694759cf RD |
121 | return ptr; |
122 | } | |
2f90df85 | 123 | |
9df61a29 | 124 | |
2f90df85 RD |
125 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
126 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
127 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
128 | ||
129 | PYPRIVATE; | |
2f90df85 RD |
130 | }; |
131 | ||
132 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
133 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
135 | ||
136 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 137 | |
298ae144 RD |
138 | |
139 | wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) { | |
140 | return wxWindow::FindWindowById(id, parent); | |
141 | } | |
142 | ||
143 | wxWindow* wxFindWindowByName( const wxString& name, | |
144 | const wxWindow *parent = NULL ) { | |
145 | return wxWindow::FindWindowByName(name, parent); | |
146 | } | |
147 | ||
148 | wxWindow* wxFindWindowByLabel( const wxString& label, | |
149 | const wxWindow *parent = NULL ) { | |
150 | return wxWindow::FindWindowByLabel(label, parent); | |
151 | } | |
2f90df85 RD |
152 | #ifdef __cplusplus |
153 | extern "C" { | |
154 | #endif | |
298ae144 RD |
155 | static PyObject *_wrap_wxFindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
156 | PyObject * _resultobj; | |
157 | wxWindow * _result; | |
158 | long _arg0; | |
159 | wxWindow * _arg1 = (wxWindow *) NULL; | |
160 | PyObject * _argo1 = 0; | |
161 | char *_kwnames[] = { "id","parent", NULL }; | |
162 | ||
163 | self = self; | |
faeb124b | 164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l|O:wxFindWindowById",_kwnames,&_arg0,&_argo1)) |
298ae144 RD |
165 | return NULL; |
166 | if (_argo1) { | |
167 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
168 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowById. Expected _wxWindow_p."); | |
170 | return NULL; | |
171 | } | |
172 | } | |
173 | { | |
174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
175 | _result = (wxWindow *)wxFindWindowById(_arg0,_arg1); | |
176 | ||
177 | wxPyEndAllowThreads(__tstate); | |
178 | if (PyErr_Occurred()) return NULL; | |
179 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
180 | return _resultobj; | |
181 | } | |
182 | ||
183 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
184 | PyObject * _resultobj; | |
185 | wxWindow * _result; | |
186 | wxString * _arg0; | |
187 | wxWindow * _arg1 = (wxWindow *) NULL; | |
188 | PyObject * _obj0 = 0; | |
189 | PyObject * _argo1 = 0; | |
190 | char *_kwnames[] = { "name","parent", NULL }; | |
191 | ||
192 | self = self; | |
faeb124b | 193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
298ae144 RD |
194 | return NULL; |
195 | { | |
196 | _arg0 = wxString_in_helper(_obj0); | |
197 | if (_arg0 == NULL) | |
198 | return NULL; | |
199 | } | |
200 | if (_argo1) { | |
201 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
202 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); | |
204 | return NULL; | |
205 | } | |
206 | } | |
207 | { | |
208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
209 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); | |
210 | ||
211 | wxPyEndAllowThreads(__tstate); | |
212 | if (PyErr_Occurred()) return NULL; | |
213 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
214 | { | |
215 | if (_obj0) | |
216 | delete _arg0; | |
217 | } | |
218 | return _resultobj; | |
219 | } | |
220 | ||
221 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
222 | PyObject * _resultobj; | |
223 | wxWindow * _result; | |
224 | wxString * _arg0; | |
225 | wxWindow * _arg1 = (wxWindow *) NULL; | |
226 | PyObject * _obj0 = 0; | |
227 | PyObject * _argo1 = 0; | |
228 | char *_kwnames[] = { "label","parent", NULL }; | |
229 | ||
230 | self = self; | |
faeb124b | 231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
298ae144 RD |
232 | return NULL; |
233 | { | |
234 | _arg0 = wxString_in_helper(_obj0); | |
235 | if (_arg0 == NULL) | |
236 | return NULL; | |
237 | } | |
238 | if (_argo1) { | |
239 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
240 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); | |
242 | return NULL; | |
243 | } | |
244 | } | |
245 | { | |
246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
247 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); | |
248 | ||
249 | wxPyEndAllowThreads(__tstate); | |
250 | if (PyErr_Occurred()) return NULL; | |
251 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
252 | { | |
253 | if (_obj0) | |
254 | delete _arg0; | |
255 | } | |
256 | return _resultobj; | |
257 | } | |
258 | ||
9df61a29 RD |
259 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
260 | wxEvtHandler *src; | |
261 | wxObject *dest; | |
262 | src = (wxEvtHandler *) ptr; | |
263 | dest = (wxObject *) src; | |
264 | return (void *) dest; | |
265 | } | |
266 | ||
c368d904 RD |
267 | #define new_wxEvtHandler() (new wxEvtHandler()) |
268 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
269 | PyObject * _resultobj; | |
270 | wxEvtHandler * _result; | |
271 | char *_kwnames[] = { NULL }; | |
272 | char _ptemp[128]; | |
273 | ||
274 | self = self; | |
faeb124b | 275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) |
c368d904 RD |
276 | return NULL; |
277 | { | |
474c48f9 | 278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 279 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 280 | |
474c48f9 | 281 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 282 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
283 | } if (_result) { |
284 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
285 | _resultobj = Py_BuildValue("s",_ptemp); | |
286 | } else { | |
287 | Py_INCREF(Py_None); | |
288 | _resultobj = Py_None; | |
289 | } | |
290 | return _resultobj; | |
291 | } | |
292 | ||
2f90df85 RD |
293 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
294 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
295 | PyObject * _resultobj; | |
296 | bool _result; | |
297 | wxEvtHandler * _arg0; | |
298 | wxEvent * _arg1; | |
299 | PyObject * _argo0 = 0; | |
300 | PyObject * _argo1 = 0; | |
301 | char *_kwnames[] = { "self","event", NULL }; | |
302 | ||
303 | self = self; | |
faeb124b | 304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
305 | return NULL; |
306 | if (_argo0) { | |
307 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
308 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
309 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
310 | return NULL; | |
311 | } | |
312 | } | |
313 | if (_argo1) { | |
b67a9327 | 314 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
2f90df85 RD |
315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); |
316 | return NULL; | |
317 | } | |
318 | } | |
319 | { | |
474c48f9 | 320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 321 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 322 | |
474c48f9 | 323 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 324 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
325 | } _resultobj = Py_BuildValue("i",_result); |
326 | return _resultobj; | |
327 | } | |
328 | ||
f6bcfd97 BP |
329 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
330 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
331 | PyObject * _resultobj; | |
332 | wxEvtHandler * _arg0; | |
333 | wxEvent * _arg1; | |
334 | PyObject * _argo0 = 0; | |
335 | PyObject * _argo1 = 0; | |
336 | char *_kwnames[] = { "self","event", NULL }; | |
337 | ||
338 | self = self; | |
faeb124b | 339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
340 | return NULL; |
341 | if (_argo0) { | |
342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
345 | return NULL; | |
346 | } | |
347 | } | |
348 | if (_argo1) { | |
b67a9327 | 349 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
f6bcfd97 BP |
350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); |
351 | return NULL; | |
352 | } | |
353 | } | |
354 | { | |
474c48f9 | 355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 356 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 357 | |
474c48f9 | 358 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 359 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
360 | } Py_INCREF(Py_None); |
361 | _resultobj = Py_None; | |
362 | return _resultobj; | |
363 | } | |
364 | ||
2f90df85 RD |
365 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
366 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
367 | PyObject * _resultobj; | |
368 | bool _result; | |
369 | wxEvtHandler * _arg0; | |
370 | PyObject * _argo0 = 0; | |
371 | char *_kwnames[] = { "self", NULL }; | |
372 | ||
373 | self = self; | |
faeb124b | 374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) |
2f90df85 RD |
375 | return NULL; |
376 | if (_argo0) { | |
377 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
378 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
379 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
380 | return NULL; | |
381 | } | |
382 | } | |
383 | { | |
474c48f9 | 384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 385 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 386 | |
474c48f9 | 387 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 388 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
389 | } _resultobj = Py_BuildValue("i",_result); |
390 | return _resultobj; | |
391 | } | |
392 | ||
393 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
394 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
395 | PyObject * _resultobj; | |
396 | wxEvtHandler * _arg0; | |
397 | bool _arg1; | |
398 | PyObject * _argo0 = 0; | |
399 | int tempbool1; | |
400 | char *_kwnames[] = { "self","enabled", NULL }; | |
401 | ||
402 | self = self; | |
faeb124b | 403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) |
2f90df85 RD |
404 | return NULL; |
405 | if (_argo0) { | |
406 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
407 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
408 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
409 | return NULL; | |
410 | } | |
411 | } | |
412 | _arg1 = (bool ) tempbool1; | |
413 | { | |
474c48f9 | 414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 415 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 416 | |
474c48f9 | 417 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 418 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
419 | } Py_INCREF(Py_None); |
420 | _resultobj = Py_None; | |
421 | return _resultobj; | |
422 | } | |
423 | ||
424 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
425 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
426 | PyObject * _resultobj; | |
427 | wxEvtHandler * _result; | |
428 | wxEvtHandler * _arg0; | |
429 | PyObject * _argo0 = 0; | |
430 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
431 | |
432 | self = self; | |
faeb124b | 433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) |
2f90df85 RD |
434 | return NULL; |
435 | if (_argo0) { | |
436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
439 | return NULL; | |
440 | } | |
441 | } | |
442 | { | |
474c48f9 | 443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 444 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 445 | |
474c48f9 | 446 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 447 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 448 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
449 | return _resultobj; |
450 | } | |
451 | ||
452 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
453 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
454 | PyObject * _resultobj; | |
455 | wxEvtHandler * _result; | |
456 | wxEvtHandler * _arg0; | |
457 | PyObject * _argo0 = 0; | |
458 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
459 | |
460 | self = self; | |
faeb124b | 461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) |
2f90df85 RD |
462 | return NULL; |
463 | if (_argo0) { | |
464 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
465 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
467 | return NULL; | |
468 | } | |
469 | } | |
470 | { | |
474c48f9 | 471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 472 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 473 | |
474c48f9 | 474 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 475 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 476 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
477 | return _resultobj; |
478 | } | |
479 | ||
480 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
481 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
482 | PyObject * _resultobj; | |
483 | wxEvtHandler * _arg0; | |
484 | wxEvtHandler * _arg1; | |
485 | PyObject * _argo0 = 0; | |
486 | PyObject * _argo1 = 0; | |
487 | char *_kwnames[] = { "self","handler", NULL }; | |
488 | ||
489 | self = self; | |
faeb124b | 490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
491 | return NULL; |
492 | if (_argo0) { | |
493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
496 | return NULL; | |
497 | } | |
498 | } | |
499 | if (_argo1) { | |
500 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
501 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
503 | return NULL; | |
504 | } | |
505 | } | |
506 | { | |
474c48f9 | 507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 508 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 509 | |
474c48f9 | 510 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 511 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
512 | } Py_INCREF(Py_None); |
513 | _resultobj = Py_None; | |
514 | return _resultobj; | |
515 | } | |
516 | ||
517 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
518 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
519 | PyObject * _resultobj; | |
520 | wxEvtHandler * _arg0; | |
521 | wxEvtHandler * _arg1; | |
522 | PyObject * _argo0 = 0; | |
523 | PyObject * _argo1 = 0; | |
524 | char *_kwnames[] = { "self","handler", NULL }; | |
525 | ||
526 | self = self; | |
faeb124b | 527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
528 | return NULL; |
529 | if (_argo0) { | |
530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
533 | return NULL; | |
534 | } | |
535 | } | |
536 | if (_argo1) { | |
537 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
538 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
540 | return NULL; | |
541 | } | |
542 | } | |
543 | { | |
474c48f9 | 544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 545 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 546 | |
474c48f9 | 547 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 548 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
549 | } Py_INCREF(Py_None); |
550 | _resultobj = Py_None; | |
551 | return _resultobj; | |
552 | } | |
553 | ||
554 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
555 | if (PyCallable_Check(func)) { | |
556 | self->Connect(id, lastId, eventType, | |
557 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
558 | new wxPyCallback(func)); | |
559 | } | |
a57d56d6 RD |
560 | else if (func == Py_None) { |
561 | self->Disconnect(id, lastId, eventType, | |
562 | (wxObjectEventFunction) | |
563 | &wxPyCallback::EventThunker); | |
564 | } | |
565 | else { | |
566 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
567 | } | |
2f90df85 RD |
568 | } |
569 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
570 | PyObject * _resultobj; | |
571 | wxEvtHandler * _arg0; | |
572 | int _arg1; | |
573 | int _arg2; | |
574 | int _arg3; | |
575 | PyObject * _arg4; | |
576 | PyObject * _argo0 = 0; | |
577 | PyObject * _obj4 = 0; | |
578 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
579 | ||
580 | self = self; | |
faeb124b | 581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) |
2f90df85 RD |
582 | return NULL; |
583 | if (_argo0) { | |
584 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
585 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
586 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
587 | return NULL; | |
588 | } | |
589 | } | |
590 | { | |
591 | _arg4 = _obj4; | |
592 | } | |
593 | { | |
474c48f9 | 594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 595 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 596 | |
474c48f9 | 597 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 598 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
599 | } Py_INCREF(Py_None); |
600 | _resultobj = Py_None; | |
601 | return _resultobj; | |
602 | } | |
603 | ||
6999b0d8 RD |
604 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
605 | return self->Disconnect(id, lastId, eventType, | |
606 | (wxObjectEventFunction) | |
607 | &wxPyCallback::EventThunker); | |
608 | } | |
609 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
610 | PyObject * _resultobj; | |
611 | bool _result; | |
612 | wxEvtHandler * _arg0; | |
613 | int _arg1; | |
614 | int _arg2 = (int ) -1; | |
615 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
616 | PyObject * _argo0 = 0; | |
617 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
618 | ||
619 | self = self; | |
faeb124b | 620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
6999b0d8 RD |
621 | return NULL; |
622 | if (_argo0) { | |
623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
626 | return NULL; | |
627 | } | |
628 | } | |
629 | { | |
474c48f9 | 630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 631 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 632 | |
474c48f9 | 633 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 634 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
635 | } _resultobj = Py_BuildValue("i",_result); |
636 | return _resultobj; | |
637 | } | |
638 | ||
0220cbc1 | 639 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
301dfd67 | 640 | self->SetClientObject(new wxPyOORClientData(_self)); |
0220cbc1 RD |
641 | } |
642 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
643 | PyObject * _resultobj; | |
644 | wxEvtHandler * _arg0; | |
645 | PyObject * _arg1; | |
646 | PyObject * _argo0 = 0; | |
647 | PyObject * _obj1 = 0; | |
648 | char *_kwnames[] = { "self","_self", NULL }; | |
649 | ||
650 | self = self; | |
faeb124b | 651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) |
0220cbc1 RD |
652 | return NULL; |
653 | if (_argo0) { | |
654 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
655 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
657 | return NULL; | |
658 | } | |
659 | } | |
660 | { | |
661 | _arg1 = _obj1; | |
662 | } | |
663 | { | |
474c48f9 | 664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 665 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0220cbc1 | 666 | |
474c48f9 | 667 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
668 | if (PyErr_Occurred()) return NULL; |
669 | } Py_INCREF(Py_None); | |
670 | _resultobj = Py_None; | |
671 | return _resultobj; | |
672 | } | |
673 | ||
2f90df85 RD |
674 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
675 | wxValidator *src; | |
676 | wxEvtHandler *dest; | |
677 | src = (wxValidator *) ptr; | |
678 | dest = (wxEvtHandler *) src; | |
679 | return (void *) dest; | |
680 | } | |
681 | ||
9df61a29 RD |
682 | static void *SwigwxValidatorTowxObject(void *ptr) { |
683 | wxValidator *src; | |
684 | wxObject *dest; | |
685 | src = (wxValidator *) ptr; | |
686 | dest = (wxObject *) src; | |
687 | return (void *) dest; | |
688 | } | |
689 | ||
2f90df85 RD |
690 | #define new_wxValidator() (new wxValidator()) |
691 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
692 | PyObject * _resultobj; | |
693 | wxValidator * _result; | |
694 | char *_kwnames[] = { NULL }; | |
695 | char _ptemp[128]; | |
696 | ||
697 | self = self; | |
faeb124b | 698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) |
2f90df85 RD |
699 | return NULL; |
700 | { | |
474c48f9 | 701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 702 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 703 | |
474c48f9 | 704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 705 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
706 | } if (_result) { |
707 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
708 | _resultobj = Py_BuildValue("s",_ptemp); | |
709 | } else { | |
710 | Py_INCREF(Py_None); | |
711 | _resultobj = Py_None; | |
712 | } | |
713 | return _resultobj; | |
af309447 | 714 | } |
2f90df85 RD |
715 | |
716 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
717 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 718 | PyObject * _resultobj; |
2f90df85 RD |
719 | wxValidator * _result; |
720 | wxValidator * _arg0; | |
721 | PyObject * _argo0 = 0; | |
722 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
723 | |
724 | self = self; | |
faeb124b | 725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
2f90df85 RD |
726 | return NULL; |
727 | if (_argo0) { | |
728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 731 | return NULL; |
2f90df85 RD |
732 | } |
733 | } | |
cf694132 | 734 | { |
474c48f9 | 735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 736 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 737 | |
474c48f9 | 738 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 739 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 740 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
741 | return _resultobj; |
742 | } | |
743 | ||
2f90df85 RD |
744 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
745 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
746 | PyObject * _resultobj; |
747 | wxWindow * _result; | |
2f90df85 RD |
748 | wxValidator * _arg0; |
749 | PyObject * _argo0 = 0; | |
750 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
751 | |
752 | self = self; | |
faeb124b | 753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
2f90df85 RD |
754 | return NULL; |
755 | if (_argo0) { | |
756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 759 | return NULL; |
2f90df85 RD |
760 | } |
761 | } | |
cf694132 | 762 | { |
474c48f9 | 763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 764 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 765 | |
474c48f9 | 766 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 767 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 768 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
769 | return _resultobj; |
770 | } | |
771 | ||
2f90df85 RD |
772 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
773 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 774 | PyObject * _resultobj; |
2f90df85 RD |
775 | wxValidator * _arg0; |
776 | wxWindow * _arg1; | |
1d99702e RD |
777 | PyObject * _argo0 = 0; |
778 | PyObject * _argo1 = 0; | |
2f90df85 | 779 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
780 | |
781 | self = self; | |
faeb124b | 782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 783 | return NULL; |
1d99702e RD |
784 | if (_argo0) { |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
788 | return NULL; |
789 | } | |
790 | } | |
1d99702e RD |
791 | if (_argo1) { |
792 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
793 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
795 | return NULL; |
796 | } | |
797 | } | |
798 | { | |
474c48f9 | 799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 800 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 801 | |
474c48f9 | 802 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 803 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
804 | } Py_INCREF(Py_None); |
805 | _resultobj = Py_None; | |
cf694132 RD |
806 | return _resultobj; |
807 | } | |
808 | ||
9df61a29 RD |
809 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
810 | PyObject * _resultobj; | |
811 | bool _result; | |
812 | char *_kwnames[] = { NULL }; | |
813 | ||
814 | self = self; | |
faeb124b | 815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) |
9df61a29 RD |
816 | return NULL; |
817 | { | |
474c48f9 | 818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 819 | _result = (bool )wxValidator::IsSilent(); |
9df61a29 | 820 | |
474c48f9 | 821 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 822 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
823 | } _resultobj = Py_BuildValue("i",_result); |
824 | return _resultobj; | |
825 | } | |
826 | ||
827 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
828 | PyObject * _resultobj; | |
829 | int _arg0 = (int ) TRUE; | |
830 | char *_kwnames[] = { "doIt", NULL }; | |
831 | ||
832 | self = self; | |
faeb124b | 833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) |
9df61a29 RD |
834 | return NULL; |
835 | { | |
474c48f9 | 836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 837 | wxValidator::SetBellOnError(_arg0); |
9df61a29 | 838 | |
474c48f9 | 839 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 840 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
841 | } Py_INCREF(Py_None); |
842 | _resultobj = Py_None; | |
843 | return _resultobj; | |
844 | } | |
845 | ||
2f90df85 RD |
846 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
847 | wxPyValidator *src; | |
848 | wxValidator *dest; | |
849 | src = (wxPyValidator *) ptr; | |
850 | dest = (wxValidator *) src; | |
851 | return (void *) dest; | |
852 | } | |
853 | ||
854 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
855 | wxPyValidator *src; | |
856 | wxEvtHandler *dest; | |
857 | src = (wxPyValidator *) ptr; | |
858 | dest = (wxEvtHandler *) src; | |
859 | return (void *) dest; | |
860 | } | |
861 | ||
9df61a29 RD |
862 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
863 | wxPyValidator *src; | |
864 | wxObject *dest; | |
865 | src = (wxPyValidator *) ptr; | |
866 | dest = (wxObject *) src; | |
867 | return (void *) dest; | |
868 | } | |
869 | ||
2f90df85 RD |
870 | #define new_wxPyValidator() (new wxPyValidator()) |
871 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
872 | PyObject * _resultobj; | |
873 | wxPyValidator * _result; | |
874 | char *_kwnames[] = { NULL }; | |
875 | char _ptemp[128]; | |
876 | ||
877 | self = self; | |
faeb124b | 878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) |
2f90df85 RD |
879 | return NULL; |
880 | { | |
474c48f9 | 881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 882 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 883 | |
474c48f9 | 884 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 885 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
886 | } if (_result) { |
887 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
888 | _resultobj = Py_BuildValue("s",_ptemp); | |
889 | } else { | |
890 | Py_INCREF(Py_None); | |
891 | _resultobj = Py_None; | |
892 | } | |
893 | return _resultobj; | |
894 | } | |
895 | ||
0220cbc1 RD |
896 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
897 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 898 | PyObject * _resultobj; |
2f90df85 RD |
899 | wxPyValidator * _arg0; |
900 | PyObject * _arg1; | |
f6bcfd97 BP |
901 | PyObject * _arg2; |
902 | int _arg3 = (int ) TRUE; | |
1d99702e | 903 | PyObject * _argo0 = 0; |
2f90df85 | 904 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
905 | PyObject * _obj2 = 0; |
906 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
907 | |
908 | self = self; | |
faeb124b | 909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 910 | return NULL; |
1d99702e RD |
911 | if (_argo0) { |
912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0220cbc1 | 914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
915 | return NULL; |
916 | } | |
917 | } | |
918 | { | |
2f90df85 | 919 | _arg1 = _obj1; |
8ab979d7 | 920 | } |
f6bcfd97 BP |
921 | { |
922 | _arg2 = _obj2; | |
923 | } | |
cf694132 | 924 | { |
474c48f9 | 925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 926 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 927 | |
474c48f9 | 928 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 929 | if (PyErr_Occurred()) return NULL; |
cf694132 | 930 | } Py_INCREF(Py_None); |
8ab979d7 RD |
931 | _resultobj = Py_None; |
932 | return _resultobj; | |
933 | } | |
934 | ||
935 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
936 | wxWindow *src; | |
937 | wxEvtHandler *dest; | |
938 | src = (wxWindow *) ptr; | |
939 | dest = (wxEvtHandler *) src; | |
940 | return (void *) dest; | |
941 | } | |
942 | ||
9df61a29 RD |
943 | static void *SwigwxWindowTowxObject(void *ptr) { |
944 | wxWindow *src; | |
945 | wxObject *dest; | |
946 | src = (wxWindow *) ptr; | |
947 | dest = (wxObject *) src; | |
948 | return (void *) dest; | |
949 | } | |
950 | ||
8ab979d7 | 951 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 952 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
953 | PyObject * _resultobj; |
954 | wxWindow * _result; | |
955 | wxWindow * _arg0; | |
956 | wxWindowID _arg1; | |
b68dc582 RD |
957 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
958 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 959 | long _arg4 = (long ) 0; |
9a74fcaf | 960 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 961 | PyObject * _argo0 = 0; |
2f90df85 RD |
962 | wxPoint temp; |
963 | PyObject * _obj2 = 0; | |
964 | wxSize temp0; | |
965 | PyObject * _obj3 = 0; | |
9a74fcaf | 966 | PyObject * _obj5 = 0; |
efc5f224 | 967 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
968 | char _ptemp[128]; |
969 | ||
970 | self = self; | |
faeb124b | 971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 972 | return NULL; |
1d99702e RD |
973 | if (_argo0) { |
974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
977 | return NULL; | |
978 | } | |
979 | } | |
2f90df85 RD |
980 | if (_obj2) |
981 | { | |
982 | _arg2 = &temp; | |
983 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 984 | return NULL; |
2f90df85 RD |
985 | } |
986 | if (_obj3) | |
987 | { | |
988 | _arg3 = &temp0; | |
989 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 990 | return NULL; |
9a74fcaf RD |
991 | } |
992 | if (_obj5) | |
993 | { | |
994 | _arg5 = wxString_in_helper(_obj5); | |
995 | if (_arg5 == NULL) | |
996 | return NULL; | |
2f90df85 | 997 | } |
cf694132 | 998 | { |
474c48f9 | 999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1000 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 1001 | |
474c48f9 | 1002 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1003 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1004 | } if (_result) { |
1005 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1006 | _resultobj = Py_BuildValue("s",_ptemp); | |
1007 | } else { | |
1008 | Py_INCREF(Py_None); | |
1009 | _resultobj = Py_None; | |
1010 | } | |
9a74fcaf RD |
1011 | { |
1012 | if (_obj5) | |
1013 | delete _arg5; | |
1014 | } | |
8ab979d7 RD |
1015 | return _resultobj; |
1016 | } | |
1017 | ||
aa2a5b86 RD |
1018 | #define new_wxPreWindow() (new wxWindow()) |
1019 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1020 | PyObject * _resultobj; | |
1021 | wxWindow * _result; | |
1022 | char *_kwnames[] = { NULL }; | |
1023 | char _ptemp[128]; | |
1024 | ||
1025 | self = self; | |
faeb124b | 1026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) |
aa2a5b86 RD |
1027 | return NULL; |
1028 | { | |
474c48f9 | 1029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1030 | _result = (wxWindow *)new_wxPreWindow(); |
aa2a5b86 | 1031 | |
474c48f9 | 1032 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1033 | if (PyErr_Occurred()) return NULL; |
1034 | } if (_result) { | |
1035 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1036 | _resultobj = Py_BuildValue("s",_ptemp); | |
1037 | } else { | |
1038 | Py_INCREF(Py_None); | |
1039 | _resultobj = Py_None; | |
1040 | } | |
1041 | return _resultobj; | |
1042 | } | |
1043 | ||
1044 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
1045 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1046 | PyObject * _resultobj; | |
1047 | bool _result; | |
1048 | wxWindow * _arg0; | |
1049 | wxWindow * _arg1; | |
1050 | wxWindowID _arg2; | |
1051 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
1052 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
1053 | long _arg5 = (long ) 0; | |
9a74fcaf | 1054 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
1055 | PyObject * _argo0 = 0; |
1056 | PyObject * _argo1 = 0; | |
1057 | wxPoint temp; | |
1058 | PyObject * _obj3 = 0; | |
1059 | wxSize temp0; | |
1060 | PyObject * _obj4 = 0; | |
9a74fcaf | 1061 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
1062 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
1063 | ||
1064 | self = self; | |
faeb124b | 1065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
1066 | return NULL; |
1067 | if (_argo0) { | |
1068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
1071 | return NULL; | |
1072 | } | |
1073 | } | |
1074 | if (_argo1) { | |
1075 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1076 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
1077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
1078 | return NULL; | |
1079 | } | |
1080 | } | |
1081 | if (_obj3) | |
1082 | { | |
1083 | _arg3 = &temp; | |
1084 | if (! wxPoint_helper(_obj3, &_arg3)) | |
1085 | return NULL; | |
1086 | } | |
1087 | if (_obj4) | |
1088 | { | |
1089 | _arg4 = &temp0; | |
1090 | if (! wxSize_helper(_obj4, &_arg4)) | |
1091 | return NULL; | |
9a74fcaf RD |
1092 | } |
1093 | if (_obj6) | |
1094 | { | |
1095 | _arg6 = wxString_in_helper(_obj6); | |
1096 | if (_arg6 == NULL) | |
1097 | return NULL; | |
aa2a5b86 RD |
1098 | } |
1099 | { | |
474c48f9 | 1100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 1101 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 1102 | |
474c48f9 | 1103 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
1104 | if (PyErr_Occurred()) return NULL; |
1105 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
1106 | { |
1107 | if (_obj6) | |
1108 | delete _arg6; | |
1109 | } | |
aa2a5b86 RD |
1110 | return _resultobj; |
1111 | } | |
1112 | ||
8ab979d7 | 1113 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) |
efc5f224 | 1114 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1115 | PyObject * _resultobj; |
1116 | wxWindow * _arg0; | |
1d99702e RD |
1117 | int _arg1 = (int ) wxBOTH; |
1118 | PyObject * _argo0 = 0; | |
efc5f224 | 1119 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1120 | |
1121 | self = self; | |
faeb124b | 1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1123 | return NULL; |
1d99702e RD |
1124 | if (_argo0) { |
1125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
cf694132 | 1131 | { |
474c48f9 | 1132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1133 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1134 | |
474c48f9 | 1135 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1137 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1138 | _resultobj = Py_None; |
1139 | return _resultobj; | |
1140 | } | |
1141 | ||
1142 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1143 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1144 | PyObject * _resultobj; |
1145 | wxWindow * _arg0; | |
1d99702e RD |
1146 | int _arg1 = (int ) wxBOTH; |
1147 | PyObject * _argo0 = 0; | |
efc5f224 | 1148 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1149 | |
1150 | self = self; | |
faeb124b | 1151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1152 | return NULL; |
1d99702e RD |
1153 | if (_argo0) { |
1154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1157 | return NULL; | |
1158 | } | |
1159 | } | |
cf694132 | 1160 | { |
474c48f9 | 1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1162 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1163 | |
474c48f9 | 1164 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1165 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1166 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1167 | _resultobj = Py_None; |
1168 | return _resultobj; | |
1169 | } | |
1170 | ||
bb0054cd | 1171 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1172 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1173 | PyObject * _resultobj; |
1174 | wxWindow * _arg0; | |
1d99702e RD |
1175 | int _arg1 = (int ) wxBOTH; |
1176 | PyObject * _argo0 = 0; | |
efc5f224 | 1177 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1178 | |
1179 | self = self; | |
faeb124b | 1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1181 | return NULL; |
1d99702e RD |
1182 | if (_argo0) { |
1183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1186 | return NULL; | |
1187 | } | |
1188 | } | |
1189 | { | |
474c48f9 | 1190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1191 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1192 | |
474c48f9 | 1193 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1194 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1195 | } Py_INCREF(Py_None); |
1196 | _resultobj = Py_None; | |
1197 | return _resultobj; | |
1198 | } | |
1199 | ||
1200 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1201 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1202 | PyObject * _resultobj; |
1203 | wxWindow * _arg0; | |
1d99702e RD |
1204 | int _arg1 = (int ) wxBOTH; |
1205 | PyObject * _argo0 = 0; | |
efc5f224 | 1206 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1207 | |
1208 | self = self; | |
faeb124b | 1209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1210 | return NULL; |
1d99702e RD |
1211 | if (_argo0) { |
1212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1215 | return NULL; | |
1216 | } | |
1217 | } | |
1218 | { | |
474c48f9 | 1219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1220 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1221 | |
474c48f9 | 1222 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1223 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1224 | } Py_INCREF(Py_None); |
1225 | _resultobj = Py_None; | |
1226 | return _resultobj; | |
1227 | } | |
1228 | ||
3ca6a5f0 BP |
1229 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1230 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1231 | PyObject * _resultobj; | |
1232 | wxWindow * _arg0; | |
1233 | int _arg1 = (int ) wxBOTH; | |
1234 | PyObject * _argo0 = 0; | |
1235 | char *_kwnames[] = { "self","direction", NULL }; | |
1236 | ||
1237 | self = self; | |
faeb124b | 1238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) |
3ca6a5f0 BP |
1239 | return NULL; |
1240 | if (_argo0) { | |
1241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1244 | return NULL; | |
1245 | } | |
1246 | } | |
1247 | { | |
474c48f9 | 1248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1249 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1250 | |
474c48f9 | 1251 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1252 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1253 | } Py_INCREF(Py_None); |
1254 | _resultobj = Py_None; | |
1255 | return _resultobj; | |
1256 | } | |
1257 | ||
1258 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1259 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1260 | PyObject * _resultobj; | |
1261 | wxWindow * _arg0; | |
1262 | int _arg1 = (int ) wxBOTH; | |
1263 | PyObject * _argo0 = 0; | |
1264 | char *_kwnames[] = { "self","direction", NULL }; | |
1265 | ||
1266 | self = self; | |
faeb124b | 1267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) |
3ca6a5f0 BP |
1268 | return NULL; |
1269 | if (_argo0) { | |
1270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1273 | return NULL; | |
1274 | } | |
1275 | } | |
1276 | { | |
474c48f9 | 1277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1278 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1279 | |
474c48f9 | 1280 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1281 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1282 | } Py_INCREF(Py_None); |
1283 | _resultobj = Py_None; | |
1284 | return _resultobj; | |
1285 | } | |
1286 | ||
faeb124b RD |
1287 | #define wxWindow_ClearBackground(_swigobj) (_swigobj->ClearBackground()) |
1288 | static PyObject *_wrap_wxWindow_ClearBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d6da64a RD |
1289 | PyObject * _resultobj; |
1290 | wxWindow * _arg0; | |
1291 | PyObject * _argo0 = 0; | |
1292 | char *_kwnames[] = { "self", NULL }; | |
1293 | ||
1294 | self = self; | |
faeb124b | 1295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ClearBackground",_kwnames,&_argo0)) |
9d6da64a RD |
1296 | return NULL; |
1297 | if (_argo0) { | |
1298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
faeb124b | 1300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClearBackground. Expected _wxWindow_p."); |
9d6da64a RD |
1301 | return NULL; |
1302 | } | |
1303 | } | |
1304 | { | |
474c48f9 | 1305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
faeb124b | 1306 | wxWindow_ClearBackground(_arg0); |
9d6da64a | 1307 | |
474c48f9 | 1308 | wxPyEndAllowThreads(__tstate); |
9d6da64a RD |
1309 | if (PyErr_Occurred()) return NULL; |
1310 | } Py_INCREF(Py_None); | |
1311 | _resultobj = Py_None; | |
1312 | return _resultobj; | |
1313 | } | |
1314 | ||
af309447 | 1315 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1316 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1317 | PyObject * _resultobj; |
1318 | wxWindow * _arg0; | |
1319 | int * _arg1; | |
1320 | int * _arg2; | |
1d99702e | 1321 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1322 | int temp; |
1323 | PyObject * _obj1 = 0; | |
1324 | int temp0; | |
1325 | PyObject * _obj2 = 0; | |
efc5f224 | 1326 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1327 | |
1328 | self = self; | |
faeb124b | 1329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1330 | return NULL; |
1d99702e RD |
1331 | if (_argo0) { |
1332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1335 | return NULL; |
1336 | } | |
1337 | } | |
1338 | { | |
1339 | temp = (int) PyInt_AsLong(_obj1); | |
1340 | _arg1 = &temp; | |
1341 | } | |
1342 | { | |
1343 | temp0 = (int) PyInt_AsLong(_obj2); | |
1344 | _arg2 = &temp0; | |
1345 | } | |
cf694132 | 1346 | { |
474c48f9 | 1347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1348 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1349 | |
474c48f9 | 1350 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1351 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1352 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1353 | _resultobj = Py_None; |
1354 | { | |
1355 | PyObject *o; | |
1356 | o = PyInt_FromLong((long) (*_arg1)); | |
1357 | _resultobj = t_output_helper(_resultobj, o); | |
1358 | } | |
1359 | { | |
1360 | PyObject *o; | |
1361 | o = PyInt_FromLong((long) (*_arg2)); | |
1362 | _resultobj = t_output_helper(_resultobj, o); | |
1363 | } | |
1364 | return _resultobj; | |
1365 | } | |
1366 | ||
af309447 | 1367 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1368 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1369 | PyObject * _resultobj; |
1370 | wxPoint * _result; | |
1371 | wxWindow * _arg0; | |
1372 | wxPoint * _arg1; | |
1d99702e | 1373 | PyObject * _argo0 = 0; |
2f90df85 RD |
1374 | wxPoint temp; |
1375 | PyObject * _obj1 = 0; | |
efc5f224 | 1376 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1377 | char _ptemp[128]; |
1378 | ||
1379 | self = self; | |
faeb124b | 1380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1381 | return NULL; |
1d99702e RD |
1382 | if (_argo0) { |
1383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1386 | return NULL; | |
1387 | } | |
1388 | } | |
2f90df85 RD |
1389 | { |
1390 | _arg1 = &temp; | |
1391 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1392 | return NULL; |
2f90df85 | 1393 | } |
cf694132 | 1394 | { |
474c48f9 | 1395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1396 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1397 | |
474c48f9 | 1398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1399 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1400 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1401 | _resultobj = Py_BuildValue("s",_ptemp); |
1402 | return _resultobj; | |
1403 | } | |
1404 | ||
8ab979d7 | 1405 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1406 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1407 | PyObject * _resultobj; |
1408 | bool _result; | |
1409 | wxWindow * _arg0; | |
1d99702e RD |
1410 | int _arg1 = (int ) FALSE; |
1411 | PyObject * _argo0 = 0; | |
efc5f224 | 1412 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1413 | |
1414 | self = self; | |
faeb124b | 1415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1416 | return NULL; |
1d99702e RD |
1417 | if (_argo0) { |
1418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1421 | return NULL; | |
1422 | } | |
1423 | } | |
cf694132 | 1424 | { |
474c48f9 | 1425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1426 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1427 | |
474c48f9 | 1428 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1429 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1430 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1431 | return _resultobj; |
1432 | } | |
1433 | ||
1434 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1435 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1436 | PyObject * _resultobj; |
1437 | bool _result; | |
1438 | wxWindow * _arg0; | |
1d99702e | 1439 | PyObject * _argo0 = 0; |
efc5f224 | 1440 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1441 | |
1442 | self = self; | |
faeb124b | 1443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1444 | return NULL; |
1d99702e RD |
1445 | if (_argo0) { |
1446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1449 | return NULL; | |
1450 | } | |
1451 | } | |
cf694132 | 1452 | { |
474c48f9 | 1453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1454 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1455 | |
474c48f9 | 1456 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1457 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1458 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1459 | return _resultobj; |
1460 | } | |
1461 | ||
1462 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1463 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1464 | PyObject * _resultobj; |
1465 | wxWindow * _arg0; | |
1d99702e | 1466 | PyObject * _argo0 = 0; |
efc5f224 | 1467 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1468 | |
1469 | self = self; | |
faeb124b | 1470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1471 | return NULL; |
1d99702e RD |
1472 | if (_argo0) { |
1473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1476 | return NULL; | |
1477 | } | |
1478 | } | |
cf694132 | 1479 | { |
474c48f9 | 1480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1481 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1482 | |
474c48f9 | 1483 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1484 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1485 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1486 | _resultobj = Py_None; |
1487 | return _resultobj; | |
1488 | } | |
1489 | ||
4dfaa61e RD |
1490 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1491 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1492 | PyObject * _resultobj; | |
1493 | bool _result; | |
1494 | wxWindow * _arg0; | |
1495 | PyObject * _argo0 = 0; | |
1496 | char *_kwnames[] = { "self", NULL }; | |
1497 | ||
1498 | self = self; | |
faeb124b | 1499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) |
4dfaa61e RD |
1500 | return NULL; |
1501 | if (_argo0) { | |
1502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1505 | return NULL; | |
1506 | } | |
1507 | } | |
1508 | { | |
474c48f9 | 1509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1510 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
4dfaa61e | 1511 | |
474c48f9 | 1512 | wxPyEndAllowThreads(__tstate); |
4dfaa61e RD |
1513 | if (PyErr_Occurred()) return NULL; |
1514 | } _resultobj = Py_BuildValue("i",_result); | |
1515 | return _resultobj; | |
1516 | } | |
1517 | ||
8ab979d7 | 1518 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 1519 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1520 | PyObject * _resultobj; |
1521 | wxWindow * _arg0; | |
1522 | bool _arg1; | |
1d99702e | 1523 | PyObject * _argo0 = 0; |
8ab979d7 | 1524 | int tempbool1; |
efc5f224 | 1525 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1526 | |
1527 | self = self; | |
faeb124b | 1528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1529 | return NULL; |
1d99702e RD |
1530 | if (_argo0) { |
1531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1534 | return NULL; | |
1535 | } | |
1536 | } | |
1537 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1538 | { |
474c48f9 | 1539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1540 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1541 | |
474c48f9 | 1542 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1543 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1544 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1545 | _resultobj = Py_None; |
1546 | return _resultobj; | |
1547 | } | |
1548 | ||
b67a9327 RD |
1549 | #define wxWindow_Disable(_swigobj) (_swigobj->Disable()) |
1550 | static PyObject *_wrap_wxWindow_Disable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1551 | PyObject * _resultobj; | |
1552 | wxWindow * _arg0; | |
1553 | PyObject * _argo0 = 0; | |
1554 | char *_kwnames[] = { "self", NULL }; | |
1555 | ||
1556 | self = self; | |
faeb124b | 1557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Disable",_kwnames,&_argo0)) |
b67a9327 RD |
1558 | return NULL; |
1559 | if (_argo0) { | |
1560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Disable. Expected _wxWindow_p."); | |
1563 | return NULL; | |
1564 | } | |
1565 | } | |
1566 | { | |
1567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1568 | wxWindow_Disable(_arg0); | |
1569 | ||
1570 | wxPyEndAllowThreads(__tstate); | |
1571 | if (PyErr_Occurred()) return NULL; | |
1572 | } Py_INCREF(Py_None); | |
1573 | _resultobj = Py_None; | |
1574 | return _resultobj; | |
1575 | } | |
1576 | ||
af309447 | 1577 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1578 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1579 | PyObject * _resultobj; |
1580 | wxWindow * _result; | |
1581 | wxWindow * _arg0; | |
1582 | long _arg1; | |
1d99702e | 1583 | PyObject * _argo0 = 0; |
efc5f224 | 1584 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1585 | |
1586 | self = self; | |
faeb124b | 1587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1588 | return NULL; |
1d99702e RD |
1589 | if (_argo0) { |
1590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1593 | return NULL; |
1594 | } | |
1595 | } | |
cf694132 | 1596 | { |
474c48f9 | 1597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1598 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1599 | |
474c48f9 | 1600 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1601 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1602 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1603 | return _resultobj; |
1604 | } | |
1605 | ||
1606 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1607 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1608 | PyObject * _resultobj; |
1609 | wxWindow * _result; | |
1610 | wxWindow * _arg0; | |
1611 | wxString * _arg1; | |
1d99702e | 1612 | PyObject * _argo0 = 0; |
8ab979d7 | 1613 | PyObject * _obj1 = 0; |
efc5f224 | 1614 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1615 | |
1616 | self = self; | |
faeb124b | 1617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1618 | return NULL; |
1d99702e RD |
1619 | if (_argo0) { |
1620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1623 | return NULL; | |
1624 | } | |
1625 | } | |
1626 | { | |
c8bc7bb8 RD |
1627 | _arg1 = wxString_in_helper(_obj1); |
1628 | if (_arg1 == NULL) | |
8ab979d7 | 1629 | return NULL; |
8ab979d7 | 1630 | } |
cf694132 | 1631 | { |
474c48f9 | 1632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1633 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1634 | |
474c48f9 | 1635 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1636 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1637 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1638 | { |
1639 | if (_obj1) | |
1640 | delete _arg1; | |
1641 | } | |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
1645 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1646 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1647 | PyObject * _resultobj; |
1648 | wxWindow * _arg0; | |
1d99702e | 1649 | PyObject * _argo0 = 0; |
efc5f224 | 1650 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1651 | |
1652 | self = self; | |
faeb124b | 1653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1654 | return NULL; |
1d99702e RD |
1655 | if (_argo0) { |
1656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1659 | return NULL; | |
1660 | } | |
1661 | } | |
cf694132 | 1662 | { |
474c48f9 | 1663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1664 | wxWindow_Fit(_arg0); |
cf694132 | 1665 | |
474c48f9 | 1666 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1667 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1668 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1669 | _resultobj = Py_None; |
1670 | return _resultobj; | |
1671 | } | |
1672 | ||
b67a9327 RD |
1673 | #define wxWindow_FitInside(_swigobj) (_swigobj->FitInside()) |
1674 | static PyObject *_wrap_wxWindow_FitInside(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1675 | PyObject * _resultobj; | |
1676 | wxWindow * _arg0; | |
1677 | PyObject * _argo0 = 0; | |
1678 | char *_kwnames[] = { "self", NULL }; | |
1679 | ||
1680 | self = self; | |
faeb124b | 1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_FitInside",_kwnames,&_argo0)) |
b67a9327 RD |
1682 | return NULL; |
1683 | if (_argo0) { | |
1684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FitInside. Expected _wxWindow_p."); | |
1687 | return NULL; | |
1688 | } | |
1689 | } | |
1690 | { | |
1691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1692 | wxWindow_FitInside(_arg0); | |
1693 | ||
1694 | wxPyEndAllowThreads(__tstate); | |
1695 | if (PyErr_Occurred()) return NULL; | |
1696 | } Py_INCREF(Py_None); | |
1697 | _resultobj = Py_None; | |
1698 | return _resultobj; | |
1699 | } | |
1700 | ||
8ab979d7 | 1701 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) |
efc5f224 | 1702 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1703 | PyObject * _resultobj; |
1704 | wxColour * _result; | |
1705 | wxWindow * _arg0; | |
1d99702e | 1706 | PyObject * _argo0 = 0; |
efc5f224 | 1707 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1708 | char _ptemp[128]; |
1709 | ||
1710 | self = self; | |
faeb124b | 1711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1712 | return NULL; |
1d99702e RD |
1713 | if (_argo0) { |
1714 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1715 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1716 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1717 | return NULL; | |
1718 | } | |
1719 | } | |
cf694132 | 1720 | { |
474c48f9 | 1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1722 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1723 | |
474c48f9 | 1724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1725 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1726 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1727 | _resultobj = Py_BuildValue("s",_ptemp); |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
d426c97e RD |
1731 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1732 | wxWindowList& list = self->GetChildren(); | |
1733 | return wxPy_ConvertList(&list, "wxWindow"); | |
1734 | } | |
1735 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1736 | PyObject * _resultobj; | |
1737 | PyObject * _result; | |
1738 | wxWindow * _arg0; | |
1739 | PyObject * _argo0 = 0; | |
1740 | char *_kwnames[] = { "self", NULL }; | |
1741 | ||
1742 | self = self; | |
faeb124b | 1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) |
d426c97e RD |
1744 | return NULL; |
1745 | if (_argo0) { | |
1746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1749 | return NULL; | |
1750 | } | |
1751 | } | |
1752 | { | |
474c48f9 | 1753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1754 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1755 | |
474c48f9 | 1756 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1757 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1758 | }{ |
1759 | _resultobj = _result; | |
1760 | } | |
1761 | return _resultobj; | |
1762 | } | |
1763 | ||
8ab979d7 | 1764 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1765 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1766 | PyObject * _resultobj; |
1767 | int _result; | |
1768 | wxWindow * _arg0; | |
1d99702e | 1769 | PyObject * _argo0 = 0; |
efc5f224 | 1770 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1771 | |
1772 | self = self; | |
faeb124b | 1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1774 | return NULL; |
1d99702e RD |
1775 | if (_argo0) { |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
cf694132 | 1782 | { |
474c48f9 | 1783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1784 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1785 | |
474c48f9 | 1786 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1787 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1788 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1789 | return _resultobj; |
1790 | } | |
1791 | ||
1792 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1793 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1794 | PyObject * _resultobj; |
1795 | int _result; | |
1796 | wxWindow * _arg0; | |
1d99702e | 1797 | PyObject * _argo0 = 0; |
efc5f224 | 1798 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1799 | |
1800 | self = self; | |
faeb124b | 1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1802 | return NULL; |
1d99702e RD |
1803 | if (_argo0) { |
1804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1807 | return NULL; | |
1808 | } | |
1809 | } | |
cf694132 | 1810 | { |
474c48f9 | 1811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1812 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1813 | |
474c48f9 | 1814 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1815 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1816 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1817 | return _resultobj; |
1818 | } | |
1819 | ||
b8b8dda7 | 1820 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1821 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1822 | PyObject * _resultobj; |
1823 | wxWindow * _arg0; | |
1824 | int * _arg1; | |
1825 | int temp; | |
1826 | int * _arg2; | |
1827 | int temp0; | |
1d99702e | 1828 | PyObject * _argo0 = 0; |
efc5f224 | 1829 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1830 | |
1831 | self = self; | |
1832 | { | |
1833 | _arg1 = &temp; | |
1834 | } | |
1835 | { | |
1836 | _arg2 = &temp0; | |
1837 | } | |
faeb124b | 1838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1839 | return NULL; |
1d99702e RD |
1840 | if (_argo0) { |
1841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1844 | return NULL; |
1845 | } | |
1846 | } | |
cf694132 | 1847 | { |
474c48f9 | 1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1849 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1850 | |
474c48f9 | 1851 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1852 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1853 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1854 | _resultobj = Py_None; |
1855 | { | |
1856 | PyObject *o; | |
1857 | o = PyInt_FromLong((long) (*_arg1)); | |
1858 | _resultobj = t_output_helper(_resultobj, o); | |
1859 | } | |
1860 | { | |
1861 | PyObject *o; | |
1862 | o = PyInt_FromLong((long) (*_arg2)); | |
1863 | _resultobj = t_output_helper(_resultobj, o); | |
1864 | } | |
1865 | return _resultobj; | |
1866 | } | |
1867 | ||
b8b8dda7 | 1868 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1869 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1870 | PyObject * _resultobj; |
1871 | wxSize * _result; | |
1872 | wxWindow * _arg0; | |
1d99702e | 1873 | PyObject * _argo0 = 0; |
efc5f224 | 1874 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1875 | char _ptemp[128]; |
1876 | ||
1877 | self = self; | |
faeb124b | 1878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1879 | return NULL; |
1d99702e RD |
1880 | if (_argo0) { |
1881 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1882 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1883 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1884 | return NULL; | |
1885 | } | |
1886 | } | |
cf694132 | 1887 | { |
474c48f9 | 1888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1889 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1890 | |
474c48f9 | 1891 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1892 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1893 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1894 | _resultobj = Py_BuildValue("s",_ptemp); |
1895 | return _resultobj; | |
1896 | } | |
1897 | ||
8cb49012 RD |
1898 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1899 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1900 | PyObject * _resultobj; | |
1901 | wxPoint * _result; | |
1902 | wxWindow * _arg0; | |
1903 | PyObject * _argo0 = 0; | |
1904 | char *_kwnames[] = { "self", NULL }; | |
1905 | char _ptemp[128]; | |
1906 | ||
1907 | self = self; | |
faeb124b | 1908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) |
8cb49012 RD |
1909 | return NULL; |
1910 | if (_argo0) { | |
1911 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1912 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1914 | return NULL; | |
1915 | } | |
1916 | } | |
1917 | { | |
1918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1919 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
8cb49012 RD |
1920 | |
1921 | wxPyEndAllowThreads(__tstate); | |
1922 | if (PyErr_Occurred()) return NULL; | |
1923 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1924 | _resultobj = Py_BuildValue("s",_ptemp); | |
1925 | return _resultobj; | |
1926 | } | |
1927 | ||
1928 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1929 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1930 | PyObject * _resultobj; | |
1931 | wxRect * _result; | |
1932 | wxWindow * _arg0; | |
1933 | PyObject * _argo0 = 0; | |
1934 | char *_kwnames[] = { "self", NULL }; | |
1935 | char _ptemp[128]; | |
1936 | ||
1937 | self = self; | |
faeb124b | 1938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) |
8cb49012 RD |
1939 | return NULL; |
1940 | if (_argo0) { | |
1941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1944 | return NULL; | |
1945 | } | |
1946 | } | |
1947 | { | |
1948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1949 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
8cb49012 RD |
1950 | |
1951 | wxPyEndAllowThreads(__tstate); | |
1952 | if (PyErr_Occurred()) return NULL; | |
1953 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1954 | _resultobj = Py_BuildValue("s",_ptemp); | |
1955 | return _resultobj; | |
1956 | } | |
1957 | ||
8ab979d7 | 1958 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1959 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1960 | PyObject * _resultobj; |
1961 | wxLayoutConstraints * _result; | |
1962 | wxWindow * _arg0; | |
1d99702e | 1963 | PyObject * _argo0 = 0; |
efc5f224 | 1964 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1965 | char _ptemp[128]; |
1966 | ||
1967 | self = self; | |
faeb124b | 1968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1969 | return NULL; |
1d99702e RD |
1970 | if (_argo0) { |
1971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1974 | return NULL; | |
1975 | } | |
1976 | } | |
cf694132 | 1977 | { |
474c48f9 | 1978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1979 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 1980 | |
474c48f9 | 1981 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1982 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1983 | } if (_result) { |
1984 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1985 | _resultobj = Py_BuildValue("s",_ptemp); | |
1986 | } else { | |
1987 | Py_INCREF(Py_None); | |
1988 | _resultobj = Py_None; | |
1989 | } | |
8ab979d7 RD |
1990 | return _resultobj; |
1991 | } | |
1992 | ||
1afc06c2 RD |
1993 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1994 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1995 | PyObject * _resultobj; | |
1996 | wxEvtHandler * _result; | |
1997 | wxWindow * _arg0; | |
1998 | PyObject * _argo0 = 0; | |
1999 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
2000 | |
2001 | self = self; | |
faeb124b | 2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) |
1afc06c2 RD |
2003 | return NULL; |
2004 | if (_argo0) { | |
2005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
2008 | return NULL; | |
2009 | } | |
2010 | } | |
2011 | { | |
474c48f9 | 2012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2013 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 2014 | |
474c48f9 | 2015 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2016 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2017 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
2018 | return _resultobj; |
2019 | } | |
2020 | ||
8ab979d7 | 2021 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 2022 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2023 | PyObject * _resultobj; |
2024 | wxFont * _result; | |
2025 | wxWindow * _arg0; | |
1d99702e | 2026 | PyObject * _argo0 = 0; |
efc5f224 | 2027 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2028 | char _ptemp[128]; |
2029 | ||
2030 | self = self; | |
faeb124b | 2031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 2032 | return NULL; |
1d99702e RD |
2033 | if (_argo0) { |
2034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
2037 | return NULL; | |
2038 | } | |
2039 | } | |
cf694132 | 2040 | { |
474c48f9 | 2041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2042 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 2043 | |
474c48f9 | 2044 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2045 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
2046 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
2047 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
2048 | return _resultobj; |
2049 | } | |
2050 | ||
2051 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 2052 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2053 | PyObject * _resultobj; |
2054 | wxColour * _result; | |
2055 | wxWindow * _arg0; | |
1d99702e | 2056 | PyObject * _argo0 = 0; |
efc5f224 | 2057 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2058 | char _ptemp[128]; |
2059 | ||
2060 | self = self; | |
faeb124b | 2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 2062 | return NULL; |
1d99702e RD |
2063 | if (_argo0) { |
2064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
2067 | return NULL; | |
2068 | } | |
2069 | } | |
cf694132 | 2070 | { |
474c48f9 | 2071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2072 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 2073 | |
474c48f9 | 2074 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2075 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2076 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
2077 | _resultobj = Py_BuildValue("s",_ptemp); |
2078 | return _resultobj; | |
2079 | } | |
2080 | ||
2081 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 2082 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2083 | PyObject * _resultobj; |
2084 | wxWindow * _result; | |
2085 | wxWindow * _arg0; | |
1d99702e | 2086 | PyObject * _argo0 = 0; |
efc5f224 | 2087 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2088 | |
2089 | self = self; | |
faeb124b | 2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 2091 | return NULL; |
1d99702e RD |
2092 | if (_argo0) { |
2093 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2094 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2095 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
2096 | return NULL; | |
2097 | } | |
2098 | } | |
cf694132 | 2099 | { |
474c48f9 | 2100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2101 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 2102 | |
474c48f9 | 2103 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2104 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2105 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2106 | return _resultobj; |
2107 | } | |
2108 | ||
2abc0a0f | 2109 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2110 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2111 | } |
2112 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2113 | PyObject * _resultobj; | |
2114 | long _result; | |
2115 | wxWindow * _arg0; | |
2116 | PyObject * _argo0 = 0; | |
2117 | char *_kwnames[] = { "self", NULL }; | |
2118 | ||
2119 | self = self; | |
faeb124b | 2120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) |
2abc0a0f RD |
2121 | return NULL; |
2122 | if (_argo0) { | |
2123 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2124 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2125 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2126 | return NULL; | |
2127 | } | |
2128 | } | |
2129 | { | |
474c48f9 | 2130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2131 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2132 | |
474c48f9 | 2133 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2134 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2135 | } _resultobj = Py_BuildValue("l",_result); |
2136 | return _resultobj; | |
2137 | } | |
2138 | ||
8ab979d7 | 2139 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2140 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2141 | PyObject * _resultobj; |
2142 | int _result; | |
2143 | wxWindow * _arg0; | |
1d99702e | 2144 | PyObject * _argo0 = 0; |
efc5f224 | 2145 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2146 | |
2147 | self = self; | |
faeb124b | 2148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2149 | return NULL; |
1d99702e RD |
2150 | if (_argo0) { |
2151 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2152 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2153 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2154 | return NULL; | |
2155 | } | |
2156 | } | |
cf694132 | 2157 | { |
474c48f9 | 2158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2159 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2160 | |
474c48f9 | 2161 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2162 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2163 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2164 | return _resultobj; |
2165 | } | |
2166 | ||
8ab979d7 | 2167 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2168 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2169 | PyObject * _resultobj; |
2170 | wxString * _result; | |
2171 | wxWindow * _arg0; | |
1d99702e | 2172 | PyObject * _argo0 = 0; |
efc5f224 | 2173 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2174 | |
2175 | self = self; | |
faeb124b | 2176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2177 | return NULL; |
1d99702e RD |
2178 | if (_argo0) { |
2179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2182 | return NULL; | |
2183 | } | |
2184 | } | |
8ab979d7 | 2185 | { |
474c48f9 | 2186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2187 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2188 | |
474c48f9 | 2189 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2190 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2191 | }{ |
c8bc7bb8 | 2192 | #if wxUSE_UNICODE |
b67a9327 | 2193 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2194 | #else |
eec92d76 | 2195 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2196 | #endif |
8ab979d7 RD |
2197 | } |
2198 | { | |
2199 | delete _result; | |
2200 | } | |
2201 | return _resultobj; | |
2202 | } | |
2203 | ||
bb0054cd | 2204 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2205 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2206 | PyObject * _resultobj; |
2207 | wxWindow * _arg0; | |
2208 | wxString * _arg1; | |
1d99702e | 2209 | PyObject * _argo0 = 0; |
bb0054cd | 2210 | PyObject * _obj1 = 0; |
efc5f224 | 2211 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2212 | |
2213 | self = self; | |
faeb124b | 2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2215 | return NULL; |
1d99702e RD |
2216 | if (_argo0) { |
2217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2220 | return NULL; | |
2221 | } | |
2222 | } | |
2223 | { | |
c8bc7bb8 RD |
2224 | _arg1 = wxString_in_helper(_obj1); |
2225 | if (_arg1 == NULL) | |
bb0054cd | 2226 | return NULL; |
bb0054cd RD |
2227 | } |
2228 | { | |
474c48f9 | 2229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2230 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2231 | |
474c48f9 | 2232 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2233 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2234 | } Py_INCREF(Py_None); |
2235 | _resultobj = Py_None; | |
2236 | { | |
2237 | if (_obj1) | |
2238 | delete _arg1; | |
2239 | } | |
2240 | return _resultobj; | |
2241 | } | |
2242 | ||
8ab979d7 | 2243 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2244 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2245 | PyObject * _resultobj; |
2246 | wxString * _result; | |
2247 | wxWindow * _arg0; | |
1d99702e | 2248 | PyObject * _argo0 = 0; |
efc5f224 | 2249 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2250 | |
2251 | self = self; | |
faeb124b | 2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2253 | return NULL; |
1d99702e RD |
2254 | if (_argo0) { |
2255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2258 | return NULL; | |
2259 | } | |
2260 | } | |
8ab979d7 | 2261 | { |
474c48f9 | 2262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2263 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2264 | |
474c48f9 | 2265 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2266 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2267 | }{ |
c8bc7bb8 | 2268 | #if wxUSE_UNICODE |
b67a9327 | 2269 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2270 | #else |
eec92d76 | 2271 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2272 | #endif |
8ab979d7 RD |
2273 | } |
2274 | { | |
2275 | delete _result; | |
2276 | } | |
2277 | return _resultobj; | |
2278 | } | |
2279 | ||
2280 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2281 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2282 | PyObject * _resultobj; |
2283 | wxWindow * _result; | |
2284 | wxWindow * _arg0; | |
1d99702e | 2285 | PyObject * _argo0 = 0; |
efc5f224 | 2286 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2287 | |
2288 | self = self; | |
faeb124b | 2289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2290 | return NULL; |
1d99702e RD |
2291 | if (_argo0) { |
2292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2295 | return NULL; | |
2296 | } | |
2297 | } | |
cf694132 | 2298 | { |
474c48f9 | 2299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2300 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2301 | |
474c48f9 | 2302 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2303 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2304 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2305 | return _resultobj; |
2306 | } | |
2307 | ||
b8b8dda7 | 2308 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2309 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2310 | PyObject * _resultobj; |
2311 | wxWindow * _arg0; | |
2312 | int * _arg1; | |
2313 | int temp; | |
2314 | int * _arg2; | |
2315 | int temp0; | |
1d99702e | 2316 | PyObject * _argo0 = 0; |
efc5f224 | 2317 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2318 | |
2319 | self = self; | |
2320 | { | |
2321 | _arg1 = &temp; | |
2322 | } | |
2323 | { | |
2324 | _arg2 = &temp0; | |
2325 | } | |
faeb124b | 2326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2327 | return NULL; |
1d99702e RD |
2328 | if (_argo0) { |
2329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2332 | return NULL; | |
2333 | } | |
2334 | } | |
cf694132 | 2335 | { |
474c48f9 | 2336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2337 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2338 | |
474c48f9 | 2339 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2341 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2342 | _resultobj = Py_None; |
2343 | { | |
2344 | PyObject *o; | |
2345 | o = PyInt_FromLong((long) (*_arg1)); | |
2346 | _resultobj = t_output_helper(_resultobj, o); | |
2347 | } | |
2348 | { | |
2349 | PyObject *o; | |
2350 | o = PyInt_FromLong((long) (*_arg2)); | |
2351 | _resultobj = t_output_helper(_resultobj, o); | |
2352 | } | |
2353 | return _resultobj; | |
2354 | } | |
2355 | ||
2356 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2357 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2358 | PyObject * _resultobj; |
2359 | wxPoint * _result; | |
2360 | wxWindow * _arg0; | |
1d99702e | 2361 | PyObject * _argo0 = 0; |
efc5f224 | 2362 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2363 | char _ptemp[128]; |
2364 | ||
2365 | self = self; | |
faeb124b | 2366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2367 | return NULL; |
1d99702e RD |
2368 | if (_argo0) { |
2369 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2370 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2372 | return NULL; | |
2373 | } | |
2374 | } | |
cf694132 | 2375 | { |
474c48f9 | 2376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2377 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2378 | |
474c48f9 | 2379 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2380 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2381 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2382 | _resultobj = Py_BuildValue("s",_ptemp); |
2383 | return _resultobj; | |
2384 | } | |
2385 | ||
2386 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2387 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2388 | PyObject * _resultobj; |
2389 | wxRect * _result; | |
2390 | wxWindow * _arg0; | |
1d99702e | 2391 | PyObject * _argo0 = 0; |
efc5f224 | 2392 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2393 | char _ptemp[128]; |
2394 | ||
2395 | self = self; | |
faeb124b | 2396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2397 | return NULL; |
1d99702e RD |
2398 | if (_argo0) { |
2399 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2400 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2401 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2402 | return NULL; | |
2403 | } | |
2404 | } | |
cf694132 | 2405 | { |
474c48f9 | 2406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2407 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2408 | |
474c48f9 | 2409 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2410 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2411 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2412 | _resultobj = Py_BuildValue("s",_ptemp); |
2413 | return _resultobj; | |
2414 | } | |
2415 | ||
8ab979d7 | 2416 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2417 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2418 | PyObject * _resultobj; |
2419 | int _result; | |
2420 | wxWindow * _arg0; | |
2421 | int _arg1; | |
1d99702e | 2422 | PyObject * _argo0 = 0; |
efc5f224 | 2423 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2424 | |
2425 | self = self; | |
faeb124b | 2426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2427 | return NULL; |
1d99702e RD |
2428 | if (_argo0) { |
2429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2432 | return NULL; | |
2433 | } | |
2434 | } | |
cf694132 | 2435 | { |
474c48f9 | 2436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2437 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2438 | |
474c48f9 | 2439 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2440 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2441 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2442 | return _resultobj; |
2443 | } | |
2444 | ||
2445 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2446 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2447 | PyObject * _resultobj; |
2448 | int _result; | |
2449 | wxWindow * _arg0; | |
2450 | int _arg1; | |
1d99702e | 2451 | PyObject * _argo0 = 0; |
efc5f224 | 2452 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2453 | |
2454 | self = self; | |
faeb124b | 2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2456 | return NULL; |
1d99702e RD |
2457 | if (_argo0) { |
2458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2461 | return NULL; | |
2462 | } | |
2463 | } | |
cf694132 | 2464 | { |
474c48f9 | 2465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2466 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2467 | |
474c48f9 | 2468 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2469 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2470 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2471 | return _resultobj; |
2472 | } | |
2473 | ||
2474 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2475 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2476 | PyObject * _resultobj; |
2477 | int _result; | |
2478 | wxWindow * _arg0; | |
2479 | int _arg1; | |
1d99702e | 2480 | PyObject * _argo0 = 0; |
efc5f224 | 2481 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2482 | |
2483 | self = self; | |
faeb124b | 2484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2485 | return NULL; |
1d99702e RD |
2486 | if (_argo0) { |
2487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2490 | return NULL; | |
2491 | } | |
2492 | } | |
cf694132 | 2493 | { |
474c48f9 | 2494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2495 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2496 | |
474c48f9 | 2497 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2498 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2499 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2500 | return _resultobj; |
2501 | } | |
2502 | ||
b8b8dda7 | 2503 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2504 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2505 | PyObject * _resultobj; |
2506 | wxWindow * _arg0; | |
2507 | int * _arg1; | |
2508 | int temp; | |
2509 | int * _arg2; | |
2510 | int temp0; | |
1d99702e | 2511 | PyObject * _argo0 = 0; |
efc5f224 | 2512 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2513 | |
2514 | self = self; | |
2515 | { | |
2516 | _arg1 = &temp; | |
2517 | } | |
2518 | { | |
2519 | _arg2 = &temp0; | |
2520 | } | |
faeb124b | 2521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2522 | return NULL; |
1d99702e RD |
2523 | if (_argo0) { |
2524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2527 | return NULL; |
2528 | } | |
2529 | } | |
cf694132 | 2530 | { |
474c48f9 | 2531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2532 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2533 | |
474c48f9 | 2534 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2535 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2536 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2537 | _resultobj = Py_None; |
2538 | { | |
2539 | PyObject *o; | |
2540 | o = PyInt_FromLong((long) (*_arg1)); | |
2541 | _resultobj = t_output_helper(_resultobj, o); | |
2542 | } | |
2543 | { | |
2544 | PyObject *o; | |
2545 | o = PyInt_FromLong((long) (*_arg2)); | |
2546 | _resultobj = t_output_helper(_resultobj, o); | |
2547 | } | |
2548 | return _resultobj; | |
2549 | } | |
2550 | ||
b8b8dda7 | 2551 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2552 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2553 | PyObject * _resultobj; |
2554 | wxSize * _result; | |
2555 | wxWindow * _arg0; | |
1d99702e | 2556 | PyObject * _argo0 = 0; |
efc5f224 | 2557 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2558 | char _ptemp[128]; |
2559 | ||
2560 | self = self; | |
faeb124b | 2561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2562 | return NULL; |
1d99702e RD |
2563 | if (_argo0) { |
2564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2567 | return NULL; | |
2568 | } | |
2569 | } | |
cf694132 | 2570 | { |
474c48f9 | 2571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2572 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2573 | |
474c48f9 | 2574 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2575 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2576 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2577 | _resultobj = Py_BuildValue("s",_ptemp); |
2578 | return _resultobj; | |
2579 | } | |
2580 | ||
8ab979d7 | 2581 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2582 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2583 | PyObject * _resultobj; |
2584 | wxWindow * _arg0; | |
2585 | wxString * _arg1; | |
2586 | int * _arg2; | |
2587 | int temp; | |
2588 | int * _arg3; | |
2589 | int temp0; | |
1d99702e | 2590 | PyObject * _argo0 = 0; |
8ab979d7 | 2591 | PyObject * _obj1 = 0; |
efc5f224 | 2592 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2593 | |
2594 | self = self; | |
2595 | { | |
2596 | _arg2 = &temp; | |
2597 | } | |
2598 | { | |
2599 | _arg3 = &temp0; | |
2600 | } | |
faeb124b | 2601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2602 | return NULL; |
1d99702e RD |
2603 | if (_argo0) { |
2604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2607 | return NULL; | |
2608 | } | |
2609 | } | |
2610 | { | |
c8bc7bb8 RD |
2611 | _arg1 = wxString_in_helper(_obj1); |
2612 | if (_arg1 == NULL) | |
8ab979d7 | 2613 | return NULL; |
8ab979d7 | 2614 | } |
cf694132 | 2615 | { |
474c48f9 | 2616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2617 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2618 | |
474c48f9 | 2619 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2620 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2621 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2622 | _resultobj = Py_None; |
2623 | { | |
2624 | PyObject *o; | |
2625 | o = PyInt_FromLong((long) (*_arg2)); | |
2626 | _resultobj = t_output_helper(_resultobj, o); | |
2627 | } | |
2628 | { | |
2629 | PyObject *o; | |
2630 | o = PyInt_FromLong((long) (*_arg3)); | |
2631 | _resultobj = t_output_helper(_resultobj, o); | |
2632 | } | |
2633 | { | |
2634 | if (_obj1) | |
2635 | delete _arg1; | |
2636 | } | |
2637 | return _resultobj; | |
2638 | } | |
2639 | ||
af309447 | 2640 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2641 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2642 | PyObject * _resultobj; |
2643 | wxWindow * _arg0; | |
2644 | wxString * _arg1; | |
2645 | int * _arg2; | |
2646 | int temp; | |
2647 | int * _arg3; | |
2648 | int temp0; | |
2649 | int * _arg4; | |
2650 | int temp1; | |
2651 | int * _arg5; | |
2652 | int temp2; | |
1d99702e RD |
2653 | wxFont * _arg6 = (wxFont *) NULL; |
2654 | PyObject * _argo0 = 0; | |
af309447 | 2655 | PyObject * _obj1 = 0; |
1d99702e | 2656 | PyObject * _argo6 = 0; |
efc5f224 | 2657 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2658 | |
2659 | self = self; | |
2660 | { | |
2661 | _arg2 = &temp; | |
2662 | } | |
2663 | { | |
2664 | _arg3 = &temp0; | |
2665 | } | |
2666 | { | |
2667 | _arg4 = &temp1; | |
2668 | } | |
2669 | { | |
2670 | _arg5 = &temp2; | |
2671 | } | |
faeb124b | 2672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2673 | return NULL; |
1d99702e RD |
2674 | if (_argo0) { |
2675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2678 | return NULL; | |
2679 | } | |
2680 | } | |
2681 | { | |
c8bc7bb8 RD |
2682 | _arg1 = wxString_in_helper(_obj1); |
2683 | if (_arg1 == NULL) | |
af309447 | 2684 | return NULL; |
af309447 | 2685 | } |
1d99702e RD |
2686 | if (_argo6) { |
2687 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2688 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2690 | return NULL; | |
2691 | } | |
2692 | } | |
cf694132 | 2693 | { |
474c48f9 | 2694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2695 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2696 | |
474c48f9 | 2697 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2698 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2699 | } Py_INCREF(Py_None); |
af309447 RD |
2700 | _resultobj = Py_None; |
2701 | { | |
2702 | PyObject *o; | |
2703 | o = PyInt_FromLong((long) (*_arg2)); | |
2704 | _resultobj = t_output_helper(_resultobj, o); | |
2705 | } | |
2706 | { | |
2707 | PyObject *o; | |
2708 | o = PyInt_FromLong((long) (*_arg3)); | |
2709 | _resultobj = t_output_helper(_resultobj, o); | |
2710 | } | |
2711 | { | |
2712 | PyObject *o; | |
2713 | o = PyInt_FromLong((long) (*_arg4)); | |
2714 | _resultobj = t_output_helper(_resultobj, o); | |
2715 | } | |
2716 | { | |
2717 | PyObject *o; | |
2718 | o = PyInt_FromLong((long) (*_arg5)); | |
2719 | _resultobj = t_output_helper(_resultobj, o); | |
2720 | } | |
2721 | { | |
2722 | if (_obj1) | |
2723 | delete _arg1; | |
2724 | } | |
2725 | return _resultobj; | |
2726 | } | |
2727 | ||
8ab979d7 | 2728 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2729 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2730 | PyObject * _resultobj; |
2731 | wxString * _result; | |
2732 | wxWindow * _arg0; | |
1d99702e | 2733 | PyObject * _argo0 = 0; |
efc5f224 | 2734 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2735 | |
2736 | self = self; | |
faeb124b | 2737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2738 | return NULL; |
1d99702e RD |
2739 | if (_argo0) { |
2740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2743 | return NULL; | |
2744 | } | |
2745 | } | |
8ab979d7 | 2746 | { |
474c48f9 | 2747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2748 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2749 | |
474c48f9 | 2750 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2751 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2752 | }{ |
c8bc7bb8 | 2753 | #if wxUSE_UNICODE |
b67a9327 | 2754 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2755 | #else |
eec92d76 | 2756 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2757 | #endif |
8ab979d7 RD |
2758 | } |
2759 | { | |
2760 | delete _result; | |
2761 | } | |
2762 | return _resultobj; | |
2763 | } | |
2764 | ||
8bf5d46e | 2765 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2766 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2767 | PyObject * _resultobj; |
2768 | wxRegion * _result; | |
2769 | wxWindow * _arg0; | |
1d99702e | 2770 | PyObject * _argo0 = 0; |
efc5f224 | 2771 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2772 | char _ptemp[128]; |
2773 | ||
2774 | self = self; | |
faeb124b | 2775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2776 | return NULL; |
1d99702e RD |
2777 | if (_argo0) { |
2778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2781 | return NULL; | |
2782 | } | |
2783 | } | |
2784 | { | |
474c48f9 | 2785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2786 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2787 | |
474c48f9 | 2788 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2789 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2790 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2791 | _resultobj = Py_BuildValue("s",_ptemp); | |
2792 | return _resultobj; | |
2793 | } | |
2794 | ||
8ab979d7 | 2795 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2796 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2797 | PyObject * _resultobj; |
2798 | long _result; | |
2799 | wxWindow * _arg0; | |
1d99702e | 2800 | PyObject * _argo0 = 0; |
efc5f224 | 2801 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2802 | |
2803 | self = self; | |
faeb124b | 2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2805 | return NULL; |
1d99702e RD |
2806 | if (_argo0) { |
2807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2810 | return NULL; | |
2811 | } | |
2812 | } | |
cf694132 | 2813 | { |
474c48f9 | 2814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2815 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2816 | |
474c48f9 | 2817 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2818 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2819 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2820 | return _resultobj; |
2821 | } | |
2822 | ||
f6bcfd97 BP |
2823 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2824 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | wxWindow * _arg0; | |
2827 | long _arg1; | |
2828 | PyObject * _argo0 = 0; | |
2829 | char *_kwnames[] = { "self","style", NULL }; | |
2830 | ||
2831 | self = self; | |
faeb124b | 2832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) |
f6bcfd97 BP |
2833 | return NULL; |
2834 | if (_argo0) { | |
2835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2838 | return NULL; | |
2839 | } | |
2840 | } | |
2841 | { | |
474c48f9 | 2842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2843 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2844 | |
474c48f9 | 2845 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2846 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2847 | } Py_INCREF(Py_None); |
2848 | _resultobj = Py_None; | |
2849 | return _resultobj; | |
2850 | } | |
2851 | ||
2852 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2853 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2854 | PyObject * _resultobj; | |
2855 | wxWindow * _arg0; | |
2856 | long _arg1; | |
2857 | PyObject * _argo0 = 0; | |
2858 | char *_kwnames[] = { "self","style", NULL }; | |
2859 | ||
2860 | self = self; | |
faeb124b | 2861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) |
f6bcfd97 BP |
2862 | return NULL; |
2863 | if (_argo0) { | |
2864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2867 | return NULL; | |
2868 | } | |
2869 | } | |
2870 | { | |
474c48f9 | 2871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2872 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2873 | |
474c48f9 | 2874 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2875 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2876 | } Py_INCREF(Py_None); |
2877 | _resultobj = Py_None; | |
2878 | return _resultobj; | |
2879 | } | |
2880 | ||
8cb49012 RD |
2881 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2882 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2883 | PyObject * _resultobj; | |
2884 | bool _result; | |
2885 | wxWindow * _arg0; | |
2886 | int _arg1; | |
2887 | PyObject * _argo0 = 0; | |
2888 | char *_kwnames[] = { "self","orient", NULL }; | |
2889 | ||
2890 | self = self; | |
faeb124b | 2891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) |
8cb49012 RD |
2892 | return NULL; |
2893 | if (_argo0) { | |
2894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2897 | return NULL; | |
2898 | } | |
2899 | } | |
2900 | { | |
2901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2902 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
8cb49012 RD |
2903 | |
2904 | wxPyEndAllowThreads(__tstate); | |
2905 | if (PyErr_Occurred()) return NULL; | |
2906 | } _resultobj = Py_BuildValue("i",_result); | |
2907 | return _resultobj; | |
2908 | } | |
2909 | ||
bb0054cd | 2910 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2911 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2912 | PyObject * _resultobj; |
2913 | bool _result; | |
2914 | wxWindow * _arg0; | |
1d99702e | 2915 | PyObject * _argo0 = 0; |
efc5f224 | 2916 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2917 | |
2918 | self = self; | |
faeb124b | 2919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2920 | return NULL; |
1d99702e RD |
2921 | if (_argo0) { |
2922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2925 | return NULL; | |
2926 | } | |
2927 | } | |
2928 | { | |
474c48f9 | 2929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2930 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2931 | |
474c48f9 | 2932 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2933 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2934 | } _resultobj = Py_BuildValue("i",_result); |
2935 | return _resultobj; | |
2936 | } | |
2937 | ||
8cb49012 RD |
2938 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2939 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2940 | PyObject * _resultobj; | |
2941 | wxHitTest _result; | |
2942 | wxWindow * _arg0; | |
2943 | wxPoint * _arg1; | |
2944 | PyObject * _argo0 = 0; | |
2945 | wxPoint temp; | |
2946 | PyObject * _obj1 = 0; | |
2947 | char *_kwnames[] = { "self","pt", NULL }; | |
2948 | ||
2949 | self = self; | |
faeb124b | 2950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) |
8cb49012 RD |
2951 | return NULL; |
2952 | if (_argo0) { | |
2953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2956 | return NULL; | |
2957 | } | |
2958 | } | |
2959 | { | |
2960 | _arg1 = &temp; | |
2961 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2962 | return NULL; | |
2963 | } | |
2964 | { | |
2965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2966 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
8cb49012 RD |
2967 | |
2968 | wxPyEndAllowThreads(__tstate); | |
2969 | if (PyErr_Occurred()) return NULL; | |
2970 | } _resultobj = Py_BuildValue("i",_result); | |
2971 | return _resultobj; | |
2972 | } | |
2973 | ||
8ab979d7 | 2974 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2975 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2976 | PyObject * _resultobj; |
2977 | wxWindow * _arg0; | |
1d99702e | 2978 | PyObject * _argo0 = 0; |
efc5f224 | 2979 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2980 | |
2981 | self = self; | |
faeb124b | 2982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2983 | return NULL; |
1d99702e RD |
2984 | if (_argo0) { |
2985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2988 | return NULL; | |
2989 | } | |
2990 | } | |
cf694132 | 2991 | { |
474c48f9 | 2992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2993 | wxWindow_InitDialog(_arg0); |
cf694132 | 2994 | |
474c48f9 | 2995 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2996 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2997 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2998 | _resultobj = Py_None; |
2999 | return _resultobj; | |
3000 | } | |
3001 | ||
3002 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 3003 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3004 | PyObject * _resultobj; |
3005 | bool _result; | |
3006 | wxWindow * _arg0; | |
1d99702e | 3007 | PyObject * _argo0 = 0; |
efc5f224 | 3008 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3009 | |
3010 | self = self; | |
faeb124b | 3011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 3012 | return NULL; |
1d99702e RD |
3013 | if (_argo0) { |
3014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
3017 | return NULL; | |
3018 | } | |
3019 | } | |
cf694132 | 3020 | { |
474c48f9 | 3021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3022 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 3023 | |
474c48f9 | 3024 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3025 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3026 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3027 | return _resultobj; |
3028 | } | |
3029 | ||
1b55cabf RD |
3030 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3031 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3032 | PyObject * _resultobj; | |
3033 | bool _result; | |
3034 | wxWindow * _arg0; | |
3035 | int _arg1; | |
3036 | int _arg2; | |
3037 | int _arg3 = (int ) 0; | |
3038 | int _arg4 = (int ) 0; | |
3039 | PyObject * _argo0 = 0; | |
3040 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
3041 | ||
3042 | self = self; | |
faeb124b | 3043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
1b55cabf RD |
3044 | return NULL; |
3045 | if (_argo0) { | |
3046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
3049 | return NULL; | |
3050 | } | |
3051 | } | |
3052 | { | |
474c48f9 | 3053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3054 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 3055 | |
474c48f9 | 3056 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3057 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3058 | } _resultobj = Py_BuildValue("i",_result); |
3059 | return _resultobj; | |
3060 | } | |
3061 | ||
3062 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3063 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3064 | PyObject * _resultobj; | |
3065 | bool _result; | |
3066 | wxWindow * _arg0; | |
3067 | wxPoint * _arg1; | |
3068 | PyObject * _argo0 = 0; | |
3069 | wxPoint temp; | |
3070 | PyObject * _obj1 = 0; | |
3071 | char *_kwnames[] = { "self","pt", NULL }; | |
3072 | ||
3073 | self = self; | |
faeb124b | 3074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) |
1b55cabf RD |
3075 | return NULL; |
3076 | if (_argo0) { | |
3077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
3080 | return NULL; | |
3081 | } | |
3082 | } | |
3083 | { | |
3084 | _arg1 = &temp; | |
3085 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3086 | return NULL; | |
3087 | } | |
3088 | { | |
474c48f9 | 3089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3090 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 3091 | |
474c48f9 | 3092 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3093 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3094 | } _resultobj = Py_BuildValue("i",_result); |
3095 | return _resultobj; | |
3096 | } | |
3097 | ||
3098 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3099 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3100 | PyObject * _resultobj; | |
3101 | bool _result; | |
3102 | wxWindow * _arg0; | |
3103 | wxRect * _arg1; | |
3104 | PyObject * _argo0 = 0; | |
3105 | wxRect temp; | |
3106 | PyObject * _obj1 = 0; | |
3107 | char *_kwnames[] = { "self","rect", NULL }; | |
3108 | ||
3109 | self = self; | |
faeb124b | 3110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) |
1b55cabf RD |
3111 | return NULL; |
3112 | if (_argo0) { | |
3113 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3114 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3116 | return NULL; | |
3117 | } | |
3118 | } | |
3119 | { | |
3120 | _arg1 = &temp; | |
3121 | if (! wxRect_helper(_obj1, &_arg1)) | |
3122 | return NULL; | |
3123 | } | |
3124 | { | |
474c48f9 | 3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3126 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3127 | |
474c48f9 | 3128 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3129 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3130 | } _resultobj = Py_BuildValue("i",_result); |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
8ab979d7 | 3134 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3135 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3136 | PyObject * _resultobj; |
3137 | bool _result; | |
3138 | wxWindow * _arg0; | |
1d99702e | 3139 | PyObject * _argo0 = 0; |
efc5f224 | 3140 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3141 | |
3142 | self = self; | |
faeb124b | 3143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3144 | return NULL; |
1d99702e RD |
3145 | if (_argo0) { |
3146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3149 | return NULL; | |
3150 | } | |
3151 | } | |
cf694132 | 3152 | { |
474c48f9 | 3153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3154 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3155 | |
474c48f9 | 3156 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3157 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3158 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3159 | return _resultobj; |
3160 | } | |
3161 | ||
3162 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3163 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3164 | PyObject * _resultobj; |
3165 | bool _result; | |
3166 | wxWindow * _arg0; | |
1d99702e | 3167 | PyObject * _argo0 = 0; |
efc5f224 | 3168 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3169 | |
3170 | self = self; | |
faeb124b | 3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3172 | return NULL; |
1d99702e RD |
3173 | if (_argo0) { |
3174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3177 | return NULL; | |
3178 | } | |
3179 | } | |
cf694132 | 3180 | { |
474c48f9 | 3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3182 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3183 | |
474c48f9 | 3184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3185 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3186 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3187 | return _resultobj; |
3188 | } | |
3189 | ||
bb0054cd | 3190 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3191 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3192 | PyObject * _resultobj; |
3193 | bool _result; | |
3194 | wxWindow * _arg0; | |
1d99702e | 3195 | PyObject * _argo0 = 0; |
efc5f224 | 3196 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3197 | |
3198 | self = self; | |
faeb124b | 3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3200 | return NULL; |
1d99702e RD |
3201 | if (_argo0) { |
3202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3205 | return NULL; | |
3206 | } | |
3207 | } | |
3208 | { | |
474c48f9 | 3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3210 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3211 | |
474c48f9 | 3212 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3213 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3214 | } _resultobj = Py_BuildValue("i",_result); |
3215 | return _resultobj; | |
3216 | } | |
3217 | ||
8ab979d7 | 3218 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3219 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3220 | PyObject * _resultobj; |
3221 | wxWindow * _arg0; | |
1d99702e | 3222 | PyObject * _argo0 = 0; |
efc5f224 | 3223 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3224 | |
3225 | self = self; | |
faeb124b | 3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3227 | return NULL; |
1d99702e RD |
3228 | if (_argo0) { |
3229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3232 | return NULL; | |
3233 | } | |
3234 | } | |
cf694132 | 3235 | { |
474c48f9 | 3236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3237 | wxWindow_Layout(_arg0); |
cf694132 | 3238 | |
474c48f9 | 3239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3240 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3241 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3242 | _resultobj = Py_None; |
3243 | return _resultobj; | |
3244 | } | |
3245 | ||
8ab979d7 | 3246 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) |
efc5f224 | 3247 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3248 | PyObject * _resultobj; |
3249 | wxWindow * _arg0; | |
1d99702e | 3250 | PyObject * _argo0 = 0; |
efc5f224 | 3251 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3252 | |
3253 | self = self; | |
faeb124b | 3254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3255 | return NULL; |
1d99702e RD |
3256 | if (_argo0) { |
3257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3260 | return NULL; | |
3261 | } | |
3262 | } | |
cf694132 | 3263 | { |
474c48f9 | 3264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3265 | wxWindow_Lower(_arg0); |
cf694132 | 3266 | |
474c48f9 | 3267 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3268 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3269 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3270 | _resultobj = Py_None; |
3271 | return _resultobj; | |
3272 | } | |
3273 | ||
3274 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3275 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3276 | PyObject * _resultobj; |
3277 | wxWindow * _arg0; | |
65191ae8 | 3278 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3279 | PyObject * _argo0 = 0; |
65191ae8 | 3280 | int tempbool1 = (int) TRUE; |
efc5f224 | 3281 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3282 | |
3283 | self = self; | |
faeb124b | 3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3285 | return NULL; |
1d99702e RD |
3286 | if (_argo0) { |
3287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3290 | return NULL; | |
3291 | } | |
3292 | } | |
3293 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3294 | { |
474c48f9 | 3295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3296 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3297 | |
474c48f9 | 3298 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3299 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3300 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3301 | _resultobj = Py_None; |
3302 | return _resultobj; | |
3303 | } | |
3304 | ||
8cb49012 | 3305 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3306 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3307 | PyObject * _resultobj; |
3308 | wxWindow * _arg0; | |
3309 | int _arg1; | |
3310 | int _arg2; | |
8cb49012 | 3311 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3312 | PyObject * _argo0 = 0; |
8cb49012 | 3313 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3314 | |
3315 | self = self; | |
faeb124b | 3316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 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")) { | |
af309447 RD |
3321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3322 | return NULL; | |
3323 | } | |
3324 | } | |
cf694132 | 3325 | { |
474c48f9 | 3326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3327 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3328 | |
474c48f9 | 3329 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3330 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3331 | } Py_INCREF(Py_None); |
af309447 RD |
3332 | _resultobj = Py_None; |
3333 | return _resultobj; | |
3334 | } | |
3335 | ||
8cb49012 | 3336 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3337 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3338 | PyObject * _resultobj; |
3339 | wxWindow * _arg0; | |
3340 | wxPoint * _arg1; | |
8cb49012 | 3341 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3342 | PyObject * _argo0 = 0; |
2f90df85 RD |
3343 | wxPoint temp; |
3344 | PyObject * _obj1 = 0; | |
8cb49012 | 3345 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3346 | |
3347 | self = self; | |
faeb124b | 3348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
3353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3354 | return NULL; | |
3355 | } | |
3356 | } | |
2f90df85 RD |
3357 | { |
3358 | _arg1 = &temp; | |
3359 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3360 | return NULL; |
2f90df85 | 3361 | } |
cf694132 | 3362 | { |
474c48f9 | 3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3364 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3365 | |
474c48f9 | 3366 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3367 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3368 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3369 | _resultobj = Py_None; |
3370 | return _resultobj; | |
3371 | } | |
3372 | ||
1afc06c2 RD |
3373 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3374 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3375 | PyObject * _resultobj; | |
3376 | wxEvtHandler * _result; | |
3377 | wxWindow * _arg0; | |
3378 | bool _arg1 = (bool ) FALSE; | |
3379 | PyObject * _argo0 = 0; | |
3380 | int tempbool1 = (int) FALSE; | |
3381 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3382 | |
3383 | self = self; | |
faeb124b | 3384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) |
1afc06c2 RD |
3385 | return NULL; |
3386 | if (_argo0) { | |
3387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3390 | return NULL; | |
3391 | } | |
3392 | } | |
3393 | _arg1 = (bool ) tempbool1; | |
3394 | { | |
474c48f9 | 3395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3396 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3397 | |
474c48f9 | 3398 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3399 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3400 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3401 | return _resultobj; |
3402 | } | |
3403 | ||
3404 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3405 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3406 | PyObject * _resultobj; | |
3407 | wxWindow * _arg0; | |
3408 | wxEvtHandler * _arg1; | |
3409 | PyObject * _argo0 = 0; | |
3410 | PyObject * _argo1 = 0; | |
3411 | char *_kwnames[] = { "self","handler", NULL }; | |
3412 | ||
3413 | self = self; | |
faeb124b | 3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) |
1afc06c2 RD |
3415 | return NULL; |
3416 | if (_argo0) { | |
3417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3420 | return NULL; | |
3421 | } | |
3422 | } | |
3423 | if (_argo1) { | |
3424 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3425 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3427 | return NULL; | |
3428 | } | |
3429 | } | |
3430 | { | |
474c48f9 | 3431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3432 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3433 | |
474c48f9 | 3434 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3435 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3436 | } Py_INCREF(Py_None); |
3437 | _resultobj = Py_None; | |
3438 | return _resultobj; | |
3439 | } | |
3440 | ||
5d413391 RD |
3441 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3442 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3443 | PyObject * _resultobj; | |
3444 | bool _result; | |
3445 | wxWindow * _arg0; | |
3446 | wxEvtHandler * _arg1; | |
3447 | PyObject * _argo0 = 0; | |
3448 | PyObject * _argo1 = 0; | |
3449 | char *_kwnames[] = { "self","handler", NULL }; | |
3450 | ||
3451 | self = self; | |
faeb124b | 3452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) |
5d413391 RD |
3453 | return NULL; |
3454 | if (_argo0) { | |
3455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3458 | return NULL; | |
3459 | } | |
3460 | } | |
3461 | if (_argo1) { | |
3462 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3463 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3464 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3465 | return NULL; | |
3466 | } | |
3467 | } | |
3468 | { | |
3469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3470 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
5d413391 RD |
3471 | |
3472 | wxPyEndAllowThreads(__tstate); | |
3473 | if (PyErr_Occurred()) return NULL; | |
3474 | } _resultobj = Py_BuildValue("i",_result); | |
3475 | return _resultobj; | |
3476 | } | |
3477 | ||
8bf5d46e | 3478 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3479 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3480 | PyObject * _resultobj; |
3481 | bool _result; | |
3482 | wxWindow * _arg0; | |
3483 | wxMenu * _arg1; | |
3484 | int _arg2; | |
3485 | int _arg3; | |
1d99702e RD |
3486 | PyObject * _argo0 = 0; |
3487 | PyObject * _argo1 = 0; | |
efc5f224 | 3488 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3489 | |
3490 | self = self; | |
faeb124b | 3491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3492 | return NULL; |
1d99702e RD |
3493 | if (_argo0) { |
3494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3497 | return NULL; | |
3498 | } | |
3499 | } | |
1d99702e RD |
3500 | if (_argo1) { |
3501 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3502 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3504 | return NULL; | |
3505 | } | |
3506 | } | |
3507 | { | |
474c48f9 | 3508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3509 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3510 | |
474c48f9 | 3511 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3512 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3513 | } _resultobj = Py_BuildValue("i",_result); |
3514 | return _resultobj; | |
3515 | } | |
3516 | ||
3517 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3518 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3519 | PyObject * _resultobj; |
3520 | bool _result; | |
3521 | wxWindow * _arg0; | |
3522 | wxMenu * _arg1; | |
3523 | wxPoint * _arg2; | |
1d99702e RD |
3524 | PyObject * _argo0 = 0; |
3525 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3526 | wxPoint temp; |
3527 | PyObject * _obj2 = 0; | |
efc5f224 | 3528 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3529 | |
3530 | self = self; | |
faeb124b | 3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3532 | return NULL; |
1d99702e RD |
3533 | if (_argo0) { |
3534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3537 | return NULL; | |
3538 | } | |
3539 | } | |
1d99702e RD |
3540 | if (_argo1) { |
3541 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3542 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3544 | return NULL; | |
3545 | } | |
3546 | } | |
2f90df85 RD |
3547 | { |
3548 | _arg2 = &temp; | |
3549 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3550 | return NULL; |
2f90df85 | 3551 | } |
cf694132 | 3552 | { |
474c48f9 | 3553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3554 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3555 | |
474c48f9 | 3556 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3557 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3558 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3559 | return _resultobj; |
3560 | } | |
3561 | ||
3562 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3563 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3564 | PyObject * _resultobj; |
3565 | wxWindow * _arg0; | |
1d99702e | 3566 | PyObject * _argo0 = 0; |
efc5f224 | 3567 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3568 | |
3569 | self = self; | |
faeb124b | 3570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3571 | return NULL; |
1d99702e RD |
3572 | if (_argo0) { |
3573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3576 | return NULL; | |
3577 | } | |
3578 | } | |
cf694132 | 3579 | { |
474c48f9 | 3580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3581 | wxWindow_Raise(_arg0); |
cf694132 | 3582 | |
474c48f9 | 3583 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3584 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3585 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3586 | _resultobj = Py_None; |
3587 | return _resultobj; | |
3588 | } | |
3589 | ||
3590 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3591 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3592 | PyObject * _resultobj; |
3593 | wxWindow * _arg0; | |
1d99702e RD |
3594 | bool _arg1 = (bool ) TRUE; |
3595 | wxRect * _arg2 = (wxRect *) NULL; | |
3596 | PyObject * _argo0 = 0; | |
3597 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3598 | wxRect temp; |
3599 | PyObject * _obj2 = 0; | |
efc5f224 | 3600 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3601 | |
3602 | self = self; | |
faeb124b | 3603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3604 | return NULL; |
1d99702e RD |
3605 | if (_argo0) { |
3606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3609 | return NULL; | |
3610 | } | |
3611 | } | |
3612 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3613 | if (_obj2) |
3614 | { | |
3615 | _arg2 = &temp; | |
3616 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3617 | return NULL; |
2f90df85 | 3618 | } |
cf694132 | 3619 | { |
474c48f9 | 3620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3621 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3622 | |
474c48f9 | 3623 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3624 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3625 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3626 | _resultobj = Py_None; |
3627 | return _resultobj; | |
3628 | } | |
3629 | ||
aa2a5b86 RD |
3630 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3631 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3632 | PyObject * _resultobj; | |
3633 | wxWindow * _arg0; | |
3634 | wxRect * _arg1; | |
3635 | PyObject * _argo0 = 0; | |
3636 | wxRect temp; | |
3637 | PyObject * _obj1 = 0; | |
3638 | char *_kwnames[] = { "self","rect", NULL }; | |
3639 | ||
3640 | self = self; | |
faeb124b | 3641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) |
aa2a5b86 RD |
3642 | return NULL; |
3643 | if (_argo0) { | |
3644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3647 | return NULL; | |
3648 | } | |
3649 | } | |
3650 | { | |
3651 | _arg1 = &temp; | |
3652 | if (! wxRect_helper(_obj1, &_arg1)) | |
3653 | return NULL; | |
3654 | } | |
3655 | { | |
474c48f9 | 3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3657 | wxWindow_RefreshRect(_arg0,*_arg1); |
aa2a5b86 | 3658 | |
474c48f9 | 3659 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3660 | if (PyErr_Occurred()) return NULL; |
3661 | } Py_INCREF(Py_None); | |
3662 | _resultobj = Py_None; | |
3663 | return _resultobj; | |
3664 | } | |
3665 | ||
298ae144 RD |
3666 | #define wxWindow_AddChild(_swigobj,_swigarg0) (_swigobj->AddChild(_swigarg0)) |
3667 | static PyObject *_wrap_wxWindow_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3668 | PyObject * _resultobj; | |
3669 | wxWindow * _arg0; | |
3670 | wxWindow * _arg1; | |
3671 | PyObject * _argo0 = 0; | |
3672 | PyObject * _argo1 = 0; | |
3673 | char *_kwnames[] = { "self","child", NULL }; | |
3674 | ||
3675 | self = self; | |
faeb124b | 3676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_AddChild",_kwnames,&_argo0,&_argo1)) |
298ae144 RD |
3677 | return NULL; |
3678 | if (_argo0) { | |
3679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3682 | return NULL; | |
3683 | } | |
3684 | } | |
3685 | if (_argo1) { | |
3686 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3687 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_AddChild. Expected _wxWindow_p."); | |
3689 | return NULL; | |
3690 | } | |
3691 | } | |
3692 | { | |
3693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3694 | wxWindow_AddChild(_arg0,_arg1); | |
3695 | ||
3696 | wxPyEndAllowThreads(__tstate); | |
3697 | if (PyErr_Occurred()) return NULL; | |
3698 | } Py_INCREF(Py_None); | |
3699 | _resultobj = Py_None; | |
3700 | return _resultobj; | |
3701 | } | |
3702 | ||
b7e72427 RD |
3703 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3704 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject * _resultobj; | |
3706 | wxWindow * _arg0; | |
3707 | wxWindow * _arg1; | |
3708 | PyObject * _argo0 = 0; | |
3709 | PyObject * _argo1 = 0; | |
3710 | char *_kwnames[] = { "self","child", NULL }; | |
3711 | ||
3712 | self = self; | |
faeb124b | 3713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) |
b7e72427 RD |
3714 | return NULL; |
3715 | if (_argo0) { | |
3716 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3717 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3719 | return NULL; | |
3720 | } | |
3721 | } | |
3722 | if (_argo1) { | |
3723 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3724 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3726 | return NULL; | |
3727 | } | |
3728 | } | |
3729 | { | |
474c48f9 | 3730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3731 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3732 | |
474c48f9 | 3733 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3734 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3735 | } Py_INCREF(Py_None); |
3736 | _resultobj = Py_None; | |
3737 | return _resultobj; | |
3738 | } | |
3739 | ||
bb0054cd | 3740 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3741 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3742 | PyObject * _resultobj; |
3743 | bool _result; | |
3744 | wxWindow * _arg0; | |
3745 | wxWindow * _arg1; | |
1d99702e RD |
3746 | PyObject * _argo0 = 0; |
3747 | PyObject * _argo1 = 0; | |
efc5f224 | 3748 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3749 | |
3750 | self = self; | |
faeb124b | 3751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3752 | return NULL; |
1d99702e RD |
3753 | if (_argo0) { |
3754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3757 | return NULL; | |
3758 | } | |
3759 | } | |
1d99702e RD |
3760 | if (_argo1) { |
3761 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3762 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3764 | return NULL; | |
3765 | } | |
3766 | } | |
3767 | { | |
474c48f9 | 3768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3769 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3770 | |
474c48f9 | 3771 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3772 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3773 | } _resultobj = Py_BuildValue("i",_result); |
3774 | return _resultobj; | |
3775 | } | |
3776 | ||
af309447 | 3777 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3778 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3779 | PyObject * _resultobj; |
3780 | wxWindow * _arg0; | |
3781 | int * _arg1; | |
3782 | int * _arg2; | |
1d99702e | 3783 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3784 | int temp; |
3785 | PyObject * _obj1 = 0; | |
3786 | int temp0; | |
3787 | PyObject * _obj2 = 0; | |
efc5f224 | 3788 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3789 | |
3790 | self = self; | |
faeb124b | 3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3792 | return NULL; |
1d99702e RD |
3793 | if (_argo0) { |
3794 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3795 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3796 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3797 | return NULL; |
3798 | } | |
3799 | } | |
3800 | { | |
3801 | temp = (int) PyInt_AsLong(_obj1); | |
3802 | _arg1 = &temp; | |
3803 | } | |
3804 | { | |
3805 | temp0 = (int) PyInt_AsLong(_obj2); | |
3806 | _arg2 = &temp0; | |
3807 | } | |
cf694132 | 3808 | { |
474c48f9 | 3809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3810 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3811 | |
474c48f9 | 3812 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3813 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3814 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3815 | _resultobj = Py_None; |
3816 | { | |
3817 | PyObject *o; | |
3818 | o = PyInt_FromLong((long) (*_arg1)); | |
3819 | _resultobj = t_output_helper(_resultobj, o); | |
3820 | } | |
3821 | { | |
3822 | PyObject *o; | |
3823 | o = PyInt_FromLong((long) (*_arg2)); | |
3824 | _resultobj = t_output_helper(_resultobj, o); | |
3825 | } | |
3826 | return _resultobj; | |
3827 | } | |
3828 | ||
af309447 | 3829 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3830 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3831 | PyObject * _resultobj; |
3832 | wxPoint * _result; | |
3833 | wxWindow * _arg0; | |
3834 | wxPoint * _arg1; | |
1d99702e | 3835 | PyObject * _argo0 = 0; |
2f90df85 RD |
3836 | wxPoint temp; |
3837 | PyObject * _obj1 = 0; | |
efc5f224 | 3838 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3839 | char _ptemp[128]; |
3840 | ||
3841 | self = self; | |
faeb124b | 3842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3843 | return NULL; |
1d99702e RD |
3844 | if (_argo0) { |
3845 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3846 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3847 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3848 | return NULL; | |
3849 | } | |
3850 | } | |
2f90df85 RD |
3851 | { |
3852 | _arg1 = &temp; | |
3853 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3854 | return NULL; |
2f90df85 | 3855 | } |
cf694132 | 3856 | { |
474c48f9 | 3857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3858 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3859 | |
474c48f9 | 3860 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3861 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3862 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3863 | _resultobj = Py_BuildValue("s",_ptemp); |
3864 | return _resultobj; | |
3865 | } | |
3866 | ||
8ab979d7 | 3867 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3868 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3869 | PyObject * _resultobj; |
3870 | wxWindow * _arg0; | |
3871 | int _arg1; | |
3872 | int _arg2; | |
1d99702e RD |
3873 | wxRect * _arg3 = (wxRect *) NULL; |
3874 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3875 | wxRect temp; |
3876 | PyObject * _obj3 = 0; | |
efc5f224 | 3877 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3878 | |
3879 | self = self; | |
faeb124b | 3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3881 | return NULL; |
1d99702e RD |
3882 | if (_argo0) { |
3883 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3884 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3886 | return NULL; | |
3887 | } | |
3888 | } | |
2f90df85 RD |
3889 | if (_obj3) |
3890 | { | |
3891 | _arg3 = &temp; | |
3892 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3893 | return NULL; |
2f90df85 | 3894 | } |
cf694132 | 3895 | { |
474c48f9 | 3896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3897 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3898 | |
474c48f9 | 3899 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3900 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3901 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3902 | _resultobj = Py_None; |
3903 | return _resultobj; | |
3904 | } | |
3905 | ||
3906 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3907 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3908 | PyObject * _resultobj; |
3909 | wxWindow * _arg0; | |
3910 | bool _arg1; | |
1d99702e | 3911 | PyObject * _argo0 = 0; |
8ab979d7 | 3912 | int tempbool1; |
efc5f224 | 3913 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3914 | |
3915 | self = self; | |
faeb124b | 3916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3917 | return NULL; |
1d99702e RD |
3918 | if (_argo0) { |
3919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3922 | return NULL; | |
3923 | } | |
3924 | } | |
3925 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3926 | { |
474c48f9 | 3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3928 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3929 | |
474c48f9 | 3930 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3931 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3932 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3933 | _resultobj = Py_None; |
3934 | return _resultobj; | |
3935 | } | |
3936 | ||
9d8bd15f RD |
3937 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3938 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3939 | PyObject * _resultobj; | |
3940 | bool _result; | |
3941 | wxWindow * _arg0; | |
3942 | PyObject * _argo0 = 0; | |
3943 | char *_kwnames[] = { "self", NULL }; | |
3944 | ||
3945 | self = self; | |
faeb124b | 3946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) |
9d8bd15f RD |
3947 | return NULL; |
3948 | if (_argo0) { | |
3949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3952 | return NULL; | |
3953 | } | |
3954 | } | |
3955 | { | |
474c48f9 | 3956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3957 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3958 | |
474c48f9 | 3959 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3960 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3961 | } _resultobj = Py_BuildValue("i",_result); |
3962 | return _resultobj; | |
3963 | } | |
3964 | ||
8ab979d7 | 3965 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3966 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3967 | PyObject * _resultobj; |
3968 | wxWindow * _arg0; | |
3969 | wxColour * _arg1; | |
1d99702e | 3970 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3971 | wxColour temp; |
3972 | PyObject * _obj1 = 0; | |
efc5f224 | 3973 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3974 | |
3975 | self = self; | |
faeb124b | 3976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3977 | return NULL; |
1d99702e RD |
3978 | if (_argo0) { |
3979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3982 | return NULL; | |
3983 | } | |
3984 | } | |
f6bcfd97 BP |
3985 | { |
3986 | _arg1 = &temp; | |
3987 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3988 | return NULL; |
f6bcfd97 | 3989 | } |
cf694132 | 3990 | { |
474c48f9 | 3991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3992 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3993 | |
474c48f9 | 3994 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3995 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3996 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3997 | _resultobj = Py_None; |
3998 | return _resultobj; | |
3999 | } | |
4000 | ||
4001 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 4002 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4003 | PyObject * _resultobj; |
4004 | wxWindow * _arg0; | |
4005 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
4006 | PyObject * _argo0 = 0; |
4007 | PyObject * _argo1 = 0; | |
efc5f224 | 4008 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
4009 | |
4010 | self = self; | |
faeb124b | 4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4012 | return NULL; |
1d99702e RD |
4013 | if (_argo0) { |
4014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
4017 | return NULL; | |
4018 | } | |
4019 | } | |
1d99702e RD |
4020 | if (_argo1) { |
4021 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4022 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
4023 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
4024 | return NULL; | |
4025 | } | |
4026 | } | |
cf694132 | 4027 | { |
474c48f9 | 4028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4029 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 4030 | |
474c48f9 | 4031 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4032 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4033 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4034 | _resultobj = Py_None; |
4035 | return _resultobj; | |
4036 | } | |
4037 | ||
2f90df85 RD |
4038 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
4039 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4040 | PyObject * _resultobj; | |
4041 | wxWindow * _arg0; | |
4042 | wxLayoutConstraints * _arg1; | |
4043 | PyObject * _argo0 = 0; | |
4044 | PyObject * _argo1 = 0; | |
4045 | char *_kwnames[] = { "self","constraints", NULL }; | |
4046 | ||
4047 | self = self; | |
faeb124b | 4048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
4049 | return NULL; |
4050 | if (_argo0) { | |
4051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
4054 | return NULL; | |
4055 | } | |
4056 | } | |
4057 | if (_argo1) { | |
4058 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4059 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
4061 | return NULL; | |
4062 | } | |
4063 | } | |
4064 | { | |
474c48f9 | 4065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4066 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4067 | |
474c48f9 | 4068 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4069 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4070 | } Py_INCREF(Py_None); |
4071 | _resultobj = Py_None; | |
4072 | return _resultobj; | |
4073 | } | |
4074 | ||
8ab979d7 | 4075 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4076 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4077 | PyObject * _resultobj; |
4078 | wxWindow * _arg0; | |
1d99702e | 4079 | PyObject * _argo0 = 0; |
efc5f224 | 4080 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4081 | |
4082 | self = self; | |
faeb124b | 4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4084 | return NULL; |
1d99702e RD |
4085 | if (_argo0) { |
4086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4089 | return NULL; | |
4090 | } | |
4091 | } | |
cf694132 | 4092 | { |
474c48f9 | 4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4094 | wxWindow_SetFocus(_arg0); |
cf694132 | 4095 | |
474c48f9 | 4096 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4097 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4098 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4099 | _resultobj = Py_None; |
4100 | return _resultobj; | |
4101 | } | |
4102 | ||
8381e4cd RD |
4103 | #define wxWindow_SetFocusFromKbd(_swigobj) (_swigobj->SetFocusFromKbd()) |
4104 | static PyObject *_wrap_wxWindow_SetFocusFromKbd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4105 | PyObject * _resultobj; | |
4106 | wxWindow * _arg0; | |
4107 | PyObject * _argo0 = 0; | |
4108 | char *_kwnames[] = { "self", NULL }; | |
4109 | ||
4110 | self = self; | |
faeb124b | 4111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocusFromKbd",_kwnames,&_argo0)) |
8381e4cd RD |
4112 | return NULL; |
4113 | if (_argo0) { | |
4114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocusFromKbd. Expected _wxWindow_p."); | |
4117 | return NULL; | |
4118 | } | |
4119 | } | |
4120 | { | |
4121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4122 | wxWindow_SetFocusFromKbd(_arg0); | |
4123 | ||
4124 | wxPyEndAllowThreads(__tstate); | |
4125 | if (PyErr_Occurred()) return NULL; | |
4126 | } Py_INCREF(Py_None); | |
4127 | _resultobj = Py_None; | |
4128 | return _resultobj; | |
4129 | } | |
4130 | ||
2f90df85 RD |
4131 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4132 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4133 | PyObject * _resultobj; | |
4134 | bool _result; | |
4135 | wxWindow * _arg0; | |
4136 | PyObject * _argo0 = 0; | |
4137 | char *_kwnames[] = { "self", NULL }; | |
4138 | ||
4139 | self = self; | |
faeb124b | 4140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) |
2f90df85 RD |
4141 | return NULL; |
4142 | if (_argo0) { | |
4143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4146 | return NULL; | |
4147 | } | |
4148 | } | |
4149 | { | |
474c48f9 | 4150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4151 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4152 | |
474c48f9 | 4153 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4154 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4155 | } _resultobj = Py_BuildValue("i",_result); |
4156 | return _resultobj; | |
4157 | } | |
4158 | ||
8ab979d7 | 4159 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4160 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4161 | PyObject * _resultobj; |
4162 | wxWindow * _arg0; | |
4163 | wxFont * _arg1; | |
1d99702e RD |
4164 | PyObject * _argo0 = 0; |
4165 | PyObject * _argo1 = 0; | |
efc5f224 | 4166 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4167 | |
4168 | self = self; | |
faeb124b | 4169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4170 | return NULL; |
1d99702e RD |
4171 | if (_argo0) { |
4172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4175 | return NULL; | |
4176 | } | |
4177 | } | |
1d99702e | 4178 | if (_argo1) { |
b67a9327 | 4179 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { |
8ab979d7 RD |
4180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4181 | return NULL; | |
4182 | } | |
4183 | } | |
cf694132 | 4184 | { |
474c48f9 | 4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4186 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4187 | |
474c48f9 | 4188 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4189 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4190 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4191 | _resultobj = Py_None; |
4192 | return _resultobj; | |
4193 | } | |
4194 | ||
4195 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4196 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4197 | PyObject * _resultobj; |
4198 | wxWindow * _arg0; | |
4199 | wxColour * _arg1; | |
1d99702e | 4200 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4201 | wxColour temp; |
4202 | PyObject * _obj1 = 0; | |
efc5f224 | 4203 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4204 | |
4205 | self = self; | |
faeb124b | 4206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4207 | return NULL; |
1d99702e RD |
4208 | if (_argo0) { |
4209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4212 | return NULL; | |
4213 | } | |
4214 | } | |
f6bcfd97 BP |
4215 | { |
4216 | _arg1 = &temp; | |
4217 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4218 | return NULL; |
f6bcfd97 | 4219 | } |
cf694132 | 4220 | { |
474c48f9 | 4221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4222 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4223 | |
474c48f9 | 4224 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4226 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4227 | _resultobj = Py_None; |
4228 | return _resultobj; | |
4229 | } | |
4230 | ||
4231 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4232 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4233 | PyObject * _resultobj; |
4234 | wxWindow * _arg0; | |
4235 | int _arg1; | |
1d99702e | 4236 | PyObject * _argo0 = 0; |
efc5f224 | 4237 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4238 | |
4239 | self = self; | |
faeb124b | 4240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4241 | return NULL; |
1d99702e RD |
4242 | if (_argo0) { |
4243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4246 | return NULL; | |
4247 | } | |
4248 | } | |
cf694132 | 4249 | { |
474c48f9 | 4250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4251 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4252 | |
474c48f9 | 4253 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4254 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4255 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4256 | _resultobj = Py_None; |
4257 | return _resultobj; | |
4258 | } | |
4259 | ||
4260 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4261 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4262 | PyObject * _resultobj; |
4263 | wxWindow * _arg0; | |
4264 | wxString * _arg1; | |
1d99702e | 4265 | PyObject * _argo0 = 0; |
8ab979d7 | 4266 | PyObject * _obj1 = 0; |
efc5f224 | 4267 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4268 | |
4269 | self = self; | |
faeb124b | 4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4271 | return NULL; |
1d99702e RD |
4272 | if (_argo0) { |
4273 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4274 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4275 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4276 | return NULL; | |
4277 | } | |
4278 | } | |
4279 | { | |
c8bc7bb8 RD |
4280 | _arg1 = wxString_in_helper(_obj1); |
4281 | if (_arg1 == NULL) | |
2cd2fac8 | 4282 | return NULL; |
8ab979d7 | 4283 | } |
cf694132 | 4284 | { |
474c48f9 | 4285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4286 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4287 | |
474c48f9 | 4288 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4289 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4290 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4291 | _resultobj = Py_None; |
4292 | { | |
4293 | if (_obj1) | |
4294 | delete _arg1; | |
4295 | } | |
4296 | return _resultobj; | |
4297 | } | |
4298 | ||
8ab979d7 | 4299 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4300 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4301 | PyObject * _resultobj; |
4302 | wxWindow * _arg0; | |
4303 | int _arg1; | |
4304 | int _arg2; | |
4305 | int _arg3; | |
4306 | int _arg4; | |
eb715945 | 4307 | int _arg5 = (int ) TRUE; |
1d99702e | 4308 | PyObject * _argo0 = 0; |
efc5f224 | 4309 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4310 | |
4311 | self = self; | |
faeb124b | 4312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4313 | return NULL; |
1d99702e RD |
4314 | if (_argo0) { |
4315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4318 | return NULL; | |
4319 | } | |
4320 | } | |
cf694132 | 4321 | { |
474c48f9 | 4322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4323 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4324 | |
474c48f9 | 4325 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4326 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4327 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4328 | _resultobj = Py_None; |
4329 | return _resultobj; | |
4330 | } | |
4331 | ||
4332 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4333 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4334 | PyObject * _resultobj; |
4335 | wxWindow * _arg0; | |
4336 | int _arg1; | |
4337 | int _arg2; | |
1d99702e RD |
4338 | bool _arg3 = (bool ) TRUE; |
4339 | PyObject * _argo0 = 0; | |
4340 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4341 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4342 | |
4343 | self = self; | |
faeb124b | 4344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4345 | return NULL; |
1d99702e RD |
4346 | if (_argo0) { |
4347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4350 | return NULL; | |
4351 | } | |
4352 | } | |
4353 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4354 | { |
474c48f9 | 4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4356 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
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_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4366 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4367 | PyObject * _resultobj; |
4368 | wxWindow * _arg0; | |
4369 | int _arg1; | |
4370 | int _arg2; | |
4371 | int _arg3; | |
4372 | int _arg4; | |
1d99702e RD |
4373 | int _arg5 = (int ) wxSIZE_AUTO; |
4374 | PyObject * _argo0 = 0; | |
efc5f224 | 4375 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4376 | |
4377 | self = self; | |
faeb124b | 4378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4379 | return NULL; |
1d99702e RD |
4380 | if (_argo0) { |
4381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4384 | return NULL; | |
4385 | } | |
4386 | } | |
cf694132 | 4387 | { |
474c48f9 | 4388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4389 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
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 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4399 | self->SetSize(size); |
8ab979d7 | 4400 | } |
efc5f224 | 4401 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4402 | PyObject * _resultobj; |
4403 | wxWindow * _arg0; | |
4404 | wxSize * _arg1; | |
1d99702e | 4405 | PyObject * _argo0 = 0; |
2f90df85 RD |
4406 | wxSize temp; |
4407 | PyObject * _obj1 = 0; | |
efc5f224 | 4408 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4409 | |
4410 | self = self; | |
faeb124b | 4411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
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_SetSize. Expected _wxWindow_p."); |
4417 | return NULL; | |
4418 | } | |
4419 | } | |
2f90df85 RD |
4420 | { |
4421 | _arg1 = &temp; | |
4422 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4423 | return NULL; |
2f90df85 | 4424 | } |
cf694132 | 4425 | { |
474c48f9 | 4426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4427 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4428 | |
474c48f9 | 4429 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4430 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4431 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4432 | _resultobj = Py_None; |
4433 | return _resultobj; | |
4434 | } | |
4435 | ||
8cb49012 RD |
4436 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4437 | self->Move(pos, flags); | |
8ab979d7 | 4438 | } |
efc5f224 | 4439 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4440 | PyObject * _resultobj; |
4441 | wxWindow * _arg0; | |
4442 | wxPoint * _arg1; | |
8cb49012 | 4443 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4444 | PyObject * _argo0 = 0; |
2f90df85 RD |
4445 | wxPoint temp; |
4446 | PyObject * _obj1 = 0; | |
8cb49012 | 4447 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4448 | |
4449 | self = self; | |
faeb124b | 4450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4451 | return NULL; |
1d99702e RD |
4452 | if (_argo0) { |
4453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4456 | return NULL; | |
4457 | } | |
4458 | } | |
2f90df85 RD |
4459 | { |
4460 | _arg1 = &temp; | |
4461 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4462 | return NULL; |
2f90df85 | 4463 | } |
cf694132 | 4464 | { |
474c48f9 | 4465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4466 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4467 | |
474c48f9 | 4468 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4469 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4470 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4471 | _resultobj = Py_None; |
4472 | return _resultobj; | |
4473 | } | |
4474 | ||
2cd2fac8 RD |
4475 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4476 | self->SetSize(rect, sizeFlags); | |
4477 | } | |
4478 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4479 | PyObject * _resultobj; | |
4480 | wxWindow * _arg0; | |
4481 | wxRect * _arg1; | |
4482 | int _arg2 = (int ) wxSIZE_AUTO; | |
4483 | PyObject * _argo0 = 0; | |
4484 | wxRect temp; | |
4485 | PyObject * _obj1 = 0; | |
4486 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4487 | ||
4488 | self = self; | |
faeb124b | 4489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) |
2cd2fac8 RD |
4490 | return NULL; |
4491 | if (_argo0) { | |
4492 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4493 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4494 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4495 | return NULL; | |
4496 | } | |
4497 | } | |
4498 | { | |
4499 | _arg1 = &temp; | |
4500 | if (! wxRect_helper(_obj1, &_arg1)) | |
4501 | return NULL; | |
4502 | } | |
4503 | { | |
474c48f9 | 4504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4505 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
2cd2fac8 | 4506 | |
474c48f9 | 4507 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4508 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4509 | } Py_INCREF(Py_None); |
4510 | _resultobj = Py_None; | |
4511 | return _resultobj; | |
4512 | } | |
4513 | ||
8ab979d7 | 4514 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4515 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4516 | PyObject * _resultobj; |
4517 | wxWindow * _arg0; | |
8381e4cd RD |
4518 | int _arg1; |
4519 | int _arg2; | |
1d99702e RD |
4520 | int _arg3 = (int ) -1; |
4521 | int _arg4 = (int ) -1; | |
4522 | int _arg5 = (int ) -1; | |
4523 | int _arg6 = (int ) -1; | |
4524 | PyObject * _argo0 = 0; | |
efc5f224 | 4525 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4526 | |
4527 | self = self; | |
faeb124b | 4528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|iiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4529 | return NULL; |
1d99702e RD |
4530 | if (_argo0) { |
4531 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4532 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4533 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4534 | return NULL; | |
4535 | } | |
4536 | } | |
cf694132 | 4537 | { |
474c48f9 | 4538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4539 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4540 | |
474c48f9 | 4541 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4542 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4543 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4544 | _resultobj = Py_None; |
4545 | return _resultobj; | |
4546 | } | |
4547 | ||
8381e4cd RD |
4548 | #define wxWindow_SetVirtualSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetVirtualSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4549 | static PyObject *_wrap_wxWindow_SetVirtualSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4550 | PyObject * _resultobj; | |
4551 | wxWindow * _arg0; | |
4552 | int _arg1; | |
4553 | int _arg2; | |
4554 | int _arg3 = (int ) -1; | |
4555 | int _arg4 = (int ) -1; | |
4556 | PyObject * _argo0 = 0; | |
4557 | char *_kwnames[] = { "self","minW","minH","maxW","maxH", NULL }; | |
4558 | ||
4559 | self = self; | |
faeb124b | 4560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_SetVirtualSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) |
8381e4cd RD |
4561 | return NULL; |
4562 | if (_argo0) { | |
4563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeHints. Expected _wxWindow_p."); | |
4566 | return NULL; | |
4567 | } | |
4568 | } | |
4569 | { | |
4570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4571 | wxWindow_SetVirtualSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4); | |
4572 | ||
4573 | wxPyEndAllowThreads(__tstate); | |
4574 | if (PyErr_Occurred()) return NULL; | |
4575 | } Py_INCREF(Py_None); | |
4576 | _resultobj = Py_None; | |
4577 | return _resultobj; | |
4578 | } | |
4579 | ||
4580 | #define wxWindow_SetVirtualSize(_swigobj,_swigarg0) (_swigobj->SetVirtualSize(_swigarg0)) | |
4581 | static PyObject *_wrap_wxWindow_SetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4582 | PyObject * _resultobj; | |
4583 | wxWindow * _arg0; | |
4584 | wxSize * _arg1; | |
4585 | PyObject * _argo0 = 0; | |
4586 | wxSize temp; | |
4587 | PyObject * _obj1 = 0; | |
4588 | char *_kwnames[] = { "self","size", NULL }; | |
4589 | ||
4590 | self = self; | |
faeb124b | 4591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetVirtualSize",_kwnames,&_argo0,&_obj1)) |
8381e4cd RD |
4592 | return NULL; |
4593 | if (_argo0) { | |
4594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSize. Expected _wxWindow_p."); | |
4597 | return NULL; | |
4598 | } | |
4599 | } | |
4600 | { | |
4601 | _arg1 = &temp; | |
4602 | if (! wxSize_helper(_obj1, &_arg1)) | |
4603 | return NULL; | |
4604 | } | |
4605 | { | |
4606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4607 | wxWindow_SetVirtualSize(_arg0,*_arg1); | |
4608 | ||
4609 | wxPyEndAllowThreads(__tstate); | |
4610 | if (PyErr_Occurred()) return NULL; | |
4611 | } Py_INCREF(Py_None); | |
4612 | _resultobj = Py_None; | |
4613 | return _resultobj; | |
4614 | } | |
4615 | ||
4616 | #define wxWindow_SetVirtualSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetVirtualSize(_swigarg0,_swigarg1)) | |
4617 | static PyObject *_wrap_wxWindow_SetVirtualSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4618 | PyObject * _resultobj; | |
4619 | wxWindow * _arg0; | |
4620 | int _arg1; | |
4621 | int _arg2; | |
4622 | PyObject * _argo0 = 0; | |
4623 | char *_kwnames[] = { "self","x","y", NULL }; | |
4624 | ||
4625 | self = self; | |
faeb124b | 4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetVirtualSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
8381e4cd RD |
4627 | return NULL; |
4628 | if (_argo0) { | |
4629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetVirtualSizeWH. Expected _wxWindow_p."); | |
4632 | return NULL; | |
4633 | } | |
4634 | } | |
4635 | { | |
4636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4637 | wxWindow_SetVirtualSizeWH(_arg0,_arg1,_arg2); | |
4638 | ||
4639 | wxPyEndAllowThreads(__tstate); | |
4640 | if (PyErr_Occurred()) return NULL; | |
4641 | } Py_INCREF(Py_None); | |
4642 | _resultobj = Py_None; | |
4643 | return _resultobj; | |
4644 | } | |
4645 | ||
4646 | #define wxWindow_GetVirtualSize(_swigobj) (_swigobj->GetVirtualSize()) | |
4647 | static PyObject *_wrap_wxWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4648 | PyObject * _resultobj; | |
4649 | wxSize * _result; | |
4650 | wxWindow * _arg0; | |
4651 | PyObject * _argo0 = 0; | |
4652 | char *_kwnames[] = { "self", NULL }; | |
4653 | char _ptemp[128]; | |
4654 | ||
4655 | self = self; | |
faeb124b | 4656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSize",_kwnames,&_argo0)) |
8381e4cd RD |
4657 | return NULL; |
4658 | if (_argo0) { | |
4659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSize. Expected _wxWindow_p."); | |
4662 | return NULL; | |
4663 | } | |
4664 | } | |
4665 | { | |
4666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4667 | _result = new wxSize (wxWindow_GetVirtualSize(_arg0)); | |
4668 | ||
4669 | wxPyEndAllowThreads(__tstate); | |
4670 | if (PyErr_Occurred()) return NULL; | |
4671 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4672 | _resultobj = Py_BuildValue("s",_ptemp); | |
4673 | return _resultobj; | |
4674 | } | |
4675 | ||
4676 | #define wxWindow_GetVirtualSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
4677 | static PyObject *_wrap_wxWindow_GetVirtualSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4678 | PyObject * _resultobj; | |
4679 | wxWindow * _arg0; | |
4680 | int * _arg1; | |
4681 | int temp; | |
4682 | int * _arg2; | |
4683 | int temp0; | |
4684 | PyObject * _argo0 = 0; | |
4685 | char *_kwnames[] = { "self", NULL }; | |
4686 | ||
4687 | self = self; | |
4688 | { | |
4689 | _arg1 = &temp; | |
4690 | } | |
4691 | { | |
4692 | _arg2 = &temp0; | |
4693 | } | |
faeb124b | 4694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetVirtualSizeTuple",_kwnames,&_argo0)) |
8381e4cd RD |
4695 | return NULL; |
4696 | if (_argo0) { | |
4697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetVirtualSizeTuple. Expected _wxWindow_p."); | |
4700 | return NULL; | |
4701 | } | |
4702 | } | |
4703 | { | |
4704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4705 | wxWindow_GetVirtualSizeTuple(_arg0,_arg1,_arg2); | |
4706 | ||
4707 | wxPyEndAllowThreads(__tstate); | |
4708 | if (PyErr_Occurred()) return NULL; | |
4709 | } Py_INCREF(Py_None); | |
4710 | _resultobj = Py_None; | |
4711 | { | |
4712 | PyObject *o; | |
4713 | o = PyInt_FromLong((long) (*_arg1)); | |
4714 | _resultobj = t_output_helper(_resultobj, o); | |
4715 | } | |
4716 | { | |
4717 | PyObject *o; | |
4718 | o = PyInt_FromLong((long) (*_arg2)); | |
4719 | _resultobj = t_output_helper(_resultobj, o); | |
4720 | } | |
4721 | return _resultobj; | |
4722 | } | |
4723 | ||
b67a9327 RD |
4724 | #define wxWindow_GetBestVirtualSize(_swigobj) (_swigobj->GetBestVirtualSize()) |
4725 | static PyObject *_wrap_wxWindow_GetBestVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4726 | PyObject * _resultobj; | |
4727 | wxSize * _result; | |
4728 | wxWindow * _arg0; | |
4729 | PyObject * _argo0 = 0; | |
4730 | char *_kwnames[] = { "self", NULL }; | |
4731 | char _ptemp[128]; | |
4732 | ||
4733 | self = self; | |
faeb124b | 4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestVirtualSize",_kwnames,&_argo0)) |
b67a9327 RD |
4735 | return NULL; |
4736 | if (_argo0) { | |
4737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestVirtualSize. Expected _wxWindow_p."); | |
4740 | return NULL; | |
4741 | } | |
4742 | } | |
4743 | { | |
4744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4745 | _result = new wxSize (wxWindow_GetBestVirtualSize(_arg0)); | |
4746 | ||
4747 | wxPyEndAllowThreads(__tstate); | |
4748 | if (PyErr_Occurred()) return NULL; | |
4749 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
4750 | _resultobj = Py_BuildValue("s",_ptemp); | |
4751 | return _resultobj; | |
4752 | } | |
4753 | ||
af309447 | 4754 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4755 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4756 | PyObject * _resultobj; |
4757 | wxWindow * _arg0; | |
4758 | int _arg1; | |
4759 | int _arg2; | |
1d99702e | 4760 | PyObject * _argo0 = 0; |
efc5f224 | 4761 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4762 | |
4763 | self = self; | |
faeb124b | 4764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4765 | return NULL; |
1d99702e RD |
4766 | if (_argo0) { |
4767 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4768 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4769 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4770 | return NULL; | |
4771 | } | |
4772 | } | |
cf694132 | 4773 | { |
474c48f9 | 4774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4775 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4776 | |
474c48f9 | 4777 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4778 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4779 | } Py_INCREF(Py_None); |
af309447 RD |
4780 | _resultobj = Py_None; |
4781 | return _resultobj; | |
4782 | } | |
4783 | ||
4784 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4785 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4786 | PyObject * _resultobj; |
4787 | wxWindow * _arg0; | |
4788 | wxSize * _arg1; | |
1d99702e | 4789 | PyObject * _argo0 = 0; |
2f90df85 RD |
4790 | wxSize temp; |
4791 | PyObject * _obj1 = 0; | |
efc5f224 | 4792 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4793 | |
4794 | self = self; | |
faeb124b | 4795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4796 | return NULL; |
1d99702e RD |
4797 | if (_argo0) { |
4798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4801 | return NULL; | |
4802 | } | |
4803 | } | |
2f90df85 RD |
4804 | { |
4805 | _arg1 = &temp; | |
4806 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4807 | return NULL; |
2f90df85 | 4808 | } |
cf694132 | 4809 | { |
474c48f9 | 4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4811 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4812 | |
474c48f9 | 4813 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4814 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4815 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4816 | _resultobj = Py_None; |
4817 | return _resultobj; | |
4818 | } | |
4819 | ||
4820 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4821 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 4822 | PyObject * _resultobj; |
298ae144 | 4823 | bool _result; |
8ab979d7 RD |
4824 | wxWindow * _arg0; |
4825 | wxCursor * _arg1; | |
1d99702e RD |
4826 | PyObject * _argo0 = 0; |
4827 | PyObject * _argo1 = 0; | |
efc5f224 | 4828 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4829 | |
4830 | self = self; | |
faeb124b | 4831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4832 | return NULL; |
1d99702e RD |
4833 | if (_argo0) { |
4834 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4835 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4836 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4837 | return NULL; | |
4838 | } | |
4839 | } | |
1d99702e | 4840 | if (_argo1) { |
b67a9327 | 4841 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
8ab979d7 RD |
4842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4843 | return NULL; | |
4844 | } | |
4845 | } | |
cf694132 | 4846 | { |
474c48f9 | 4847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
298ae144 | 4848 | _result = (bool )wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4849 | |
474c48f9 | 4850 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4851 | if (PyErr_Occurred()) return NULL; |
298ae144 RD |
4852 | } _resultobj = Py_BuildValue("i",_result); |
4853 | return _resultobj; | |
4854 | } | |
4855 | ||
4856 | #define wxWindow_GetCursor(_swigobj) (_swigobj->GetCursor()) | |
4857 | static PyObject *_wrap_wxWindow_GetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4858 | PyObject * _resultobj; | |
4859 | wxCursor * _result; | |
4860 | wxWindow * _arg0; | |
4861 | PyObject * _argo0 = 0; | |
4862 | char *_kwnames[] = { "self", NULL }; | |
4863 | char _ptemp[128]; | |
4864 | ||
4865 | self = self; | |
faeb124b | 4866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCursor",_kwnames,&_argo0)) |
298ae144 RD |
4867 | return NULL; |
4868 | if (_argo0) { | |
4869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCursor. Expected _wxWindow_p."); | |
4872 | return NULL; | |
4873 | } | |
4874 | } | |
4875 | { | |
4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4877 | wxCursor & _result_ref = wxWindow_GetCursor(_arg0); | |
4878 | _result = (wxCursor *) &_result_ref; | |
4879 | ||
4880 | wxPyEndAllowThreads(__tstate); | |
4881 | if (PyErr_Occurred()) return NULL; | |
4882 | } if (_result) { | |
4883 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p"); | |
4884 | _resultobj = Py_BuildValue("s",_ptemp); | |
4885 | } else { | |
4886 | Py_INCREF(Py_None); | |
4887 | _resultobj = Py_None; | |
4888 | } | |
8ab979d7 RD |
4889 | return _resultobj; |
4890 | } | |
4891 | ||
1afc06c2 RD |
4892 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4893 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4894 | PyObject * _resultobj; | |
4895 | wxWindow * _arg0; | |
4896 | wxEvtHandler * _arg1; | |
4897 | PyObject * _argo0 = 0; | |
4898 | PyObject * _argo1 = 0; | |
4899 | char *_kwnames[] = { "self","handler", NULL }; | |
4900 | ||
4901 | self = self; | |
faeb124b | 4902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
1afc06c2 RD |
4903 | return NULL; |
4904 | if (_argo0) { | |
4905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4908 | return NULL; | |
4909 | } | |
4910 | } | |
4911 | if (_argo1) { | |
4912 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4913 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4915 | return NULL; | |
4916 | } | |
4917 | } | |
4918 | { | |
474c48f9 | 4919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4920 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4921 | |
474c48f9 | 4922 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4923 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4924 | } Py_INCREF(Py_None); |
4925 | _resultobj = Py_None; | |
4926 | return _resultobj; | |
4927 | } | |
4928 | ||
5e40f9dd RD |
4929 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4930 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4931 | PyObject * _resultobj; | |
4932 | wxWindow * _arg0; | |
4933 | long _arg1; | |
4934 | PyObject * _argo0 = 0; | |
4935 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4936 | ||
4937 | self = self; | |
faeb124b | 4938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) |
5e40f9dd RD |
4939 | return NULL; |
4940 | if (_argo0) { | |
4941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4944 | return NULL; | |
4945 | } | |
4946 | } | |
4947 | { | |
474c48f9 | 4948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4949 | wxWindow_SetExtraStyle(_arg0,_arg1); |
5e40f9dd | 4950 | |
474c48f9 | 4951 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4952 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4953 | } Py_INCREF(Py_None); |
4954 | _resultobj = Py_None; | |
4955 | return _resultobj; | |
4956 | } | |
4957 | ||
8ab979d7 | 4958 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4959 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4960 | PyObject * _resultobj; |
4961 | wxWindow * _arg0; | |
4962 | wxString * _arg1; | |
1d99702e | 4963 | PyObject * _argo0 = 0; |
8ab979d7 | 4964 | PyObject * _obj1 = 0; |
efc5f224 | 4965 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4966 | |
4967 | self = self; | |
faeb124b | 4968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4969 | return NULL; |
1d99702e RD |
4970 | if (_argo0) { |
4971 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4972 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4973 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4974 | return NULL; | |
4975 | } | |
4976 | } | |
4977 | { | |
c8bc7bb8 RD |
4978 | _arg1 = wxString_in_helper(_obj1); |
4979 | if (_arg1 == NULL) | |
2cd2fac8 | 4980 | return NULL; |
8ab979d7 | 4981 | } |
cf694132 | 4982 | { |
474c48f9 | 4983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4984 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 4985 | |
474c48f9 | 4986 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4987 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4988 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4989 | _resultobj = Py_None; |
4990 | { | |
4991 | if (_obj1) | |
4992 | delete _arg1; | |
4993 | } | |
4994 | return _resultobj; | |
4995 | } | |
4996 | ||
4997 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4998 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4999 | PyObject * _resultobj; |
5000 | bool _result; | |
5001 | wxWindow * _arg0; | |
3e212503 | 5002 | bool _arg1 = (bool ) TRUE; |
1d99702e | 5003 | PyObject * _argo0 = 0; |
3e212503 | 5004 | int tempbool1 = (int) TRUE; |
efc5f224 | 5005 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
5006 | |
5007 | self = self; | |
faeb124b | 5008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 5009 | return NULL; |
1d99702e RD |
5010 | if (_argo0) { |
5011 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5012 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5013 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
5014 | return NULL; | |
5015 | } | |
5016 | } | |
5017 | _arg1 = (bool ) tempbool1; | |
cf694132 | 5018 | { |
474c48f9 | 5019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5020 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 5021 | |
474c48f9 | 5022 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5023 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5024 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5025 | return _resultobj; |
5026 | } | |
5027 | ||
5028 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 5029 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5030 | PyObject * _resultobj; |
5031 | bool _result; | |
5032 | wxWindow * _arg0; | |
1d99702e | 5033 | PyObject * _argo0 = 0; |
efc5f224 | 5034 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5035 | |
5036 | self = self; | |
faeb124b | 5037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 5038 | return NULL; |
1d99702e RD |
5039 | if (_argo0) { |
5040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
5043 | return NULL; | |
5044 | } | |
5045 | } | |
cf694132 | 5046 | { |
474c48f9 | 5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5048 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 5049 | |
474c48f9 | 5050 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5051 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5052 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5053 | return _resultobj; |
5054 | } | |
5055 | ||
5056 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 5057 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5058 | PyObject * _resultobj; |
5059 | bool _result; | |
5060 | wxWindow * _arg0; | |
1d99702e | 5061 | PyObject * _argo0 = 0; |
efc5f224 | 5062 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5063 | |
5064 | self = self; | |
faeb124b | 5065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 5066 | return NULL; |
1d99702e RD |
5067 | if (_argo0) { |
5068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
5071 | return NULL; | |
5072 | } | |
5073 | } | |
cf694132 | 5074 | { |
474c48f9 | 5075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5076 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 5077 | |
474c48f9 | 5078 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5079 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5080 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5081 | return _resultobj; |
5082 | } | |
5083 | ||
3ef86e32 | 5084 | #define wxWindow_UpdateWindowUI(_swigobj,_swigarg0) (_swigobj->UpdateWindowUI(_swigarg0)) |
8cb49012 RD |
5085 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
5086 | PyObject * _resultobj; | |
5087 | wxWindow * _arg0; | |
3ef86e32 | 5088 | long _arg1 = (long ) wxUPDATE_UI_NONE; |
8cb49012 | 5089 | PyObject * _argo0 = 0; |
3ef86e32 | 5090 | char *_kwnames[] = { "self","flags", NULL }; |
8cb49012 RD |
5091 | |
5092 | self = self; | |
faeb124b | 5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxWindow_UpdateWindowUI",_kwnames,&_argo0,&_arg1)) |
8cb49012 RD |
5094 | return NULL; |
5095 | if (_argo0) { | |
5096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
5099 | return NULL; | |
5100 | } | |
5101 | } | |
5102 | { | |
5103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3ef86e32 | 5104 | wxWindow_UpdateWindowUI(_arg0,_arg1); |
8cb49012 RD |
5105 | |
5106 | wxPyEndAllowThreads(__tstate); | |
5107 | if (PyErr_Occurred()) return NULL; | |
5108 | } Py_INCREF(Py_None); | |
5109 | _resultobj = Py_None; | |
5110 | return _resultobj; | |
5111 | } | |
5112 | ||
8ab979d7 | 5113 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 5114 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
5115 | PyObject * _resultobj; |
5116 | bool _result; | |
5117 | wxWindow * _arg0; | |
1d99702e | 5118 | PyObject * _argo0 = 0; |
efc5f224 | 5119 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
5120 | |
5121 | self = self; | |
faeb124b | 5122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 5123 | return NULL; |
1d99702e RD |
5124 | if (_argo0) { |
5125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
5127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
5128 | return NULL; | |
5129 | } | |
5130 | } | |
cf694132 | 5131 | { |
474c48f9 | 5132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5133 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 5134 | |
474c48f9 | 5135 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5136 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5137 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
5138 | return _resultobj; |
5139 | } | |
5140 | ||
b8b8dda7 | 5141 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 5142 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5143 | PyObject * _resultobj; |
5144 | wxPoint * _result; | |
5145 | wxWindow * _arg0; | |
5146 | wxPoint * _arg1; | |
1d99702e | 5147 | PyObject * _argo0 = 0; |
2f90df85 RD |
5148 | wxPoint temp; |
5149 | PyObject * _obj1 = 0; | |
efc5f224 | 5150 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5151 | char _ptemp[128]; |
5152 | ||
5153 | self = self; | |
faeb124b | 5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5155 | return NULL; |
1d99702e RD |
5156 | if (_argo0) { |
5157 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5158 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5159 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
5160 | return NULL; | |
5161 | } | |
5162 | } | |
2f90df85 RD |
5163 | { |
5164 | _arg1 = &temp; | |
5165 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5166 | return NULL; |
2f90df85 | 5167 | } |
cf694132 | 5168 | { |
474c48f9 | 5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5170 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 5171 | |
474c48f9 | 5172 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5173 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5174 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5175 | _resultobj = Py_BuildValue("s",_ptemp); |
5176 | return _resultobj; | |
5177 | } | |
5178 | ||
5179 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 5180 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5181 | PyObject * _resultobj; |
5182 | wxSize * _result; | |
5183 | wxWindow * _arg0; | |
5184 | wxSize * _arg1; | |
1d99702e | 5185 | PyObject * _argo0 = 0; |
2f90df85 RD |
5186 | wxSize temp; |
5187 | PyObject * _obj1 = 0; | |
efc5f224 | 5188 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5189 | char _ptemp[128]; |
5190 | ||
5191 | self = self; | |
faeb124b | 5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5193 | return NULL; |
1d99702e RD |
5194 | if (_argo0) { |
5195 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5196 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5197 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
5198 | return NULL; | |
5199 | } | |
5200 | } | |
2f90df85 RD |
5201 | { |
5202 | _arg1 = &temp; | |
5203 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5204 | return NULL; |
2f90df85 | 5205 | } |
cf694132 | 5206 | { |
474c48f9 | 5207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5208 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 5209 | |
474c48f9 | 5210 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5211 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5212 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5213 | _resultobj = Py_BuildValue("s",_ptemp); |
5214 | return _resultobj; | |
5215 | } | |
5216 | ||
5217 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5218 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5219 | PyObject * _resultobj; |
5220 | wxPoint * _result; | |
5221 | wxWindow * _arg0; | |
5222 | wxPoint * _arg1; | |
1d99702e | 5223 | PyObject * _argo0 = 0; |
2f90df85 RD |
5224 | wxPoint temp; |
5225 | PyObject * _obj1 = 0; | |
efc5f224 | 5226 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
5227 | char _ptemp[128]; |
5228 | ||
5229 | self = self; | |
faeb124b | 5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5231 | return NULL; |
1d99702e RD |
5232 | if (_argo0) { |
5233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
5236 | return NULL; | |
5237 | } | |
5238 | } | |
2f90df85 RD |
5239 | { |
5240 | _arg1 = &temp; | |
5241 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5242 | return NULL; |
2f90df85 | 5243 | } |
cf694132 | 5244 | { |
474c48f9 | 5245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5246 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 5247 | |
474c48f9 | 5248 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5249 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5250 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
5251 | _resultobj = Py_BuildValue("s",_ptemp); |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
5255 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 5256 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
5257 | PyObject * _resultobj; |
5258 | wxSize * _result; | |
5259 | wxWindow * _arg0; | |
5260 | wxSize * _arg1; | |
1d99702e | 5261 | PyObject * _argo0 = 0; |
2f90df85 RD |
5262 | wxSize temp; |
5263 | PyObject * _obj1 = 0; | |
efc5f224 | 5264 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
5265 | char _ptemp[128]; |
5266 | ||
5267 | self = self; | |
faeb124b | 5268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 5269 | return NULL; |
1d99702e RD |
5270 | if (_argo0) { |
5271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
5273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
5274 | return NULL; | |
5275 | } | |
5276 | } | |
2f90df85 RD |
5277 | { |
5278 | _arg1 = &temp; | |
5279 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5280 | return NULL; |
2f90df85 | 5281 | } |
cf694132 | 5282 | { |
474c48f9 | 5283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5284 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 5285 | |
474c48f9 | 5286 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5287 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5288 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5289 | _resultobj = Py_BuildValue("s",_ptemp); |
5290 | return _resultobj; | |
5291 | } | |
5292 | ||
af309447 | 5293 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5294 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5295 | PyObject * _resultobj; |
5296 | wxWindow * _arg0; | |
5297 | wxString * _arg1; | |
1d99702e | 5298 | PyObject * _argo0 = 0; |
af309447 | 5299 | PyObject * _obj1 = 0; |
efc5f224 | 5300 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5301 | |
5302 | self = self; | |
faeb124b | 5303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5304 | return NULL; |
1d99702e RD |
5305 | if (_argo0) { |
5306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5309 | return NULL; | |
5310 | } | |
5311 | } | |
5312 | { | |
c8bc7bb8 RD |
5313 | _arg1 = wxString_in_helper(_obj1); |
5314 | if (_arg1 == NULL) | |
2cd2fac8 | 5315 | return NULL; |
af309447 | 5316 | } |
cf694132 | 5317 | { |
474c48f9 | 5318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5319 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5320 | |
474c48f9 | 5321 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5322 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5323 | } Py_INCREF(Py_None); |
af309447 RD |
5324 | _resultobj = Py_None; |
5325 | { | |
5326 | if (_obj1) | |
5327 | delete _arg1; | |
5328 | } | |
5329 | return _resultobj; | |
5330 | } | |
5331 | ||
5332 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5333 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5334 | PyObject * _resultobj; |
5335 | wxWindow * _arg0; | |
5336 | wxToolTip * _arg1; | |
1d99702e RD |
5337 | PyObject * _argo0 = 0; |
5338 | PyObject * _argo1 = 0; | |
efc5f224 | 5339 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5340 | |
5341 | self = self; | |
faeb124b | 5342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5343 | return NULL; |
1d99702e RD |
5344 | if (_argo0) { |
5345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5348 | return NULL; | |
5349 | } | |
5350 | } | |
1d99702e RD |
5351 | if (_argo1) { |
5352 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5353 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5355 | return NULL; | |
5356 | } | |
5357 | } | |
cf694132 | 5358 | { |
474c48f9 | 5359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5360 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5361 | |
474c48f9 | 5362 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5363 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5364 | } Py_INCREF(Py_None); |
af309447 RD |
5365 | _resultobj = Py_None; |
5366 | return _resultobj; | |
5367 | } | |
5368 | ||
5369 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5370 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5371 | PyObject * _resultobj; |
5372 | wxToolTip * _result; | |
5373 | wxWindow * _arg0; | |
1d99702e | 5374 | PyObject * _argo0 = 0; |
efc5f224 | 5375 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5376 | |
5377 | self = self; | |
faeb124b | 5378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5379 | return NULL; |
1d99702e RD |
5380 | if (_argo0) { |
5381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5384 | return NULL; | |
5385 | } | |
5386 | } | |
cf694132 | 5387 | { |
474c48f9 | 5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5389 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5390 | |
474c48f9 | 5391 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5392 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5393 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5394 | return _resultobj; |
5395 | } | |
5396 | ||
49df1f52 | 5397 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5398 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5399 | PyObject * _resultobj; | |
5400 | wxWindow * _arg0; | |
5401 | wxSizer * _arg1; | |
49df1f52 | 5402 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5403 | PyObject * _argo0 = 0; |
5404 | PyObject * _argo1 = 0; | |
49df1f52 RD |
5405 | int tempbool2 = (int) TRUE; |
5406 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5407 | |
5408 | self = self; | |
faeb124b | 5409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5410 | return NULL; |
5411 | if (_argo0) { | |
5412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5415 | return NULL; | |
5416 | } | |
5417 | } | |
5418 | if (_argo1) { | |
5419 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5420 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5422 | return NULL; | |
5423 | } | |
5424 | } | |
49df1f52 | 5425 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5426 | { |
474c48f9 | 5427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
49df1f52 | 5428 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5429 | |
474c48f9 | 5430 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5431 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5432 | } Py_INCREF(Py_None); |
5433 | _resultobj = Py_None; | |
5434 | return _resultobj; | |
5435 | } | |
5436 | ||
8381e4cd RD |
5437 | #define wxWindow_SetSizerAndFit(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizerAndFit(_swigarg0,_swigarg1)) |
5438 | static PyObject *_wrap_wxWindow_SetSizerAndFit(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5439 | PyObject * _resultobj; | |
5440 | wxWindow * _arg0; | |
5441 | wxSizer * _arg1; | |
5442 | bool _arg2 = (bool ) TRUE; | |
5443 | PyObject * _argo0 = 0; | |
5444 | PyObject * _argo1 = 0; | |
5445 | int tempbool2 = (int) TRUE; | |
5446 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
5447 | ||
5448 | self = self; | |
faeb124b | 5449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizerAndFit",_kwnames,&_argo0,&_argo1,&tempbool2)) |
8381e4cd RD |
5450 | return NULL; |
5451 | if (_argo0) { | |
5452 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5453 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5454 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizerAndFit. Expected _wxWindow_p."); | |
5455 | return NULL; | |
5456 | } | |
5457 | } | |
5458 | if (_argo1) { | |
5459 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5460 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizerAndFit. Expected _wxSizer_p."); | |
5462 | return NULL; | |
5463 | } | |
5464 | } | |
5465 | _arg2 = (bool ) tempbool2; | |
5466 | { | |
5467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5468 | wxWindow_SetSizerAndFit(_arg0,_arg1,_arg2); | |
5469 | ||
5470 | wxPyEndAllowThreads(__tstate); | |
5471 | if (PyErr_Occurred()) return NULL; | |
5472 | } Py_INCREF(Py_None); | |
5473 | _resultobj = Py_None; | |
5474 | return _resultobj; | |
5475 | } | |
5476 | ||
f6bcfd97 BP |
5477 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5478 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5479 | PyObject * _resultobj; | |
5480 | wxSizer * _result; | |
5481 | wxWindow * _arg0; | |
5482 | PyObject * _argo0 = 0; | |
5483 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5484 | |
5485 | self = self; | |
faeb124b | 5486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) |
f6bcfd97 BP |
5487 | return NULL; |
5488 | if (_argo0) { | |
5489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5492 | return NULL; | |
5493 | } | |
5494 | } | |
5495 | { | |
474c48f9 | 5496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5497 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5498 | |
474c48f9 | 5499 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5500 | if (PyErr_Occurred()) return NULL; |
7a9b33db | 5501 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5502 | return _resultobj; |
5503 | } | |
5504 | ||
94082a71 RD |
5505 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5506 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5507 | PyObject * _resultobj; | |
5508 | wxWindow * _arg0; | |
5509 | wxSizer * _arg1; | |
5510 | PyObject * _argo0 = 0; | |
5511 | PyObject * _argo1 = 0; | |
5512 | char *_kwnames[] = { "self","sizer", NULL }; | |
5513 | ||
5514 | self = self; | |
faeb124b | 5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) |
94082a71 RD |
5516 | return NULL; |
5517 | if (_argo0) { | |
5518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5521 | return NULL; | |
5522 | } | |
5523 | } | |
5524 | if (_argo1) { | |
5525 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5526 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5528 | return NULL; | |
5529 | } | |
5530 | } | |
5531 | { | |
5532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5533 | wxWindow_SetContainingSizer(_arg0,_arg1); |
94082a71 RD |
5534 | |
5535 | wxPyEndAllowThreads(__tstate); | |
5536 | if (PyErr_Occurred()) return NULL; | |
5537 | } Py_INCREF(Py_None); | |
5538 | _resultobj = Py_None; | |
5539 | return _resultobj; | |
5540 | } | |
5541 | ||
5542 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5543 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5544 | PyObject * _resultobj; | |
5545 | wxSizer * _result; | |
5546 | wxWindow * _arg0; | |
5547 | PyObject * _argo0 = 0; | |
5548 | char *_kwnames[] = { "self", NULL }; | |
5549 | ||
5550 | self = self; | |
faeb124b | 5551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) |
94082a71 RD |
5552 | return NULL; |
5553 | if (_argo0) { | |
5554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5557 | return NULL; | |
5558 | } | |
5559 | } | |
5560 | { | |
5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5562 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
94082a71 RD |
5563 | |
5564 | wxPyEndAllowThreads(__tstate); | |
5565 | if (PyErr_Occurred()) return NULL; | |
5566 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5567 | return _resultobj; | |
5568 | } | |
5569 | ||
2f90df85 RD |
5570 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5571 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5572 | PyObject * _resultobj; | |
5573 | wxValidator * _result; | |
5574 | wxWindow * _arg0; | |
5575 | PyObject * _argo0 = 0; | |
5576 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5577 | |
5578 | self = self; | |
faeb124b | 5579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) |
2f90df85 RD |
5580 | return NULL; |
5581 | if (_argo0) { | |
5582 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5583 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5585 | return NULL; | |
5586 | } | |
5587 | } | |
5588 | { | |
474c48f9 | 5589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5590 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5591 | |
474c48f9 | 5592 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5593 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5594 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5595 | return _resultobj; |
5596 | } | |
5597 | ||
5598 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5599 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject * _resultobj; | |
5601 | wxWindow * _arg0; | |
5602 | wxValidator * _arg1; | |
5603 | PyObject * _argo0 = 0; | |
5604 | PyObject * _argo1 = 0; | |
5605 | char *_kwnames[] = { "self","validator", NULL }; | |
5606 | ||
5607 | self = self; | |
faeb124b | 5608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
5609 | return NULL; |
5610 | if (_argo0) { | |
5611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5614 | return NULL; | |
5615 | } | |
5616 | } | |
5617 | if (_argo1) { | |
b67a9327 | 5618 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { |
2f90df85 RD |
5619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); |
5620 | return NULL; | |
5621 | } | |
5622 | } | |
5623 | { | |
474c48f9 | 5624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5625 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5626 | |
474c48f9 | 5627 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5628 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5629 | } Py_INCREF(Py_None); |
5630 | _resultobj = Py_None; | |
5631 | return _resultobj; | |
5632 | } | |
5633 | ||
b1462dfa RD |
5634 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5635 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject * _resultobj; | |
5637 | wxWindow * _arg0; | |
5638 | wxDropTarget * _arg1; | |
5639 | PyObject * _argo0 = 0; | |
5640 | PyObject * _argo1 = 0; | |
5641 | char *_kwnames[] = { "self","target", NULL }; | |
5642 | ||
5643 | self = self; | |
faeb124b | 5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) |
b1462dfa RD |
5645 | return NULL; |
5646 | if (_argo0) { | |
5647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5650 | return NULL; | |
5651 | } | |
5652 | } | |
5653 | if (_argo1) { | |
5654 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5655 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5657 | return NULL; | |
5658 | } | |
5659 | } | |
5660 | { | |
474c48f9 | 5661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5662 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5663 | |
474c48f9 | 5664 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5665 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5666 | } Py_INCREF(Py_None); |
5667 | _resultobj = Py_None; | |
5668 | return _resultobj; | |
5669 | } | |
5670 | ||
5671 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5672 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5673 | PyObject * _resultobj; | |
5674 | wxDropTarget * _result; | |
5675 | wxWindow * _arg0; | |
5676 | PyObject * _argo0 = 0; | |
5677 | char *_kwnames[] = { "self", NULL }; | |
5678 | char _ptemp[128]; | |
5679 | ||
5680 | self = self; | |
faeb124b | 5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) |
b1462dfa RD |
5682 | return NULL; |
5683 | if (_argo0) { | |
5684 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5685 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5686 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5687 | return NULL; | |
5688 | } | |
5689 | } | |
5690 | { | |
474c48f9 | 5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5692 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5693 | |
474c48f9 | 5694 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5695 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5696 | } if (_result) { |
5697 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5698 | _resultobj = Py_BuildValue("s",_ptemp); | |
5699 | } else { | |
5700 | Py_INCREF(Py_None); | |
5701 | _resultobj = Py_None; | |
5702 | } | |
5703 | return _resultobj; | |
5704 | } | |
5705 | ||
694759cf RD |
5706 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5707 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5708 | PyObject * _resultobj; | |
5709 | wxSize * _result; | |
5710 | wxWindow * _arg0; | |
5711 | PyObject * _argo0 = 0; | |
5712 | char *_kwnames[] = { "self", NULL }; | |
5713 | char _ptemp[128]; | |
5714 | ||
5715 | self = self; | |
faeb124b | 5716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) |
694759cf RD |
5717 | return NULL; |
5718 | if (_argo0) { | |
5719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5722 | return NULL; | |
5723 | } | |
5724 | } | |
5725 | { | |
474c48f9 | 5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5727 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5728 | |
474c48f9 | 5729 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5730 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5731 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5732 | _resultobj = Py_BuildValue("s",_ptemp); | |
5733 | return _resultobj; | |
5734 | } | |
5735 | ||
49df1f52 RD |
5736 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5737 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5738 | PyObject * _resultobj; | |
5739 | wxSize * _result; | |
5740 | wxWindow * _arg0; | |
5741 | PyObject * _argo0 = 0; | |
5742 | char *_kwnames[] = { "self", NULL }; | |
5743 | char _ptemp[128]; | |
5744 | ||
5745 | self = self; | |
faeb124b | 5746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) |
49df1f52 RD |
5747 | return NULL; |
5748 | if (_argo0) { | |
5749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5752 | return NULL; | |
5753 | } | |
5754 | } | |
5755 | { | |
5756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5757 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5758 | ||
5759 | wxPyEndAllowThreads(__tstate); | |
5760 | if (PyErr_Occurred()) return NULL; | |
5761 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5762 | _resultobj = Py_BuildValue("s",_ptemp); | |
5763 | return _resultobj; | |
5764 | } | |
5765 | ||
b67a9327 RD |
5766 | #define wxWindow_GetAdjustedBestSize(_swigobj) (_swigobj->GetAdjustedBestSize()) |
5767 | static PyObject *_wrap_wxWindow_GetAdjustedBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5768 | PyObject * _resultobj; | |
5769 | wxSize * _result; | |
5770 | wxWindow * _arg0; | |
5771 | PyObject * _argo0 = 0; | |
5772 | char *_kwnames[] = { "self", NULL }; | |
5773 | char _ptemp[128]; | |
5774 | ||
5775 | self = self; | |
faeb124b | 5776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAdjustedBestSize",_kwnames,&_argo0)) |
b67a9327 RD |
5777 | return NULL; |
5778 | if (_argo0) { | |
5779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAdjustedBestSize. Expected _wxWindow_p."); | |
5782 | return NULL; | |
5783 | } | |
5784 | } | |
5785 | { | |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5787 | _result = new wxSize (wxWindow_GetAdjustedBestSize(_arg0)); | |
5788 | ||
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) return NULL; | |
5791 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5792 | _resultobj = Py_BuildValue("s",_ptemp); | |
5793 | return _resultobj; | |
5794 | } | |
5795 | ||
a1df7a95 RD |
5796 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5797 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5798 | PyObject * _resultobj; | |
5799 | wxWindow * _arg0; | |
5800 | wxCaret * _arg1; | |
5801 | PyObject * _argo0 = 0; | |
5802 | PyObject * _argo1 = 0; | |
5803 | char *_kwnames[] = { "self","caret", NULL }; | |
5804 | ||
5805 | self = self; | |
faeb124b | 5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) |
a1df7a95 RD |
5807 | return NULL; |
5808 | if (_argo0) { | |
5809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5812 | return NULL; | |
5813 | } | |
5814 | } | |
5815 | if (_argo1) { | |
5816 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5817 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5819 | return NULL; | |
5820 | } | |
5821 | } | |
5822 | { | |
474c48f9 | 5823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5824 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5825 | |
474c48f9 | 5826 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5827 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5828 | } Py_INCREF(Py_None); |
5829 | _resultobj = Py_None; | |
5830 | return _resultobj; | |
5831 | } | |
5832 | ||
5833 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5834 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5835 | PyObject * _resultobj; | |
5836 | wxCaret * _result; | |
5837 | wxWindow * _arg0; | |
5838 | PyObject * _argo0 = 0; | |
5839 | char *_kwnames[] = { "self", NULL }; | |
5840 | char _ptemp[128]; | |
5841 | ||
5842 | self = self; | |
faeb124b | 5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) |
a1df7a95 RD |
5844 | return NULL; |
5845 | if (_argo0) { | |
5846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5849 | return NULL; | |
5850 | } | |
5851 | } | |
5852 | { | |
474c48f9 | 5853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5854 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5855 | |
474c48f9 | 5856 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5857 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5858 | } if (_result) { |
5859 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5860 | _resultobj = Py_BuildValue("s",_ptemp); | |
5861 | } else { | |
5862 | Py_INCREF(Py_None); | |
5863 | _resultobj = Py_None; | |
5864 | } | |
5865 | return _resultobj; | |
5866 | } | |
5867 | ||
10be44ac RD |
5868 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5869 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5870 | PyObject * _resultobj; | |
5871 | wxWindow * _arg0; | |
5872 | PyObject * _argo0 = 0; | |
5873 | char *_kwnames[] = { "self", NULL }; | |
5874 | ||
5875 | self = self; | |
faeb124b | 5876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) |
10be44ac RD |
5877 | return NULL; |
5878 | if (_argo0) { | |
5879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5882 | return NULL; | |
5883 | } | |
5884 | } | |
5885 | { | |
474c48f9 | 5886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5887 | wxWindow_Freeze(_arg0); |
10be44ac | 5888 | |
474c48f9 | 5889 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5890 | if (PyErr_Occurred()) return NULL; |
5891 | } Py_INCREF(Py_None); | |
5892 | _resultobj = Py_None; | |
5893 | return _resultobj; | |
5894 | } | |
5895 | ||
5896 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5897 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5898 | PyObject * _resultobj; | |
5899 | wxWindow * _arg0; | |
5900 | PyObject * _argo0 = 0; | |
5901 | char *_kwnames[] = { "self", NULL }; | |
5902 | ||
5903 | self = self; | |
faeb124b | 5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) |
10be44ac RD |
5905 | return NULL; |
5906 | if (_argo0) { | |
5907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5910 | return NULL; | |
5911 | } | |
5912 | } | |
5913 | { | |
474c48f9 | 5914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5915 | wxWindow_Thaw(_arg0); |
10be44ac | 5916 | |
474c48f9 | 5917 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5918 | if (PyErr_Occurred()) return NULL; |
5919 | } Py_INCREF(Py_None); | |
5920 | _resultobj = Py_None; | |
5921 | return _resultobj; | |
5922 | } | |
5923 | ||
aa2a5b86 RD |
5924 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5925 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5926 | PyObject * _resultobj; | |
5927 | wxWindow * _arg0; | |
5928 | PyObject * _argo0 = 0; | |
5929 | char *_kwnames[] = { "self", NULL }; | |
5930 | ||
5931 | self = self; | |
faeb124b | 5932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) |
aa2a5b86 RD |
5933 | return NULL; |
5934 | if (_argo0) { | |
5935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5938 | return NULL; | |
5939 | } | |
5940 | } | |
5941 | { | |
474c48f9 | 5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5943 | wxWindow_Update(_arg0); |
aa2a5b86 | 5944 | |
474c48f9 | 5945 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5946 | if (PyErr_Occurred()) return NULL; |
5947 | } Py_INCREF(Py_None); | |
5948 | _resultobj = Py_None; | |
5949 | return _resultobj; | |
5950 | } | |
5951 | ||
cd096152 RD |
5952 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5953 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5954 | PyObject * _resultobj; | |
5955 | wxString * _result; | |
5956 | wxWindow * _arg0; | |
5957 | PyObject * _argo0 = 0; | |
5958 | char *_kwnames[] = { "self", NULL }; | |
5959 | ||
5960 | self = self; | |
faeb124b | 5961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) |
cd096152 RD |
5962 | return NULL; |
5963 | if (_argo0) { | |
5964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5967 | return NULL; | |
5968 | } | |
5969 | } | |
5970 | { | |
474c48f9 | 5971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5972 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
cd096152 | 5973 | |
474c48f9 | 5974 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5975 | if (PyErr_Occurred()) return NULL; |
5976 | }{ | |
c8bc7bb8 | 5977 | #if wxUSE_UNICODE |
b67a9327 | 5978 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5979 | #else |
cd096152 | 5980 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5981 | #endif |
cd096152 RD |
5982 | } |
5983 | { | |
5984 | delete _result; | |
5985 | } | |
5986 | return _resultobj; | |
5987 | } | |
5988 | ||
5989 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5990 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5991 | PyObject * _resultobj; | |
5992 | wxWindow * _arg0; | |
5993 | wxString * _arg1; | |
5994 | PyObject * _argo0 = 0; | |
5995 | PyObject * _obj1 = 0; | |
5996 | char *_kwnames[] = { "self","helpText", NULL }; | |
5997 | ||
5998 | self = self; | |
faeb124b | 5999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) |
cd096152 RD |
6000 | return NULL; |
6001 | if (_argo0) { | |
6002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
6005 | return NULL; | |
6006 | } | |
6007 | } | |
6008 | { | |
c8bc7bb8 RD |
6009 | _arg1 = wxString_in_helper(_obj1); |
6010 | if (_arg1 == NULL) | |
cd096152 | 6011 | return NULL; |
cd096152 RD |
6012 | } |
6013 | { | |
474c48f9 | 6014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6015 | wxWindow_SetHelpText(_arg0,*_arg1); |
cd096152 | 6016 | |
474c48f9 | 6017 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6018 | if (PyErr_Occurred()) return NULL; |
6019 | } Py_INCREF(Py_None); | |
6020 | _resultobj = Py_None; | |
6021 | { | |
6022 | if (_obj1) | |
6023 | delete _arg1; | |
6024 | } | |
6025 | return _resultobj; | |
6026 | } | |
6027 | ||
8cb49012 RD |
6028 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
6029 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6030 | PyObject * _resultobj; | |
6031 | wxWindow * _arg0; | |
6032 | wxString * _arg1; | |
6033 | PyObject * _argo0 = 0; | |
6034 | PyObject * _obj1 = 0; | |
6035 | char *_kwnames[] = { "self","text", NULL }; | |
6036 | ||
6037 | self = self; | |
faeb124b | 6038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) |
8cb49012 RD |
6039 | return NULL; |
6040 | if (_argo0) { | |
6041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
6044 | return NULL; | |
6045 | } | |
6046 | } | |
6047 | { | |
c8bc7bb8 RD |
6048 | _arg1 = wxString_in_helper(_obj1); |
6049 | if (_arg1 == NULL) | |
8cb49012 | 6050 | return NULL; |
8cb49012 RD |
6051 | } |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 6054 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
8cb49012 RD |
6055 | |
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) return NULL; | |
6058 | } Py_INCREF(Py_None); | |
6059 | _resultobj = Py_None; | |
6060 | { | |
6061 | if (_obj1) | |
6062 | delete _arg1; | |
6063 | } | |
6064 | return _resultobj; | |
6065 | } | |
6066 | ||
cd096152 RD |
6067 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
6068 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6069 | PyObject * _resultobj; | |
6070 | bool _result; | |
6071 | wxWindow * _arg0; | |
6072 | int _arg1; | |
6073 | PyObject * _argo0 = 0; | |
6074 | char *_kwnames[] = { "self","lines", NULL }; | |
6075 | ||
6076 | self = self; | |
faeb124b | 6077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) |
cd096152 RD |
6078 | return NULL; |
6079 | if (_argo0) { | |
6080 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6081 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6082 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
6083 | return NULL; | |
6084 | } | |
6085 | } | |
6086 | { | |
474c48f9 | 6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6088 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
cd096152 | 6089 | |
474c48f9 | 6090 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6091 | if (PyErr_Occurred()) return NULL; |
6092 | } _resultobj = Py_BuildValue("i",_result); | |
6093 | return _resultobj; | |
6094 | } | |
6095 | ||
6096 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
6097 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6098 | PyObject * _resultobj; | |
6099 | bool _result; | |
6100 | wxWindow * _arg0; | |
6101 | int _arg1; | |
6102 | PyObject * _argo0 = 0; | |
6103 | char *_kwnames[] = { "self","pages", NULL }; | |
6104 | ||
6105 | self = self; | |
faeb124b | 6106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) |
cd096152 RD |
6107 | return NULL; |
6108 | if (_argo0) { | |
6109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
6112 | return NULL; | |
6113 | } | |
6114 | } | |
6115 | { | |
474c48f9 | 6116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6117 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
cd096152 | 6118 | |
474c48f9 | 6119 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6120 | if (PyErr_Occurred()) return NULL; |
6121 | } _resultobj = Py_BuildValue("i",_result); | |
6122 | return _resultobj; | |
6123 | } | |
6124 | ||
6125 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
6126 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6127 | PyObject * _resultobj; | |
6128 | bool _result; | |
6129 | wxWindow * _arg0; | |
6130 | PyObject * _argo0 = 0; | |
6131 | char *_kwnames[] = { "self", NULL }; | |
6132 | ||
6133 | self = self; | |
faeb124b | 6134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) |
cd096152 RD |
6135 | return NULL; |
6136 | if (_argo0) { | |
6137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
6140 | return NULL; | |
6141 | } | |
6142 | } | |
6143 | { | |
474c48f9 | 6144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6145 | _result = (bool )wxWindow_LineUp(_arg0); |
cd096152 | 6146 | |
474c48f9 | 6147 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6148 | if (PyErr_Occurred()) return NULL; |
6149 | } _resultobj = Py_BuildValue("i",_result); | |
6150 | return _resultobj; | |
6151 | } | |
6152 | ||
6153 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
6154 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6155 | PyObject * _resultobj; | |
6156 | bool _result; | |
6157 | wxWindow * _arg0; | |
6158 | PyObject * _argo0 = 0; | |
6159 | char *_kwnames[] = { "self", NULL }; | |
6160 | ||
6161 | self = self; | |
faeb124b | 6162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) |
cd096152 RD |
6163 | return NULL; |
6164 | if (_argo0) { | |
6165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
6168 | return NULL; | |
6169 | } | |
6170 | } | |
6171 | { | |
474c48f9 | 6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6173 | _result = (bool )wxWindow_LineDown(_arg0); |
cd096152 | 6174 | |
474c48f9 | 6175 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6176 | if (PyErr_Occurred()) return NULL; |
6177 | } _resultobj = Py_BuildValue("i",_result); | |
6178 | return _resultobj; | |
6179 | } | |
6180 | ||
6181 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
6182 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6183 | PyObject * _resultobj; | |
6184 | bool _result; | |
6185 | wxWindow * _arg0; | |
6186 | PyObject * _argo0 = 0; | |
6187 | char *_kwnames[] = { "self", NULL }; | |
6188 | ||
6189 | self = self; | |
faeb124b | 6190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) |
cd096152 RD |
6191 | return NULL; |
6192 | if (_argo0) { | |
6193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
6196 | return NULL; | |
6197 | } | |
6198 | } | |
6199 | { | |
474c48f9 | 6200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6201 | _result = (bool )wxWindow_PageUp(_arg0); |
cd096152 | 6202 | |
474c48f9 | 6203 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6204 | if (PyErr_Occurred()) return NULL; |
6205 | } _resultobj = Py_BuildValue("i",_result); | |
6206 | return _resultobj; | |
6207 | } | |
6208 | ||
6209 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
6210 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6211 | PyObject * _resultobj; | |
6212 | bool _result; | |
6213 | wxWindow * _arg0; | |
6214 | PyObject * _argo0 = 0; | |
6215 | char *_kwnames[] = { "self", NULL }; | |
6216 | ||
6217 | self = self; | |
faeb124b | 6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) |
cd096152 RD |
6219 | return NULL; |
6220 | if (_argo0) { | |
6221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | { | |
474c48f9 | 6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6229 | _result = (bool )wxWindow_PageDown(_arg0); |
cd096152 | 6230 | |
474c48f9 | 6231 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
6232 | if (PyErr_Occurred()) return NULL; |
6233 | } _resultobj = Py_BuildValue("i",_result); | |
6234 | return _resultobj; | |
6235 | } | |
6236 | ||
aa2a5b86 RD |
6237 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
6238 | PyObject * _resultobj; | |
6239 | wxWindow * _result; | |
6240 | char *_kwnames[] = { NULL }; | |
6241 | ||
6242 | self = self; | |
faeb124b | 6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) |
aa2a5b86 RD |
6244 | return NULL; |
6245 | { | |
474c48f9 | 6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6247 | _result = (wxWindow *)wxWindow::FindFocus(); |
aa2a5b86 | 6248 | |
474c48f9 | 6249 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6250 | if (PyErr_Occurred()) return NULL; |
6251 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6252 | return _resultobj; | |
6253 | } | |
6254 | ||
6255 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6256 | PyObject * _resultobj; | |
6257 | int _result; | |
6258 | char *_kwnames[] = { NULL }; | |
6259 | ||
6260 | self = self; | |
faeb124b | 6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) |
aa2a5b86 RD |
6262 | return NULL; |
6263 | { | |
474c48f9 | 6264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6265 | _result = (int )wxWindow::NewControlId(); |
aa2a5b86 | 6266 | |
474c48f9 | 6267 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6268 | if (PyErr_Occurred()) return NULL; |
6269 | } _resultobj = Py_BuildValue("i",_result); | |
6270 | return _resultobj; | |
6271 | } | |
6272 | ||
6273 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6274 | PyObject * _resultobj; | |
6275 | int _result; | |
6276 | int _arg0; | |
6277 | char *_kwnames[] = { "id", NULL }; | |
6278 | ||
6279 | self = self; | |
faeb124b | 6280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) |
aa2a5b86 RD |
6281 | return NULL; |
6282 | { | |
474c48f9 | 6283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6284 | _result = (int )wxWindow::NextControlId(_arg0); |
aa2a5b86 | 6285 | |
474c48f9 | 6286 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6287 | if (PyErr_Occurred()) return NULL; |
6288 | } _resultobj = Py_BuildValue("i",_result); | |
6289 | return _resultobj; | |
6290 | } | |
6291 | ||
6292 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6293 | PyObject * _resultobj; | |
6294 | int _result; | |
6295 | int _arg0; | |
6296 | char *_kwnames[] = { "id", NULL }; | |
6297 | ||
6298 | self = self; | |
faeb124b | 6299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) |
aa2a5b86 RD |
6300 | return NULL; |
6301 | { | |
474c48f9 | 6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6303 | _result = (int )wxWindow::PrevControlId(_arg0); |
aa2a5b86 | 6304 | |
474c48f9 | 6305 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6306 | if (PyErr_Occurred()) return NULL; |
6307 | } _resultobj = Py_BuildValue("i",_result); | |
6308 | return _resultobj; | |
6309 | } | |
6310 | ||
32c988a3 RD |
6311 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
6312 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6313 | PyObject * _resultobj; | |
6314 | wxWindow * _arg0; | |
6315 | wxAcceleratorTable * _arg1; | |
6316 | PyObject * _argo0 = 0; | |
6317 | PyObject * _argo1 = 0; | |
6318 | char *_kwnames[] = { "self","accel", NULL }; | |
6319 | ||
6320 | self = self; | |
faeb124b | 6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
32c988a3 RD |
6322 | return NULL; |
6323 | if (_argo0) { | |
6324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
6327 | return NULL; | |
6328 | } | |
6329 | } | |
6330 | if (_argo1) { | |
b67a9327 | 6331 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { |
32c988a3 RD |
6332 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
6333 | return NULL; | |
6334 | } | |
6335 | } | |
6336 | { | |
474c48f9 | 6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6338 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
32c988a3 | 6339 | |
474c48f9 | 6340 | wxPyEndAllowThreads(__tstate); |
32c988a3 RD |
6341 | if (PyErr_Occurred()) return NULL; |
6342 | } Py_INCREF(Py_None); | |
6343 | _resultobj = Py_None; | |
6344 | return _resultobj; | |
6345 | } | |
6346 | ||
65191ae8 RD |
6347 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6348 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6349 | PyObject * _resultobj; | |
6350 | wxAcceleratorTable * _result; | |
6351 | wxWindow * _arg0; | |
6352 | PyObject * _argo0 = 0; | |
6353 | char *_kwnames[] = { "self", NULL }; | |
6354 | char _ptemp[128]; | |
6355 | ||
6356 | self = self; | |
faeb124b | 6357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) |
65191ae8 RD |
6358 | return NULL; |
6359 | if (_argo0) { | |
6360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6363 | return NULL; | |
6364 | } | |
6365 | } | |
6366 | { | |
474c48f9 | 6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6368 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
65191ae8 | 6369 | |
474c48f9 | 6370 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
6371 | if (PyErr_Occurred()) return NULL; |
6372 | } if (_result) { | |
6373 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6374 | _resultobj = Py_BuildValue("s",_ptemp); | |
6375 | } else { | |
6376 | Py_INCREF(Py_None); | |
6377 | _resultobj = Py_None; | |
6378 | } | |
6379 | return _resultobj; | |
6380 | } | |
6381 | ||
3ef86e32 RD |
6382 | static bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode) { |
6383 | #if wxUSE_HOTKEY | |
6384 | return self->RegisterHotKey(hotkeyId, modifiers, keycode); | |
6385 | #else | |
6386 | return FALSE; | |
6387 | #endif | |
6388 | } | |
6389 | static PyObject *_wrap_wxWindow_RegisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6390 | PyObject * _resultobj; | |
6391 | bool _result; | |
6392 | wxWindow * _arg0; | |
6393 | int _arg1; | |
6394 | int _arg2; | |
6395 | int _arg3; | |
6396 | PyObject * _argo0 = 0; | |
6397 | char *_kwnames[] = { "self","hotkeyId","modifiers","keycode", NULL }; | |
6398 | ||
6399 | self = self; | |
faeb124b | 6400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiii:wxWindow_RegisterHotKey",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
3ef86e32 RD |
6401 | return NULL; |
6402 | if (_argo0) { | |
6403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RegisterHotKey. Expected _wxWindow_p."); | |
6406 | return NULL; | |
6407 | } | |
6408 | } | |
6409 | { | |
6410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6411 | _result = (bool )wxWindow_RegisterHotKey(_arg0,_arg1,_arg2,_arg3); | |
6412 | ||
6413 | wxPyEndAllowThreads(__tstate); | |
6414 | if (PyErr_Occurred()) return NULL; | |
6415 | } _resultobj = Py_BuildValue("i",_result); | |
6416 | return _resultobj; | |
6417 | } | |
6418 | ||
6419 | static bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId) { | |
6420 | #if wxUSE_HOTKEY | |
6421 | return self->UnregisterHotKey(hotkeyId); | |
6422 | #else | |
6423 | return FALSE; | |
6424 | #endif | |
6425 | } | |
6426 | static PyObject *_wrap_wxWindow_UnregisterHotKey(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6427 | PyObject * _resultobj; | |
6428 | bool _result; | |
6429 | wxWindow * _arg0; | |
6430 | int _arg1; | |
6431 | PyObject * _argo0 = 0; | |
6432 | char *_kwnames[] = { "self","hotkeyId", NULL }; | |
6433 | ||
6434 | self = self; | |
faeb124b | 6435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_UnregisterHotKey",_kwnames,&_argo0,&_arg1)) |
3ef86e32 RD |
6436 | return NULL; |
6437 | if (_argo0) { | |
6438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnregisterHotKey. Expected _wxWindow_p."); | |
6441 | return NULL; | |
6442 | } | |
6443 | } | |
6444 | { | |
6445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6446 | _result = (bool )wxWindow_UnregisterHotKey(_arg0,_arg1); | |
6447 | ||
6448 | wxPyEndAllowThreads(__tstate); | |
6449 | if (PyErr_Occurred()) return NULL; | |
6450 | } _resultobj = Py_BuildValue("i",_result); | |
6451 | return _resultobj; | |
6452 | } | |
6453 | ||
1893b029 RD |
6454 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6455 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6456 | PyObject * _resultobj; | |
49df1f52 | 6457 | wxWindow * _result; |
1893b029 RD |
6458 | wxWindow * _arg0; |
6459 | PyObject * _argo0 = 0; | |
6460 | char *_kwnames[] = { "self", NULL }; | |
6461 | ||
6462 | self = self; | |
faeb124b | 6463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) |
1893b029 RD |
6464 | return NULL; |
6465 | if (_argo0) { | |
6466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6469 | return NULL; | |
6470 | } | |
6471 | } | |
6472 | { | |
6473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6474 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
1893b029 RD |
6475 | |
6476 | wxPyEndAllowThreads(__tstate); | |
6477 | if (PyErr_Occurred()) return NULL; | |
6478 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6479 | return _resultobj; | |
6480 | } | |
6481 | ||
6482 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6483 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6484 | PyObject * _resultobj; | |
49df1f52 | 6485 | wxWindow * _result; |
1893b029 | 6486 | wxWindow * _arg0; |
49df1f52 | 6487 | wxWindow * _arg1; |
1893b029 RD |
6488 | PyObject * _argo0 = 0; |
6489 | PyObject * _argo1 = 0; | |
6490 | char *_kwnames[] = { "self","btn", NULL }; | |
6491 | ||
6492 | self = self; | |
faeb124b | 6493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
1893b029 RD |
6494 | return NULL; |
6495 | if (_argo0) { | |
6496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6499 | return NULL; | |
6500 | } | |
6501 | } | |
6502 | if (_argo1) { | |
6503 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
49df1f52 RD |
6504 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
1893b029 RD |
6506 | return NULL; |
6507 | } | |
6508 | } | |
6509 | { | |
6510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6511 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
1893b029 RD |
6512 | |
6513 | wxPyEndAllowThreads(__tstate); | |
6514 | if (PyErr_Occurred()) return NULL; | |
49df1f52 | 6515 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1893b029 RD |
6516 | return _resultobj; |
6517 | } | |
6518 | ||
12d1116b RD |
6519 | #define wxWindow_SetTmpDefaultItem(_swigobj,_swigarg0) (_swigobj->SetTmpDefaultItem(_swigarg0)) |
6520 | static PyObject *_wrap_wxWindow_SetTmpDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6521 | PyObject * _resultobj; | |
6522 | wxWindow * _arg0; | |
6523 | wxWindow * _arg1; | |
6524 | PyObject * _argo0 = 0; | |
6525 | PyObject * _argo1 = 0; | |
6526 | char *_kwnames[] = { "self","win", NULL }; | |
6527 | ||
6528 | self = self; | |
faeb124b | 6529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTmpDefaultItem",_kwnames,&_argo0,&_argo1)) |
12d1116b RD |
6530 | return NULL; |
6531 | if (_argo0) { | |
6532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6535 | return NULL; | |
6536 | } | |
6537 | } | |
6538 | if (_argo1) { | |
6539 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6540 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetTmpDefaultItem. Expected _wxWindow_p."); | |
6542 | return NULL; | |
6543 | } | |
6544 | } | |
6545 | { | |
6546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6547 | wxWindow_SetTmpDefaultItem(_arg0,_arg1); | |
6548 | ||
6549 | wxPyEndAllowThreads(__tstate); | |
6550 | if (PyErr_Occurred()) return NULL; | |
6551 | } Py_INCREF(Py_None); | |
6552 | _resultobj = Py_None; | |
6553 | return _resultobj; | |
6554 | } | |
6555 | ||
94c16279 RD |
6556 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
6557 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6558 | PyObject * _resultobj; | |
6559 | wxWindow * _arg0; | |
6560 | int _arg1; | |
6561 | int _arg2; | |
6562 | PyObject * _argo0 = 0; | |
6563 | char *_kwnames[] = { "self","x","y", NULL }; | |
6564 | ||
6565 | self = self; | |
faeb124b | 6566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
94c16279 RD |
6567 | return NULL; |
6568 | if (_argo0) { | |
6569 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6570 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6571 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); | |
6572 | return NULL; | |
6573 | } | |
6574 | } | |
6575 | { | |
6576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6577 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
6578 | ||
6579 | wxPyEndAllowThreads(__tstate); | |
6580 | if (PyErr_Occurred()) return NULL; | |
6581 | } Py_INCREF(Py_None); | |
6582 | _resultobj = Py_None; | |
6583 | return _resultobj; | |
6584 | } | |
6585 | ||
6586 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
6587 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6588 | PyObject * _resultobj; | |
6589 | wxWindow * _arg0; | |
6590 | PyObject * _argo0 = 0; | |
6591 | char *_kwnames[] = { "self", NULL }; | |
6592 | ||
6593 | self = self; | |
faeb124b | 6594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
94c16279 RD |
6595 | return NULL; |
6596 | if (_argo0) { | |
6597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); | |
6600 | return NULL; | |
6601 | } | |
6602 | } | |
6603 | { | |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | wxWindow_CaptureMouse(_arg0); | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) return NULL; | |
6609 | } Py_INCREF(Py_None); | |
6610 | _resultobj = Py_None; | |
6611 | return _resultobj; | |
6612 | } | |
6613 | ||
6614 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
6615 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6616 | PyObject * _resultobj; | |
6617 | wxWindow * _arg0; | |
6618 | PyObject * _argo0 = 0; | |
6619 | char *_kwnames[] = { "self", NULL }; | |
6620 | ||
6621 | self = self; | |
faeb124b | 6622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
94c16279 RD |
6623 | return NULL; |
6624 | if (_argo0) { | |
6625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); | |
6628 | return NULL; | |
6629 | } | |
6630 | } | |
6631 | { | |
6632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6633 | wxWindow_ReleaseMouse(_arg0); | |
6634 | ||
6635 | wxPyEndAllowThreads(__tstate); | |
6636 | if (PyErr_Occurred()) return NULL; | |
6637 | } Py_INCREF(Py_None); | |
6638 | _resultobj = Py_None; | |
6639 | return _resultobj; | |
6640 | } | |
6641 | ||
6642 | static PyObject *_wrap_wxWindow_GetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6643 | PyObject * _resultobj; | |
6644 | wxWindow * _result; | |
6645 | char *_kwnames[] = { NULL }; | |
6646 | ||
6647 | self = self; | |
faeb124b | 6648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_GetCapture",_kwnames)) |
94c16279 RD |
6649 | return NULL; |
6650 | { | |
6651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6652 | _result = (wxWindow *)wxWindow::GetCapture(); | |
6653 | ||
6654 | wxPyEndAllowThreads(__tstate); | |
6655 | if (PyErr_Occurred()) return NULL; | |
6656 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6657 | return _resultobj; | |
6658 | } | |
6659 | ||
6660 | #define wxWindow_HasCapture(_swigobj) (_swigobj->HasCapture()) | |
6661 | static PyObject *_wrap_wxWindow_HasCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6662 | PyObject * _resultobj; | |
6663 | bool _result; | |
6664 | wxWindow * _arg0; | |
6665 | PyObject * _argo0 = 0; | |
6666 | char *_kwnames[] = { "self", NULL }; | |
6667 | ||
6668 | self = self; | |
faeb124b | 6669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_HasCapture",_kwnames,&_argo0)) |
94c16279 RD |
6670 | return NULL; |
6671 | if (_argo0) { | |
6672 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6673 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6674 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasCapture. Expected _wxWindow_p."); | |
6675 | return NULL; | |
6676 | } | |
6677 | } | |
6678 | { | |
6679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6680 | _result = (bool )wxWindow_HasCapture(_arg0); | |
6681 | ||
6682 | wxPyEndAllowThreads(__tstate); | |
6683 | if (PyErr_Occurred()) return NULL; | |
6684 | } _resultobj = Py_BuildValue("i",_result); | |
6685 | return _resultobj; | |
6686 | } | |
6687 | ||
1fded56b RD |
6688 | #define wxWindow_SetThemeEnabled(_swigobj,_swigarg0) (_swigobj->SetThemeEnabled(_swigarg0)) |
6689 | static PyObject *_wrap_wxWindow_SetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6690 | PyObject * _resultobj; | |
6691 | wxWindow * _arg0; | |
6692 | bool _arg1; | |
6693 | PyObject * _argo0 = 0; | |
6694 | int tempbool1; | |
6695 | char *_kwnames[] = { "self","enable", NULL }; | |
6696 | ||
6697 | self = self; | |
faeb124b | 6698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetThemeEnabled",_kwnames,&_argo0,&tempbool1)) |
1fded56b RD |
6699 | return NULL; |
6700 | if (_argo0) { | |
6701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetThemeEnabled. Expected _wxWindow_p."); | |
6704 | return NULL; | |
6705 | } | |
6706 | } | |
6707 | _arg1 = (bool ) tempbool1; | |
6708 | { | |
6709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6710 | wxWindow_SetThemeEnabled(_arg0,_arg1); | |
6711 | ||
6712 | wxPyEndAllowThreads(__tstate); | |
6713 | if (PyErr_Occurred()) return NULL; | |
6714 | } Py_INCREF(Py_None); | |
6715 | _resultobj = Py_None; | |
6716 | return _resultobj; | |
6717 | } | |
6718 | ||
6719 | #define wxWindow_GetThemeEnabled(_swigobj) (_swigobj->GetThemeEnabled()) | |
6720 | static PyObject *_wrap_wxWindow_GetThemeEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6721 | PyObject * _resultobj; | |
6722 | bool _result; | |
6723 | wxWindow * _arg0; | |
6724 | PyObject * _argo0 = 0; | |
6725 | char *_kwnames[] = { "self", NULL }; | |
6726 | ||
6727 | self = self; | |
faeb124b | 6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetThemeEnabled",_kwnames,&_argo0)) |
1fded56b RD |
6729 | return NULL; |
6730 | if (_argo0) { | |
6731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetThemeEnabled. Expected _wxWindow_p."); | |
6734 | return NULL; | |
6735 | } | |
6736 | } | |
6737 | { | |
6738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6739 | _result = (bool )wxWindow_GetThemeEnabled(_arg0); | |
6740 | ||
6741 | wxPyEndAllowThreads(__tstate); | |
6742 | if (PyErr_Occurred()) return NULL; | |
6743 | } _resultobj = Py_BuildValue("i",_result); | |
6744 | return _resultobj; | |
6745 | } | |
6746 | ||
3ef86e32 RD |
6747 | #define wxWindow_GetBorderFlags(_swigobj,_swigarg0) (_swigobj->GetBorder(_swigarg0)) |
6748 | static PyObject *_wrap_wxWindow_GetBorderFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6749 | PyObject * _resultobj; | |
6750 | wxBorder _result; | |
6751 | wxWindow * _arg0; | |
6752 | long _arg1; | |
6753 | PyObject * _argo0 = 0; | |
6754 | char *_kwnames[] = { "self","flags", NULL }; | |
6755 | ||
6756 | self = self; | |
faeb124b | 6757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_GetBorderFlags",_kwnames,&_argo0,&_arg1)) |
3ef86e32 RD |
6758 | return NULL; |
6759 | if (_argo0) { | |
6760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorderFlags. Expected _wxWindow_p."); | |
6763 | return NULL; | |
6764 | } | |
6765 | } | |
6766 | { | |
6767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6768 | _result = (wxBorder )wxWindow_GetBorderFlags(_arg0,_arg1); | |
6769 | ||
6770 | wxPyEndAllowThreads(__tstate); | |
6771 | if (PyErr_Occurred()) return NULL; | |
6772 | } _resultobj = Py_BuildValue("i",_result); | |
6773 | return _resultobj; | |
6774 | } | |
6775 | ||
6776 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) | |
6777 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6778 | PyObject * _resultobj; | |
6779 | wxBorder _result; | |
6780 | wxWindow * _arg0; | |
6781 | PyObject * _argo0 = 0; | |
6782 | char *_kwnames[] = { "self", NULL }; | |
6783 | ||
6784 | self = self; | |
faeb124b | 6785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) |
3ef86e32 RD |
6786 | return NULL; |
6787 | if (_argo0) { | |
6788 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6789 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6790 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
6791 | return NULL; | |
6792 | } | |
6793 | } | |
6794 | { | |
6795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6796 | _result = (wxBorder )wxWindow_GetBorder(_arg0); | |
6797 | ||
6798 | wxPyEndAllowThreads(__tstate); | |
6799 | if (PyErr_Occurred()) return NULL; | |
6800 | } _resultobj = Py_BuildValue("i",_result); | |
6801 | return _resultobj; | |
6802 | } | |
6803 | ||
8ab979d7 RD |
6804 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6805 | wxPanel *src; | |
6806 | wxWindow *dest; | |
6807 | src = (wxPanel *) ptr; | |
6808 | dest = (wxWindow *) src; | |
6809 | return (void *) dest; | |
6810 | } | |
6811 | ||
6812 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6813 | wxPanel *src; | |
6814 | wxEvtHandler *dest; | |
6815 | src = (wxPanel *) ptr; | |
6816 | dest = (wxEvtHandler *) src; | |
6817 | return (void *) dest; | |
6818 | } | |
6819 | ||
9df61a29 RD |
6820 | static void *SwigwxPanelTowxObject(void *ptr) { |
6821 | wxPanel *src; | |
6822 | wxObject *dest; | |
6823 | src = (wxPanel *) ptr; | |
6824 | dest = (wxObject *) src; | |
6825 | return (void *) dest; | |
6826 | } | |
6827 | ||
8ab979d7 | 6828 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6829 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6830 | PyObject * _resultobj; |
6831 | wxPanel * _result; | |
6832 | wxWindow * _arg0; | |
6833 | wxWindowID _arg1; | |
b68dc582 RD |
6834 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6835 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6836 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
9a74fcaf | 6837 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6838 | PyObject * _argo0 = 0; |
2f90df85 RD |
6839 | wxPoint temp; |
6840 | PyObject * _obj2 = 0; | |
6841 | wxSize temp0; | |
6842 | PyObject * _obj3 = 0; | |
9a74fcaf | 6843 | PyObject * _obj5 = 0; |
efc5f224 | 6844 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6845 | char _ptemp[128]; |
6846 | ||
6847 | self = self; | |
faeb124b | 6848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6849 | return NULL; |
1d99702e RD |
6850 | if (_argo0) { |
6851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6854 | return NULL; | |
6855 | } | |
6856 | } | |
2f90df85 RD |
6857 | if (_obj2) |
6858 | { | |
6859 | _arg2 = &temp; | |
6860 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6861 | return NULL; |
2f90df85 RD |
6862 | } |
6863 | if (_obj3) | |
6864 | { | |
6865 | _arg3 = &temp0; | |
6866 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6867 | return NULL; |
9a74fcaf RD |
6868 | } |
6869 | if (_obj5) | |
6870 | { | |
6871 | _arg5 = wxString_in_helper(_obj5); | |
6872 | if (_arg5 == NULL) | |
6873 | return NULL; | |
2f90df85 | 6874 | } |
cf694132 | 6875 | { |
474c48f9 | 6876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6877 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6878 | |
474c48f9 | 6879 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6880 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6881 | } if (_result) { |
6882 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6883 | _resultobj = Py_BuildValue("s",_ptemp); | |
6884 | } else { | |
6885 | Py_INCREF(Py_None); | |
6886 | _resultobj = Py_None; | |
6887 | } | |
9a74fcaf RD |
6888 | { |
6889 | if (_obj5) | |
6890 | delete _arg5; | |
6891 | } | |
8ab979d7 RD |
6892 | return _resultobj; |
6893 | } | |
6894 | ||
aa2a5b86 RD |
6895 | #define new_wxPrePanel() (new wxPanel()) |
6896 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6897 | PyObject * _resultobj; | |
6898 | wxPanel * _result; | |
6899 | char *_kwnames[] = { NULL }; | |
6900 | char _ptemp[128]; | |
6901 | ||
6902 | self = self; | |
faeb124b | 6903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) |
aa2a5b86 RD |
6904 | return NULL; |
6905 | { | |
474c48f9 | 6906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6907 | _result = (wxPanel *)new_wxPrePanel(); |
aa2a5b86 | 6908 | |
474c48f9 | 6909 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6910 | if (PyErr_Occurred()) return NULL; |
6911 | } if (_result) { | |
6912 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6913 | _resultobj = Py_BuildValue("s",_ptemp); | |
6914 | } else { | |
6915 | Py_INCREF(Py_None); | |
6916 | _resultobj = Py_None; | |
6917 | } | |
6918 | return _resultobj; | |
6919 | } | |
6920 | ||
6921 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6922 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6923 | PyObject * _resultobj; | |
6924 | bool _result; | |
6925 | wxPanel * _arg0; | |
6926 | wxWindow * _arg1; | |
6927 | wxWindowID _arg2; | |
6928 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6929 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6930 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
9a74fcaf | 6931 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
6932 | PyObject * _argo0 = 0; |
6933 | PyObject * _argo1 = 0; | |
6934 | wxPoint temp; | |
6935 | PyObject * _obj3 = 0; | |
6936 | wxSize temp0; | |
6937 | PyObject * _obj4 = 0; | |
9a74fcaf | 6938 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
6939 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6940 | ||
6941 | self = self; | |
faeb124b | 6942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
6943 | return NULL; |
6944 | if (_argo0) { | |
6945 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6946 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6947 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6948 | return NULL; | |
6949 | } | |
6950 | } | |
6951 | if (_argo1) { | |
6952 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6953 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6955 | return NULL; | |
6956 | } | |
6957 | } | |
6958 | if (_obj3) | |
6959 | { | |
6960 | _arg3 = &temp; | |
6961 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6962 | return NULL; | |
6963 | } | |
6964 | if (_obj4) | |
6965 | { | |
6966 | _arg4 = &temp0; | |
6967 | if (! wxSize_helper(_obj4, &_arg4)) | |
6968 | return NULL; | |
9a74fcaf RD |
6969 | } |
6970 | if (_obj6) | |
6971 | { | |
6972 | _arg6 = wxString_in_helper(_obj6); | |
6973 | if (_arg6 == NULL) | |
6974 | return NULL; | |
aa2a5b86 RD |
6975 | } |
6976 | { | |
474c48f9 | 6977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6978 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 6979 | |
474c48f9 | 6980 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6981 | if (PyErr_Occurred()) return NULL; |
6982 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
6983 | { |
6984 | if (_obj6) | |
6985 | delete _arg6; | |
6986 | } | |
aa2a5b86 RD |
6987 | return _resultobj; |
6988 | } | |
6989 | ||
8ab979d7 | 6990 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6991 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6992 | PyObject * _resultobj; |
6993 | wxPanel * _arg0; | |
1d99702e | 6994 | PyObject * _argo0 = 0; |
efc5f224 | 6995 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6996 | |
6997 | self = self; | |
faeb124b | 6998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6999 | return NULL; |
1d99702e RD |
7000 | if (_argo0) { |
7001 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7002 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
7003 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
7004 | return NULL; | |
7005 | } | |
7006 | } | |
cf694132 | 7007 | { |
474c48f9 | 7008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7009 | wxPanel_InitDialog(_arg0); |
cf694132 | 7010 | |
474c48f9 | 7011 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7012 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7013 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7014 | _resultobj = Py_None; |
7015 | return _resultobj; | |
7016 | } | |
7017 | ||
bb0054cd RD |
7018 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
7019 | wxScrolledWindow *src; | |
7020 | wxPanel *dest; | |
7021 | src = (wxScrolledWindow *) ptr; | |
7022 | dest = (wxPanel *) src; | |
7023 | return (void *) dest; | |
7024 | } | |
7025 | ||
8ab979d7 RD |
7026 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
7027 | wxScrolledWindow *src; | |
7028 | wxWindow *dest; | |
7029 | src = (wxScrolledWindow *) ptr; | |
7030 | dest = (wxWindow *) src; | |
7031 | return (void *) dest; | |
7032 | } | |
7033 | ||
7034 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
7035 | wxScrolledWindow *src; | |
7036 | wxEvtHandler *dest; | |
7037 | src = (wxScrolledWindow *) ptr; | |
7038 | dest = (wxEvtHandler *) src; | |
7039 | return (void *) dest; | |
7040 | } | |
7041 | ||
9df61a29 RD |
7042 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
7043 | wxScrolledWindow *src; | |
7044 | wxObject *dest; | |
7045 | src = (wxScrolledWindow *) ptr; | |
7046 | dest = (wxObject *) src; | |
7047 | return (void *) dest; | |
7048 | } | |
7049 | ||
8ab979d7 | 7050 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 7051 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7052 | PyObject * _resultobj; |
7053 | wxScrolledWindow * _result; | |
7054 | wxWindow * _arg0; | |
1d99702e | 7055 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
7056 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
7057 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 7058 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
9a74fcaf | 7059 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 7060 | PyObject * _argo0 = 0; |
2f90df85 RD |
7061 | wxPoint temp; |
7062 | PyObject * _obj2 = 0; | |
7063 | wxSize temp0; | |
7064 | PyObject * _obj3 = 0; | |
9a74fcaf | 7065 | PyObject * _obj5 = 0; |
efc5f224 | 7066 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
7067 | char _ptemp[128]; |
7068 | ||
7069 | self = self; | |
faeb124b | 7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 7071 | return NULL; |
1d99702e RD |
7072 | if (_argo0) { |
7073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
7075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
7076 | return NULL; | |
7077 | } | |
7078 | } | |
2f90df85 RD |
7079 | if (_obj2) |
7080 | { | |
7081 | _arg2 = &temp; | |
7082 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 7083 | return NULL; |
2f90df85 RD |
7084 | } |
7085 | if (_obj3) | |
7086 | { | |
7087 | _arg3 = &temp0; | |
7088 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 7089 | return NULL; |
9a74fcaf RD |
7090 | } |
7091 | if (_obj5) | |
7092 | { | |
7093 | _arg5 = wxString_in_helper(_obj5); | |
7094 | if (_arg5 == NULL) | |
7095 | return NULL; | |
2f90df85 | 7096 | } |
cf694132 | 7097 | { |
474c48f9 | 7098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 7099 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 7100 | |
474c48f9 | 7101 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7102 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
7103 | } if (_result) { |
7104 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
7105 | _resultobj = Py_BuildValue("s",_ptemp); | |
7106 | } else { | |
7107 | Py_INCREF(Py_None); | |
7108 | _resultobj = Py_None; | |
7109 | } | |
9a74fcaf RD |
7110 | { |
7111 | if (_obj5) | |
7112 | delete _arg5; | |
7113 | } | |
8ab979d7 RD |
7114 | return _resultobj; |
7115 | } | |
7116 | ||
aa2a5b86 RD |
7117 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
7118 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7119 | PyObject * _resultobj; | |
7120 | wxScrolledWindow * _result; | |
7121 | char *_kwnames[] = { NULL }; | |
7122 | char _ptemp[128]; | |
7123 | ||
7124 | self = self; | |
faeb124b | 7125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) |
aa2a5b86 RD |
7126 | return NULL; |
7127 | { | |
474c48f9 | 7128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7129 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
aa2a5b86 | 7130 | |
474c48f9 | 7131 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7132 | if (PyErr_Occurred()) return NULL; |
7133 | } if (_result) { | |
7134 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
7135 | _resultobj = Py_BuildValue("s",_ptemp); | |
7136 | } else { | |
7137 | Py_INCREF(Py_None); | |
7138 | _resultobj = Py_None; | |
7139 | } | |
7140 | return _resultobj; | |
7141 | } | |
7142 | ||
7143 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
7144 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7145 | PyObject * _resultobj; | |
7146 | bool _result; | |
7147 | wxScrolledWindow * _arg0; | |
7148 | wxWindow * _arg1; | |
7149 | wxWindowID _arg2 = (wxWindowID ) -1; | |
7150 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
7151 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
7152 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
9a74fcaf | 7153 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
7154 | PyObject * _argo0 = 0; |
7155 | PyObject * _argo1 = 0; | |
7156 | wxPoint temp; | |
7157 | PyObject * _obj3 = 0; | |
7158 | wxSize temp0; | |
7159 | PyObject * _obj4 = 0; | |
9a74fcaf | 7160 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
7161 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
7162 | ||
7163 | self = self; | |
faeb124b | 7164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
7165 | return NULL; |
7166 | if (_argo0) { | |
7167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
7170 | return NULL; | |
7171 | } | |
7172 | } | |
7173 | if (_argo1) { | |
7174 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7175 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
7177 | return NULL; | |
7178 | } | |
7179 | } | |
7180 | if (_obj3) | |
7181 | { | |
7182 | _arg3 = &temp; | |
7183 | if (! wxPoint_helper(_obj3, &_arg3)) | |
7184 | return NULL; | |
7185 | } | |
7186 | if (_obj4) | |
7187 | { | |
7188 | _arg4 = &temp0; | |
7189 | if (! wxSize_helper(_obj4, &_arg4)) | |
7190 | return NULL; | |
9a74fcaf RD |
7191 | } |
7192 | if (_obj6) | |
7193 | { | |
7194 | _arg6 = wxString_in_helper(_obj6); | |
7195 | if (_arg6 == NULL) | |
7196 | return NULL; | |
aa2a5b86 RD |
7197 | } |
7198 | { | |
474c48f9 | 7199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 7200 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 7201 | |
474c48f9 | 7202 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
7203 | if (PyErr_Occurred()) return NULL; |
7204 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
7205 | { |
7206 | if (_obj6) | |
7207 | delete _arg6; | |
7208 | } | |
aa2a5b86 RD |
7209 | return _resultobj; |
7210 | } | |
7211 | ||
8ab979d7 | 7212 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 7213 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7214 | PyObject * _resultobj; |
7215 | wxScrolledWindow * _arg0; | |
7216 | bool _arg1; | |
7217 | bool _arg2; | |
1d99702e | 7218 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7219 | int tempbool1; |
7220 | int tempbool2; | |
efc5f224 | 7221 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
7222 | |
7223 | self = self; | |
faeb124b | 7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 7225 | return NULL; |
1d99702e RD |
7226 | if (_argo0) { |
7227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
7230 | return NULL; | |
7231 | } | |
7232 | } | |
7233 | _arg1 = (bool ) tempbool1; | |
7234 | _arg2 = (bool ) tempbool2; | |
cf694132 | 7235 | { |
474c48f9 | 7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7237 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 7238 | |
474c48f9 | 7239 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7240 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7241 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7242 | _resultobj = Py_None; |
7243 | return _resultobj; | |
7244 | } | |
7245 | ||
b7e72427 RD |
7246 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
7247 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7248 | PyObject * _resultobj; | |
7249 | int _result; | |
7250 | wxScrolledWindow * _arg0; | |
7251 | int _arg1; | |
7252 | PyObject * _argo0 = 0; | |
7253 | char *_kwnames[] = { "self","orient", NULL }; | |
7254 | ||
7255 | self = self; | |
faeb124b | 7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) |
b7e72427 RD |
7257 | return NULL; |
7258 | if (_argo0) { | |
7259 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7260 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7261 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7262 | return NULL; | |
7263 | } | |
7264 | } | |
7265 | { | |
474c48f9 | 7266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7267 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 7268 | |
474c48f9 | 7269 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7270 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7271 | } _resultobj = Py_BuildValue("i",_result); |
7272 | return _resultobj; | |
7273 | } | |
7274 | ||
8ab979d7 | 7275 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 7276 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7277 | PyObject * _resultobj; |
7278 | wxScrolledWindow * _arg0; | |
7279 | int * _arg1; | |
7280 | int temp; | |
7281 | int * _arg2; | |
7282 | int temp0; | |
1d99702e | 7283 | PyObject * _argo0 = 0; |
efc5f224 | 7284 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7285 | |
7286 | self = self; | |
7287 | { | |
7288 | _arg1 = &temp; | |
7289 | } | |
7290 | { | |
7291 | _arg2 = &temp0; | |
7292 | } | |
faeb124b | 7293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 7294 | return NULL; |
1d99702e RD |
7295 | if (_argo0) { |
7296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
7299 | return NULL; | |
7300 | } | |
7301 | } | |
cf694132 | 7302 | { |
474c48f9 | 7303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7304 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 7305 | |
474c48f9 | 7306 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7307 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7308 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7309 | _resultobj = Py_None; |
7310 | { | |
7311 | PyObject *o; | |
7312 | o = PyInt_FromLong((long) (*_arg1)); | |
7313 | _resultobj = t_output_helper(_resultobj, o); | |
7314 | } | |
7315 | { | |
7316 | PyObject *o; | |
7317 | o = PyInt_FromLong((long) (*_arg2)); | |
7318 | _resultobj = t_output_helper(_resultobj, o); | |
7319 | } | |
7320 | return _resultobj; | |
7321 | } | |
7322 | ||
b7e72427 RD |
7323 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
7324 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7325 | PyObject * _resultobj; | |
7326 | wxWindow * _result; | |
7327 | wxScrolledWindow * _arg0; | |
7328 | PyObject * _argo0 = 0; | |
7329 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
7330 | |
7331 | self = self; | |
faeb124b | 7332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) |
b7e72427 RD |
7333 | return NULL; |
7334 | if (_argo0) { | |
7335 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7336 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
7338 | return NULL; | |
7339 | } | |
7340 | } | |
7341 | { | |
474c48f9 | 7342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7343 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 7344 | |
474c48f9 | 7345 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7346 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 7347 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
7348 | return _resultobj; |
7349 | } | |
7350 | ||
8ab979d7 | 7351 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 7352 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7353 | PyObject * _resultobj; |
7354 | bool _result; | |
7355 | wxScrolledWindow * _arg0; | |
1d99702e | 7356 | PyObject * _argo0 = 0; |
efc5f224 | 7357 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
7358 | |
7359 | self = self; | |
faeb124b | 7360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 7361 | return NULL; |
1d99702e RD |
7362 | if (_argo0) { |
7363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
7366 | return NULL; | |
7367 | } | |
7368 | } | |
cf694132 | 7369 | { |
474c48f9 | 7370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7371 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 7372 | |
474c48f9 | 7373 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7374 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7375 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
7376 | return _resultobj; |
7377 | } | |
7378 | ||
7379 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 7380 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7381 | PyObject * _resultobj; |
7382 | wxScrolledWindow * _arg0; | |
7383 | wxDC * _arg1; | |
1d99702e RD |
7384 | PyObject * _argo0 = 0; |
7385 | PyObject * _argo1 = 0; | |
efc5f224 | 7386 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
7387 | |
7388 | self = self; | |
faeb124b | 7389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 7390 | return NULL; |
1d99702e RD |
7391 | if (_argo0) { |
7392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
7395 | return NULL; | |
7396 | } | |
7397 | } | |
1d99702e | 7398 | if (_argo1) { |
b67a9327 | 7399 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { |
8ab979d7 RD |
7400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
7401 | return NULL; | |
7402 | } | |
7403 | } | |
cf694132 | 7404 | { |
474c48f9 | 7405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7406 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 7407 | |
474c48f9 | 7408 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7409 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7410 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7411 | _resultobj = Py_None; |
7412 | return _resultobj; | |
7413 | } | |
7414 | ||
7415 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 7416 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7417 | PyObject * _resultobj; |
7418 | wxScrolledWindow * _arg0; | |
7419 | int _arg1; | |
7420 | int _arg2; | |
1d99702e | 7421 | PyObject * _argo0 = 0; |
efc5f224 | 7422 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
7423 | |
7424 | self = self; | |
faeb124b | 7425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 7426 | return NULL; |
1d99702e RD |
7427 | if (_argo0) { |
7428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
7431 | return NULL; | |
7432 | } | |
7433 | } | |
cf694132 | 7434 | { |
474c48f9 | 7435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7436 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 7437 | |
474c48f9 | 7438 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7439 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7440 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7441 | _resultobj = Py_None; |
7442 | return _resultobj; | |
7443 | } | |
7444 | ||
f6bcfd97 | 7445 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 7446 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
7447 | PyObject * _resultobj; |
7448 | wxScrolledWindow * _arg0; | |
7449 | int _arg1; | |
7450 | int _arg2; | |
7451 | int _arg3; | |
7452 | int _arg4; | |
1d99702e RD |
7453 | int _arg5 = (int ) 0; |
7454 | int _arg6 = (int ) 0; | |
f6bcfd97 | 7455 | int _arg7 = (int ) FALSE; |
1d99702e | 7456 | PyObject * _argo0 = 0; |
f6bcfd97 | 7457 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
7458 | |
7459 | self = self; | |
faeb124b | 7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 7461 | return NULL; |
1d99702e RD |
7462 | if (_argo0) { |
7463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
7465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
7466 | return NULL; | |
7467 | } | |
7468 | } | |
cf694132 | 7469 | { |
474c48f9 | 7470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7471 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 7472 | |
474c48f9 | 7473 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7474 | if (PyErr_Occurred()) return NULL; |
cf694132 | 7475 | } Py_INCREF(Py_None); |
8ab979d7 RD |
7476 | _resultobj = Py_None; |
7477 | return _resultobj; | |
7478 | } | |
7479 | ||
b7e72427 RD |
7480 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
7481 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7482 | PyObject * _resultobj; | |
7483 | wxScrolledWindow * _arg0; | |
7484 | int _arg1; | |
7485 | int _arg2; | |
7486 | PyObject * _argo0 = 0; | |
7487 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
7488 | ||
7489 | self = self; | |
faeb124b | 7490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) |
b7e72427 RD |
7491 | return NULL; |
7492 | if (_argo0) { | |
7493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
7496 | return NULL; | |
7497 | } | |
7498 | } | |
7499 | { | |
474c48f9 | 7500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7501 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 7502 | |
474c48f9 | 7503 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7504 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
7505 | } Py_INCREF(Py_None); |
7506 | _resultobj = Py_None; | |
7507 | return _resultobj; | |
7508 | } | |
7509 | ||
eb715945 RD |
7510 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
7511 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7512 | PyObject * _resultobj; | |
7513 | wxScrolledWindow * _arg0; | |
7514 | wxWindow * _arg1; | |
7515 | PyObject * _argo0 = 0; | |
7516 | PyObject * _argo1 = 0; | |
7517 | char *_kwnames[] = { "self","window", NULL }; | |
7518 | ||
7519 | self = self; | |
faeb124b | 7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) |
eb715945 RD |
7521 | return NULL; |
7522 | if (_argo0) { | |
7523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
7526 | return NULL; | |
7527 | } | |
7528 | } | |
7529 | if (_argo1) { | |
7530 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7531 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
7533 | return NULL; | |
7534 | } | |
7535 | } | |
7536 | { | |
474c48f9 | 7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7538 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 7539 | |
474c48f9 | 7540 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7541 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
7542 | } Py_INCREF(Py_None); |
7543 | _resultobj = Py_None; | |
7544 | return _resultobj; | |
7545 | } | |
7546 | ||
4c9993c3 RD |
7547 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
7548 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7549 | PyObject * _resultobj; | |
7550 | wxScrolledWindow * _arg0; | |
7551 | int * _arg1; | |
7552 | int temp; | |
7553 | int * _arg2; | |
7554 | int temp0; | |
7555 | PyObject * _argo0 = 0; | |
7556 | char *_kwnames[] = { "self", NULL }; | |
7557 | ||
7558 | self = self; | |
7559 | { | |
7560 | _arg1 = &temp; | |
7561 | } | |
7562 | { | |
7563 | _arg2 = &temp0; | |
7564 | } | |
faeb124b | 7565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) |
4c9993c3 RD |
7566 | return NULL; |
7567 | if (_argo0) { | |
7568 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7569 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7570 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
7571 | return NULL; | |
7572 | } | |
7573 | } | |
7574 | { | |
474c48f9 | 7575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7576 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 7577 | |
474c48f9 | 7578 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7579 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
7580 | } Py_INCREF(Py_None); |
7581 | _resultobj = Py_None; | |
7582 | { | |
7583 | PyObject *o; | |
7584 | o = PyInt_FromLong((long) (*_arg1)); | |
7585 | _resultobj = t_output_helper(_resultobj, o); | |
7586 | } | |
7587 | { | |
7588 | PyObject *o; | |
7589 | o = PyInt_FromLong((long) (*_arg2)); | |
7590 | _resultobj = t_output_helper(_resultobj, o); | |
7591 | } | |
7592 | return _resultobj; | |
7593 | } | |
7594 | ||
a884bee5 RD |
7595 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
7596 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7597 | PyObject * _resultobj; | |
7598 | wxPoint * _result; | |
7599 | wxScrolledWindow * _arg0; | |
7600 | wxPoint * _arg1; | |
7601 | PyObject * _argo0 = 0; | |
7602 | wxPoint temp; | |
7603 | PyObject * _obj1 = 0; | |
7604 | char *_kwnames[] = { "self","pt", NULL }; | |
7605 | char _ptemp[128]; | |
7606 | ||
7607 | self = self; | |
faeb124b | 7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) |
a884bee5 RD |
7609 | return NULL; |
7610 | if (_argo0) { | |
7611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
7614 | return NULL; | |
7615 | } | |
7616 | } | |
7617 | { | |
7618 | _arg1 = &temp; | |
7619 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7620 | return NULL; | |
7621 | } | |
7622 | { | |
7623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7624 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
7625 | ||
7626 | wxPyEndAllowThreads(__tstate); | |
7627 | if (PyErr_Occurred()) return NULL; | |
7628 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7629 | _resultobj = Py_BuildValue("s",_ptemp); | |
7630 | return _resultobj; | |
7631 | } | |
7632 | ||
7633 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7634 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7635 | PyObject * _resultobj; |
7636 | wxScrolledWindow * _arg0; | |
7637 | int _arg1; | |
7638 | int _arg2; | |
7639 | int * _arg3; | |
7640 | int temp; | |
7641 | int * _arg4; | |
7642 | int temp0; | |
7643 | PyObject * _argo0 = 0; | |
7644 | char *_kwnames[] = { "self","x","y", NULL }; | |
7645 | ||
7646 | self = self; | |
7647 | { | |
7648 | _arg3 = &temp; | |
7649 | } | |
7650 | { | |
7651 | _arg4 = &temp0; | |
7652 | } | |
faeb124b | 7653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7654 | return NULL; |
7655 | if (_argo0) { | |
7656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 7658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7659 | return NULL; |
7660 | } | |
7661 | } | |
7662 | { | |
474c48f9 | 7663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7664 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7665 | |
474c48f9 | 7666 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7667 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7668 | } Py_INCREF(Py_None); |
7669 | _resultobj = Py_None; | |
7670 | { | |
7671 | PyObject *o; | |
7672 | o = PyInt_FromLong((long) (*_arg3)); | |
7673 | _resultobj = t_output_helper(_resultobj, o); | |
7674 | } | |
7675 | { | |
7676 | PyObject *o; | |
7677 | o = PyInt_FromLong((long) (*_arg4)); | |
7678 | _resultobj = t_output_helper(_resultobj, o); | |
7679 | } | |
7680 | return _resultobj; | |
7681 | } | |
7682 | ||
a884bee5 RD |
7683 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7684 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7685 | PyObject * _resultobj; | |
7686 | wxPoint * _result; | |
7687 | wxScrolledWindow * _arg0; | |
7688 | wxPoint * _arg1; | |
7689 | PyObject * _argo0 = 0; | |
7690 | wxPoint temp; | |
7691 | PyObject * _obj1 = 0; | |
7692 | char *_kwnames[] = { "self","pt", NULL }; | |
7693 | char _ptemp[128]; | |
7694 | ||
7695 | self = self; | |
faeb124b | 7696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) |
a884bee5 RD |
7697 | return NULL; |
7698 | if (_argo0) { | |
7699 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7700 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7702 | return NULL; | |
7703 | } | |
7704 | } | |
7705 | { | |
7706 | _arg1 = &temp; | |
7707 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7708 | return NULL; | |
7709 | } | |
7710 | { | |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) return NULL; | |
7716 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7717 | _resultobj = Py_BuildValue("s",_ptemp); | |
7718 | return _resultobj; | |
7719 | } | |
7720 | ||
7721 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7722 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7723 | PyObject * _resultobj; |
7724 | wxScrolledWindow * _arg0; | |
7725 | int _arg1; | |
7726 | int _arg2; | |
7727 | int * _arg3; | |
7728 | int temp; | |
7729 | int * _arg4; | |
7730 | int temp0; | |
7731 | PyObject * _argo0 = 0; | |
7732 | char *_kwnames[] = { "self","x","y", NULL }; | |
7733 | ||
7734 | self = self; | |
7735 | { | |
7736 | _arg3 = &temp; | |
7737 | } | |
7738 | { | |
7739 | _arg4 = &temp0; | |
7740 | } | |
faeb124b | 7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7742 | return NULL; |
7743 | if (_argo0) { | |
7744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 7746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7747 | return NULL; |
7748 | } | |
7749 | } | |
7750 | { | |
474c48f9 | 7751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7752 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7753 | |
474c48f9 | 7754 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7755 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7756 | } Py_INCREF(Py_None); |
7757 | _resultobj = Py_None; | |
7758 | { | |
7759 | PyObject *o; | |
7760 | o = PyInt_FromLong((long) (*_arg3)); | |
7761 | _resultobj = t_output_helper(_resultobj, o); | |
7762 | } | |
7763 | { | |
7764 | PyObject *o; | |
7765 | o = PyInt_FromLong((long) (*_arg4)); | |
7766 | _resultobj = t_output_helper(_resultobj, o); | |
7767 | } | |
7768 | return _resultobj; | |
7769 | } | |
7770 | ||
7a446686 RD |
7771 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7772 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7773 | PyObject * _resultobj; | |
7774 | wxScrolledWindow * _arg0; | |
7775 | double _arg1; | |
7776 | double _arg2; | |
7777 | PyObject * _argo0 = 0; | |
7778 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7779 | ||
7780 | self = self; | |
faeb124b | 7781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) |
7a446686 RD |
7782 | return NULL; |
7783 | if (_argo0) { | |
7784 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7785 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7786 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7787 | return NULL; | |
7788 | } | |
7789 | } | |
7790 | { | |
474c48f9 | 7791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7792 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
7a446686 | 7793 | |
474c48f9 | 7794 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7795 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7796 | } Py_INCREF(Py_None); |
7797 | _resultobj = Py_None; | |
7798 | return _resultobj; | |
7799 | } | |
7800 | ||
7801 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7802 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7803 | PyObject * _resultobj; | |
7804 | double _result; | |
7805 | wxScrolledWindow * _arg0; | |
7806 | PyObject * _argo0 = 0; | |
7807 | char *_kwnames[] = { "self", NULL }; | |
7808 | ||
7809 | self = self; | |
faeb124b | 7810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) |
7a446686 RD |
7811 | return NULL; |
7812 | if (_argo0) { | |
7813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7816 | return NULL; | |
7817 | } | |
7818 | } | |
7819 | { | |
474c48f9 | 7820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 RD |
7821 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7822 | ||
7823 | wxPyEndAllowThreads(__tstate); | |
7824 | if (PyErr_Occurred()) return NULL; | |
7825 | } _resultobj = Py_BuildValue("d",_result); | |
7826 | return _resultobj; | |
7827 | } | |
7828 | ||
7829 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7830 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7831 | PyObject * _resultobj; | |
7832 | double _result; | |
7833 | wxScrolledWindow * _arg0; | |
7834 | PyObject * _argo0 = 0; | |
7835 | char *_kwnames[] = { "self", NULL }; | |
7836 | ||
7837 | self = self; | |
faeb124b | 7838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) |
a884bee5 RD |
7839 | return NULL; |
7840 | if (_argo0) { | |
7841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7844 | return NULL; | |
7845 | } | |
7846 | } | |
7847 | { | |
7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7849 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7850 | ||
7851 | wxPyEndAllowThreads(__tstate); | |
7852 | if (PyErr_Occurred()) return NULL; | |
7853 | } _resultobj = Py_BuildValue("d",_result); | |
7854 | return _resultobj; | |
7855 | } | |
7856 | ||
7857 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7858 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7859 | PyObject * _resultobj; | |
7860 | wxScrolledWindow * _arg0; | |
7861 | PyObject * _argo0 = 0; | |
7862 | char *_kwnames[] = { "self", NULL }; | |
7863 | ||
7864 | self = self; | |
faeb124b | 7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) |
a884bee5 RD |
7866 | return NULL; |
7867 | if (_argo0) { | |
7868 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7869 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7870 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7871 | return NULL; | |
7872 | } | |
7873 | } | |
7874 | { | |
7875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7876 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7877 | ||
7878 | wxPyEndAllowThreads(__tstate); | |
7879 | if (PyErr_Occurred()) return NULL; | |
7880 | } Py_INCREF(Py_None); | |
7881 | _resultobj = Py_None; | |
7882 | return _resultobj; | |
7883 | } | |
7884 | ||
7885 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7886 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7887 | PyObject * _resultobj; | |
7888 | bool _result; | |
7889 | wxScrolledWindow * _arg0; | |
7890 | PyObject * _argo0 = 0; | |
7891 | char *_kwnames[] = { "self", NULL }; | |
7892 | ||
7893 | self = self; | |
faeb124b | 7894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) |
a884bee5 RD |
7895 | return NULL; |
7896 | if (_argo0) { | |
7897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7900 | return NULL; | |
7901 | } | |
7902 | } | |
7903 | { | |
7904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7905 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7906 | ||
7907 | wxPyEndAllowThreads(__tstate); | |
7908 | if (PyErr_Occurred()) return NULL; | |
7909 | } _resultobj = Py_BuildValue("i",_result); | |
7910 | return _resultobj; | |
7911 | } | |
7912 | ||
8381e4cd RD |
7913 | #define wxScrolledWindow_SetScrollRate(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollRate(_swigarg0,_swigarg1)) |
7914 | static PyObject *_wrap_wxScrolledWindow_SetScrollRate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7915 | PyObject * _resultobj; | |
7916 | wxScrolledWindow * _arg0; | |
7917 | int _arg1; | |
7918 | int _arg2; | |
7919 | PyObject * _argo0 = 0; | |
7920 | char *_kwnames[] = { "self","xstep","ystep", NULL }; | |
7921 | ||
7922 | self = self; | |
faeb124b | 7923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollRate",_kwnames,&_argo0,&_arg1,&_arg2)) |
8381e4cd RD |
7924 | return NULL; |
7925 | if (_argo0) { | |
7926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollRate. Expected _wxScrolledWindow_p."); | |
7929 | return NULL; | |
7930 | } | |
7931 | } | |
7932 | { | |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | wxScrolledWindow_SetScrollRate(_arg0,_arg1,_arg2); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) return NULL; | |
7938 | } Py_INCREF(Py_None); | |
7939 | _resultobj = Py_None; | |
7940 | return _resultobj; | |
7941 | } | |
7942 | ||
a884bee5 RD |
7943 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
7944 | wxMenu *src; | |
7945 | wxEvtHandler *dest; | |
7946 | src = (wxMenu *) ptr; | |
7947 | dest = (wxEvtHandler *) src; | |
7948 | return (void *) dest; | |
7949 | } | |
7950 | ||
7951 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7952 | wxMenu *src; | |
7953 | wxObject *dest; | |
7954 | src = (wxMenu *) ptr; | |
7955 | dest = (wxObject *) src; | |
7956 | return (void *) dest; | |
7957 | } | |
7958 | ||
7959 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7960 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7961 | PyObject * _resultobj; | |
7962 | wxMenu * _result; | |
9a74fcaf | 7963 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7964 | long _arg1 = (long ) 0; |
7965 | PyObject * _obj0 = 0; | |
7966 | char *_kwnames[] = { "title","style", NULL }; | |
7967 | char _ptemp[128]; | |
7968 | ||
7969 | self = self; | |
faeb124b | 7970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
a884bee5 RD |
7971 | return NULL; |
7972 | if (_obj0) | |
7973 | { | |
7974 | _arg0 = wxString_in_helper(_obj0); | |
7975 | if (_arg0 == NULL) | |
7976 | return NULL; | |
7977 | } | |
7978 | { | |
7979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7980 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7981 | ||
7982 | wxPyEndAllowThreads(__tstate); | |
7983 | if (PyErr_Occurred()) return NULL; | |
7984 | } if (_result) { | |
7985 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7986 | _resultobj = Py_BuildValue("s",_ptemp); | |
7987 | } else { | |
7988 | Py_INCREF(Py_None); | |
7989 | _resultobj = Py_None; | |
7990 | } | |
7991 | { | |
7992 | if (_obj0) | |
7993 | delete _arg0; | |
7994 | } | |
7995 | return _resultobj; | |
7996 | } | |
7997 | ||
7998 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7999 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8000 | PyObject * _resultobj; | |
8001 | wxMenu * _arg0; | |
8002 | int _arg1; | |
8003 | wxString * _arg2; | |
9a74fcaf | 8004 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 8005 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
8006 | PyObject * _argo0 = 0; |
8007 | PyObject * _obj2 = 0; | |
8008 | PyObject * _obj3 = 0; | |
8009 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
8010 | ||
8011 | self = self; | |
faeb124b | 8012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
a884bee5 RD |
8013 | return NULL; |
8014 | if (_argo0) { | |
8015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
8018 | return NULL; | |
8019 | } | |
8020 | } | |
8021 | { | |
8022 | _arg2 = wxString_in_helper(_obj2); | |
8023 | if (_arg2 == NULL) | |
8024 | return NULL; | |
8025 | } | |
8026 | if (_obj3) | |
8027 | { | |
8028 | _arg3 = wxString_in_helper(_obj3); | |
8029 | if (_arg3 == NULL) | |
8030 | return NULL; | |
8031 | } | |
8032 | { | |
8033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8034 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
8035 | ||
8036 | wxPyEndAllowThreads(__tstate); | |
8037 | if (PyErr_Occurred()) return NULL; | |
8038 | } Py_INCREF(Py_None); | |
8039 | _resultobj = Py_None; | |
8040 | { | |
8041 | if (_obj2) | |
8042 | delete _arg2; | |
8043 | } | |
8044 | { | |
8045 | if (_obj3) | |
8046 | delete _arg3; | |
8047 | } | |
8048 | return _resultobj; | |
8049 | } | |
8050 | ||
8051 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8052 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8053 | PyObject * _resultobj; | |
8054 | wxMenu * _arg0; | |
8055 | int _arg1; | |
8056 | wxString * _arg2; | |
8057 | wxMenu * _arg3; | |
9a74fcaf | 8058 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8059 | PyObject * _argo0 = 0; |
8060 | PyObject * _obj2 = 0; | |
8061 | PyObject * _argo3 = 0; | |
8062 | PyObject * _obj4 = 0; | |
8063 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
8064 | ||
8065 | self = self; | |
faeb124b | 8066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
a884bee5 RD |
8067 | return NULL; |
8068 | if (_argo0) { | |
8069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
8072 | return NULL; | |
8073 | } | |
8074 | } | |
8075 | { | |
8076 | _arg2 = wxString_in_helper(_obj2); | |
8077 | if (_arg2 == NULL) | |
8078 | return NULL; | |
8079 | } | |
8080 | if (_argo3) { | |
8081 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8082 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
8083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
8084 | return NULL; | |
8085 | } | |
8086 | } | |
8087 | if (_obj4) | |
8088 | { | |
8089 | _arg4 = wxString_in_helper(_obj4); | |
8090 | if (_arg4 == NULL) | |
8091 | return NULL; | |
8092 | } | |
8093 | { | |
8094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8095 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
8096 | ||
8097 | wxPyEndAllowThreads(__tstate); | |
8098 | if (PyErr_Occurred()) return NULL; | |
8099 | } Py_INCREF(Py_None); | |
8100 | _resultobj = Py_None; | |
8101 | { | |
8102 | if (_obj2) | |
8103 | delete _arg2; | |
8104 | } | |
8105 | { | |
8106 | if (_obj4) | |
8107 | delete _arg4; | |
8108 | } | |
8109 | return _resultobj; | |
8110 | } | |
8111 | ||
8112 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
8113 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8114 | PyObject * _resultobj; | |
8115 | wxMenu * _arg0; | |
8116 | wxMenuItem * _arg1; | |
8117 | PyObject * _argo0 = 0; | |
8118 | PyObject * _argo1 = 0; | |
8119 | char *_kwnames[] = { "self","item", NULL }; | |
8120 | ||
8121 | self = self; | |
faeb124b | 8122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) |
a884bee5 RD |
8123 | return NULL; |
8124 | if (_argo0) { | |
8125 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8126 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
8128 | return NULL; | |
8129 | } | |
8130 | } | |
8131 | if (_argo1) { | |
8132 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8133 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8134 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
8135 | return NULL; | |
8136 | } | |
8137 | } | |
8138 | { | |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | wxMenu_AppendItem(_arg0,_arg1); | |
8141 | ||
8142 | wxPyEndAllowThreads(__tstate); | |
8143 | if (PyErr_Occurred()) return NULL; | |
8144 | } Py_INCREF(Py_None); | |
8145 | _resultobj = Py_None; | |
8146 | return _resultobj; | |
8147 | } | |
8148 | ||
8149 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
8150 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8151 | PyObject * _resultobj; | |
8152 | wxMenu * _arg0; | |
8153 | int _arg1; | |
8154 | wxString * _arg2; | |
9a74fcaf | 8155 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8156 | PyObject * _argo0 = 0; |
8157 | PyObject * _obj2 = 0; | |
8158 | PyObject * _obj3 = 0; | |
8159 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8160 | ||
8161 | self = self; | |
faeb124b | 8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
a884bee5 RD |
8163 | return NULL; |
8164 | if (_argo0) { | |
8165 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8166 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8167 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
8168 | return NULL; | |
8169 | } | |
8170 | } | |
8171 | { | |
8172 | _arg2 = wxString_in_helper(_obj2); | |
8173 | if (_arg2 == NULL) | |
8174 | return NULL; | |
8175 | } | |
8176 | if (_obj3) | |
8177 | { | |
8178 | _arg3 = wxString_in_helper(_obj3); | |
8179 | if (_arg3 == NULL) | |
8180 | return NULL; | |
8181 | } | |
8182 | { | |
8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8184 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
8185 | ||
8186 | wxPyEndAllowThreads(__tstate); | |
8187 | if (PyErr_Occurred()) return NULL; | |
8188 | } Py_INCREF(Py_None); | |
8189 | _resultobj = Py_None; | |
8190 | { | |
8191 | if (_obj2) | |
8192 | delete _arg2; | |
8193 | } | |
8194 | { | |
8195 | if (_obj3) | |
8196 | delete _arg3; | |
8197 | } | |
8198 | return _resultobj; | |
8199 | } | |
8200 | ||
8201 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
8202 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8203 | PyObject * _resultobj; | |
8204 | wxMenu * _arg0; | |
8205 | int _arg1; | |
8206 | wxString * _arg2; | |
9a74fcaf | 8207 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8208 | PyObject * _argo0 = 0; |
8209 | PyObject * _obj2 = 0; | |
8210 | PyObject * _obj3 = 0; | |
8211 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8212 | ||
8213 | self = self; | |
faeb124b | 8214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
a884bee5 RD |
8215 | return NULL; |
8216 | if (_argo0) { | |
8217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
8220 | return NULL; | |
8221 | } | |
8222 | } | |
8223 | { | |
8224 | _arg2 = wxString_in_helper(_obj2); | |
8225 | if (_arg2 == NULL) | |
8226 | return NULL; | |
8227 | } | |
8228 | if (_obj3) | |
8229 | { | |
8230 | _arg3 = wxString_in_helper(_obj3); | |
8231 | if (_arg3 == NULL) | |
8232 | return NULL; | |
8233 | } | |
8234 | { | |
8235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8236 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
8237 | ||
8238 | wxPyEndAllowThreads(__tstate); | |
8239 | if (PyErr_Occurred()) return NULL; | |
8240 | } Py_INCREF(Py_None); | |
8241 | _resultobj = Py_None; | |
8242 | { | |
8243 | if (_obj2) | |
8244 | delete _arg2; | |
8245 | } | |
8246 | { | |
8247 | if (_obj3) | |
8248 | delete _arg3; | |
8249 | } | |
8250 | return _resultobj; | |
8251 | } | |
8252 | ||
8253 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
8254 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8255 | PyObject * _resultobj; | |
8256 | wxMenu * _arg0; | |
8257 | PyObject * _argo0 = 0; | |
8258 | char *_kwnames[] = { "self", NULL }; | |
8259 | ||
8260 | self = self; | |
faeb124b | 8261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
a884bee5 RD |
8262 | return NULL; |
8263 | if (_argo0) { | |
8264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
8267 | return NULL; | |
8268 | } | |
8269 | } | |
8270 | { | |
8271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8272 | wxMenu_AppendSeparator(_arg0); | |
8273 | ||
8274 | wxPyEndAllowThreads(__tstate); | |
8275 | if (PyErr_Occurred()) return NULL; | |
8276 | } Py_INCREF(Py_None); | |
8277 | _resultobj = Py_None; | |
8278 | return _resultobj; | |
8279 | } | |
8280 | ||
8281 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8282 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8283 | PyObject * _resultobj; | |
8284 | wxMenu * _arg0; | |
8285 | size_t _arg1; | |
8286 | int _arg2; | |
8287 | wxString * _arg3; | |
9a74fcaf | 8288 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
546bfbea | 8289 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
8290 | PyObject * _argo0 = 0; |
8291 | PyObject * _obj3 = 0; | |
8292 | PyObject * _obj4 = 0; | |
8293 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
8294 | ||
8295 | self = self; | |
faeb124b | 8296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) |
a884bee5 RD |
8297 | return NULL; |
8298 | if (_argo0) { | |
8299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
8302 | return NULL; | |
8303 | } | |
8304 | } | |
8305 | { | |
8306 | _arg3 = wxString_in_helper(_obj3); | |
8307 | if (_arg3 == NULL) | |
8308 | return NULL; | |
8309 | } | |
8310 | if (_obj4) | |
8311 | { | |
8312 | _arg4 = wxString_in_helper(_obj4); | |
8313 | if (_arg4 == NULL) | |
8314 | return NULL; | |
8315 | } | |
8316 | { | |
8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8318 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
8319 | ||
8320 | wxPyEndAllowThreads(__tstate); | |
8321 | if (PyErr_Occurred()) return NULL; | |
8322 | } Py_INCREF(Py_None); | |
8323 | _resultobj = Py_None; | |
8324 | { | |
8325 | if (_obj3) | |
8326 | delete _arg3; | |
8327 | } | |
8328 | { | |
8329 | if (_obj4) | |
8330 | delete _arg4; | |
8331 | } | |
8332 | return _resultobj; | |
8333 | } | |
8334 | ||
8335 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
8336 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8337 | PyObject * _resultobj; | |
8338 | wxMenu * _arg0; | |
8339 | size_t _arg1; | |
8340 | PyObject * _argo0 = 0; | |
8341 | char *_kwnames[] = { "self","pos", NULL }; | |
8342 | ||
8343 | self = self; | |
faeb124b | 8344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) |
a884bee5 RD |
8345 | return NULL; |
8346 | if (_argo0) { | |
8347 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8348 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
8350 | return NULL; | |
8351 | } | |
8352 | } | |
8353 | { | |
8354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8355 | wxMenu_InsertSeparator(_arg0,_arg1); | |
8356 | ||
8357 | wxPyEndAllowThreads(__tstate); | |
8358 | if (PyErr_Occurred()) return NULL; | |
8359 | } Py_INCREF(Py_None); | |
8360 | _resultobj = Py_None; | |
8361 | return _resultobj; | |
8362 | } | |
8363 | ||
8364 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8365 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8366 | PyObject * _resultobj; | |
8367 | wxMenu * _arg0; | |
8368 | size_t _arg1; | |
8369 | int _arg2; | |
8370 | wxString * _arg3; | |
9a74fcaf | 8371 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8372 | PyObject * _argo0 = 0; |
8373 | PyObject * _obj3 = 0; | |
8374 | PyObject * _obj4 = 0; | |
8375 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8376 | ||
8377 | self = self; | |
faeb124b | 8378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) |
a884bee5 RD |
8379 | return NULL; |
8380 | if (_argo0) { | |
8381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
8384 | return NULL; | |
8385 | } | |
8386 | } | |
8387 | { | |
8388 | _arg3 = wxString_in_helper(_obj3); | |
8389 | if (_arg3 == NULL) | |
8390 | return NULL; | |
8391 | } | |
8392 | if (_obj4) | |
8393 | { | |
8394 | _arg4 = wxString_in_helper(_obj4); | |
8395 | if (_arg4 == NULL) | |
8396 | return NULL; | |
8397 | } | |
8398 | { | |
8399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8400 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8401 | ||
8402 | wxPyEndAllowThreads(__tstate); | |
8403 | if (PyErr_Occurred()) return NULL; | |
8404 | } Py_INCREF(Py_None); | |
8405 | _resultobj = Py_None; | |
8406 | { | |
8407 | if (_obj3) | |
8408 | delete _arg3; | |
8409 | } | |
8410 | { | |
8411 | if (_obj4) | |
8412 | delete _arg4; | |
8413 | } | |
8414 | return _resultobj; | |
8415 | } | |
8416 | ||
8417 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
8418 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8419 | PyObject * _resultobj; | |
8420 | wxMenu * _arg0; | |
8421 | size_t _arg1; | |
8422 | int _arg2; | |
8423 | wxString * _arg3; | |
9a74fcaf | 8424 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8425 | PyObject * _argo0 = 0; |
8426 | PyObject * _obj3 = 0; | |
8427 | PyObject * _obj4 = 0; | |
8428 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
8429 | ||
8430 | self = self; | |
faeb124b | 8431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) |
a884bee5 RD |
8432 | return NULL; |
8433 | if (_argo0) { | |
8434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
8437 | return NULL; | |
8438 | } | |
8439 | } | |
8440 | { | |
8441 | _arg3 = wxString_in_helper(_obj3); | |
8442 | if (_arg3 == NULL) | |
8443 | return NULL; | |
8444 | } | |
8445 | if (_obj4) | |
8446 | { | |
8447 | _arg4 = wxString_in_helper(_obj4); | |
8448 | if (_arg4 == NULL) | |
8449 | return NULL; | |
8450 | } | |
8451 | { | |
8452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8453 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
8454 | ||
8455 | wxPyEndAllowThreads(__tstate); | |
8456 | if (PyErr_Occurred()) return NULL; | |
8457 | } Py_INCREF(Py_None); | |
8458 | _resultobj = Py_None; | |
8459 | { | |
8460 | if (_obj3) | |
8461 | delete _arg3; | |
8462 | } | |
8463 | { | |
8464 | if (_obj4) | |
8465 | delete _arg4; | |
8466 | } | |
8467 | return _resultobj; | |
8468 | } | |
8469 | ||
8470 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
8471 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8472 | PyObject * _resultobj; | |
8473 | wxMenu * _arg0; | |
8474 | size_t _arg1; | |
8475 | int _arg2; | |
8476 | wxString * _arg3; | |
8477 | wxMenu * _arg4; | |
9a74fcaf | 8478 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8479 | PyObject * _argo0 = 0; |
8480 | PyObject * _obj3 = 0; | |
8481 | PyObject * _argo4 = 0; | |
8482 | PyObject * _obj5 = 0; | |
8483 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
8484 | ||
8485 | self = self; | |
faeb124b | 8486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) |
a884bee5 RD |
8487 | return NULL; |
8488 | if (_argo0) { | |
8489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8492 | return NULL; | |
8493 | } | |
8494 | } | |
8495 | { | |
8496 | _arg3 = wxString_in_helper(_obj3); | |
8497 | if (_arg3 == NULL) | |
8498 | return NULL; | |
8499 | } | |
8500 | if (_argo4) { | |
8501 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
8502 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
8503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
8504 | return NULL; | |
8505 | } | |
8506 | } | |
8507 | if (_obj5) | |
8508 | { | |
8509 | _arg5 = wxString_in_helper(_obj5); | |
8510 | if (_arg5 == NULL) | |
8511 | return NULL; | |
8512 | } | |
8513 | { | |
8514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8515 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
7a446686 | 8516 | |
474c48f9 | 8517 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8518 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
8519 | } Py_INCREF(Py_None); |
8520 | _resultobj = Py_None; | |
8521 | { | |
8522 | if (_obj3) | |
8523 | delete _arg3; | |
8524 | } | |
8525 | { | |
8526 | if (_obj5) | |
8527 | delete _arg5; | |
8528 | } | |
7a446686 RD |
8529 | return _resultobj; |
8530 | } | |
8531 | ||
a884bee5 RD |
8532 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
8533 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 8534 | PyObject * _resultobj; |
a884bee5 RD |
8535 | bool _result; |
8536 | wxMenu * _arg0; | |
8537 | size_t _arg1; | |
8538 | wxMenuItem * _arg2; | |
7a446686 | 8539 | PyObject * _argo0 = 0; |
a884bee5 RD |
8540 | PyObject * _argo2 = 0; |
8541 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7a446686 RD |
8542 | |
8543 | self = self; | |
faeb124b | 8544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
7a446686 RD |
8545 | return NULL; |
8546 | if (_argo0) { | |
8547 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8548 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8549 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
8550 | return NULL; | |
8551 | } | |
8552 | } | |
8553 | if (_argo2) { | |
8554 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
8555 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
8556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
7a446686 RD |
8557 | return NULL; |
8558 | } | |
8559 | } | |
8560 | { | |
474c48f9 | 8561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8562 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
7a446686 | 8563 | |
474c48f9 | 8564 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8565 | if (PyErr_Occurred()) return NULL; |
a884bee5 | 8566 | } _resultobj = Py_BuildValue("i",_result); |
7a446686 RD |
8567 | return _resultobj; |
8568 | } | |
8569 | ||
a884bee5 RD |
8570 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8571 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 8572 | PyObject * _resultobj; |
a884bee5 RD |
8573 | wxMenu * _arg0; |
8574 | int _arg1; | |
8575 | wxString * _arg2; | |
9a74fcaf | 8576 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 8577 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
7a446686 | 8578 | PyObject * _argo0 = 0; |
a884bee5 RD |
8579 | PyObject * _obj2 = 0; |
8580 | PyObject * _obj3 = 0; | |
8581 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
7a446686 RD |
8582 | |
8583 | self = self; | |
faeb124b | 8584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
7a446686 RD |
8585 | return NULL; |
8586 | if (_argo0) { | |
8587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
7a446686 RD |
8590 | return NULL; |
8591 | } | |
8592 | } | |
a884bee5 RD |
8593 | { |
8594 | _arg2 = wxString_in_helper(_obj2); | |
8595 | if (_arg2 == NULL) | |
8596 | return NULL; | |
8597 | } | |
8598 | if (_obj3) | |
8599 | { | |
8600 | _arg3 = wxString_in_helper(_obj3); | |
8601 | if (_arg3 == NULL) | |
8602 | return NULL; | |
8603 | } | |
7a446686 | 8604 | { |
474c48f9 | 8605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8606 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
7a446686 | 8607 | |
474c48f9 | 8608 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8609 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
8610 | } Py_INCREF(Py_None); |
8611 | _resultobj = Py_None; | |
a884bee5 RD |
8612 | { |
8613 | if (_obj2) | |
8614 | delete _arg2; | |
8615 | } | |
8616 | { | |
8617 | if (_obj3) | |
8618 | delete _arg3; | |
8619 | } | |
7a446686 RD |
8620 | return _resultobj; |
8621 | } | |
8622 | ||
a884bee5 RD |
8623 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
8624 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
49df1f52 | 8625 | PyObject * _resultobj; |
a884bee5 | 8626 | wxMenu * _arg0; |
49df1f52 RD |
8627 | PyObject * _argo0 = 0; |
8628 | char *_kwnames[] = { "self", NULL }; | |
8629 | ||
8630 | self = self; | |
faeb124b | 8631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
49df1f52 RD |
8632 | return NULL; |
8633 | if (_argo0) { | |
8634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
8635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
49df1f52 RD |
8637 | return NULL; |
8638 | } | |
8639 | } | |
8640 | { | |
8641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a884bee5 | 8642 | wxMenu_PrependSeparator(_arg0); |
49df1f52 RD |
8643 | |
8644 | wxPyEndAllowThreads(__tstate); | |
8645 | if (PyErr_Occurred()) return NULL; | |
a884bee5 RD |
8646 | } Py_INCREF(Py_None); |
8647 | _resultobj = Py_None; | |
49df1f52 RD |
8648 | return _resultobj; |
8649 | } | |
8650 | ||
a884bee5 RD |
8651 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
8652 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8653 | PyObject * _resultobj; |
a884bee5 RD |
8654 | wxMenu * _arg0; |
8655 | int _arg1; | |
8656 | wxString * _arg2; | |
9a74fcaf | 8657 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
8658 | PyObject * _argo0 = 0; |
8659 | PyObject * _obj2 = 0; | |
8660 | PyObject * _obj3 = 0; | |
8661 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
8662 | |
8663 | self = self; | |
faeb124b | 8664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8665 | return NULL; |
a884bee5 RD |
8666 | if (_argo0) { |
8667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
8670 | return NULL; | |
8671 | } | |
8672 | } | |
8ab979d7 | 8673 | { |
a884bee5 RD |
8674 | _arg2 = wxString_in_helper(_obj2); |
8675 | if (_arg2 == NULL) | |
8676 | return NULL; | |
8677 | } | |
8678 | if (_obj3) | |
8679 | { | |
8680 | _arg3 = wxString_in_helper(_obj3); | |
8681 | if (_arg3 == NULL) | |
2cd2fac8 | 8682 | return NULL; |
8ab979d7 | 8683 | } |
cf694132 | 8684 | { |
474c48f9 | 8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8686 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8687 | |
474c48f9 | 8688 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8689 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
8690 | } Py_INCREF(Py_None); |
8691 | _resultobj = Py_None; | |
8ab979d7 | 8692 | { |
a884bee5 RD |
8693 | if (_obj2) |
8694 | delete _arg2; | |
8695 | } | |
8696 | { | |
8697 | if (_obj3) | |
8698 | delete _arg3; | |
8ab979d7 RD |
8699 | } |
8700 | return _resultobj; | |
8701 | } | |
8702 | ||
a884bee5 RD |
8703 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
8704 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8705 | PyObject * _resultobj; |
8706 | wxMenu * _arg0; | |
8707 | int _arg1; | |
8708 | wxString * _arg2; | |
9a74fcaf | 8709 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
1d99702e | 8710 | PyObject * _argo0 = 0; |
8ab979d7 RD |
8711 | PyObject * _obj2 = 0; |
8712 | PyObject * _obj3 = 0; | |
a884bee5 | 8713 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8714 | |
8715 | self = self; | |
faeb124b | 8716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8717 | return NULL; |
1d99702e RD |
8718 | if (_argo0) { |
8719 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8720 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8721 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8722 | return NULL; |
8723 | } | |
8724 | } | |
8725 | { | |
c8bc7bb8 RD |
8726 | _arg2 = wxString_in_helper(_obj2); |
8727 | if (_arg2 == NULL) | |
8ab979d7 | 8728 | return NULL; |
8ab979d7 RD |
8729 | } |
8730 | if (_obj3) | |
8731 | { | |
c8bc7bb8 RD |
8732 | _arg3 = wxString_in_helper(_obj3); |
8733 | if (_arg3 == NULL) | |
8ab979d7 | 8734 | return NULL; |
8ab979d7 | 8735 | } |
cf694132 | 8736 | { |
474c48f9 | 8737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8738 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8739 | |
474c48f9 | 8740 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8741 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8742 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8743 | _resultobj = Py_None; |
8744 | { | |
8745 | if (_obj2) | |
8746 | delete _arg2; | |
8747 | } | |
8748 | { | |
8749 | if (_obj3) | |
8750 | delete _arg3; | |
8751 | } | |
8752 | return _resultobj; | |
8753 | } | |
8754 | ||
a884bee5 RD |
8755 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8756 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8757 | PyObject * _resultobj; |
8758 | wxMenu * _arg0; | |
8759 | int _arg1; | |
8760 | wxString * _arg2; | |
8761 | wxMenu * _arg3; | |
9a74fcaf | 8762 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
1d99702e | 8763 | PyObject * _argo0 = 0; |
8ab979d7 | 8764 | PyObject * _obj2 = 0; |
1d99702e | 8765 | PyObject * _argo3 = 0; |
8ab979d7 | 8766 | PyObject * _obj4 = 0; |
a884bee5 | 8767 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8768 | |
8769 | self = self; | |
faeb124b | 8770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8771 | return NULL; |
1d99702e RD |
8772 | if (_argo0) { |
8773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8776 | return NULL; |
8777 | } | |
8778 | } | |
8779 | { | |
c8bc7bb8 RD |
8780 | _arg2 = wxString_in_helper(_obj2); |
8781 | if (_arg2 == NULL) | |
2cd2fac8 | 8782 | return NULL; |
8ab979d7 | 8783 | } |
1d99702e RD |
8784 | if (_argo3) { |
8785 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8786 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
a884bee5 | 8787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8788 | return NULL; |
8789 | } | |
8790 | } | |
8791 | if (_obj4) | |
8792 | { | |
c8bc7bb8 RD |
8793 | _arg4 = wxString_in_helper(_obj4); |
8794 | if (_arg4 == NULL) | |
2cd2fac8 | 8795 | return NULL; |
8ab979d7 | 8796 | } |
cf694132 | 8797 | { |
474c48f9 | 8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8799 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8800 | |
474c48f9 | 8801 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8802 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8803 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8804 | _resultobj = Py_None; |
8805 | { | |
8806 | if (_obj2) | |
8807 | delete _arg2; | |
8808 | } | |
8809 | { | |
8810 | if (_obj4) | |
8811 | delete _arg4; | |
8812 | } | |
8813 | return _resultobj; | |
8814 | } | |
8815 | ||
a884bee5 RD |
8816 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8817 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8818 | PyObject * _resultobj; |
8819 | wxMenu * _arg0; | |
8820 | wxMenuItem * _arg1; | |
1d99702e RD |
8821 | PyObject * _argo0 = 0; |
8822 | PyObject * _argo1 = 0; | |
efc5f224 | 8823 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8824 | |
8825 | self = self; | |
faeb124b | 8826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8827 | return NULL; |
1d99702e RD |
8828 | if (_argo0) { |
8829 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8830 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8831 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8832 | return NULL; |
8833 | } | |
8834 | } | |
1d99702e RD |
8835 | if (_argo1) { |
8836 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8837 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
a884bee5 | 8838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8839 | return NULL; |
8840 | } | |
8841 | } | |
cf694132 | 8842 | { |
474c48f9 | 8843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8844 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8845 | |
474c48f9 | 8846 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8847 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8848 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8849 | _resultobj = Py_None; |
8850 | return _resultobj; | |
8851 | } | |
8852 | ||
8853 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8854 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8855 | PyObject * _resultobj; |
8856 | wxMenu * _arg0; | |
1d99702e | 8857 | PyObject * _argo0 = 0; |
efc5f224 | 8858 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8859 | |
8860 | self = self; | |
faeb124b | 8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8862 | return NULL; |
1d99702e RD |
8863 | if (_argo0) { |
8864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8867 | return NULL; | |
8868 | } | |
8869 | } | |
cf694132 | 8870 | { |
474c48f9 | 8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8872 | wxMenu_Break(_arg0); |
cf694132 | 8873 | |
474c48f9 | 8874 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8875 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8876 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8877 | _resultobj = Py_None; |
8878 | return _resultobj; | |
8879 | } | |
8880 | ||
8881 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8882 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8883 | PyObject * _resultobj; |
8884 | wxMenu * _arg0; | |
8885 | int _arg1; | |
8886 | bool _arg2; | |
1d99702e | 8887 | PyObject * _argo0 = 0; |
8ab979d7 | 8888 | int tempbool2; |
efc5f224 | 8889 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8890 | |
8891 | self = self; | |
faeb124b | 8892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8893 | return NULL; |
1d99702e RD |
8894 | if (_argo0) { |
8895 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8896 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8897 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
8898 | return NULL; | |
8899 | } | |
8900 | } | |
8901 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8902 | { |
474c48f9 | 8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8904 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8905 | |
474c48f9 | 8906 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8907 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8908 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8909 | _resultobj = Py_None; |
8910 | return _resultobj; | |
8911 | } | |
8912 | ||
b1462dfa RD |
8913 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8914 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8915 | PyObject * _resultobj; | |
8916 | bool _result; | |
8917 | wxMenu * _arg0; | |
8918 | int _arg1; | |
8919 | PyObject * _argo0 = 0; | |
8920 | char *_kwnames[] = { "self","id", NULL }; | |
8921 | ||
8922 | self = self; | |
faeb124b | 8923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
8924 | return NULL; |
8925 | if (_argo0) { | |
8926 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8927 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8928 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8929 | return NULL; | |
8930 | } | |
8931 | } | |
8932 | { | |
474c48f9 | 8933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8934 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8935 | |
474c48f9 | 8936 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8937 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8938 | } _resultobj = Py_BuildValue("i",_result); |
8939 | return _resultobj; | |
8940 | } | |
8941 | ||
8ab979d7 | 8942 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8943 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8944 | PyObject * _resultobj; |
8945 | wxMenu * _arg0; | |
8946 | int _arg1; | |
8947 | bool _arg2; | |
1d99702e | 8948 | PyObject * _argo0 = 0; |
8ab979d7 | 8949 | int tempbool2; |
efc5f224 | 8950 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8951 | |
8952 | self = self; | |
faeb124b | 8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8954 | return NULL; |
1d99702e RD |
8955 | if (_argo0) { |
8956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8959 | return NULL; | |
8960 | } | |
8961 | } | |
8962 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8963 | { |
474c48f9 | 8964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8965 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8966 | |
474c48f9 | 8967 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8968 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8969 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8970 | _resultobj = Py_None; |
8971 | return _resultobj; | |
8972 | } | |
8973 | ||
b1462dfa RD |
8974 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8975 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8976 | PyObject * _resultobj; | |
8977 | bool _result; | |
8978 | wxMenu * _arg0; | |
8979 | int _arg1; | |
8980 | PyObject * _argo0 = 0; | |
8981 | char *_kwnames[] = { "self","id", NULL }; | |
8982 | ||
8983 | self = self; | |
faeb124b | 8984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
8985 | return NULL; |
8986 | if (_argo0) { | |
8987 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8988 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8990 | return NULL; | |
8991 | } | |
8992 | } | |
8993 | { | |
474c48f9 | 8994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8995 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8996 | |
474c48f9 | 8997 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8998 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8999 | } _resultobj = Py_BuildValue("i",_result); |
9000 | return _resultobj; | |
9001 | } | |
9002 | ||
8ab979d7 | 9003 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 9004 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9005 | PyObject * _resultobj; |
9006 | int _result; | |
9007 | wxMenu * _arg0; | |
9008 | wxString * _arg1; | |
1d99702e | 9009 | PyObject * _argo0 = 0; |
8ab979d7 | 9010 | PyObject * _obj1 = 0; |
efc5f224 | 9011 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
9012 | |
9013 | self = self; | |
faeb124b | 9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9015 | return NULL; |
1d99702e RD |
9016 | if (_argo0) { |
9017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
9020 | return NULL; | |
9021 | } | |
9022 | } | |
9023 | { | |
c8bc7bb8 RD |
9024 | _arg1 = wxString_in_helper(_obj1); |
9025 | if (_arg1 == NULL) | |
2cd2fac8 | 9026 | return NULL; |
8ab979d7 | 9027 | } |
cf694132 | 9028 | { |
474c48f9 | 9029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9030 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 9031 | |
474c48f9 | 9032 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9033 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9034 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9035 | { |
9036 | if (_obj1) | |
9037 | delete _arg1; | |
9038 | } | |
9039 | return _resultobj; | |
9040 | } | |
9041 | ||
b1462dfa RD |
9042 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
9043 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9044 | PyObject * _resultobj; | |
9045 | wxMenuItem * _result; | |
9046 | wxMenu * _arg0; | |
9047 | int _arg1; | |
9048 | PyObject * _argo0 = 0; | |
9049 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
9050 | |
9051 | self = self; | |
faeb124b | 9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
9053 | return NULL; |
9054 | if (_argo0) { | |
9055 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9056 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9057 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
9058 | return NULL; | |
9059 | } | |
9060 | } | |
9061 | { | |
474c48f9 | 9062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9063 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 9064 | |
474c48f9 | 9065 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9066 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9067 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
9068 | return _resultobj; |
9069 | } | |
9070 | ||
3ef86e32 RD |
9071 | #define wxMenu_FindItemByPosition(_swigobj,_swigarg0) (_swigobj->FindItemByPosition(_swigarg0)) |
9072 | static PyObject *_wrap_wxMenu_FindItemByPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9073 | PyObject * _resultobj; | |
9074 | wxMenuItem * _result; | |
9075 | wxMenu * _arg0; | |
9076 | size_t _arg1; | |
9077 | PyObject * _argo0 = 0; | |
9078 | char *_kwnames[] = { "self","position", NULL }; | |
9079 | ||
9080 | self = self; | |
faeb124b | 9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemByPosition",_kwnames,&_argo0,&_arg1)) |
3ef86e32 RD |
9082 | return NULL; |
9083 | if (_argo0) { | |
9084 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9085 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemByPosition. Expected _wxMenu_p."); | |
9087 | return NULL; | |
9088 | } | |
9089 | } | |
9090 | { | |
9091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9092 | _result = (wxMenuItem *)wxMenu_FindItemByPosition(_arg0,_arg1); | |
9093 | ||
9094 | wxPyEndAllowThreads(__tstate); | |
9095 | if (PyErr_Occurred()) return NULL; | |
9096 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
9097 | return _resultobj; | |
9098 | } | |
9099 | ||
8ab979d7 | 9100 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 9101 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9102 | PyObject * _resultobj; |
9103 | wxString * _result; | |
9104 | wxMenu * _arg0; | |
1d99702e | 9105 | PyObject * _argo0 = 0; |
efc5f224 | 9106 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9107 | |
9108 | self = self; | |
faeb124b | 9109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 9110 | return NULL; |
1d99702e RD |
9111 | if (_argo0) { |
9112 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9113 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
9115 | return NULL; | |
9116 | } | |
9117 | } | |
8ab979d7 | 9118 | { |
474c48f9 | 9119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9120 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 9121 | |
474c48f9 | 9122 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9123 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9124 | }{ |
c8bc7bb8 | 9125 | #if wxUSE_UNICODE |
b67a9327 | 9126 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9127 | #else |
eec92d76 | 9128 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9129 | #endif |
8ab979d7 RD |
9130 | } |
9131 | { | |
9132 | delete _result; | |
9133 | } | |
9134 | return _resultobj; | |
9135 | } | |
9136 | ||
9137 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 9138 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9139 | PyObject * _resultobj; |
9140 | wxMenu * _arg0; | |
9141 | wxString * _arg1; | |
1d99702e | 9142 | PyObject * _argo0 = 0; |
8ab979d7 | 9143 | PyObject * _obj1 = 0; |
efc5f224 | 9144 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
9145 | |
9146 | self = self; | |
faeb124b | 9147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 9148 | return NULL; |
1d99702e RD |
9149 | if (_argo0) { |
9150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
9153 | return NULL; | |
9154 | } | |
9155 | } | |
9156 | { | |
c8bc7bb8 RD |
9157 | _arg1 = wxString_in_helper(_obj1); |
9158 | if (_arg1 == NULL) | |
2cd2fac8 | 9159 | return NULL; |
8ab979d7 | 9160 | } |
cf694132 | 9161 | { |
474c48f9 | 9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9163 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 9164 | |
474c48f9 | 9165 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9166 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9167 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9168 | _resultobj = Py_None; |
9169 | { | |
9170 | if (_obj1) | |
9171 | delete _arg1; | |
9172 | } | |
9173 | return _resultobj; | |
9174 | } | |
9175 | ||
b1462dfa RD |
9176 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9177 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9178 | PyObject * _resultobj; |
b1462dfa | 9179 | wxString * _result; |
8ab979d7 RD |
9180 | wxMenu * _arg0; |
9181 | int _arg1; | |
1d99702e | 9182 | PyObject * _argo0 = 0; |
efc5f224 | 9183 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9184 | |
9185 | self = self; | |
faeb124b | 9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9187 | return NULL; |
1d99702e RD |
9188 | if (_argo0) { |
9189 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9190 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9191 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
9192 | return NULL; |
9193 | } | |
9194 | } | |
cf694132 | 9195 | { |
474c48f9 | 9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9197 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 9198 | |
474c48f9 | 9199 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9200 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9201 | }{ |
c8bc7bb8 | 9202 | #if wxUSE_UNICODE |
b67a9327 | 9203 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9204 | #else |
eec92d76 | 9205 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9206 | #endif |
b1462dfa RD |
9207 | } |
9208 | { | |
9209 | delete _result; | |
9210 | } | |
8ab979d7 RD |
9211 | return _resultobj; |
9212 | } | |
9213 | ||
b1462dfa RD |
9214 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9215 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9216 | PyObject * _resultobj; |
8ab979d7 RD |
9217 | wxMenu * _arg0; |
9218 | int _arg1; | |
b1462dfa | 9219 | wxString * _arg2; |
1d99702e | 9220 | PyObject * _argo0 = 0; |
b1462dfa RD |
9221 | PyObject * _obj2 = 0; |
9222 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9223 | |
9224 | self = self; | |
faeb124b | 9225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9226 | return NULL; |
1d99702e RD |
9227 | if (_argo0) { |
9228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
9231 | return NULL; |
9232 | } | |
9233 | } | |
b1462dfa | 9234 | { |
c8bc7bb8 RD |
9235 | _arg2 = wxString_in_helper(_obj2); |
9236 | if (_arg2 == NULL) | |
2cd2fac8 | 9237 | return NULL; |
b1462dfa | 9238 | } |
8ab979d7 | 9239 | { |
474c48f9 | 9240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9241 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9242 | |
474c48f9 | 9243 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9244 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9245 | } Py_INCREF(Py_None); |
9246 | _resultobj = Py_None; | |
8ab979d7 | 9247 | { |
b1462dfa RD |
9248 | if (_obj2) |
9249 | delete _arg2; | |
8ab979d7 RD |
9250 | } |
9251 | return _resultobj; | |
9252 | } | |
9253 | ||
b1462dfa RD |
9254 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
9255 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9256 | PyObject * _resultobj; |
9257 | wxString * _result; | |
9258 | wxMenu * _arg0; | |
9259 | int _arg1; | |
1d99702e | 9260 | PyObject * _argo0 = 0; |
efc5f224 | 9261 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9262 | |
9263 | self = self; | |
faeb124b | 9264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9265 | return NULL; |
1d99702e RD |
9266 | if (_argo0) { |
9267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
9270 | return NULL; |
9271 | } | |
9272 | } | |
8ab979d7 | 9273 | { |
474c48f9 | 9274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9275 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 9276 | |
474c48f9 | 9277 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9278 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9279 | }{ |
c8bc7bb8 | 9280 | #if wxUSE_UNICODE |
b67a9327 | 9281 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9282 | #else |
eec92d76 | 9283 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9284 | #endif |
8ab979d7 RD |
9285 | } |
9286 | { | |
9287 | delete _result; | |
9288 | } | |
9289 | return _resultobj; | |
9290 | } | |
9291 | ||
9292 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 9293 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
9294 | PyObject * _resultobj; |
9295 | wxMenu * _arg0; | |
9296 | int _arg1; | |
9297 | wxString * _arg2; | |
1d99702e | 9298 | PyObject * _argo0 = 0; |
8ab979d7 | 9299 | PyObject * _obj2 = 0; |
efc5f224 | 9300 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
9301 | |
9302 | self = self; | |
faeb124b | 9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9304 | return NULL; |
1d99702e RD |
9305 | if (_argo0) { |
9306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
9308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
9309 | return NULL; | |
9310 | } | |
9311 | } | |
9312 | { | |
c8bc7bb8 RD |
9313 | _arg2 = wxString_in_helper(_obj2); |
9314 | if (_arg2 == NULL) | |
2cd2fac8 | 9315 | return NULL; |
8ab979d7 | 9316 | } |
cf694132 | 9317 | { |
474c48f9 | 9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9319 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 9320 | |
474c48f9 | 9321 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9322 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9323 | } Py_INCREF(Py_None); |
8ab979d7 RD |
9324 | _resultobj = Py_None; |
9325 | { | |
9326 | if (_obj2) | |
9327 | delete _arg2; | |
9328 | } | |
9329 | return _resultobj; | |
9330 | } | |
9331 | ||
b1462dfa RD |
9332 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
9333 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9334 | PyObject * _resultobj; |
8ab979d7 | 9335 | wxMenu * _arg0; |
b1462dfa | 9336 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 9337 | PyObject * _argo0 = 0; |
b1462dfa RD |
9338 | PyObject * _argo1 = 0; |
9339 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
9340 | |
9341 | self = self; | |
faeb124b | 9342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9343 | return NULL; |
1d99702e RD |
9344 | if (_argo0) { |
9345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
9347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
9348 | return NULL; | |
9349 | } | |
9350 | } | |
9351 | if (_argo1) { | |
9352 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9353 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
9355 | return NULL; |
9356 | } | |
9357 | } | |
cf694132 | 9358 | { |
474c48f9 | 9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9360 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 9361 | |
474c48f9 | 9362 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9363 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9364 | } Py_INCREF(Py_None); |
9365 | _resultobj = Py_None; | |
8ab979d7 RD |
9366 | return _resultobj; |
9367 | } | |
9368 | ||
b1462dfa RD |
9369 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9370 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9371 | PyObject * _resultobj; |
9372 | bool _result; | |
9373 | wxMenu * _arg0; | |
9374 | int _arg1; | |
1d99702e | 9375 | PyObject * _argo0 = 0; |
efc5f224 | 9376 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9377 | |
9378 | self = self; | |
faeb124b | 9379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9380 | return NULL; |
1d99702e RD |
9381 | if (_argo0) { |
9382 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9383 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9384 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
9385 | return NULL; |
9386 | } | |
9387 | } | |
cf694132 | 9388 | { |
474c48f9 | 9389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9390 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 9391 | |
474c48f9 | 9392 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9393 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9394 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9395 | return _resultobj; |
9396 | } | |
9397 | ||
b1462dfa RD |
9398 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
9399 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9400 | PyObject * _resultobj; |
b1462dfa | 9401 | bool _result; |
8ab979d7 | 9402 | wxMenu * _arg0; |
b1462dfa | 9403 | wxMenuItem * _arg1; |
1d99702e | 9404 | PyObject * _argo0 = 0; |
b1462dfa RD |
9405 | PyObject * _argo1 = 0; |
9406 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9407 | |
9408 | self = self; | |
faeb124b | 9409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9410 | return NULL; |
1d99702e RD |
9411 | if (_argo0) { |
9412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
9415 | return NULL; |
9416 | } | |
9417 | } | |
b1462dfa RD |
9418 | if (_argo1) { |
9419 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9420 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9422 | return NULL; |
b1462dfa | 9423 | } |
8ab979d7 | 9424 | } |
cf694132 | 9425 | { |
474c48f9 | 9426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9427 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 9428 | |
474c48f9 | 9429 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9430 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9431 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9432 | return _resultobj; |
9433 | } | |
9434 | ||
b1462dfa RD |
9435 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9436 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 9437 | PyObject * _resultobj; |
b1462dfa | 9438 | wxMenuItem * _result; |
efc5f224 | 9439 | wxMenu * _arg0; |
b1462dfa | 9440 | int _arg1; |
efc5f224 | 9441 | PyObject * _argo0 = 0; |
b1462dfa | 9442 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
9443 | |
9444 | self = self; | |
faeb124b | 9445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
9446 | return NULL; |
9447 | if (_argo0) { | |
9448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 9450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
9451 | return NULL; |
9452 | } | |
9453 | } | |
9454 | { | |
474c48f9 | 9455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9456 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 9457 | |
474c48f9 | 9458 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9459 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9460 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
9461 | return _resultobj; |
9462 | } | |
9463 | ||
b1462dfa RD |
9464 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
9465 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9466 | PyObject * _resultobj; |
b1462dfa RD |
9467 | wxMenuItem * _result; |
9468 | wxMenu * _arg0; | |
9469 | wxMenuItem * _arg1; | |
9470 | PyObject * _argo0 = 0; | |
9471 | PyObject * _argo1 = 0; | |
9472 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9473 | |
9474 | self = self; | |
faeb124b | 9475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
b1462dfa RD |
9476 | return NULL; |
9477 | if (_argo0) { | |
9478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
9480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
9481 | return NULL; | |
9482 | } | |
9483 | } | |
9484 | if (_argo1) { | |
9485 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9486 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9487 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 9488 | return NULL; |
b1462dfa RD |
9489 | } |
9490 | } | |
cf694132 | 9491 | { |
474c48f9 | 9492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9493 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 9494 | |
474c48f9 | 9495 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9496 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9497 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9498 | return _resultobj; |
9499 | } | |
9500 | ||
eb715945 | 9501 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 9502 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 9503 | PyObject * _resultobj; |
b1462dfa | 9504 | wxMenu * _arg0; |
1d99702e | 9505 | PyObject * _argo0 = 0; |
b1462dfa | 9506 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9507 | |
9508 | self = self; | |
faeb124b | 9509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 9510 | return NULL; |
1d99702e RD |
9511 | if (_argo0) { |
9512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
9515 | return NULL; |
9516 | } | |
9517 | } | |
cf694132 | 9518 | { |
474c48f9 | 9519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9520 | wxMenu_Destroy(_arg0); |
cf694132 | 9521 | |
474c48f9 | 9522 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9523 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9524 | } Py_INCREF(Py_None); |
8ab979d7 | 9525 | _resultobj = Py_None; |
8ab979d7 RD |
9526 | return _resultobj; |
9527 | } | |
9528 | ||
b1462dfa RD |
9529 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9530 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9531 | PyObject * _resultobj; |
b1462dfa RD |
9532 | bool _result; |
9533 | wxMenu * _arg0; | |
8ab979d7 | 9534 | int _arg1; |
1d99702e | 9535 | PyObject * _argo0 = 0; |
b1462dfa | 9536 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9537 | |
9538 | self = self; | |
faeb124b | 9539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9540 | return NULL; |
1d99702e RD |
9541 | if (_argo0) { |
9542 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9543 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
9545 | return NULL; |
9546 | } | |
9547 | } | |
cf694132 | 9548 | { |
474c48f9 | 9549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9550 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 9551 | |
474c48f9 | 9552 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9553 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9554 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9555 | return _resultobj; |
9556 | } | |
9557 | ||
b1462dfa RD |
9558 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
9559 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9560 | PyObject * _resultobj; |
b1462dfa RD |
9561 | bool _result; |
9562 | wxMenu * _arg0; | |
9563 | wxMenuItem * _arg1; | |
1d99702e | 9564 | PyObject * _argo0 = 0; |
b1462dfa RD |
9565 | PyObject * _argo1 = 0; |
9566 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
9567 | |
9568 | self = self; | |
faeb124b | 9569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9570 | return NULL; |
1d99702e RD |
9571 | if (_argo0) { |
9572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
9575 | return NULL; | |
9576 | } | |
9577 | } | |
9578 | if (_argo1) { | |
9579 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9580 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
9581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
9582 | return NULL; |
9583 | } | |
9584 | } | |
cf694132 | 9585 | { |
474c48f9 | 9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9587 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 9588 | |
474c48f9 | 9589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9590 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9591 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9592 | return _resultobj; |
9593 | } | |
9594 | ||
b1462dfa RD |
9595 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
9596 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9597 | PyObject * _resultobj; |
b1462dfa RD |
9598 | size_t _result; |
9599 | wxMenu * _arg0; | |
1d99702e | 9600 | PyObject * _argo0 = 0; |
b1462dfa | 9601 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9602 | |
9603 | self = self; | |
faeb124b | 9604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 9605 | return NULL; |
1d99702e RD |
9606 | if (_argo0) { |
9607 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9608 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9609 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
9610 | return NULL; |
9611 | } | |
9612 | } | |
cf694132 | 9613 | { |
474c48f9 | 9614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9615 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 9616 | |
474c48f9 | 9617 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9618 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 9619 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9620 | return _resultobj; |
9621 | } | |
9622 | ||
b1462dfa RD |
9623 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
9624 | wxMenuItemList& list = self->GetMenuItems(); | |
9625 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
9626 | } | |
9627 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9628 | PyObject * _resultobj; |
b1462dfa RD |
9629 | PyObject * _result; |
9630 | wxMenu * _arg0; | |
1d99702e | 9631 | PyObject * _argo0 = 0; |
b1462dfa | 9632 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9633 | |
9634 | self = self; | |
faeb124b | 9635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 9636 | return NULL; |
1d99702e RD |
9637 | if (_argo0) { |
9638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
9641 | return NULL; |
9642 | } | |
9643 | } | |
cf694132 | 9644 | { |
474c48f9 | 9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9646 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 9647 | |
474c48f9 | 9648 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9649 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9650 | }{ |
9651 | _resultobj = _result; | |
9652 | } | |
8ab979d7 RD |
9653 | return _resultobj; |
9654 | } | |
9655 | ||
b1462dfa RD |
9656 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
9657 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9658 | PyObject * _resultobj; |
b1462dfa RD |
9659 | wxMenu * _arg0; |
9660 | wxEvtHandler * _arg1; | |
1d99702e | 9661 | PyObject * _argo0 = 0; |
b1462dfa RD |
9662 | PyObject * _argo1 = 0; |
9663 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
9664 | |
9665 | self = self; | |
faeb124b | 9666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9667 | return NULL; |
1d99702e RD |
9668 | if (_argo0) { |
9669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9672 | return NULL; |
9673 | } | |
9674 | } | |
b1462dfa RD |
9675 | if (_argo1) { |
9676 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9677 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
9678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 9679 | return NULL; |
b1462dfa | 9680 | } |
8ab979d7 | 9681 | } |
cf694132 | 9682 | { |
474c48f9 | 9683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9684 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 9685 | |
474c48f9 | 9686 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9687 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9688 | } Py_INCREF(Py_None); |
9689 | _resultobj = Py_None; | |
8ab979d7 RD |
9690 | return _resultobj; |
9691 | } | |
9692 | ||
b1462dfa RD |
9693 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
9694 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9695 | PyObject * _resultobj; |
b1462dfa RD |
9696 | wxEvtHandler * _result; |
9697 | wxMenu * _arg0; | |
1d99702e | 9698 | PyObject * _argo0 = 0; |
b1462dfa | 9699 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9700 | |
9701 | self = self; | |
faeb124b | 9702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 9703 | return NULL; |
1d99702e RD |
9704 | if (_argo0) { |
9705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
9708 | return NULL; |
9709 | } | |
9710 | } | |
cf694132 | 9711 | { |
474c48f9 | 9712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9713 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 9714 | |
474c48f9 | 9715 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9716 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9717 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9718 | return _resultobj; |
9719 | } | |
9720 | ||
b1462dfa RD |
9721 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
9722 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 9723 | PyObject * _resultobj; |
b1462dfa RD |
9724 | wxMenu * _arg0; |
9725 | wxWindow * _arg1; | |
2f90df85 | 9726 | PyObject * _argo0 = 0; |
b1462dfa RD |
9727 | PyObject * _argo1 = 0; |
9728 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
9729 | |
9730 | self = self; | |
faeb124b | 9731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
9732 | return NULL; |
9733 | if (_argo0) { | |
9734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
9737 | return NULL; |
9738 | } | |
9739 | } | |
b1462dfa RD |
9740 | if (_argo1) { |
9741 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9742 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9744 | return NULL; |
b1462dfa | 9745 | } |
2f90df85 | 9746 | } |
2f90df85 | 9747 | { |
474c48f9 | 9748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9749 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9750 | |
474c48f9 | 9751 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9752 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9753 | } Py_INCREF(Py_None); |
9754 | _resultobj = Py_None; | |
2f90df85 RD |
9755 | return _resultobj; |
9756 | } | |
9757 | ||
b1462dfa RD |
9758 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9759 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9760 | PyObject * _resultobj; |
b1462dfa RD |
9761 | wxWindow * _result; |
9762 | wxMenu * _arg0; | |
1d99702e | 9763 | PyObject * _argo0 = 0; |
b1462dfa | 9764 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9765 | |
9766 | self = self; | |
faeb124b | 9767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9768 | return NULL; |
1d99702e RD |
9769 | if (_argo0) { |
9770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9773 | return NULL; |
9774 | } | |
9775 | } | |
cf694132 | 9776 | { |
474c48f9 | 9777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9778 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9779 | |
474c48f9 | 9780 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9781 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9782 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9783 | return _resultobj; |
9784 | } | |
9785 | ||
b1462dfa RD |
9786 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9787 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9788 | PyObject * _resultobj; |
b1462dfa RD |
9789 | long _result; |
9790 | wxMenu * _arg0; | |
1d99702e | 9791 | PyObject * _argo0 = 0; |
b1462dfa | 9792 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9793 | |
9794 | self = self; | |
faeb124b | 9795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9796 | return NULL; |
1d99702e RD |
9797 | if (_argo0) { |
9798 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9799 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9800 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9801 | return NULL; |
9802 | } | |
9803 | } | |
8ab979d7 | 9804 | { |
474c48f9 | 9805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9806 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9807 | |
474c48f9 | 9808 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9809 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9810 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9811 | return _resultobj; |
9812 | } | |
9813 | ||
b1462dfa RD |
9814 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9815 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9816 | PyObject * _resultobj; |
b1462dfa RD |
9817 | bool _result; |
9818 | wxMenu * _arg0; | |
1d99702e | 9819 | PyObject * _argo0 = 0; |
b1462dfa | 9820 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9821 | |
9822 | self = self; | |
faeb124b | 9823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9824 | return NULL; |
1d99702e RD |
9825 | if (_argo0) { |
9826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9829 | return NULL; |
9830 | } | |
9831 | } | |
8ab979d7 | 9832 | { |
474c48f9 | 9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9834 | _result = (bool )wxMenu_IsAttached(_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 wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9843 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9844 | PyObject * _resultobj; |
b1462dfa RD |
9845 | wxMenu * _arg0; |
9846 | wxMenu * _arg1; | |
1d99702e | 9847 | PyObject * _argo0 = 0; |
b1462dfa RD |
9848 | PyObject * _argo1 = 0; |
9849 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9850 | |
9851 | self = self; | |
faeb124b | 9852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9853 | return NULL; |
1d99702e RD |
9854 | if (_argo0) { |
9855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9858 | return NULL; |
9859 | } | |
9860 | } | |
b1462dfa RD |
9861 | if (_argo1) { |
9862 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9863 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9865 | return NULL; |
b1462dfa | 9866 | } |
8ab979d7 | 9867 | } |
cf694132 | 9868 | { |
474c48f9 | 9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9870 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9871 | |
474c48f9 | 9872 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9873 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9874 | } Py_INCREF(Py_None); |
8ab979d7 | 9875 | _resultobj = Py_None; |
8ab979d7 RD |
9876 | return _resultobj; |
9877 | } | |
9878 | ||
b1462dfa RD |
9879 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9880 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9881 | PyObject * _resultobj; |
b1462dfa RD |
9882 | wxMenu * _result; |
9883 | wxMenu * _arg0; | |
1d99702e | 9884 | PyObject * _argo0 = 0; |
b1462dfa | 9885 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9886 | |
9887 | self = self; | |
faeb124b | 9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9889 | return NULL; |
1d99702e RD |
9890 | if (_argo0) { |
9891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9894 | return NULL; |
9895 | } | |
9896 | } | |
8ab979d7 | 9897 | { |
474c48f9 | 9898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9899 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9900 | |
474c48f9 | 9901 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9902 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9903 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9904 | return _resultobj; |
8ab979d7 | 9905 | } |
b1462dfa RD |
9906 | |
9907 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9908 | wxMenuBar *src; | |
9909 | wxWindow *dest; | |
9910 | src = (wxMenuBar *) ptr; | |
9911 | dest = (wxWindow *) src; | |
9912 | return (void *) dest; | |
9913 | } | |
9914 | ||
9915 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9916 | wxMenuBar *src; | |
9917 | wxEvtHandler *dest; | |
9918 | src = (wxMenuBar *) ptr; | |
9919 | dest = (wxEvtHandler *) src; | |
9920 | return (void *) dest; | |
8ab979d7 | 9921 | } |
b1462dfa | 9922 | |
9df61a29 RD |
9923 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9924 | wxMenuBar *src; | |
9925 | wxObject *dest; | |
9926 | src = (wxMenuBar *) ptr; | |
9927 | dest = (wxObject *) src; | |
9928 | return (void *) dest; | |
9929 | } | |
9930 | ||
c368d904 | 9931 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9932 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9933 | PyObject * _resultobj; | |
9934 | wxMenuBar * _result; | |
c368d904 RD |
9935 | long _arg0 = (long ) 0; |
9936 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9937 | char _ptemp[128]; |
9938 | ||
9939 | self = self; | |
faeb124b | 9940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9941 | return NULL; |
9942 | { | |
474c48f9 | 9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9944 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9945 | |
474c48f9 | 9946 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9947 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9948 | } if (_result) { |
9949 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9950 | _resultobj = Py_BuildValue("s",_ptemp); | |
9951 | } else { | |
9952 | Py_INCREF(Py_None); | |
9953 | _resultobj = Py_None; | |
9954 | } | |
8ab979d7 RD |
9955 | return _resultobj; |
9956 | } | |
9957 | ||
b1462dfa RD |
9958 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9959 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9960 | PyObject * _resultobj; |
b1462dfa | 9961 | bool _result; |
8ab979d7 | 9962 | wxMenuBar * _arg0; |
b1462dfa | 9963 | wxMenu * _arg1; |
8ab979d7 | 9964 | wxString * _arg2; |
1d99702e | 9965 | PyObject * _argo0 = 0; |
b1462dfa | 9966 | PyObject * _argo1 = 0; |
8ab979d7 | 9967 | PyObject * _obj2 = 0; |
b1462dfa | 9968 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9969 | |
9970 | self = self; | |
faeb124b | 9971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9972 | return NULL; |
1d99702e RD |
9973 | if (_argo0) { |
9974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9977 | return NULL; | |
9978 | } | |
9979 | } | |
9980 | if (_argo1) { | |
9981 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9982 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9984 | return NULL; |
9985 | } | |
9986 | } | |
9987 | { | |
c8bc7bb8 RD |
9988 | _arg2 = wxString_in_helper(_obj2); |
9989 | if (_arg2 == NULL) | |
2cd2fac8 | 9990 | return NULL; |
8ab979d7 | 9991 | } |
cf694132 | 9992 | { |
474c48f9 | 9993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9994 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9995 | |
474c48f9 | 9996 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9997 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9998 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9999 | { |
10000 | if (_obj2) | |
10001 | delete _arg2; | |
10002 | } | |
10003 | return _resultobj; | |
10004 | } | |
10005 | ||
b1462dfa RD |
10006 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
10007 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10008 | PyObject * _resultobj; |
b1462dfa | 10009 | bool _result; |
8ab979d7 | 10010 | wxMenuBar * _arg0; |
b1462dfa RD |
10011 | size_t _arg1; |
10012 | wxMenu * _arg2; | |
10013 | wxString * _arg3; | |
1d99702e | 10014 | PyObject * _argo0 = 0; |
b1462dfa RD |
10015 | PyObject * _argo2 = 0; |
10016 | PyObject * _obj3 = 0; | |
10017 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
10018 | |
10019 | self = self; | |
faeb124b | 10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 10021 | return NULL; |
1d99702e RD |
10022 | if (_argo0) { |
10023 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10024 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
10025 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
10026 | return NULL; | |
10027 | } | |
10028 | } | |
10029 | if (_argo2) { | |
10030 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10031 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
10032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
10033 | return NULL; |
10034 | } | |
10035 | } | |
b1462dfa | 10036 | { |
c8bc7bb8 RD |
10037 | _arg3 = wxString_in_helper(_obj3); |
10038 | if (_arg3 == NULL) | |
2cd2fac8 | 10039 | return NULL; |
b1462dfa | 10040 | } |
cf694132 | 10041 | { |
474c48f9 | 10042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10043 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 10044 | |
474c48f9 | 10045 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10046 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10047 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
10048 | { |
10049 | if (_obj3) | |
10050 | delete _arg3; | |
10051 | } | |
8ab979d7 RD |
10052 | return _resultobj; |
10053 | } | |
10054 | ||
b1462dfa RD |
10055 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
10056 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10057 | PyObject * _resultobj; |
b1462dfa | 10058 | size_t _result; |
8ab979d7 | 10059 | wxMenuBar * _arg0; |
1d99702e | 10060 | PyObject * _argo0 = 0; |
b1462dfa | 10061 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10062 | |
10063 | self = self; | |
faeb124b | 10064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 10065 | return NULL; |
1d99702e RD |
10066 | if (_argo0) { |
10067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 10069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
10070 | return NULL; |
10071 | } | |
10072 | } | |
cf694132 | 10073 | { |
474c48f9 | 10074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10075 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 10076 | |
474c48f9 | 10077 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10078 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10079 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10080 | return _resultobj; |
10081 | } | |
10082 | ||
b1462dfa RD |
10083 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
10084 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 10085 | PyObject * _resultobj; |
b1462dfa | 10086 | wxMenu * _result; |
06c0fba4 | 10087 | wxMenuBar * _arg0; |
b1462dfa | 10088 | size_t _arg1; |
06c0fba4 | 10089 | PyObject * _argo0 = 0; |
b1462dfa | 10090 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
10091 | |
10092 | self = self; | |
faeb124b | 10093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
10094 | return NULL; |
10095 | if (_argo0) { | |
10096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 10098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
10099 | return NULL; |
10100 | } | |
10101 | } | |
10102 | { | |
474c48f9 | 10103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10104 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 10105 | |
474c48f9 | 10106 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10107 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10108 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
10109 | return _resultobj; |
10110 | } | |
10111 | ||
2abc0a0f RD |
10112 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
10113 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10114 | PyObject * _resultobj; | |
10115 | wxMenu * _result; | |
10116 | wxMenuBar * _arg0; | |
10117 | size_t _arg1; | |
10118 | wxMenu * _arg2; | |
10119 | wxString * _arg3; | |
10120 | PyObject * _argo0 = 0; | |
10121 | PyObject * _argo2 = 0; | |
10122 | PyObject * _obj3 = 0; | |
10123 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
10124 | |
10125 | self = self; | |
faeb124b | 10126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
2abc0a0f RD |
10127 | return NULL; |
10128 | if (_argo0) { | |
10129 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10130 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10131 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
10132 | return NULL; | |
10133 | } | |
10134 | } | |
10135 | if (_argo2) { | |
10136 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
10137 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
10138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
10139 | return NULL; | |
10140 | } | |
10141 | } | |
10142 | { | |
c8bc7bb8 RD |
10143 | _arg3 = wxString_in_helper(_obj3); |
10144 | if (_arg3 == NULL) | |
2cd2fac8 | 10145 | return NULL; |
2abc0a0f RD |
10146 | } |
10147 | { | |
474c48f9 | 10148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10149 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 10150 | |
474c48f9 | 10151 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10152 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10153 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
10154 | { |
10155 | if (_obj3) | |
10156 | delete _arg3; | |
10157 | } | |
10158 | return _resultobj; | |
10159 | } | |
10160 | ||
10161 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
10162 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10163 | PyObject * _resultobj; | |
10164 | wxMenu * _result; | |
10165 | wxMenuBar * _arg0; | |
10166 | size_t _arg1; | |
10167 | PyObject * _argo0 = 0; | |
10168 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
10169 | |
10170 | self = self; | |
faeb124b | 10171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) |
2abc0a0f RD |
10172 | return NULL; |
10173 | if (_argo0) { | |
10174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
10177 | return NULL; | |
10178 | } | |
10179 | } | |
10180 | { | |
474c48f9 | 10181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10182 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 10183 | |
474c48f9 | 10184 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10185 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10186 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
10187 | return _resultobj; |
10188 | } | |
10189 | ||
b1462dfa RD |
10190 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
10191 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10192 | PyObject * _resultobj; |
b1462dfa RD |
10193 | wxMenuBar * _arg0; |
10194 | size_t _arg1; | |
10195 | bool _arg2; | |
10196 | PyObject * _argo0 = 0; | |
10197 | int tempbool2; | |
10198 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
10199 | ||
10200 | self = self; | |
faeb124b | 10201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) |
b1462dfa RD |
10202 | return NULL; |
10203 | if (_argo0) { | |
10204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
10207 | return NULL; | |
10208 | } | |
10209 | } | |
10210 | _arg2 = (bool ) tempbool2; | |
10211 | { | |
474c48f9 | 10212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10213 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 10214 | |
474c48f9 | 10215 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10216 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10217 | } Py_INCREF(Py_None); |
10218 | _resultobj = Py_None; | |
10219 | return _resultobj; | |
10220 | } | |
10221 | ||
b67a9327 RD |
10222 | #define wxMenuBar_IsEnabledTop(_swigobj,_swigarg0) (_swigobj->IsEnabledTop(_swigarg0)) |
10223 | static PyObject *_wrap_wxMenuBar_IsEnabledTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10224 | PyObject * _resultobj; | |
10225 | bool _result; | |
10226 | wxMenuBar * _arg0; | |
10227 | size_t _arg1; | |
10228 | PyObject * _argo0 = 0; | |
10229 | char *_kwnames[] = { "self","pos", NULL }; | |
10230 | ||
10231 | self = self; | |
faeb124b | 10232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabledTop",_kwnames,&_argo0,&_arg1)) |
b67a9327 RD |
10233 | return NULL; |
10234 | if (_argo0) { | |
10235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabledTop. Expected _wxMenuBar_p."); | |
10238 | return NULL; | |
10239 | } | |
10240 | } | |
10241 | { | |
10242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10243 | _result = (bool )wxMenuBar_IsEnabledTop(_arg0,_arg1); | |
10244 | ||
10245 | wxPyEndAllowThreads(__tstate); | |
10246 | if (PyErr_Occurred()) return NULL; | |
10247 | } _resultobj = Py_BuildValue("i",_result); | |
10248 | return _resultobj; | |
10249 | } | |
10250 | ||
b1462dfa RD |
10251 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) |
10252 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10253 | PyObject * _resultobj; | |
10254 | wxMenuBar * _arg0; | |
10255 | size_t _arg1; | |
10256 | wxString * _arg2; | |
1d99702e | 10257 | PyObject * _argo0 = 0; |
cf694132 | 10258 | PyObject * _obj2 = 0; |
b1462dfa | 10259 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
10260 | |
10261 | self = self; | |
faeb124b | 10262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 10263 | return NULL; |
1d99702e RD |
10264 | if (_argo0) { |
10265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
10268 | return NULL; |
10269 | } | |
10270 | } | |
cf694132 | 10271 | { |
c8bc7bb8 RD |
10272 | _arg2 = wxString_in_helper(_obj2); |
10273 | if (_arg2 == NULL) | |
2cd2fac8 | 10274 | return NULL; |
cf694132 | 10275 | } |
cf694132 | 10276 | { |
474c48f9 | 10277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10278 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 10279 | |
474c48f9 | 10280 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10281 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10282 | } Py_INCREF(Py_None); |
10283 | _resultobj = Py_None; | |
10284 | { | |
10285 | if (_obj2) | |
10286 | delete _arg2; | |
10287 | } | |
10288 | return _resultobj; | |
10289 | } | |
10290 | ||
10291 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
10292 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10293 | PyObject * _resultobj; | |
10294 | wxString * _result; | |
10295 | wxMenuBar * _arg0; | |
10296 | size_t _arg1; | |
10297 | PyObject * _argo0 = 0; | |
10298 | char *_kwnames[] = { "self","pos", NULL }; | |
10299 | ||
10300 | self = self; | |
faeb124b | 10301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
10302 | return NULL; |
10303 | if (_argo0) { | |
10304 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10305 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10306 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
10307 | return NULL; | |
10308 | } | |
10309 | } | |
10310 | { | |
474c48f9 | 10311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10312 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 10313 | |
474c48f9 | 10314 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10315 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10316 | }{ |
c8bc7bb8 | 10317 | #if wxUSE_UNICODE |
b67a9327 | 10318 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10319 | #else |
eec92d76 | 10320 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10321 | #endif |
b1462dfa RD |
10322 | } |
10323 | { | |
10324 | delete _result; | |
10325 | } | |
10326 | return _resultobj; | |
10327 | } | |
10328 | ||
10be44ac RD |
10329 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
10330 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10331 | PyObject * _resultobj; | |
10332 | int _result; | |
10333 | wxMenuBar * _arg0; | |
10334 | wxString * _arg1; | |
10335 | PyObject * _argo0 = 0; | |
10336 | PyObject * _obj1 = 0; | |
10337 | char *_kwnames[] = { "self","title", NULL }; | |
10338 | ||
10339 | self = self; | |
faeb124b | 10340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) |
10be44ac RD |
10341 | return NULL; |
10342 | if (_argo0) { | |
10343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
10346 | return NULL; | |
10347 | } | |
10348 | } | |
10349 | { | |
c8bc7bb8 RD |
10350 | _arg1 = wxString_in_helper(_obj1); |
10351 | if (_arg1 == NULL) | |
10be44ac | 10352 | return NULL; |
10be44ac RD |
10353 | } |
10354 | { | |
474c48f9 | 10355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10356 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
10be44ac | 10357 | |
474c48f9 | 10358 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
10359 | if (PyErr_Occurred()) return NULL; |
10360 | } _resultobj = Py_BuildValue("i",_result); | |
10361 | { | |
10362 | if (_obj1) | |
10363 | delete _arg1; | |
10364 | } | |
10365 | return _resultobj; | |
10366 | } | |
10367 | ||
b1462dfa RD |
10368 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
10369 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10370 | PyObject * _resultobj; | |
10371 | int _result; | |
10372 | wxMenuBar * _arg0; | |
10373 | wxString * _arg1; | |
10374 | wxString * _arg2; | |
10375 | PyObject * _argo0 = 0; | |
10376 | PyObject * _obj1 = 0; | |
10377 | PyObject * _obj2 = 0; | |
10378 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
10379 | ||
10380 | self = self; | |
faeb124b | 10381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) |
b1462dfa RD |
10382 | return NULL; |
10383 | if (_argo0) { | |
10384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
10387 | return NULL; | |
10388 | } | |
10389 | } | |
10390 | { | |
c8bc7bb8 RD |
10391 | _arg1 = wxString_in_helper(_obj1); |
10392 | if (_arg1 == NULL) | |
2cd2fac8 | 10393 | return NULL; |
cf694132 | 10394 | } |
b1462dfa | 10395 | { |
c8bc7bb8 RD |
10396 | _arg2 = wxString_in_helper(_obj2); |
10397 | if (_arg2 == NULL) | |
b1462dfa | 10398 | return NULL; |
b1462dfa RD |
10399 | } |
10400 | { | |
474c48f9 | 10401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10402 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 10403 | |
474c48f9 | 10404 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10405 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10406 | } _resultobj = Py_BuildValue("i",_result); |
10407 | { | |
10408 | if (_obj1) | |
10409 | delete _arg1; | |
10410 | } | |
10411 | { | |
10412 | if (_obj2) | |
10413 | delete _arg2; | |
10414 | } | |
10415 | return _resultobj; | |
10416 | } | |
10417 | ||
10418 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
10419 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10420 | PyObject * _resultobj; | |
10421 | wxMenuItem * _result; | |
10422 | wxMenuBar * _arg0; | |
10423 | int _arg1; | |
10424 | PyObject * _argo0 = 0; | |
10425 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
10426 | |
10427 | self = self; | |
faeb124b | 10428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
10429 | return NULL; |
10430 | if (_argo0) { | |
10431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
10434 | return NULL; |
10435 | } | |
10436 | } | |
10437 | { | |
474c48f9 | 10438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10439 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 10440 | |
474c48f9 | 10441 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10442 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10443 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 10444 | return _resultobj; |
cf694132 | 10445 | } |
b1462dfa RD |
10446 | |
10447 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
10448 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10449 | PyObject * _resultobj; | |
10450 | wxMenuBar * _arg0; | |
10451 | int _arg1; | |
10452 | bool _arg2; | |
10453 | PyObject * _argo0 = 0; | |
10454 | int tempbool2; | |
10455 | char *_kwnames[] = { "self","id","enable", NULL }; | |
10456 | ||
10457 | self = self; | |
faeb124b | 10458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
b1462dfa RD |
10459 | return NULL; |
10460 | if (_argo0) { | |
10461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
10464 | return NULL; | |
10465 | } | |
10466 | } | |
10467 | _arg2 = (bool ) tempbool2; | |
cf694132 | 10468 | { |
474c48f9 | 10469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10470 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 10471 | |
474c48f9 | 10472 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10473 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10474 | } Py_INCREF(Py_None); |
10475 | _resultobj = Py_None; | |
10476 | return _resultobj; | |
cf694132 | 10477 | } |
b1462dfa RD |
10478 | |
10479 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
10480 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10481 | PyObject * _resultobj; | |
10482 | wxMenuBar * _arg0; | |
10483 | int _arg1; | |
10484 | bool _arg2; | |
10485 | PyObject * _argo0 = 0; | |
10486 | int tempbool2; | |
10487 | char *_kwnames[] = { "self","id","check", NULL }; | |
10488 | ||
10489 | self = self; | |
faeb124b | 10490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
b1462dfa RD |
10491 | return NULL; |
10492 | if (_argo0) { | |
10493 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10494 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10495 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
10496 | return NULL; | |
10497 | } | |
10498 | } | |
10499 | _arg2 = (bool ) tempbool2; | |
10500 | { | |
474c48f9 | 10501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10502 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 10503 | |
474c48f9 | 10504 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10505 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10506 | } Py_INCREF(Py_None); |
10507 | _resultobj = Py_None; | |
cf694132 RD |
10508 | return _resultobj; |
10509 | } | |
10510 | ||
b1462dfa RD |
10511 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
10512 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10513 | PyObject * _resultobj; |
10514 | bool _result; | |
b1462dfa RD |
10515 | wxMenuBar * _arg0; |
10516 | int _arg1; | |
1d99702e | 10517 | PyObject * _argo0 = 0; |
b1462dfa | 10518 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10519 | |
10520 | self = self; | |
faeb124b | 10521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10522 | return NULL; |
1d99702e RD |
10523 | if (_argo0) { |
10524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10527 | return NULL; |
10528 | } | |
10529 | } | |
cf694132 | 10530 | { |
474c48f9 | 10531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10532 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 10533 | |
474c48f9 | 10534 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10535 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10536 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10537 | return _resultobj; |
10538 | } | |
10539 | ||
b1462dfa RD |
10540 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
10541 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10542 | PyObject * _resultobj; |
10543 | bool _result; | |
b1462dfa RD |
10544 | wxMenuBar * _arg0; |
10545 | int _arg1; | |
1d99702e | 10546 | PyObject * _argo0 = 0; |
b1462dfa | 10547 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10548 | |
10549 | self = self; | |
faeb124b | 10550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10551 | return NULL; |
1d99702e RD |
10552 | if (_argo0) { |
10553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10556 | return NULL; |
10557 | } | |
10558 | } | |
cf694132 | 10559 | { |
474c48f9 | 10560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10561 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 10562 | |
474c48f9 | 10563 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10564 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10565 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10566 | return _resultobj; |
10567 | } | |
10568 | ||
b1462dfa RD |
10569 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
10570 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10571 | PyObject * _resultobj; |
b1462dfa RD |
10572 | wxMenuBar * _arg0; |
10573 | int _arg1; | |
10574 | wxString * _arg2; | |
1d99702e | 10575 | PyObject * _argo0 = 0; |
b1462dfa RD |
10576 | PyObject * _obj2 = 0; |
10577 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
10578 | |
10579 | self = self; | |
faeb124b | 10580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 10581 | return NULL; |
1d99702e RD |
10582 | if (_argo0) { |
10583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10586 | return NULL; |
10587 | } | |
10588 | } | |
b1462dfa | 10589 | { |
c8bc7bb8 RD |
10590 | _arg2 = wxString_in_helper(_obj2); |
10591 | if (_arg2 == NULL) | |
b1462dfa | 10592 | return NULL; |
b1462dfa | 10593 | } |
cf694132 | 10594 | { |
474c48f9 | 10595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10596 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 10597 | |
474c48f9 | 10598 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10599 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10600 | } Py_INCREF(Py_None); |
10601 | _resultobj = Py_None; | |
10602 | { | |
10603 | if (_obj2) | |
10604 | delete _arg2; | |
10605 | } | |
8ab979d7 RD |
10606 | return _resultobj; |
10607 | } | |
10608 | ||
b1462dfa RD |
10609 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
10610 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10611 | PyObject * _resultobj; |
b1462dfa RD |
10612 | wxString * _result; |
10613 | wxMenuBar * _arg0; | |
10614 | int _arg1; | |
1d99702e | 10615 | PyObject * _argo0 = 0; |
b1462dfa | 10616 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10617 | |
10618 | self = self; | |
faeb124b | 10619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10620 | return NULL; |
1d99702e RD |
10621 | if (_argo0) { |
10622 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10623 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
10624 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
10625 | return NULL; | |
10626 | } | |
10627 | } | |
10628 | { | |
474c48f9 | 10629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10630 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 10631 | |
474c48f9 | 10632 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10633 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10634 | }{ |
c8bc7bb8 | 10635 | #if wxUSE_UNICODE |
b67a9327 | 10636 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10637 | #else |
eec92d76 | 10638 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10639 | #endif |
b1462dfa RD |
10640 | } |
10641 | { | |
10642 | delete _result; | |
10643 | } | |
10644 | return _resultobj; | |
10645 | } | |
10646 | ||
10647 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
10648 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10649 | PyObject * _resultobj; | |
10650 | wxMenuBar * _arg0; | |
10651 | int _arg1; | |
10652 | wxString * _arg2; | |
10653 | PyObject * _argo0 = 0; | |
10654 | PyObject * _obj2 = 0; | |
10655 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
10656 | ||
10657 | self = self; | |
faeb124b | 10658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
b1462dfa RD |
10659 | return NULL; |
10660 | if (_argo0) { | |
10661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
10664 | return NULL; | |
10665 | } | |
10666 | } | |
10667 | { | |
c8bc7bb8 RD |
10668 | _arg2 = wxString_in_helper(_obj2); |
10669 | if (_arg2 == NULL) | |
b1462dfa | 10670 | return NULL; |
b1462dfa RD |
10671 | } |
10672 | { | |
474c48f9 | 10673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10674 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 10675 | |
474c48f9 | 10676 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10677 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10678 | } Py_INCREF(Py_None); |
10679 | _resultobj = Py_None; | |
10680 | { | |
10681 | if (_obj2) | |
10682 | delete _arg2; | |
10683 | } | |
10684 | return _resultobj; | |
10685 | } | |
10686 | ||
10687 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
10688 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10689 | PyObject * _resultobj; | |
10690 | wxString * _result; | |
10691 | wxMenuBar * _arg0; | |
10692 | int _arg1; | |
10693 | PyObject * _argo0 = 0; | |
10694 | char *_kwnames[] = { "self","id", NULL }; | |
10695 | ||
10696 | self = self; | |
faeb124b | 10697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) |
b1462dfa RD |
10698 | return NULL; |
10699 | if (_argo0) { | |
10700 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10701 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
10702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
10703 | return NULL; |
10704 | } | |
10705 | } | |
cf694132 | 10706 | { |
474c48f9 | 10707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10708 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 10709 | |
474c48f9 | 10710 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10711 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10712 | }{ |
c8bc7bb8 | 10713 | #if wxUSE_UNICODE |
b67a9327 | 10714 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10715 | #else |
eec92d76 | 10716 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10717 | #endif |
b1462dfa RD |
10718 | } |
10719 | { | |
10720 | delete _result; | |
10721 | } | |
8ab979d7 RD |
10722 | return _resultobj; |
10723 | } | |
10724 | ||
9df61a29 RD |
10725 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
10726 | wxMenuItem *src; | |
10727 | wxObject *dest; | |
10728 | src = (wxMenuItem *) ptr; | |
10729 | dest = (wxObject *) src; | |
10730 | return (void *) dest; | |
10731 | } | |
10732 | ||
b1462dfa RD |
10733 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
10734 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10735 | PyObject * _resultobj; |
b1462dfa RD |
10736 | wxMenuItem * _result; |
10737 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 10738 | int _arg1 = (int ) wxID_SEPARATOR; |
9a74fcaf RD |
10739 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
10740 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 10741 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
b1462dfa | 10742 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 10743 | PyObject * _argo0 = 0; |
b1462dfa RD |
10744 | PyObject * _obj2 = 0; |
10745 | PyObject * _obj3 = 0; | |
b1462dfa | 10746 | PyObject * _argo5 = 0; |
a884bee5 | 10747 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 10748 | char _ptemp[128]; |
8ab979d7 RD |
10749 | |
10750 | self = self; | |
faeb124b | 10751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 10752 | return NULL; |
1d99702e RD |
10753 | if (_argo0) { |
10754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
10756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10757 | return NULL; | |
10758 | } | |
10759 | } | |
10760 | if (_obj2) | |
10761 | { | |
c8bc7bb8 RD |
10762 | _arg2 = wxString_in_helper(_obj2); |
10763 | if (_arg2 == NULL) | |
b1462dfa | 10764 | return NULL; |
b1462dfa RD |
10765 | } |
10766 | if (_obj3) | |
10767 | { | |
c8bc7bb8 RD |
10768 | _arg3 = wxString_in_helper(_obj3); |
10769 | if (_arg3 == NULL) | |
b1462dfa | 10770 | return NULL; |
b1462dfa | 10771 | } |
b1462dfa RD |
10772 | if (_argo5) { |
10773 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10774 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10776 | return NULL; |
10777 | } | |
10778 | } | |
cf694132 | 10779 | { |
474c48f9 | 10780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10781 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10782 | |
474c48f9 | 10783 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10784 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10785 | } if (_result) { |
10786 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10787 | _resultobj = Py_BuildValue("s",_ptemp); | |
10788 | } else { | |
10789 | Py_INCREF(Py_None); | |
10790 | _resultobj = Py_None; | |
10791 | } | |
10792 | { | |
10793 | if (_obj2) | |
10794 | delete _arg2; | |
10795 | } | |
10796 | { | |
10797 | if (_obj3) | |
10798 | delete _arg3; | |
10799 | } | |
8ab979d7 RD |
10800 | return _resultobj; |
10801 | } | |
10802 | ||
b1462dfa RD |
10803 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10804 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10805 | PyObject * _resultobj; |
b1462dfa | 10806 | wxMenu * _result; |
8ab979d7 | 10807 | wxMenuItem * _arg0; |
1d99702e | 10808 | PyObject * _argo0 = 0; |
efc5f224 | 10809 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10810 | |
10811 | self = self; | |
faeb124b | 10812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10813 | return NULL; |
1d99702e RD |
10814 | if (_argo0) { |
10815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10818 | return NULL; |
10819 | } | |
10820 | } | |
cf694132 | 10821 | { |
474c48f9 | 10822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10823 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10824 | |
474c48f9 | 10825 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10826 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10827 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10828 | return _resultobj; |
10829 | } | |
10830 | ||
1fded56b RD |
10831 | #define wxMenuItem_SetMenu(_swigobj,_swigarg0) (_swigobj->SetMenu(_swigarg0)) |
10832 | static PyObject *_wrap_wxMenuItem_SetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10833 | PyObject * _resultobj; | |
10834 | wxMenuItem * _arg0; | |
10835 | wxMenu * _arg1; | |
10836 | PyObject * _argo0 = 0; | |
10837 | PyObject * _argo1 = 0; | |
10838 | char *_kwnames[] = { "self","menu", NULL }; | |
10839 | ||
10840 | self = self; | |
faeb124b | 10841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetMenu",_kwnames,&_argo0,&_argo1)) |
1fded56b RD |
10842 | return NULL; |
10843 | if (_argo0) { | |
10844 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10845 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10846 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMenu. Expected _wxMenuItem_p."); | |
10847 | return NULL; | |
10848 | } | |
10849 | } | |
10850 | if (_argo1) { | |
10851 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10852 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetMenu. Expected _wxMenu_p."); | |
10854 | return NULL; | |
10855 | } | |
10856 | } | |
10857 | { | |
10858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10859 | wxMenuItem_SetMenu(_arg0,_arg1); | |
10860 | ||
10861 | wxPyEndAllowThreads(__tstate); | |
10862 | if (PyErr_Occurred()) return NULL; | |
10863 | } Py_INCREF(Py_None); | |
10864 | _resultobj = Py_None; | |
10865 | return _resultobj; | |
10866 | } | |
10867 | ||
2abc0a0f RD |
10868 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10869 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10870 | PyObject * _resultobj; |
10871 | wxMenuItem * _arg0; | |
2abc0a0f | 10872 | int _arg1; |
1d99702e | 10873 | PyObject * _argo0 = 0; |
2abc0a0f | 10874 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10875 | |
10876 | self = self; | |
faeb124b | 10877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10878 | return NULL; |
1d99702e RD |
10879 | if (_argo0) { |
10880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10883 | return NULL; |
10884 | } | |
10885 | } | |
cf694132 | 10886 | { |
474c48f9 | 10887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10888 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10889 | |
474c48f9 | 10890 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10891 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10892 | } Py_INCREF(Py_None); |
8ab979d7 | 10893 | _resultobj = Py_None; |
8ab979d7 RD |
10894 | return _resultobj; |
10895 | } | |
10896 | ||
b1462dfa RD |
10897 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10898 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10899 | PyObject * _resultobj; |
b1462dfa | 10900 | int _result; |
8ab979d7 | 10901 | wxMenuItem * _arg0; |
1d99702e | 10902 | PyObject * _argo0 = 0; |
efc5f224 | 10903 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10904 | |
10905 | self = self; | |
faeb124b | 10906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 10907 | return NULL; |
1d99702e RD |
10908 | if (_argo0) { |
10909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10912 | return NULL; |
10913 | } | |
10914 | } | |
8ab979d7 | 10915 | { |
474c48f9 | 10916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10917 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10918 | |
474c48f9 | 10919 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10920 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10921 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10922 | return _resultobj; |
10923 | } | |
10924 | ||
b1462dfa RD |
10925 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10926 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10927 | PyObject * _resultobj; |
b1462dfa | 10928 | bool _result; |
8ab979d7 | 10929 | wxMenuItem * _arg0; |
1d99702e | 10930 | PyObject * _argo0 = 0; |
efc5f224 | 10931 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10932 | |
10933 | self = self; | |
faeb124b | 10934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 10935 | return NULL; |
1d99702e RD |
10936 | if (_argo0) { |
10937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10940 | return NULL; |
10941 | } | |
10942 | } | |
8ab979d7 | 10943 | { |
474c48f9 | 10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10945 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10946 | |
474c48f9 | 10947 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10948 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10949 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10950 | return _resultobj; |
10951 | } | |
10952 | ||
b1462dfa RD |
10953 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10954 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10955 | PyObject * _resultobj; |
10956 | wxMenuItem * _arg0; | |
10957 | wxString * _arg1; | |
1d99702e | 10958 | PyObject * _argo0 = 0; |
8ab979d7 | 10959 | PyObject * _obj1 = 0; |
b1462dfa | 10960 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10961 | |
10962 | self = self; | |
faeb124b | 10963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10964 | return NULL; |
1d99702e RD |
10965 | if (_argo0) { |
10966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10969 | return NULL; |
10970 | } | |
10971 | } | |
10972 | { | |
c8bc7bb8 RD |
10973 | _arg1 = wxString_in_helper(_obj1); |
10974 | if (_arg1 == NULL) | |
2cd2fac8 | 10975 | return NULL; |
8ab979d7 | 10976 | } |
cf694132 | 10977 | { |
474c48f9 | 10978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10979 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10980 | |
474c48f9 | 10981 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10982 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10983 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10984 | _resultobj = Py_None; |
10985 | { | |
10986 | if (_obj1) | |
10987 | delete _arg1; | |
10988 | } | |
10989 | return _resultobj; | |
10990 | } | |
10991 | ||
b1462dfa RD |
10992 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10993 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10994 | PyObject * _resultobj; |
b1462dfa | 10995 | wxString * _result; |
8ab979d7 | 10996 | wxMenuItem * _arg0; |
1d99702e | 10997 | PyObject * _argo0 = 0; |
b1462dfa | 10998 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10999 | |
11000 | self = self; | |
faeb124b | 11001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 11002 | return NULL; |
1d99702e RD |
11003 | if (_argo0) { |
11004 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11005 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
11007 | return NULL; |
11008 | } | |
11009 | } | |
cf694132 | 11010 | { |
474c48f9 | 11011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11012 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 11013 | |
474c48f9 | 11014 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11015 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11016 | }{ |
c8bc7bb8 | 11017 | #if wxUSE_UNICODE |
b67a9327 | 11018 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11019 | #else |
eec92d76 | 11020 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11021 | #endif |
8ab979d7 | 11022 | } |
cf694132 | 11023 | { |
b1462dfa RD |
11024 | delete _result; |
11025 | } | |
cf694132 RD |
11026 | return _resultobj; |
11027 | } | |
11028 | ||
b1462dfa RD |
11029 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
11030 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11031 | PyObject * _resultobj; |
b1462dfa | 11032 | wxString * _result; |
cf694132 | 11033 | wxMenuItem * _arg0; |
1d99702e | 11034 | PyObject * _argo0 = 0; |
efc5f224 | 11035 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11036 | |
11037 | self = self; | |
faeb124b | 11038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 11039 | return NULL; |
1d99702e RD |
11040 | if (_argo0) { |
11041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
11044 | return NULL; |
11045 | } | |
11046 | } | |
11047 | { | |
474c48f9 | 11048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11049 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 11050 | _result = (wxString *) &_result_ref; |
cf694132 | 11051 | |
474c48f9 | 11052 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11053 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11054 | }{ |
c8bc7bb8 | 11055 | #if wxUSE_UNICODE |
b67a9327 | 11056 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11057 | #else |
eec92d76 | 11058 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11059 | #endif |
cf694132 | 11060 | } |
cf694132 RD |
11061 | return _resultobj; |
11062 | } | |
11063 | ||
a884bee5 RD |
11064 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
11065 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11066 | PyObject * _resultobj; | |
11067 | wxItemKind _result; | |
11068 | wxMenuItem * _arg0; | |
11069 | PyObject * _argo0 = 0; | |
11070 | char *_kwnames[] = { "self", NULL }; | |
11071 | ||
11072 | self = self; | |
faeb124b | 11073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) |
a884bee5 RD |
11074 | return NULL; |
11075 | if (_argo0) { | |
11076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
11079 | return NULL; | |
11080 | } | |
11081 | } | |
11082 | { | |
11083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11084 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
11085 | ||
11086 | wxPyEndAllowThreads(__tstate); | |
11087 | if (PyErr_Occurred()) return NULL; | |
11088 | } _resultobj = Py_BuildValue("i",_result); | |
11089 | return _resultobj; | |
11090 | } | |
11091 | ||
b1462dfa RD |
11092 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
11093 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11094 | PyObject * _resultobj; |
cf694132 | 11095 | wxMenuItem * _arg0; |
b1462dfa | 11096 | bool _arg1; |
1d99702e | 11097 | PyObject * _argo0 = 0; |
b1462dfa RD |
11098 | int tempbool1; |
11099 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
11100 | |
11101 | self = self; | |
faeb124b | 11102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 11103 | return NULL; |
1d99702e RD |
11104 | if (_argo0) { |
11105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
11108 | return NULL; |
11109 | } | |
11110 | } | |
b1462dfa | 11111 | _arg1 = (bool ) tempbool1; |
cf694132 | 11112 | { |
474c48f9 | 11113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11114 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 11115 | |
474c48f9 | 11116 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11117 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11118 | } Py_INCREF(Py_None); |
11119 | _resultobj = Py_None; | |
cf694132 RD |
11120 | return _resultobj; |
11121 | } | |
11122 | ||
b1462dfa RD |
11123 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
11124 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11125 | PyObject * _resultobj; |
b1462dfa | 11126 | bool _result; |
cf694132 | 11127 | wxMenuItem * _arg0; |
1d99702e | 11128 | PyObject * _argo0 = 0; |
efc5f224 | 11129 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11130 | |
11131 | self = self; | |
faeb124b | 11132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 11133 | return NULL; |
1d99702e RD |
11134 | if (_argo0) { |
11135 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11136 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11137 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
11138 | return NULL; |
11139 | } | |
11140 | } | |
11141 | { | |
474c48f9 | 11142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11143 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 11144 | |
474c48f9 | 11145 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11146 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11147 | } _resultobj = Py_BuildValue("i",_result); |
11148 | return _resultobj; | |
11149 | } | |
11150 | ||
b1462dfa RD |
11151 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
11152 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11153 | PyObject * _resultobj; |
b1462dfa | 11154 | bool _result; |
cf694132 | 11155 | wxMenuItem * _arg0; |
1d99702e | 11156 | PyObject * _argo0 = 0; |
efc5f224 | 11157 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11158 | |
11159 | self = self; | |
faeb124b | 11160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 11161 | return NULL; |
1d99702e RD |
11162 | if (_argo0) { |
11163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11166 | return NULL; |
11167 | } | |
11168 | } | |
11169 | { | |
474c48f9 | 11170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11171 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 11172 | |
474c48f9 | 11173 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11174 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11175 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
11176 | return _resultobj; |
11177 | } | |
11178 | ||
b1462dfa RD |
11179 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
11180 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11181 | PyObject * _resultobj; |
11182 | wxMenuItem * _arg0; | |
b1462dfa | 11183 | wxMenu * _arg1; |
1d99702e RD |
11184 | PyObject * _argo0 = 0; |
11185 | PyObject * _argo1 = 0; | |
b1462dfa | 11186 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
11187 | |
11188 | self = self; | |
faeb124b | 11189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 11190 | return NULL; |
1d99702e RD |
11191 | if (_argo0) { |
11192 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11193 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11194 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11195 | return NULL; |
11196 | } | |
11197 | } | |
1d99702e RD |
11198 | if (_argo1) { |
11199 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11200 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
11201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
11202 | return NULL; |
11203 | } | |
11204 | } | |
11205 | { | |
474c48f9 | 11206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11207 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 11208 | |
474c48f9 | 11209 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11210 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11211 | } Py_INCREF(Py_None); |
11212 | _resultobj = Py_None; | |
11213 | return _resultobj; | |
11214 | } | |
11215 | ||
b1462dfa RD |
11216 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
11217 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11218 | PyObject * _resultobj; |
b1462dfa | 11219 | wxMenu * _result; |
cf694132 | 11220 | wxMenuItem * _arg0; |
1d99702e | 11221 | PyObject * _argo0 = 0; |
b1462dfa | 11222 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11223 | |
11224 | self = self; | |
faeb124b | 11225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 11226 | return NULL; |
1d99702e RD |
11227 | if (_argo0) { |
11228 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11229 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11230 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
11231 | return NULL; |
11232 | } | |
11233 | } | |
b1462dfa | 11234 | { |
474c48f9 | 11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11236 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 11237 | |
474c48f9 | 11238 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11239 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 11240 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
11241 | return _resultobj; |
11242 | } | |
11243 | ||
11244 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
11245 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11246 | PyObject * _resultobj; | |
11247 | wxMenuItem * _arg0; | |
11248 | bool _arg1 = (bool ) TRUE; | |
11249 | PyObject * _argo0 = 0; | |
11250 | int tempbool1 = (int) TRUE; | |
11251 | char *_kwnames[] = { "self","enable", NULL }; | |
11252 | ||
11253 | self = self; | |
faeb124b | 11254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
11255 | return NULL; |
11256 | if (_argo0) { | |
11257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
11260 | return NULL; |
11261 | } | |
11262 | } | |
b1462dfa | 11263 | _arg1 = (bool ) tempbool1; |
cf694132 | 11264 | { |
474c48f9 | 11265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11266 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 11267 | |
474c48f9 | 11268 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11269 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11270 | } Py_INCREF(Py_None); |
11271 | _resultobj = Py_None; | |
11272 | return _resultobj; | |
11273 | } | |
11274 | ||
b1462dfa RD |
11275 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
11276 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 11277 | PyObject * _resultobj; |
b1462dfa | 11278 | bool _result; |
cf694132 | 11279 | wxMenuItem * _arg0; |
1d99702e | 11280 | PyObject * _argo0 = 0; |
b1462dfa | 11281 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
11282 | |
11283 | self = self; | |
faeb124b | 11284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 11285 | return NULL; |
1d99702e RD |
11286 | if (_argo0) { |
11287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
11290 | return NULL; |
11291 | } | |
11292 | } | |
11293 | { | |
474c48f9 | 11294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11295 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 11296 | |
474c48f9 | 11297 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11298 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11299 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
11300 | return _resultobj; |
11301 | } | |
11302 | ||
b1462dfa RD |
11303 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
11304 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11305 | PyObject * _resultobj; |
11306 | wxMenuItem * _arg0; | |
b1462dfa | 11307 | bool _arg1 = (bool ) TRUE; |
1d99702e | 11308 | PyObject * _argo0 = 0; |
b1462dfa RD |
11309 | int tempbool1 = (int) TRUE; |
11310 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
11311 | |
11312 | self = self; | |
faeb124b | 11313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 11314 | return NULL; |
1d99702e RD |
11315 | if (_argo0) { |
11316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
11319 | return NULL; |
11320 | } | |
11321 | } | |
b1462dfa | 11322 | _arg1 = (bool ) tempbool1; |
cf694132 | 11323 | { |
474c48f9 | 11324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11325 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 11326 | |
474c48f9 | 11327 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11328 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
11329 | } Py_INCREF(Py_None); |
11330 | _resultobj = Py_None; | |
11331 | return _resultobj; | |
11332 | } | |
11333 | ||
b1462dfa RD |
11334 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
11335 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11336 | PyObject * _resultobj; |
b1462dfa | 11337 | bool _result; |
2abc0a0f | 11338 | wxMenuItem * _arg0; |
2abc0a0f | 11339 | PyObject * _argo0 = 0; |
b1462dfa | 11340 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
11341 | |
11342 | self = self; | |
faeb124b | 11343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
11344 | return NULL; |
11345 | if (_argo0) { | |
11346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11349 | return NULL; |
11350 | } | |
11351 | } | |
2abc0a0f | 11352 | { |
474c48f9 | 11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11354 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 11355 | |
474c48f9 | 11356 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11357 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11358 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
11359 | return _resultobj; |
11360 | } | |
11361 | ||
b1462dfa RD |
11362 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
11363 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11364 | PyObject * _resultobj; |
2abc0a0f RD |
11365 | wxMenuItem * _arg0; |
11366 | PyObject * _argo0 = 0; | |
11367 | char *_kwnames[] = { "self", NULL }; | |
11368 | ||
11369 | self = self; | |
faeb124b | 11370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
11371 | return NULL; |
11372 | if (_argo0) { | |
11373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11376 | return NULL; |
11377 | } | |
11378 | } | |
11379 | { | |
474c48f9 | 11380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11381 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 11382 | |
474c48f9 | 11383 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11384 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11385 | } Py_INCREF(Py_None); |
11386 | _resultobj = Py_None; | |
2abc0a0f RD |
11387 | return _resultobj; |
11388 | } | |
11389 | ||
b1462dfa RD |
11390 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
11391 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
11392 | PyObject * _resultobj; |
11393 | wxMenuItem * _arg0; | |
b1462dfa | 11394 | wxString * _arg1; |
1d99702e | 11395 | PyObject * _argo0 = 0; |
b1462dfa RD |
11396 | PyObject * _obj1 = 0; |
11397 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
11398 | |
11399 | self = self; | |
faeb124b | 11400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 11401 | return NULL; |
1d99702e RD |
11402 | if (_argo0) { |
11403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
11406 | return NULL; |
11407 | } | |
11408 | } | |
b1462dfa | 11409 | { |
c8bc7bb8 RD |
11410 | _arg1 = wxString_in_helper(_obj1); |
11411 | if (_arg1 == NULL) | |
2cd2fac8 | 11412 | return NULL; |
b1462dfa | 11413 | } |
cf694132 | 11414 | { |
474c48f9 | 11415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11416 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 11417 | |
474c48f9 | 11418 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11419 | if (PyErr_Occurred()) return NULL; |
cf694132 | 11420 | } Py_INCREF(Py_None); |
8ab979d7 | 11421 | _resultobj = Py_None; |
b1462dfa RD |
11422 | { |
11423 | if (_obj1) | |
11424 | delete _arg1; | |
11425 | } | |
8ab979d7 RD |
11426 | return _resultobj; |
11427 | } | |
11428 | ||
b1462dfa RD |
11429 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
11430 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 11431 | PyObject * _resultobj; |
b1462dfa | 11432 | wxString * _result; |
be4d9c1f | 11433 | wxMenuItem * _arg0; |
1d99702e | 11434 | PyObject * _argo0 = 0; |
efc5f224 | 11435 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
11436 | |
11437 | self = self; | |
faeb124b | 11438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 11439 | return NULL; |
1d99702e RD |
11440 | if (_argo0) { |
11441 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11442 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
11444 | return NULL; |
11445 | } | |
11446 | } | |
cf694132 | 11447 | { |
474c48f9 | 11448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11449 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 11450 | _result = (wxString *) &_result_ref; |
cf694132 | 11451 | |
474c48f9 | 11452 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11453 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 11454 | }{ |
c8bc7bb8 | 11455 | #if wxUSE_UNICODE |
b67a9327 | 11456 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11457 | #else |
eec92d76 | 11458 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11459 | #endif |
b1462dfa | 11460 | } |
be4d9c1f RD |
11461 | return _resultobj; |
11462 | } | |
11463 | ||
b1462dfa RD |
11464 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
11465 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 11466 | PyObject * _resultobj; |
b1462dfa | 11467 | wxAcceleratorEntry * _result; |
2abc0a0f | 11468 | wxMenuItem * _arg0; |
2abc0a0f | 11469 | PyObject * _argo0 = 0; |
b1462dfa RD |
11470 | char *_kwnames[] = { "self", NULL }; |
11471 | char _ptemp[128]; | |
2abc0a0f RD |
11472 | |
11473 | self = self; | |
faeb124b | 11474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
11475 | return NULL; |
11476 | if (_argo0) { | |
11477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11480 | return NULL; |
11481 | } | |
11482 | } | |
2abc0a0f | 11483 | { |
474c48f9 | 11484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11485 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 11486 | |
474c48f9 | 11487 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11488 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
11489 | } if (_result) { |
11490 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
11491 | _resultobj = Py_BuildValue("s",_ptemp); | |
11492 | } else { | |
11493 | Py_INCREF(Py_None); | |
11494 | _resultobj = Py_None; | |
11495 | } | |
2abc0a0f RD |
11496 | return _resultobj; |
11497 | } | |
11498 | ||
b1462dfa RD |
11499 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
11500 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
11501 | PyObject * _resultobj; |
11502 | wxMenuItem * _arg0; | |
b1462dfa | 11503 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
11504 | PyObject * _argo0 = 0; |
11505 | PyObject * _argo1 = 0; | |
b1462dfa | 11506 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
11507 | |
11508 | self = self; | |
faeb124b | 11509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
11510 | return NULL; |
11511 | if (_argo0) { | |
11512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 11514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
11515 | return NULL; |
11516 | } | |
11517 | } | |
11518 | if (_argo1) { | |
11519 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
11520 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
11521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
11522 | return NULL; |
11523 | } | |
11524 | } | |
11525 | { | |
474c48f9 | 11526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11527 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 11528 | |
474c48f9 | 11529 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11530 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
11531 | } Py_INCREF(Py_None); |
11532 | _resultobj = Py_None; | |
11533 | return _resultobj; | |
11534 | } | |
11535 | ||
9c4165ad RD |
11536 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
11537 | PyObject * _resultobj; | |
11538 | wxString * _result; | |
11539 | wxString * _arg0; | |
11540 | PyObject * _obj0 = 0; | |
11541 | char *_kwnames[] = { "text", NULL }; | |
11542 | ||
11543 | self = self; | |
faeb124b | 11544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) |
9c4165ad RD |
11545 | return NULL; |
11546 | { | |
c8bc7bb8 RD |
11547 | _arg0 = wxString_in_helper(_obj0); |
11548 | if (_arg0 == NULL) | |
9c4165ad | 11549 | return NULL; |
9c4165ad RD |
11550 | } |
11551 | { | |
474c48f9 | 11552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11553 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
9c4165ad | 11554 | |
474c48f9 | 11555 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 11556 | if (PyErr_Occurred()) return NULL; |
9c4165ad | 11557 | }{ |
c8bc7bb8 | 11558 | #if wxUSE_UNICODE |
b67a9327 | 11559 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11560 | #else |
9c4165ad | 11561 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 11562 | #endif |
9c4165ad RD |
11563 | } |
11564 | { | |
11565 | if (_obj0) | |
11566 | delete _arg0; | |
11567 | } | |
11568 | { | |
11569 | delete _result; | |
11570 | } | |
11571 | return _resultobj; | |
11572 | } | |
11573 | ||
04c883f8 RD |
11574 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) |
11575 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11576 | PyObject * _resultobj; | |
11577 | wxMenuItem * _arg0; | |
11578 | wxBitmap * _arg1; | |
11579 | PyObject * _argo0 = 0; | |
11580 | PyObject * _argo1 = 0; | |
11581 | char *_kwnames[] = { "self","bitmap", NULL }; | |
11582 | ||
11583 | self = self; | |
faeb124b | 11584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) |
04c883f8 RD |
11585 | return NULL; |
11586 | if (_argo0) { | |
11587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
11590 | return NULL; | |
11591 | } | |
11592 | } | |
11593 | if (_argo1) { | |
b67a9327 | 11594 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { |
04c883f8 RD |
11595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); |
11596 | return NULL; | |
11597 | } | |
11598 | } | |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | wxMenuItem_SetBitmap(_arg0,*_arg1); | |
11602 | ||
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) return NULL; | |
11605 | } Py_INCREF(Py_None); | |
11606 | _resultobj = Py_None; | |
11607 | return _resultobj; | |
11608 | } | |
11609 | ||
11610 | #define wxMenuItem_GetBitmap(_swigobj) (_swigobj->GetBitmap()) | |
11611 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11612 | PyObject * _resultobj; | |
11613 | wxBitmap * _result; | |
11614 | wxMenuItem * _arg0; | |
11615 | PyObject * _argo0 = 0; | |
11616 | char *_kwnames[] = { "self", NULL }; | |
11617 | char _ptemp[128]; | |
11618 | ||
11619 | self = self; | |
faeb124b | 11620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBitmap",_kwnames,&_argo0)) |
04c883f8 RD |
11621 | return NULL; |
11622 | if (_argo0) { | |
11623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
11626 | return NULL; | |
11627 | } | |
11628 | } | |
11629 | { | |
11630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11631 | const wxBitmap & _result_ref = wxMenuItem_GetBitmap(_arg0); | |
11632 | _result = (wxBitmap *) &_result_ref; | |
11633 | ||
11634 | wxPyEndAllowThreads(__tstate); | |
11635 | if (PyErr_Occurred()) return NULL; | |
11636 | } if (_result) { | |
11637 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p"); | |
11638 | _resultobj = Py_BuildValue("s",_ptemp); | |
11639 | } else { | |
11640 | Py_INCREF(Py_None); | |
11641 | _resultobj = Py_None; | |
11642 | } | |
11643 | return _resultobj; | |
11644 | } | |
11645 | ||
8ab979d7 | 11646 | static PyMethodDef windowscMethods[] = { |
04c883f8 RD |
11647 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, |
11648 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
9c4165ad | 11649 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11650 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
11651 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11652 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11653 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11654 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11655 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11656 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11657 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11658 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11659 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11660 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 11661 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11662 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11663 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 | 11664 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11665 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
11666 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11667 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11668 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11669 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
11670 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b | 11671 | { "wxMenuItem_SetMenu", (PyCFunction) _wrap_wxMenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11672 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11673 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11674 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11675 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
11676 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11677 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
11678 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11679 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11680 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11681 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
11682 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11683 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 11684 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11685 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
11686 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11687 | { "wxMenuBar_IsEnabledTop", (PyCFunction) _wrap_wxMenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11688 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, |
11689 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11690 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11691 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11692 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11693 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11694 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
11695 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11696 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
11697 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11698 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11699 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11700 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11701 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11702 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11703 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11704 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11705 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11706 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11707 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11708 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11709 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
11710 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11711 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
11712 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11713 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11714 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11715 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11716 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11717 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11718 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
11719 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
3ef86e32 | 11720 | { "wxMenu_FindItemByPosition", (PyCFunction) _wrap_wxMenu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11721 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11722 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11723 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11724 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11725 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11726 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
11727 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
11728 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
11729 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11730 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11731 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11732 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11733 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11734 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11735 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11736 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11737 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11738 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11739 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11740 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 RD |
11741 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
11742 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11743 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
11744 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11745 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11746 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
8381e4cd | 11747 | { "wxScrolledWindow_SetScrollRate", (PyCFunction) _wrap_wxScrolledWindow_SetScrollRate, METH_VARARGS | METH_KEYWORDS }, |
49df1f52 | 11748 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
7a446686 RD |
11749 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11750 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
11751 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
11752 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
11753 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
11754 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11755 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11756 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 11757 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11758 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11759 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11760 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11761 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
11762 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
11763 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11764 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11765 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11766 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11767 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11768 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11769 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11770 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11771 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11772 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
11773 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11774 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
3ef86e32 RD |
11775 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
11776 | { "wxWindow_GetBorderFlags", (PyCFunction) _wrap_wxWindow_GetBorderFlags, METH_VARARGS | METH_KEYWORDS }, | |
1fded56b RD |
11777 | { "wxWindow_GetThemeEnabled", (PyCFunction) _wrap_wxWindow_GetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, |
11778 | { "wxWindow_SetThemeEnabled", (PyCFunction) _wrap_wxWindow_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS }, | |
94c16279 RD |
11779 | { "wxWindow_HasCapture", (PyCFunction) _wrap_wxWindow_HasCapture, METH_VARARGS | METH_KEYWORDS }, |
11780 | { "wxWindow_GetCapture", (PyCFunction) _wrap_wxWindow_GetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11781 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
11782 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
11783 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
12d1116b | 11784 | { "wxWindow_SetTmpDefaultItem", (PyCFunction) _wrap_wxWindow_SetTmpDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
1893b029 RD |
11785 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
11786 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
3ef86e32 RD |
11787 | { "wxWindow_UnregisterHotKey", (PyCFunction) _wrap_wxWindow_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS }, |
11788 | { "wxWindow_RegisterHotKey", (PyCFunction) _wrap_wxWindow_RegisterHotKey, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 11789 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
32c988a3 | 11790 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
11791 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
11792 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
11793 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
11794 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
11795 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
11796 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
11797 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
11798 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
11799 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
11800 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11801 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
11802 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
11803 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 11804 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
10be44ac RD |
11805 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
11806 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11807 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
11808 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11809 | { "wxWindow_GetAdjustedBestSize", (PyCFunction) _wrap_wxWindow_GetAdjustedBestSize, METH_VARARGS | METH_KEYWORDS }, |
49df1f52 | 11810 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11811 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11812 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
11813 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11814 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
11815 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
94082a71 RD |
11816 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
11817 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11818 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd | 11819 | { "wxWindow_SetSizerAndFit", (PyCFunction) _wrap_wxWindow_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11820 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11821 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
11822 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11823 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
11824 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11825 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11826 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11827 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11828 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11829 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11830 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11831 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11832 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
11833 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
11834 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11835 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 11836 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11837 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
298ae144 | 11838 | { "wxWindow_GetCursor", (PyCFunction) _wrap_wxWindow_GetCursor, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11839 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
11840 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11841 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11842 | { "wxWindow_GetBestVirtualSize", (PyCFunction) _wrap_wxWindow_GetBestVirtualSize, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd RD |
11843 | { "wxWindow_GetVirtualSizeTuple", (PyCFunction) _wrap_wxWindow_GetVirtualSizeTuple, METH_VARARGS | METH_KEYWORDS }, |
11844 | { "wxWindow_GetVirtualSize", (PyCFunction) _wrap_wxWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11845 | { "wxWindow_SetVirtualSizeWH", (PyCFunction) _wrap_wxWindow_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11846 | { "wxWindow_SetVirtualSize", (PyCFunction) _wrap_wxWindow_SetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
11847 | { "wxWindow_SetVirtualSizeHints", (PyCFunction) _wrap_wxWindow_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11848 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, |
2cd2fac8 | 11849 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11850 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
11851 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11852 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
11853 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11854 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11855 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
11856 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11857 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11858 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11859 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
8381e4cd | 11860 | { "wxWindow_SetFocusFromKbd", (PyCFunction) _wrap_wxWindow_SetFocusFromKbd, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11861 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11862 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11863 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
11864 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 11865 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11866 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11867 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
11868 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
11869 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
11870 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11871 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
298ae144 | 11872 | { "wxWindow_AddChild", (PyCFunction) _wrap_wxWindow_AddChild, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 11873 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11874 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
11875 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
11876 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
11877 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
5d413391 | 11878 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11879 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
11880 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11881 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
11882 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11883 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
11884 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11885 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
11886 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
11887 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
11888 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
11889 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
11890 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
11891 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11892 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11893 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 11894 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11895 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11896 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11897 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
11898 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11899 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
11900 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
11901 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11902 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11903 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11904 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11905 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11906 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11907 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11908 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11909 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11910 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11911 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11912 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11913 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11914 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11915 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11916 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 11917 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11918 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
11919 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11920 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11921 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11922 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 RD |
11923 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
11924 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11925 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11926 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11927 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11928 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11929 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11930 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
b67a9327 | 11931 | { "wxWindow_FitInside", (PyCFunction) _wrap_wxWindow_FitInside, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11932 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, |
11933 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11934 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
b67a9327 | 11935 | { "wxWindow_Disable", (PyCFunction) _wrap_wxWindow_Disable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11936 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, |
4dfaa61e | 11937 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11938 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11939 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11940 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11941 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11942 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
faeb124b | 11943 | { "wxWindow_ClearBackground", (PyCFunction) _wrap_wxWindow_ClearBackground, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11944 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11945 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11946 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11947 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11948 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11949 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11950 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11951 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11952 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0220cbc1 | 11953 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11954 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
11955 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11956 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11957 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11958 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11959 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11960 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11961 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11962 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11963 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11964 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11965 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11966 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11967 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11968 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11969 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11970 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11971 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11972 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
298ae144 RD |
11973 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, |
11974 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11975 | { "wxFindWindowById", (PyCFunction) _wrap_wxFindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
8ab979d7 RD |
11976 | { NULL, NULL } |
11977 | }; | |
1d99702e RD |
11978 | #ifdef __cplusplus |
11979 | } | |
11980 | #endif | |
11981 | /* | |
11982 | * This table is used by the pointer type-checker | |
11983 | */ | |
11984 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11985 | { "_signed_long","_long",0}, |
b1462dfa | 11986 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11987 | { "_wxPrintQuality","_int",0}, |
11988 | { "_wxPrintQuality","_signed_int",0}, | |
11989 | { "_wxPrintQuality","_unsigned_int",0}, | |
11990 | { "_wxPrintQuality","_wxWindowID",0}, | |
11991 | { "_wxPrintQuality","_uint",0}, | |
11992 | { "_wxPrintQuality","_EBool",0}, | |
11993 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11994 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11995 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11996 | { "_long","_unsigned_long",0}, |
11997 | { "_long","_signed_long",0}, | |
b1462dfa | 11998 | { "_size_t","_wxCoord",0}, |
1d99702e | 11999 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 12000 | { "_size_t","_time_t",0}, |
1d99702e RD |
12001 | { "_size_t","_unsigned_int",0}, |
12002 | { "_size_t","_int",0}, | |
12003 | { "_size_t","_wxWindowID",0}, | |
12004 | { "_size_t","_uint",0}, | |
1d99702e | 12005 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 12006 | { "_uint","_wxCoord",0}, |
1d99702e | 12007 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 12008 | { "_uint","_time_t",0}, |
1d99702e RD |
12009 | { "_uint","_size_t",0}, |
12010 | { "_uint","_unsigned_int",0}, | |
12011 | { "_uint","_int",0}, | |
12012 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 12013 | { "_wxChar","_char",0}, |
f6bcfd97 | 12014 | { "_char","_wxChar",0}, |
059a841c | 12015 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 12016 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
12017 | { "_EBool","_wxPrintQuality",0}, |
12018 | { "_EBool","_signed_int",0}, | |
12019 | { "_EBool","_int",0}, | |
12020 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 12021 | { "_unsigned_long","_long",0}, |
059a841c | 12022 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 12023 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
12024 | { "_signed_int","_wxPrintQuality",0}, |
12025 | { "_signed_int","_EBool",0}, | |
12026 | { "_signed_int","_wxWindowID",0}, | |
12027 | { "_signed_int","_int",0}, | |
1d99702e RD |
12028 | { "_WXTYPE","_short",0}, |
12029 | { "_WXTYPE","_signed_short",0}, | |
12030 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
12031 | { "_unsigned_short","_WXTYPE",0}, |
12032 | { "_unsigned_short","_short",0}, | |
9df61a29 | 12033 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9df61a29 | 12034 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9df61a29 | 12035 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9df61a29 | 12036 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9df61a29 | 12037 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9df61a29 | 12038 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9df61a29 | 12039 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9df61a29 | 12040 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9df61a29 | 12041 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
12042 | { "_signed_short","_WXTYPE",0}, |
12043 | { "_signed_short","_short",0}, | |
1d99702e | 12044 | { "_unsigned_char","_byte",0}, |
b1462dfa | 12045 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 12046 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 12047 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
12048 | { "_unsigned_int","_size_t",0}, |
12049 | { "_unsigned_int","_uint",0}, | |
12050 | { "_unsigned_int","_wxWindowID",0}, | |
12051 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
12052 | { "_short","_WXTYPE",0}, |
12053 | { "_short","_unsigned_short",0}, | |
12054 | { "_short","_signed_short",0}, | |
b1462dfa | 12055 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 12056 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 12057 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
12058 | { "_wxWindowID","_size_t",0}, |
12059 | { "_wxWindowID","_EBool",0}, | |
12060 | { "_wxWindowID","_uint",0}, | |
12061 | { "_wxWindowID","_int",0}, | |
12062 | { "_wxWindowID","_signed_int",0}, | |
12063 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 12064 | { "_int","_wxCoord",0}, |
1d99702e | 12065 | { "_int","_wxPrintQuality",0}, |
c368d904 | 12066 | { "_int","_time_t",0}, |
1d99702e RD |
12067 | { "_int","_size_t",0}, |
12068 | { "_int","_EBool",0}, | |
12069 | { "_int","_uint",0}, | |
12070 | { "_int","_wxWindowID",0}, | |
12071 | { "_int","_unsigned_int",0}, | |
12072 | { "_int","_signed_int",0}, | |
c368d904 RD |
12073 | { "_time_t","_wxCoord",0}, |
12074 | { "_time_t","_wxPrintQuality",0}, | |
12075 | { "_time_t","_unsigned_int",0}, | |
12076 | { "_time_t","_int",0}, | |
12077 | { "_time_t","_wxWindowID",0}, | |
12078 | { "_time_t","_uint",0}, | |
12079 | { "_time_t","_size_t",0}, | |
2f90df85 | 12080 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
12081 | { "_wxCoord","_int",0}, |
12082 | { "_wxCoord","_signed_int",0}, | |
12083 | { "_wxCoord","_unsigned_int",0}, | |
12084 | { "_wxCoord","_wxWindowID",0}, | |
12085 | { "_wxCoord","_uint",0}, | |
12086 | { "_wxCoord","_EBool",0}, | |
12087 | { "_wxCoord","_size_t",0}, | |
c368d904 | 12088 | { "_wxCoord","_time_t",0}, |
b1462dfa | 12089 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 12090 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 12091 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 12092 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 12093 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 12094 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 12095 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 12096 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 12097 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 12098 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 12099 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
12100 | {0,0,0}}; |
12101 | ||
8ab979d7 RD |
12102 | static PyObject *SWIG_globals; |
12103 | #ifdef __cplusplus | |
faeb124b | 12104 | extern "C" |
8ab979d7 | 12105 | #endif |
1d99702e | 12106 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
12107 | PyObject *m, *d; |
12108 | SWIG_globals = SWIG_newvarlink(); | |
12109 | m = Py_InitModule("windowsc", windowscMethods); | |
12110 | d = PyModule_GetDict(m); | |
1d99702e RD |
12111 | { |
12112 | int i; | |
12113 | for (i = 0; _swig_mapping[i].n1; i++) | |
12114 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
12115 | } | |
8ab979d7 | 12116 | } |