]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/msw/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
dbbb98cd | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
dbbb98cd | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
9416aa89 | 60 | #include <wx/tooltip.h> |
8ab979d7 | 61 | |
8ab979d7 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
f3d9dc1d | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
f3d9dc1d | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
f3d9dc1d | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
f3d9dc1d RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
f3d9dc1d RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
2f90df85 RD |
89 | class wxPyValidator : public wxValidator { |
90 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
91 | public: | |
92 | wxPyValidator() { | |
93 | } | |
2f90df85 RD |
94 | |
95 | ~wxPyValidator() { | |
96 | } | |
97 | ||
19a97bd6 | 98 | wxObject* Clone() const { |
694759cf RD |
99 | wxPyValidator* ptr = NULL; |
100 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 101 | |
4268f798 | 102 | wxPyBeginBlockThreads(); |
694759cf RD |
103 | if (self->m_myInst.findCallback("Clone")) { |
104 | PyObject* ro; | |
105 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
106 | if (ro) { |
107 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
108 | Py_DECREF(ro); | |
109 | } | |
694759cf | 110 | } |
4268f798 | 111 | wxPyEndBlockThreads(); |
19a97bd6 | 112 | |
694759cf RD |
113 | // This is very dangerous!!! But is the only way I could find |
114 | // to squash a memory leak. Currently it is okay, but if the | |
115 | // validator architecture in wxWindows ever changes, problems | |
116 | // could arise. | |
117 | delete self; | |
694759cf RD |
118 | return ptr; |
119 | } | |
2f90df85 | 120 | |
9416aa89 | 121 | |
2f90df85 RD |
122 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
123 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
124 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
125 | ||
126 | PYPRIVATE; | |
2f90df85 RD |
127 | }; |
128 | ||
129 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
130 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
131 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
132 | ||
133 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 134 | |
8ab979d7 | 135 | |
2f90df85 RD |
136 | wxWindow* wxWindow_FromHWND(unsigned long hWnd) { |
137 | wxWindow* win = new wxWindow; | |
138 | win->SetHWND(hWnd); | |
139 | win->SubclassWin(hWnd); | |
140 | return win; | |
141 | } | |
142 | #ifdef __cplusplus | |
143 | extern "C" { | |
144 | #endif | |
2f90df85 RD |
145 | static PyObject *_wrap_wxWindow_FromHWND(PyObject *self, PyObject *args, PyObject *kwargs) { |
146 | PyObject * _resultobj; | |
147 | wxWindow * _result; | |
148 | unsigned long _arg0; | |
149 | char *_kwnames[] = { "hWnd", NULL }; | |
2f90df85 RD |
150 | |
151 | self = self; | |
152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxWindow_FromHWND",_kwnames,&_arg0)) | |
153 | return NULL; | |
154 | { | |
4268f798 | 155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 156 | _result = (wxWindow *)wxWindow_FromHWND(_arg0); |
2f90df85 | 157 | |
4268f798 | 158 | wxPyEndAllowThreads(__tstate); |
493f1553 | 159 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 160 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
161 | return _resultobj; |
162 | } | |
163 | ||
9416aa89 RD |
164 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
165 | wxEvtHandler *src; | |
166 | wxObject *dest; | |
167 | src = (wxEvtHandler *) ptr; | |
168 | dest = (wxObject *) src; | |
169 | return (void *) dest; | |
170 | } | |
171 | ||
c368d904 RD |
172 | #define new_wxEvtHandler() (new wxEvtHandler()) |
173 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
174 | PyObject * _resultobj; | |
175 | wxEvtHandler * _result; | |
176 | char *_kwnames[] = { NULL }; | |
177 | char _ptemp[128]; | |
178 | ||
179 | self = self; | |
180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
181 | return NULL; | |
182 | { | |
4268f798 | 183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 184 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 185 | |
4268f798 | 186 | wxPyEndAllowThreads(__tstate); |
493f1553 | 187 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
188 | } if (_result) { |
189 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
190 | _resultobj = Py_BuildValue("s",_ptemp); | |
191 | } else { | |
192 | Py_INCREF(Py_None); | |
193 | _resultobj = Py_None; | |
194 | } | |
195 | return _resultobj; | |
196 | } | |
197 | ||
2f90df85 RD |
198 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
199 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
200 | PyObject * _resultobj; | |
201 | bool _result; | |
202 | wxEvtHandler * _arg0; | |
203 | wxEvent * _arg1; | |
204 | PyObject * _argo0 = 0; | |
205 | PyObject * _argo1 = 0; | |
206 | char *_kwnames[] = { "self","event", NULL }; | |
207 | ||
208 | self = self; | |
209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
210 | return NULL; | |
211 | if (_argo0) { | |
212 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
213 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
214 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
215 | return NULL; | |
216 | } | |
217 | } | |
218 | if (_argo1) { | |
219 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
220 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
222 | return NULL; | |
223 | } | |
224 | } | |
225 | { | |
4268f798 | 226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 227 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 228 | |
4268f798 | 229 | wxPyEndAllowThreads(__tstate); |
493f1553 | 230 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
231 | } _resultobj = Py_BuildValue("i",_result); |
232 | return _resultobj; | |
233 | } | |
234 | ||
f6bcfd97 BP |
235 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
236 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
237 | PyObject * _resultobj; | |
238 | wxEvtHandler * _arg0; | |
239 | wxEvent * _arg1; | |
240 | PyObject * _argo0 = 0; | |
241 | PyObject * _argo1 = 0; | |
242 | char *_kwnames[] = { "self","event", NULL }; | |
243 | ||
244 | self = self; | |
245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
246 | return NULL; | |
247 | if (_argo0) { | |
248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
251 | return NULL; | |
252 | } | |
253 | } | |
254 | if (_argo1) { | |
255 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
256 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
258 | return NULL; | |
259 | } | |
260 | } | |
261 | { | |
4268f798 | 262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 263 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 264 | |
4268f798 | 265 | wxPyEndAllowThreads(__tstate); |
493f1553 | 266 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
267 | } Py_INCREF(Py_None); |
268 | _resultobj = Py_None; | |
269 | return _resultobj; | |
270 | } | |
271 | ||
2f90df85 RD |
272 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
273 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
274 | PyObject * _resultobj; | |
275 | bool _result; | |
276 | wxEvtHandler * _arg0; | |
277 | PyObject * _argo0 = 0; | |
278 | char *_kwnames[] = { "self", NULL }; | |
279 | ||
280 | self = self; | |
281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
282 | return NULL; | |
283 | if (_argo0) { | |
284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
287 | return NULL; | |
288 | } | |
289 | } | |
290 | { | |
4268f798 | 291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 292 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 293 | |
4268f798 | 294 | wxPyEndAllowThreads(__tstate); |
493f1553 | 295 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
296 | } _resultobj = Py_BuildValue("i",_result); |
297 | return _resultobj; | |
298 | } | |
299 | ||
300 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
301 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
302 | PyObject * _resultobj; | |
303 | wxEvtHandler * _arg0; | |
304 | bool _arg1; | |
305 | PyObject * _argo0 = 0; | |
306 | int tempbool1; | |
307 | char *_kwnames[] = { "self","enabled", NULL }; | |
308 | ||
309 | self = self; | |
310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
311 | return NULL; | |
312 | if (_argo0) { | |
313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
316 | return NULL; | |
317 | } | |
318 | } | |
319 | _arg1 = (bool ) tempbool1; | |
320 | { | |
4268f798 | 321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 322 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 323 | |
4268f798 | 324 | wxPyEndAllowThreads(__tstate); |
493f1553 | 325 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
326 | } Py_INCREF(Py_None); |
327 | _resultobj = Py_None; | |
328 | return _resultobj; | |
329 | } | |
330 | ||
331 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
332 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
333 | PyObject * _resultobj; | |
334 | wxEvtHandler * _result; | |
335 | wxEvtHandler * _arg0; | |
336 | PyObject * _argo0 = 0; | |
337 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
338 | |
339 | self = self; | |
340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
341 | return NULL; | |
342 | if (_argo0) { | |
343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
346 | return NULL; | |
347 | } | |
348 | } | |
349 | { | |
4268f798 | 350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 351 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 352 | |
4268f798 | 353 | wxPyEndAllowThreads(__tstate); |
493f1553 | 354 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 355 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
356 | return _resultobj; |
357 | } | |
358 | ||
359 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
360 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
361 | PyObject * _resultobj; | |
362 | wxEvtHandler * _result; | |
363 | wxEvtHandler * _arg0; | |
364 | PyObject * _argo0 = 0; | |
365 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
366 | |
367 | self = self; | |
368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
369 | return NULL; | |
370 | if (_argo0) { | |
371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
374 | return NULL; | |
375 | } | |
376 | } | |
377 | { | |
4268f798 | 378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 379 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 380 | |
4268f798 | 381 | wxPyEndAllowThreads(__tstate); |
493f1553 | 382 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 383 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
384 | return _resultobj; |
385 | } | |
386 | ||
387 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
388 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
389 | PyObject * _resultobj; | |
390 | wxEvtHandler * _arg0; | |
391 | wxEvtHandler * _arg1; | |
392 | PyObject * _argo0 = 0; | |
393 | PyObject * _argo1 = 0; | |
394 | char *_kwnames[] = { "self","handler", NULL }; | |
395 | ||
396 | self = self; | |
397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
398 | return NULL; | |
399 | if (_argo0) { | |
400 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
401 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
402 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
403 | return NULL; | |
404 | } | |
405 | } | |
406 | if (_argo1) { | |
407 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
408 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
409 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
410 | return NULL; | |
411 | } | |
412 | } | |
413 | { | |
4268f798 | 414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 415 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 416 | |
4268f798 | 417 | wxPyEndAllowThreads(__tstate); |
493f1553 | 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_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
425 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
426 | PyObject * _resultobj; | |
427 | wxEvtHandler * _arg0; | |
428 | wxEvtHandler * _arg1; | |
429 | PyObject * _argo0 = 0; | |
430 | PyObject * _argo1 = 0; | |
431 | char *_kwnames[] = { "self","handler", NULL }; | |
432 | ||
433 | self = self; | |
434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
435 | return NULL; | |
436 | if (_argo0) { | |
437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
440 | return NULL; | |
441 | } | |
442 | } | |
443 | if (_argo1) { | |
444 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
445 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
447 | return NULL; | |
448 | } | |
449 | } | |
450 | { | |
4268f798 | 451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 452 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 453 | |
4268f798 | 454 | wxPyEndAllowThreads(__tstate); |
493f1553 | 455 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
456 | } Py_INCREF(Py_None); |
457 | _resultobj = Py_None; | |
458 | return _resultobj; | |
459 | } | |
460 | ||
461 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
462 | if (PyCallable_Check(func)) { | |
463 | self->Connect(id, lastId, eventType, | |
464 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
465 | new wxPyCallback(func)); | |
466 | } | |
25b00b4e RD |
467 | else if (func == Py_None) { |
468 | self->Disconnect(id, lastId, eventType, | |
469 | (wxObjectEventFunction) | |
470 | &wxPyCallback::EventThunker); | |
471 | } | |
472 | else { | |
473 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
474 | } | |
2f90df85 RD |
475 | } |
476 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
477 | PyObject * _resultobj; | |
478 | wxEvtHandler * _arg0; | |
479 | int _arg1; | |
480 | int _arg2; | |
481 | int _arg3; | |
482 | PyObject * _arg4; | |
483 | PyObject * _argo0 = 0; | |
484 | PyObject * _obj4 = 0; | |
485 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
486 | ||
487 | self = self; | |
488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
489 | return NULL; | |
490 | if (_argo0) { | |
491 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
492 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
493 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
494 | return NULL; | |
495 | } | |
496 | } | |
497 | { | |
498 | _arg4 = _obj4; | |
499 | } | |
500 | { | |
4268f798 | 501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 502 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 503 | |
4268f798 | 504 | wxPyEndAllowThreads(__tstate); |
493f1553 | 505 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
506 | } Py_INCREF(Py_None); |
507 | _resultobj = Py_None; | |
508 | return _resultobj; | |
509 | } | |
510 | ||
6999b0d8 RD |
511 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
512 | return self->Disconnect(id, lastId, eventType, | |
513 | (wxObjectEventFunction) | |
514 | &wxPyCallback::EventThunker); | |
515 | } | |
516 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
517 | PyObject * _resultobj; | |
518 | bool _result; | |
519 | wxEvtHandler * _arg0; | |
520 | int _arg1; | |
521 | int _arg2 = (int ) -1; | |
522 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
523 | PyObject * _argo0 = 0; | |
524 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
525 | ||
526 | self = self; | |
527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
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_Disconnect. Expected _wxEvtHandler_p."); | |
533 | return NULL; | |
534 | } | |
535 | } | |
536 | { | |
4268f798 | 537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 538 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 539 | |
4268f798 | 540 | wxPyEndAllowThreads(__tstate); |
493f1553 | 541 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
542 | } _resultobj = Py_BuildValue("i",_result); |
543 | return _resultobj; | |
544 | } | |
545 | ||
0122b7e3 RD |
546 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
547 | self->SetClientObject(new wxPyClientData(_self)); | |
548 | } | |
549 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
550 | PyObject * _resultobj; | |
551 | wxEvtHandler * _arg0; | |
552 | PyObject * _arg1; | |
553 | PyObject * _argo0 = 0; | |
554 | PyObject * _obj1 = 0; | |
555 | char *_kwnames[] = { "self","_self", NULL }; | |
556 | ||
557 | self = self; | |
558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
559 | return NULL; | |
560 | if (_argo0) { | |
561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
564 | return NULL; | |
565 | } | |
566 | } | |
567 | { | |
568 | _arg1 = _obj1; | |
569 | } | |
570 | { | |
4268f798 | 571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 572 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0122b7e3 | 573 | |
4268f798 | 574 | wxPyEndAllowThreads(__tstate); |
0122b7e3 RD |
575 | if (PyErr_Occurred()) return NULL; |
576 | } Py_INCREF(Py_None); | |
577 | _resultobj = Py_None; | |
578 | return _resultobj; | |
579 | } | |
580 | ||
2f90df85 RD |
581 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
582 | wxValidator *src; | |
583 | wxEvtHandler *dest; | |
584 | src = (wxValidator *) ptr; | |
585 | dest = (wxEvtHandler *) src; | |
586 | return (void *) dest; | |
587 | } | |
588 | ||
9416aa89 RD |
589 | static void *SwigwxValidatorTowxObject(void *ptr) { |
590 | wxValidator *src; | |
591 | wxObject *dest; | |
592 | src = (wxValidator *) ptr; | |
593 | dest = (wxObject *) src; | |
594 | return (void *) dest; | |
595 | } | |
596 | ||
2f90df85 RD |
597 | #define new_wxValidator() (new wxValidator()) |
598 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
599 | PyObject * _resultobj; | |
600 | wxValidator * _result; | |
601 | char *_kwnames[] = { NULL }; | |
602 | char _ptemp[128]; | |
603 | ||
604 | self = self; | |
605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
606 | return NULL; | |
607 | { | |
4268f798 | 608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 609 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 610 | |
4268f798 | 611 | wxPyEndAllowThreads(__tstate); |
493f1553 | 612 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
613 | } if (_result) { |
614 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
615 | _resultobj = Py_BuildValue("s",_ptemp); | |
616 | } else { | |
617 | Py_INCREF(Py_None); | |
618 | _resultobj = Py_None; | |
619 | } | |
620 | return _resultobj; | |
af309447 | 621 | } |
2f90df85 RD |
622 | |
623 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
624 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 625 | PyObject * _resultobj; |
2f90df85 RD |
626 | wxValidator * _result; |
627 | wxValidator * _arg0; | |
628 | PyObject * _argo0 = 0; | |
629 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
630 | |
631 | self = self; | |
2f90df85 RD |
632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
633 | return NULL; | |
634 | if (_argo0) { | |
635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 638 | return NULL; |
2f90df85 RD |
639 | } |
640 | } | |
cf694132 | 641 | { |
4268f798 | 642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 643 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 644 | |
4268f798 | 645 | wxPyEndAllowThreads(__tstate); |
493f1553 | 646 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 647 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
648 | return _resultobj; |
649 | } | |
650 | ||
2f90df85 RD |
651 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
652 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
653 | PyObject * _resultobj; |
654 | wxWindow * _result; | |
2f90df85 RD |
655 | wxValidator * _arg0; |
656 | PyObject * _argo0 = 0; | |
657 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
658 | |
659 | self = self; | |
2f90df85 RD |
660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
661 | return NULL; | |
662 | if (_argo0) { | |
663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 666 | return NULL; |
2f90df85 RD |
667 | } |
668 | } | |
cf694132 | 669 | { |
4268f798 | 670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 671 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 672 | |
4268f798 | 673 | wxPyEndAllowThreads(__tstate); |
493f1553 | 674 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 675 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
676 | return _resultobj; |
677 | } | |
678 | ||
2f90df85 RD |
679 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
680 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 681 | PyObject * _resultobj; |
2f90df85 RD |
682 | wxValidator * _arg0; |
683 | wxWindow * _arg1; | |
1d99702e RD |
684 | PyObject * _argo0 = 0; |
685 | PyObject * _argo1 = 0; | |
2f90df85 | 686 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
687 | |
688 | self = self; | |
2f90df85 | 689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 690 | return NULL; |
1d99702e RD |
691 | if (_argo0) { |
692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
695 | return NULL; |
696 | } | |
697 | } | |
1d99702e RD |
698 | if (_argo1) { |
699 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
700 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
701 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
702 | return NULL; |
703 | } | |
704 | } | |
705 | { | |
4268f798 | 706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 707 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 708 | |
4268f798 | 709 | wxPyEndAllowThreads(__tstate); |
493f1553 | 710 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
711 | } Py_INCREF(Py_None); |
712 | _resultobj = Py_None; | |
cf694132 RD |
713 | return _resultobj; |
714 | } | |
715 | ||
9416aa89 RD |
716 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
717 | PyObject * _resultobj; | |
718 | bool _result; | |
719 | char *_kwnames[] = { NULL }; | |
720 | ||
721 | self = self; | |
722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
723 | return NULL; | |
724 | { | |
4268f798 | 725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 726 | _result = (bool )wxValidator::IsSilent(); |
9416aa89 | 727 | |
4268f798 | 728 | wxPyEndAllowThreads(__tstate); |
493f1553 | 729 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
730 | } _resultobj = Py_BuildValue("i",_result); |
731 | return _resultobj; | |
732 | } | |
733 | ||
734 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
735 | PyObject * _resultobj; | |
736 | int _arg0 = (int ) TRUE; | |
737 | char *_kwnames[] = { "doIt", NULL }; | |
738 | ||
739 | self = self; | |
740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
741 | return NULL; | |
742 | { | |
4268f798 | 743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 744 | wxValidator::SetBellOnError(_arg0); |
9416aa89 | 745 | |
4268f798 | 746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 747 | if (PyErr_Occurred()) return NULL; |
9416aa89 RD |
748 | } Py_INCREF(Py_None); |
749 | _resultobj = Py_None; | |
750 | return _resultobj; | |
751 | } | |
752 | ||
2f90df85 RD |
753 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
754 | wxPyValidator *src; | |
755 | wxValidator *dest; | |
756 | src = (wxPyValidator *) ptr; | |
757 | dest = (wxValidator *) src; | |
758 | return (void *) dest; | |
759 | } | |
760 | ||
761 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
762 | wxPyValidator *src; | |
763 | wxEvtHandler *dest; | |
764 | src = (wxPyValidator *) ptr; | |
765 | dest = (wxEvtHandler *) src; | |
766 | return (void *) dest; | |
767 | } | |
768 | ||
9416aa89 RD |
769 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
770 | wxPyValidator *src; | |
771 | wxObject *dest; | |
772 | src = (wxPyValidator *) ptr; | |
773 | dest = (wxObject *) src; | |
774 | return (void *) dest; | |
775 | } | |
776 | ||
2f90df85 RD |
777 | #define new_wxPyValidator() (new wxPyValidator()) |
778 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
779 | PyObject * _resultobj; | |
780 | wxPyValidator * _result; | |
781 | char *_kwnames[] = { NULL }; | |
782 | char _ptemp[128]; | |
783 | ||
784 | self = self; | |
785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
786 | return NULL; | |
787 | { | |
4268f798 | 788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 789 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 790 | |
4268f798 | 791 | wxPyEndAllowThreads(__tstate); |
493f1553 | 792 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
793 | } if (_result) { |
794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
795 | _resultobj = Py_BuildValue("s",_ptemp); | |
796 | } else { | |
797 | Py_INCREF(Py_None); | |
798 | _resultobj = Py_None; | |
799 | } | |
800 | return _resultobj; | |
801 | } | |
802 | ||
0122b7e3 RD |
803 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
804 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 805 | PyObject * _resultobj; |
2f90df85 RD |
806 | wxPyValidator * _arg0; |
807 | PyObject * _arg1; | |
f6bcfd97 BP |
808 | PyObject * _arg2; |
809 | int _arg3 = (int ) TRUE; | |
1d99702e | 810 | PyObject * _argo0 = 0; |
2f90df85 | 811 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
812 | PyObject * _obj2 = 0; |
813 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
814 | |
815 | self = self; | |
0122b7e3 | 816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 817 | return NULL; |
1d99702e RD |
818 | if (_argo0) { |
819 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 820 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0122b7e3 | 821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
822 | return NULL; |
823 | } | |
824 | } | |
825 | { | |
2f90df85 | 826 | _arg1 = _obj1; |
8ab979d7 | 827 | } |
f6bcfd97 BP |
828 | { |
829 | _arg2 = _obj2; | |
830 | } | |
cf694132 | 831 | { |
4268f798 | 832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 833 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 834 | |
4268f798 | 835 | wxPyEndAllowThreads(__tstate); |
493f1553 | 836 | if (PyErr_Occurred()) return NULL; |
cf694132 | 837 | } Py_INCREF(Py_None); |
8ab979d7 RD |
838 | _resultobj = Py_None; |
839 | return _resultobj; | |
840 | } | |
841 | ||
842 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
843 | wxWindow *src; | |
844 | wxEvtHandler *dest; | |
845 | src = (wxWindow *) ptr; | |
846 | dest = (wxEvtHandler *) src; | |
847 | return (void *) dest; | |
848 | } | |
849 | ||
9416aa89 RD |
850 | static void *SwigwxWindowTowxObject(void *ptr) { |
851 | wxWindow *src; | |
852 | wxObject *dest; | |
853 | src = (wxWindow *) ptr; | |
854 | dest = (wxObject *) src; | |
855 | return (void *) dest; | |
856 | } | |
857 | ||
8ab979d7 | 858 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 859 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
860 | PyObject * _resultobj; |
861 | wxWindow * _result; | |
862 | wxWindow * _arg0; | |
863 | wxWindowID _arg1; | |
e508a2b6 RD |
864 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
865 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
866 | long _arg4 = (long ) 0; |
867 | char * _arg5 = (char *) "panel"; | |
868 | PyObject * _argo0 = 0; | |
2f90df85 RD |
869 | wxPoint temp; |
870 | PyObject * _obj2 = 0; | |
871 | wxSize temp0; | |
872 | PyObject * _obj3 = 0; | |
efc5f224 | 873 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
874 | char _ptemp[128]; |
875 | ||
876 | self = self; | |
2f90df85 | 877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 878 | return NULL; |
1d99702e RD |
879 | if (_argo0) { |
880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
883 | return NULL; | |
884 | } | |
885 | } | |
2f90df85 RD |
886 | if (_obj2) |
887 | { | |
888 | _arg2 = &temp; | |
889 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 890 | return NULL; |
2f90df85 RD |
891 | } |
892 | if (_obj3) | |
893 | { | |
894 | _arg3 = &temp0; | |
895 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 896 | return NULL; |
2f90df85 | 897 | } |
cf694132 | 898 | { |
4268f798 | 899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 900 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 901 | |
4268f798 | 902 | wxPyEndAllowThreads(__tstate); |
493f1553 | 903 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
904 | } if (_result) { |
905 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
906 | _resultobj = Py_BuildValue("s",_ptemp); | |
907 | } else { | |
908 | Py_INCREF(Py_None); | |
909 | _resultobj = Py_None; | |
910 | } | |
8ab979d7 RD |
911 | return _resultobj; |
912 | } | |
913 | ||
09f3d4e6 RD |
914 | #define new_wxPreWindow() (new wxWindow()) |
915 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
916 | PyObject * _resultobj; | |
917 | wxWindow * _result; | |
918 | char *_kwnames[] = { NULL }; | |
919 | char _ptemp[128]; | |
920 | ||
921 | self = self; | |
922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
923 | return NULL; | |
924 | { | |
4268f798 | 925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 926 | _result = (wxWindow *)new_wxPreWindow(); |
09f3d4e6 | 927 | |
4268f798 | 928 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
929 | if (PyErr_Occurred()) return NULL; |
930 | } if (_result) { | |
931 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
932 | _resultobj = Py_BuildValue("s",_ptemp); | |
933 | } else { | |
934 | Py_INCREF(Py_None); | |
935 | _resultobj = Py_None; | |
936 | } | |
937 | return _resultobj; | |
938 | } | |
939 | ||
940 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
941 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
942 | PyObject * _resultobj; | |
943 | bool _result; | |
944 | wxWindow * _arg0; | |
945 | wxWindow * _arg1; | |
946 | wxWindowID _arg2; | |
947 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
948 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
949 | long _arg5 = (long ) 0; | |
950 | char * _arg6 = (char *) "panel"; | |
951 | PyObject * _argo0 = 0; | |
952 | PyObject * _argo1 = 0; | |
953 | wxPoint temp; | |
954 | PyObject * _obj3 = 0; | |
955 | wxSize temp0; | |
956 | PyObject * _obj4 = 0; | |
957 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
958 | ||
959 | self = self; | |
960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
961 | return NULL; | |
962 | if (_argo0) { | |
963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
966 | return NULL; | |
967 | } | |
968 | } | |
969 | if (_argo1) { | |
970 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
971 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
973 | return NULL; | |
974 | } | |
975 | } | |
976 | if (_obj3) | |
977 | { | |
978 | _arg3 = &temp; | |
979 | if (! wxPoint_helper(_obj3, &_arg3)) | |
980 | return NULL; | |
981 | } | |
982 | if (_obj4) | |
983 | { | |
984 | _arg4 = &temp0; | |
985 | if (! wxSize_helper(_obj4, &_arg4)) | |
986 | return NULL; | |
987 | } | |
988 | { | |
4268f798 | 989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 990 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
09f3d4e6 | 991 | |
4268f798 | 992 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
993 | if (PyErr_Occurred()) return NULL; |
994 | } _resultobj = Py_BuildValue("i",_result); | |
995 | return _resultobj; | |
996 | } | |
997 | ||
8ab979d7 | 998 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) |
efc5f224 | 999 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1000 | PyObject * _resultobj; |
1001 | wxWindow * _arg0; | |
1d99702e | 1002 | PyObject * _argo0 = 0; |
efc5f224 | 1003 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1004 | |
1005 | self = self; | |
efc5f224 | 1006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
8ab979d7 | 1007 | return NULL; |
1d99702e RD |
1008 | if (_argo0) { |
1009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
1012 | return NULL; | |
1013 | } | |
1014 | } | |
cf694132 | 1015 | { |
4268f798 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1017 | wxWindow_CaptureMouse(_arg0); |
cf694132 | 1018 | |
4268f798 | 1019 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1020 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1021 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1022 | _resultobj = Py_None; |
1023 | return _resultobj; | |
1024 | } | |
1025 | ||
1026 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
efc5f224 | 1027 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1028 | PyObject * _resultobj; |
1029 | wxWindow * _arg0; | |
1d99702e RD |
1030 | int _arg1 = (int ) wxBOTH; |
1031 | PyObject * _argo0 = 0; | |
efc5f224 | 1032 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1033 | |
1034 | self = self; | |
efc5f224 | 1035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1036 | return NULL; |
1d99702e RD |
1037 | if (_argo0) { |
1038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
1041 | return NULL; | |
1042 | } | |
1043 | } | |
cf694132 | 1044 | { |
4268f798 | 1045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1046 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1047 | |
4268f798 | 1048 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1049 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1050 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1051 | _resultobj = Py_None; |
1052 | return _resultobj; | |
1053 | } | |
1054 | ||
1055 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
efc5f224 | 1056 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1057 | PyObject * _resultobj; |
1058 | wxWindow * _arg0; | |
1d99702e RD |
1059 | int _arg1 = (int ) wxBOTH; |
1060 | PyObject * _argo0 = 0; | |
efc5f224 | 1061 | char *_kwnames[] = { "self","direction", NULL }; |
8ab979d7 RD |
1062 | |
1063 | self = self; | |
efc5f224 | 1064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1065 | return NULL; |
1d99702e RD |
1066 | if (_argo0) { |
1067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
1070 | return NULL; | |
1071 | } | |
1072 | } | |
cf694132 | 1073 | { |
4268f798 | 1074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1075 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1076 | |
4268f798 | 1077 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1078 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1079 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1080 | _resultobj = Py_None; |
1081 | return _resultobj; | |
1082 | } | |
1083 | ||
bb0054cd | 1084 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
efc5f224 | 1085 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1086 | PyObject * _resultobj; |
1087 | wxWindow * _arg0; | |
1d99702e RD |
1088 | int _arg1 = (int ) wxBOTH; |
1089 | PyObject * _argo0 = 0; | |
efc5f224 | 1090 | char *_kwnames[] = { "self","direction", NULL }; |
bb0054cd RD |
1091 | |
1092 | self = self; | |
efc5f224 | 1093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 1094 | return NULL; |
1d99702e RD |
1095 | if (_argo0) { |
1096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
1098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
1099 | return NULL; | |
1100 | } | |
1101 | } | |
1102 | { | |
4268f798 | 1103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1104 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1105 | |
4268f798 | 1106 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1107 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1108 | } Py_INCREF(Py_None); |
1109 | _resultobj = Py_None; | |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
1113 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
efc5f224 | 1114 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd 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 }; |
bb0054cd RD |
1120 | |
1121 | self = self; | |
efc5f224 | 1122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
bb0054cd | 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")) { | |
bb0054cd RD |
1127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
1128 | return NULL; | |
1129 | } | |
1130 | } | |
1131 | { | |
4268f798 | 1132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1133 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1134 | |
4268f798 | 1135 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1136 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
1137 | } Py_INCREF(Py_None); |
1138 | _resultobj = Py_None; | |
1139 | return _resultobj; | |
1140 | } | |
1141 | ||
3ca6a5f0 BP |
1142 | #define wxWindow_CentreOnScreen(_swigobj,_swigarg0) (_swigobj->CentreOnScreen(_swigarg0)) |
1143 | static PyObject *_wrap_wxWindow_CentreOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1144 | PyObject * _resultobj; | |
1145 | wxWindow * _arg0; | |
1146 | int _arg1 = (int ) wxBOTH; | |
1147 | PyObject * _argo0 = 0; | |
1148 | char *_kwnames[] = { "self","direction", NULL }; | |
1149 | ||
1150 | self = self; | |
1151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnScreen",_kwnames,&_argo0,&_arg1)) | |
1152 | return NULL; | |
1153 | if (_argo0) { | |
1154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnScreen. Expected _wxWindow_p."); | |
1157 | return NULL; | |
1158 | } | |
1159 | } | |
1160 | { | |
4268f798 | 1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1162 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1163 | |
4268f798 | 1164 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1165 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1166 | } Py_INCREF(Py_None); |
1167 | _resultobj = Py_None; | |
1168 | return _resultobj; | |
1169 | } | |
1170 | ||
1171 | #define wxWindow_CenterOnScreen(_swigobj,_swigarg0) (_swigobj->CenterOnScreen(_swigarg0)) | |
1172 | static PyObject *_wrap_wxWindow_CenterOnScreen(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1173 | PyObject * _resultobj; | |
1174 | wxWindow * _arg0; | |
1175 | int _arg1 = (int ) wxBOTH; | |
1176 | PyObject * _argo0 = 0; | |
1177 | char *_kwnames[] = { "self","direction", NULL }; | |
1178 | ||
1179 | self = self; | |
1180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnScreen",_kwnames,&_argo0,&_arg1)) | |
1181 | return NULL; | |
1182 | if (_argo0) { | |
1183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnScreen. Expected _wxWindow_p."); | |
1186 | return NULL; | |
1187 | } | |
1188 | } | |
1189 | { | |
4268f798 | 1190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1191 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1192 | |
4268f798 | 1193 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1194 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1195 | } Py_INCREF(Py_None); |
1196 | _resultobj = Py_None; | |
1197 | return _resultobj; | |
1198 | } | |
1199 | ||
d56cebe7 RD |
1200 | #define wxWindow_Clear(_swigobj) (_swigobj->Clear()) |
1201 | static PyObject *_wrap_wxWindow_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1202 | PyObject * _resultobj; | |
1203 | wxWindow * _arg0; | |
1204 | PyObject * _argo0 = 0; | |
1205 | char *_kwnames[] = { "self", NULL }; | |
1206 | ||
1207 | self = self; | |
1208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Clear",_kwnames,&_argo0)) | |
1209 | return NULL; | |
1210 | if (_argo0) { | |
1211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Clear. Expected _wxWindow_p."); | |
1214 | return NULL; | |
1215 | } | |
1216 | } | |
1217 | { | |
4268f798 | 1218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1219 | wxWindow_Clear(_arg0); |
d56cebe7 | 1220 | |
4268f798 | 1221 | wxPyEndAllowThreads(__tstate); |
d56cebe7 RD |
1222 | if (PyErr_Occurred()) return NULL; |
1223 | } Py_INCREF(Py_None); | |
1224 | _resultobj = Py_None; | |
1225 | return _resultobj; | |
1226 | } | |
1227 | ||
af309447 | 1228 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
efc5f224 | 1229 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1230 | PyObject * _resultobj; |
1231 | wxWindow * _arg0; | |
1232 | int * _arg1; | |
1233 | int * _arg2; | |
1d99702e | 1234 | PyObject * _argo0 = 0; |
8ab979d7 RD |
1235 | int temp; |
1236 | PyObject * _obj1 = 0; | |
1237 | int temp0; | |
1238 | PyObject * _obj2 = 0; | |
efc5f224 | 1239 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
1240 | |
1241 | self = self; | |
efc5f224 | 1242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 1243 | return NULL; |
1d99702e RD |
1244 | if (_argo0) { |
1245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
8ab979d7 RD |
1248 | return NULL; |
1249 | } | |
1250 | } | |
1251 | { | |
1252 | temp = (int) PyInt_AsLong(_obj1); | |
1253 | _arg1 = &temp; | |
1254 | } | |
1255 | { | |
1256 | temp0 = (int) PyInt_AsLong(_obj2); | |
1257 | _arg2 = &temp0; | |
1258 | } | |
cf694132 | 1259 | { |
4268f798 | 1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1261 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1262 | |
4268f798 | 1263 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1264 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1265 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1266 | _resultobj = Py_None; |
1267 | { | |
1268 | PyObject *o; | |
1269 | o = PyInt_FromLong((long) (*_arg1)); | |
1270 | _resultobj = t_output_helper(_resultobj, o); | |
1271 | } | |
1272 | { | |
1273 | PyObject *o; | |
1274 | o = PyInt_FromLong((long) (*_arg2)); | |
1275 | _resultobj = t_output_helper(_resultobj, o); | |
1276 | } | |
1277 | return _resultobj; | |
1278 | } | |
1279 | ||
af309447 | 1280 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
efc5f224 | 1281 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
1282 | PyObject * _resultobj; |
1283 | wxPoint * _result; | |
1284 | wxWindow * _arg0; | |
1285 | wxPoint * _arg1; | |
1d99702e | 1286 | PyObject * _argo0 = 0; |
2f90df85 RD |
1287 | wxPoint temp; |
1288 | PyObject * _obj1 = 0; | |
efc5f224 | 1289 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
1290 | char _ptemp[128]; |
1291 | ||
1292 | self = self; | |
2f90df85 | 1293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
af309447 | 1294 | return NULL; |
1d99702e RD |
1295 | if (_argo0) { |
1296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
1298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
1299 | return NULL; | |
1300 | } | |
1301 | } | |
2f90df85 RD |
1302 | { |
1303 | _arg1 = &temp; | |
1304 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 1305 | return NULL; |
2f90df85 | 1306 | } |
cf694132 | 1307 | { |
4268f798 | 1308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1309 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1310 | |
4268f798 | 1311 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1312 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1313 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
1314 | _resultobj = Py_BuildValue("s",_ptemp); |
1315 | return _resultobj; | |
1316 | } | |
1317 | ||
8ab979d7 | 1318 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
efc5f224 | 1319 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1320 | PyObject * _resultobj; |
1321 | bool _result; | |
1322 | wxWindow * _arg0; | |
1d99702e RD |
1323 | int _arg1 = (int ) FALSE; |
1324 | PyObject * _argo0 = 0; | |
efc5f224 | 1325 | char *_kwnames[] = { "self","force", NULL }; |
8ab979d7 RD |
1326 | |
1327 | self = self; | |
efc5f224 | 1328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1329 | return NULL; |
1d99702e RD |
1330 | if (_argo0) { |
1331 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1332 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1333 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1334 | return NULL; | |
1335 | } | |
1336 | } | |
cf694132 | 1337 | { |
4268f798 | 1338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1339 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1340 | |
4268f798 | 1341 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1342 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1343 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1344 | return _resultobj; |
1345 | } | |
1346 | ||
1347 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
efc5f224 | 1348 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1349 | PyObject * _resultobj; |
1350 | bool _result; | |
1351 | wxWindow * _arg0; | |
1d99702e | 1352 | PyObject * _argo0 = 0; |
efc5f224 | 1353 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1354 | |
1355 | self = self; | |
efc5f224 | 1356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 1357 | return NULL; |
1d99702e RD |
1358 | if (_argo0) { |
1359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1362 | return NULL; | |
1363 | } | |
1364 | } | |
cf694132 | 1365 | { |
4268f798 | 1366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1367 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1368 | |
4268f798 | 1369 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1370 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1371 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1372 | return _resultobj; |
1373 | } | |
1374 | ||
1375 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
efc5f224 | 1376 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1377 | PyObject * _resultobj; |
1378 | wxWindow * _arg0; | |
1d99702e | 1379 | PyObject * _argo0 = 0; |
efc5f224 | 1380 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1381 | |
1382 | self = self; | |
efc5f224 | 1383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
8ab979d7 | 1384 | return NULL; |
1d99702e RD |
1385 | if (_argo0) { |
1386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1389 | return NULL; | |
1390 | } | |
1391 | } | |
cf694132 | 1392 | { |
4268f798 | 1393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1394 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1395 | |
4268f798 | 1396 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1398 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1399 | _resultobj = Py_None; |
1400 | return _resultobj; | |
1401 | } | |
1402 | ||
ac346f50 RD |
1403 | #define wxWindow_IsBeingDeleted(_swigobj) (_swigobj->IsBeingDeleted()) |
1404 | static PyObject *_wrap_wxWindow_IsBeingDeleted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1405 | PyObject * _resultobj; | |
1406 | bool _result; | |
1407 | wxWindow * _arg0; | |
1408 | PyObject * _argo0 = 0; | |
1409 | char *_kwnames[] = { "self", NULL }; | |
1410 | ||
1411 | self = self; | |
1412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsBeingDeleted",_kwnames,&_argo0)) | |
1413 | return NULL; | |
1414 | if (_argo0) { | |
1415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsBeingDeleted. Expected _wxWindow_p."); | |
1418 | return NULL; | |
1419 | } | |
1420 | } | |
1421 | { | |
4268f798 | 1422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1423 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
ac346f50 | 1424 | |
4268f798 | 1425 | wxPyEndAllowThreads(__tstate); |
ac346f50 RD |
1426 | if (PyErr_Occurred()) return NULL; |
1427 | } _resultobj = Py_BuildValue("i",_result); | |
1428 | return _resultobj; | |
1429 | } | |
1430 | ||
8ab979d7 | 1431 | #define wxWindow_DragAcceptFiles(_swigobj,_swigarg0) (_swigobj->DragAcceptFiles(_swigarg0)) |
efc5f224 | 1432 | static PyObject *_wrap_wxWindow_DragAcceptFiles(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1433 | PyObject * _resultobj; |
1434 | wxWindow * _arg0; | |
1435 | bool _arg1; | |
1d99702e | 1436 | PyObject * _argo0 = 0; |
8ab979d7 | 1437 | int tempbool1; |
efc5f224 | 1438 | char *_kwnames[] = { "self","accept", NULL }; |
8ab979d7 RD |
1439 | |
1440 | self = self; | |
efc5f224 | 1441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_DragAcceptFiles",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1442 | return NULL; |
1d99702e RD |
1443 | if (_argo0) { |
1444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DragAcceptFiles. Expected _wxWindow_p."); |
1447 | return NULL; | |
1448 | } | |
1449 | } | |
1450 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1451 | { |
4268f798 | 1452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1453 | wxWindow_DragAcceptFiles(_arg0,_arg1); |
cf694132 | 1454 | |
4268f798 | 1455 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1457 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1458 | _resultobj = Py_None; |
1459 | return _resultobj; | |
1460 | } | |
1461 | ||
1462 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
efc5f224 | 1463 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1464 | PyObject * _resultobj; |
1465 | wxWindow * _arg0; | |
1466 | bool _arg1; | |
1d99702e | 1467 | PyObject * _argo0 = 0; |
8ab979d7 | 1468 | int tempbool1; |
efc5f224 | 1469 | char *_kwnames[] = { "self","enable", NULL }; |
8ab979d7 RD |
1470 | |
1471 | self = self; | |
efc5f224 | 1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 1473 | return NULL; |
1d99702e RD |
1474 | if (_argo0) { |
1475 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1476 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1478 | return NULL; | |
1479 | } | |
1480 | } | |
1481 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1482 | { |
4268f798 | 1483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1484 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1485 | |
4268f798 | 1486 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1487 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1488 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1489 | _resultobj = Py_None; |
1490 | return _resultobj; | |
1491 | } | |
1492 | ||
af309447 | 1493 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1494 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1495 | PyObject * _resultobj; |
1496 | wxWindow * _result; | |
1497 | wxWindow * _arg0; | |
1498 | long _arg1; | |
1d99702e | 1499 | PyObject * _argo0 = 0; |
efc5f224 | 1500 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1501 | |
1502 | self = self; | |
efc5f224 | 1503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 1504 | return NULL; |
1d99702e RD |
1505 | if (_argo0) { |
1506 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1507 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 1508 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1509 | return NULL; |
1510 | } | |
1511 | } | |
cf694132 | 1512 | { |
4268f798 | 1513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1514 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1515 | |
4268f798 | 1516 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1517 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1518 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1519 | return _resultobj; |
1520 | } | |
1521 | ||
1522 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1523 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1524 | PyObject * _resultobj; |
1525 | wxWindow * _result; | |
1526 | wxWindow * _arg0; | |
1527 | wxString * _arg1; | |
1d99702e | 1528 | PyObject * _argo0 = 0; |
8ab979d7 | 1529 | PyObject * _obj1 = 0; |
efc5f224 | 1530 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1531 | |
1532 | self = self; | |
efc5f224 | 1533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1534 | return NULL; |
1d99702e RD |
1535 | if (_argo0) { |
1536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1539 | return NULL; | |
1540 | } | |
1541 | } | |
1542 | { | |
c8bc7bb8 RD |
1543 | _arg1 = wxString_in_helper(_obj1); |
1544 | if (_arg1 == NULL) | |
8ab979d7 | 1545 | return NULL; |
8ab979d7 | 1546 | } |
cf694132 | 1547 | { |
4268f798 | 1548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1549 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1550 | |
4268f798 | 1551 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1552 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1553 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1554 | { |
1555 | if (_obj1) | |
1556 | delete _arg1; | |
1557 | } | |
1558 | return _resultobj; | |
1559 | } | |
1560 | ||
1561 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1562 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1563 | PyObject * _resultobj; |
1564 | wxWindow * _arg0; | |
1d99702e | 1565 | PyObject * _argo0 = 0; |
efc5f224 | 1566 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1567 | |
1568 | self = self; | |
efc5f224 | 1569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1570 | return NULL; |
1d99702e RD |
1571 | if (_argo0) { |
1572 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1573 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1575 | return NULL; | |
1576 | } | |
1577 | } | |
cf694132 | 1578 | { |
4268f798 | 1579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1580 | wxWindow_Fit(_arg0); |
cf694132 | 1581 | |
4268f798 | 1582 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1584 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1585 | _resultobj = Py_None; |
1586 | return _resultobj; | |
1587 | } | |
1588 | ||
1589 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1590 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1591 | PyObject * _resultobj; |
1592 | wxColour * _result; | |
1593 | wxWindow * _arg0; | |
1d99702e | 1594 | PyObject * _argo0 = 0; |
efc5f224 | 1595 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1596 | char _ptemp[128]; |
1597 | ||
1598 | self = self; | |
efc5f224 | 1599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1600 | return NULL; |
1d99702e RD |
1601 | if (_argo0) { |
1602 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1603 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1605 | return NULL; | |
1606 | } | |
1607 | } | |
cf694132 | 1608 | { |
4268f798 | 1609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1610 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1611 | |
4268f798 | 1612 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1613 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1614 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1615 | _resultobj = Py_BuildValue("s",_ptemp); |
1616 | return _resultobj; | |
1617 | } | |
1618 | ||
23bed520 RD |
1619 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1620 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject * _resultobj; | |
1622 | wxBorder _result; | |
1623 | wxWindow * _arg0; | |
1624 | PyObject * _argo0 = 0; | |
1625 | char *_kwnames[] = { "self", NULL }; | |
1626 | ||
1627 | self = self; | |
1628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1629 | return NULL; | |
1630 | if (_argo0) { | |
1631 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1632 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1633 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1634 | return NULL; | |
1635 | } | |
1636 | } | |
1637 | { | |
1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1639 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
23bed520 RD |
1640 | |
1641 | wxPyEndAllowThreads(__tstate); | |
1642 | if (PyErr_Occurred()) return NULL; | |
1643 | } _resultobj = Py_BuildValue("i",_result); | |
1644 | return _resultobj; | |
1645 | } | |
1646 | ||
d426c97e RD |
1647 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1648 | wxWindowList& list = self->GetChildren(); | |
1649 | return wxPy_ConvertList(&list, "wxWindow"); | |
1650 | } | |
1651 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1652 | PyObject * _resultobj; | |
1653 | PyObject * _result; | |
1654 | wxWindow * _arg0; | |
1655 | PyObject * _argo0 = 0; | |
1656 | char *_kwnames[] = { "self", NULL }; | |
1657 | ||
1658 | self = self; | |
1659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1660 | return NULL; | |
1661 | if (_argo0) { | |
1662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1665 | return NULL; | |
1666 | } | |
1667 | } | |
1668 | { | |
4268f798 | 1669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1670 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1671 | |
4268f798 | 1672 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1673 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1674 | }{ |
1675 | _resultobj = _result; | |
1676 | } | |
1677 | return _resultobj; | |
1678 | } | |
1679 | ||
8ab979d7 | 1680 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1681 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1682 | PyObject * _resultobj; |
1683 | int _result; | |
1684 | wxWindow * _arg0; | |
1d99702e | 1685 | PyObject * _argo0 = 0; |
efc5f224 | 1686 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1687 | |
1688 | self = self; | |
efc5f224 | 1689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1690 | return NULL; |
1d99702e RD |
1691 | if (_argo0) { |
1692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1695 | return NULL; | |
1696 | } | |
1697 | } | |
cf694132 | 1698 | { |
4268f798 | 1699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1700 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1701 | |
4268f798 | 1702 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1703 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1704 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1705 | return _resultobj; |
1706 | } | |
1707 | ||
1708 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1709 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1710 | PyObject * _resultobj; |
1711 | int _result; | |
1712 | wxWindow * _arg0; | |
1d99702e | 1713 | PyObject * _argo0 = 0; |
efc5f224 | 1714 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1715 | |
1716 | self = self; | |
efc5f224 | 1717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1718 | return NULL; |
1d99702e RD |
1719 | if (_argo0) { |
1720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1723 | return NULL; | |
1724 | } | |
1725 | } | |
cf694132 | 1726 | { |
4268f798 | 1727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1728 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1729 | |
4268f798 | 1730 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1731 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1732 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1733 | return _resultobj; |
1734 | } | |
1735 | ||
b8b8dda7 | 1736 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1737 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1738 | PyObject * _resultobj; |
1739 | wxWindow * _arg0; | |
1740 | int * _arg1; | |
1741 | int temp; | |
1742 | int * _arg2; | |
1743 | int temp0; | |
1d99702e | 1744 | PyObject * _argo0 = 0; |
efc5f224 | 1745 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1746 | |
1747 | self = self; | |
1748 | { | |
1749 | _arg1 = &temp; | |
1750 | } | |
1751 | { | |
1752 | _arg2 = &temp0; | |
1753 | } | |
efc5f224 | 1754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1755 | return NULL; |
1d99702e RD |
1756 | if (_argo0) { |
1757 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1758 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1759 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1760 | return NULL; |
1761 | } | |
1762 | } | |
cf694132 | 1763 | { |
4268f798 | 1764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1765 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1766 | |
4268f798 | 1767 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1768 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1769 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1770 | _resultobj = Py_None; |
1771 | { | |
1772 | PyObject *o; | |
1773 | o = PyInt_FromLong((long) (*_arg1)); | |
1774 | _resultobj = t_output_helper(_resultobj, o); | |
1775 | } | |
1776 | { | |
1777 | PyObject *o; | |
1778 | o = PyInt_FromLong((long) (*_arg2)); | |
1779 | _resultobj = t_output_helper(_resultobj, o); | |
1780 | } | |
1781 | return _resultobj; | |
1782 | } | |
1783 | ||
b8b8dda7 | 1784 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1785 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1786 | PyObject * _resultobj; |
1787 | wxSize * _result; | |
1788 | wxWindow * _arg0; | |
1d99702e | 1789 | PyObject * _argo0 = 0; |
efc5f224 | 1790 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1791 | char _ptemp[128]; |
1792 | ||
1793 | self = self; | |
efc5f224 | 1794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1795 | return NULL; |
1d99702e RD |
1796 | if (_argo0) { |
1797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1800 | return NULL; | |
1801 | } | |
1802 | } | |
cf694132 | 1803 | { |
4268f798 | 1804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1805 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1806 | |
4268f798 | 1807 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1808 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1809 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1810 | _resultobj = Py_BuildValue("s",_ptemp); |
1811 | return _resultobj; | |
1812 | } | |
1813 | ||
23bed520 RD |
1814 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1815 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1816 | PyObject * _resultobj; | |
1817 | wxPoint * _result; | |
1818 | wxWindow * _arg0; | |
1819 | PyObject * _argo0 = 0; | |
1820 | char *_kwnames[] = { "self", NULL }; | |
1821 | char _ptemp[128]; | |
1822 | ||
1823 | self = self; | |
1824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1825 | return NULL; | |
1826 | if (_argo0) { | |
1827 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1828 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1829 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1830 | return NULL; | |
1831 | } | |
1832 | } | |
1833 | { | |
1834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1835 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
23bed520 RD |
1836 | |
1837 | wxPyEndAllowThreads(__tstate); | |
1838 | if (PyErr_Occurred()) return NULL; | |
1839 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1840 | _resultobj = Py_BuildValue("s",_ptemp); | |
1841 | return _resultobj; | |
1842 | } | |
1843 | ||
1844 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1845 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1846 | PyObject * _resultobj; | |
1847 | wxRect * _result; | |
1848 | wxWindow * _arg0; | |
1849 | PyObject * _argo0 = 0; | |
1850 | char *_kwnames[] = { "self", NULL }; | |
1851 | char _ptemp[128]; | |
1852 | ||
1853 | self = self; | |
1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1855 | return NULL; | |
1856 | if (_argo0) { | |
1857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1860 | return NULL; | |
1861 | } | |
1862 | } | |
1863 | { | |
1864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1865 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
23bed520 RD |
1866 | |
1867 | wxPyEndAllowThreads(__tstate); | |
1868 | if (PyErr_Occurred()) return NULL; | |
1869 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1870 | _resultobj = Py_BuildValue("s",_ptemp); | |
1871 | return _resultobj; | |
1872 | } | |
1873 | ||
8ab979d7 | 1874 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1875 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1876 | PyObject * _resultobj; |
1877 | wxLayoutConstraints * _result; | |
1878 | wxWindow * _arg0; | |
1d99702e | 1879 | PyObject * _argo0 = 0; |
efc5f224 | 1880 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1881 | char _ptemp[128]; |
1882 | ||
1883 | self = self; | |
efc5f224 | 1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1885 | return NULL; |
1d99702e RD |
1886 | if (_argo0) { |
1887 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1888 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1890 | return NULL; | |
1891 | } | |
1892 | } | |
cf694132 | 1893 | { |
4268f798 | 1894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1895 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 1896 | |
4268f798 | 1897 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1898 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1899 | } if (_result) { |
1900 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1901 | _resultobj = Py_BuildValue("s",_ptemp); | |
1902 | } else { | |
1903 | Py_INCREF(Py_None); | |
1904 | _resultobj = Py_None; | |
1905 | } | |
8ab979d7 RD |
1906 | return _resultobj; |
1907 | } | |
1908 | ||
1afc06c2 RD |
1909 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1910 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1911 | PyObject * _resultobj; | |
1912 | wxEvtHandler * _result; | |
1913 | wxWindow * _arg0; | |
1914 | PyObject * _argo0 = 0; | |
1915 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1916 | |
1917 | self = self; | |
1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1919 | return NULL; | |
1920 | if (_argo0) { | |
1921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1924 | return NULL; | |
1925 | } | |
1926 | } | |
1927 | { | |
4268f798 | 1928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1929 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 1930 | |
4268f798 | 1931 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1932 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 1933 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1934 | return _resultobj; |
1935 | } | |
1936 | ||
8ab979d7 | 1937 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1938 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1939 | PyObject * _resultobj; |
1940 | wxFont * _result; | |
1941 | wxWindow * _arg0; | |
1d99702e | 1942 | PyObject * _argo0 = 0; |
efc5f224 | 1943 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1944 | char _ptemp[128]; |
1945 | ||
1946 | self = self; | |
efc5f224 | 1947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1948 | return NULL; |
1d99702e RD |
1949 | if (_argo0) { |
1950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1953 | return NULL; | |
1954 | } | |
1955 | } | |
cf694132 | 1956 | { |
4268f798 | 1957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1958 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 1959 | |
4268f798 | 1960 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1961 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
1962 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1963 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1964 | return _resultobj; |
1965 | } | |
1966 | ||
1967 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1968 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1969 | PyObject * _resultobj; |
1970 | wxColour * _result; | |
1971 | wxWindow * _arg0; | |
1d99702e | 1972 | PyObject * _argo0 = 0; |
efc5f224 | 1973 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1974 | char _ptemp[128]; |
1975 | ||
1976 | self = self; | |
efc5f224 | 1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1978 | return NULL; |
1d99702e RD |
1979 | if (_argo0) { |
1980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1983 | return NULL; | |
1984 | } | |
1985 | } | |
cf694132 | 1986 | { |
4268f798 | 1987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1988 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 1989 | |
4268f798 | 1990 | wxPyEndAllowThreads(__tstate); |
493f1553 | 1991 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1992 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1993 | _resultobj = Py_BuildValue("s",_ptemp); |
1994 | return _resultobj; | |
1995 | } | |
1996 | ||
1997 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1998 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1999 | PyObject * _resultobj; |
2000 | wxWindow * _result; | |
2001 | wxWindow * _arg0; | |
1d99702e | 2002 | PyObject * _argo0 = 0; |
efc5f224 | 2003 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2004 | |
2005 | self = self; | |
efc5f224 | 2006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 2007 | return NULL; |
1d99702e RD |
2008 | if (_argo0) { |
2009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
2012 | return NULL; | |
2013 | } | |
2014 | } | |
cf694132 | 2015 | { |
4268f798 | 2016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2017 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 2018 | |
4268f798 | 2019 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2020 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2021 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2022 | return _resultobj; |
2023 | } | |
2024 | ||
2abc0a0f | 2025 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 2026 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
2027 | } |
2028 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject * _resultobj; | |
2030 | long _result; | |
2031 | wxWindow * _arg0; | |
2032 | PyObject * _argo0 = 0; | |
2033 | char *_kwnames[] = { "self", NULL }; | |
2034 | ||
2035 | self = self; | |
2036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2037 | return NULL; | |
2038 | if (_argo0) { | |
2039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2042 | return NULL; | |
2043 | } | |
2044 | } | |
2045 | { | |
4268f798 | 2046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2047 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2048 | |
4268f798 | 2049 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2050 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2051 | } _resultobj = Py_BuildValue("l",_result); |
2052 | return _resultobj; | |
2053 | } | |
2054 | ||
8ab979d7 | 2055 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2056 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2057 | PyObject * _resultobj; |
2058 | int _result; | |
2059 | wxWindow * _arg0; | |
1d99702e | 2060 | PyObject * _argo0 = 0; |
efc5f224 | 2061 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2062 | |
2063 | self = self; | |
efc5f224 | 2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2065 | return NULL; |
1d99702e RD |
2066 | if (_argo0) { |
2067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2070 | return NULL; | |
2071 | } | |
2072 | } | |
cf694132 | 2073 | { |
4268f798 | 2074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2075 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2076 | |
4268f798 | 2077 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2078 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2079 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2080 | return _resultobj; |
2081 | } | |
2082 | ||
8ab979d7 | 2083 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2084 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2085 | PyObject * _resultobj; |
2086 | wxString * _result; | |
2087 | wxWindow * _arg0; | |
1d99702e | 2088 | PyObject * _argo0 = 0; |
efc5f224 | 2089 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2090 | |
2091 | self = self; | |
efc5f224 | 2092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2093 | return NULL; |
1d99702e RD |
2094 | if (_argo0) { |
2095 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2096 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2097 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2098 | return NULL; | |
2099 | } | |
2100 | } | |
8ab979d7 | 2101 | { |
4268f798 | 2102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2103 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2104 | |
4268f798 | 2105 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2106 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2107 | }{ |
c8bc7bb8 RD |
2108 | #if wxUSE_UNICODE |
2109 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2110 | #else | |
eec92d76 | 2111 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2112 | #endif |
8ab979d7 RD |
2113 | } |
2114 | { | |
2115 | delete _result; | |
2116 | } | |
2117 | return _resultobj; | |
2118 | } | |
2119 | ||
bb0054cd | 2120 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2121 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2122 | PyObject * _resultobj; |
2123 | wxWindow * _arg0; | |
2124 | wxString * _arg1; | |
1d99702e | 2125 | PyObject * _argo0 = 0; |
bb0054cd | 2126 | PyObject * _obj1 = 0; |
efc5f224 | 2127 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2128 | |
2129 | self = self; | |
efc5f224 | 2130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2131 | return NULL; |
1d99702e RD |
2132 | if (_argo0) { |
2133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2136 | return NULL; | |
2137 | } | |
2138 | } | |
2139 | { | |
c8bc7bb8 RD |
2140 | _arg1 = wxString_in_helper(_obj1); |
2141 | if (_arg1 == NULL) | |
bb0054cd | 2142 | return NULL; |
bb0054cd RD |
2143 | } |
2144 | { | |
4268f798 | 2145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2146 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2147 | |
4268f798 | 2148 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2149 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2150 | } Py_INCREF(Py_None); |
2151 | _resultobj = Py_None; | |
2152 | { | |
2153 | if (_obj1) | |
2154 | delete _arg1; | |
2155 | } | |
2156 | return _resultobj; | |
2157 | } | |
2158 | ||
8ab979d7 | 2159 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2160 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2161 | PyObject * _resultobj; |
2162 | wxString * _result; | |
2163 | wxWindow * _arg0; | |
1d99702e | 2164 | PyObject * _argo0 = 0; |
efc5f224 | 2165 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2166 | |
2167 | self = self; | |
efc5f224 | 2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2169 | return NULL; |
1d99702e RD |
2170 | if (_argo0) { |
2171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2174 | return NULL; | |
2175 | } | |
2176 | } | |
8ab979d7 | 2177 | { |
4268f798 | 2178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2179 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2180 | |
4268f798 | 2181 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2182 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2183 | }{ |
c8bc7bb8 RD |
2184 | #if wxUSE_UNICODE |
2185 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2186 | #else | |
eec92d76 | 2187 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2188 | #endif |
8ab979d7 RD |
2189 | } |
2190 | { | |
2191 | delete _result; | |
2192 | } | |
2193 | return _resultobj; | |
2194 | } | |
2195 | ||
2196 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2197 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2198 | PyObject * _resultobj; |
2199 | wxWindow * _result; | |
2200 | wxWindow * _arg0; | |
1d99702e | 2201 | PyObject * _argo0 = 0; |
efc5f224 | 2202 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2203 | |
2204 | self = self; | |
efc5f224 | 2205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2206 | return NULL; |
1d99702e RD |
2207 | if (_argo0) { |
2208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2211 | return NULL; | |
2212 | } | |
2213 | } | |
cf694132 | 2214 | { |
4268f798 | 2215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2216 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2217 | |
4268f798 | 2218 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2219 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 2220 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2221 | return _resultobj; |
2222 | } | |
2223 | ||
b8b8dda7 | 2224 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2225 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2226 | PyObject * _resultobj; |
2227 | wxWindow * _arg0; | |
2228 | int * _arg1; | |
2229 | int temp; | |
2230 | int * _arg2; | |
2231 | int temp0; | |
1d99702e | 2232 | PyObject * _argo0 = 0; |
efc5f224 | 2233 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2234 | |
2235 | self = self; | |
2236 | { | |
2237 | _arg1 = &temp; | |
2238 | } | |
2239 | { | |
2240 | _arg2 = &temp0; | |
2241 | } | |
efc5f224 | 2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2243 | return NULL; |
1d99702e RD |
2244 | if (_argo0) { |
2245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2248 | return NULL; | |
2249 | } | |
2250 | } | |
cf694132 | 2251 | { |
4268f798 | 2252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2253 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2254 | |
4268f798 | 2255 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2256 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2257 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2258 | _resultobj = Py_None; |
2259 | { | |
2260 | PyObject *o; | |
2261 | o = PyInt_FromLong((long) (*_arg1)); | |
2262 | _resultobj = t_output_helper(_resultobj, o); | |
2263 | } | |
2264 | { | |
2265 | PyObject *o; | |
2266 | o = PyInt_FromLong((long) (*_arg2)); | |
2267 | _resultobj = t_output_helper(_resultobj, o); | |
2268 | } | |
2269 | return _resultobj; | |
2270 | } | |
2271 | ||
2272 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2273 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2274 | PyObject * _resultobj; |
2275 | wxPoint * _result; | |
2276 | wxWindow * _arg0; | |
1d99702e | 2277 | PyObject * _argo0 = 0; |
efc5f224 | 2278 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2279 | char _ptemp[128]; |
2280 | ||
2281 | self = self; | |
efc5f224 | 2282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2283 | return NULL; |
1d99702e RD |
2284 | if (_argo0) { |
2285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2288 | return NULL; | |
2289 | } | |
2290 | } | |
cf694132 | 2291 | { |
4268f798 | 2292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2293 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2294 | |
4268f798 | 2295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2296 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2297 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2298 | _resultobj = Py_BuildValue("s",_ptemp); |
2299 | return _resultobj; | |
2300 | } | |
2301 | ||
2302 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2303 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2304 | PyObject * _resultobj; |
2305 | wxRect * _result; | |
2306 | wxWindow * _arg0; | |
1d99702e | 2307 | PyObject * _argo0 = 0; |
efc5f224 | 2308 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2309 | char _ptemp[128]; |
2310 | ||
2311 | self = self; | |
efc5f224 | 2312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2313 | return NULL; |
1d99702e RD |
2314 | if (_argo0) { |
2315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2318 | return NULL; | |
2319 | } | |
2320 | } | |
cf694132 | 2321 | { |
4268f798 | 2322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2323 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2324 | |
4268f798 | 2325 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2326 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2327 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2328 | _resultobj = Py_BuildValue("s",_ptemp); |
2329 | return _resultobj; | |
2330 | } | |
2331 | ||
8ab979d7 | 2332 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2333 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2334 | PyObject * _resultobj; |
2335 | int _result; | |
2336 | wxWindow * _arg0; | |
2337 | int _arg1; | |
1d99702e | 2338 | PyObject * _argo0 = 0; |
efc5f224 | 2339 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2340 | |
2341 | self = self; | |
efc5f224 | 2342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2343 | return NULL; |
1d99702e RD |
2344 | if (_argo0) { |
2345 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2346 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2347 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2348 | return NULL; | |
2349 | } | |
2350 | } | |
cf694132 | 2351 | { |
4268f798 | 2352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2353 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2354 | |
4268f798 | 2355 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2356 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2357 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2358 | return _resultobj; |
2359 | } | |
2360 | ||
2361 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2362 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2363 | PyObject * _resultobj; |
2364 | int _result; | |
2365 | wxWindow * _arg0; | |
2366 | int _arg1; | |
1d99702e | 2367 | PyObject * _argo0 = 0; |
efc5f224 | 2368 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2369 | |
2370 | self = self; | |
efc5f224 | 2371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2372 | return NULL; |
1d99702e RD |
2373 | if (_argo0) { |
2374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2377 | return NULL; | |
2378 | } | |
2379 | } | |
cf694132 | 2380 | { |
4268f798 | 2381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2382 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2383 | |
4268f798 | 2384 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2385 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2386 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2387 | return _resultobj; |
2388 | } | |
2389 | ||
2390 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2391 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2392 | PyObject * _resultobj; |
2393 | int _result; | |
2394 | wxWindow * _arg0; | |
2395 | int _arg1; | |
1d99702e | 2396 | PyObject * _argo0 = 0; |
efc5f224 | 2397 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2398 | |
2399 | self = self; | |
efc5f224 | 2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2401 | return NULL; |
1d99702e RD |
2402 | if (_argo0) { |
2403 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2404 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2405 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2406 | return NULL; | |
2407 | } | |
2408 | } | |
cf694132 | 2409 | { |
4268f798 | 2410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2411 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2412 | |
4268f798 | 2413 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2414 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2415 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2416 | return _resultobj; |
2417 | } | |
2418 | ||
b8b8dda7 | 2419 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2420 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2421 | PyObject * _resultobj; |
2422 | wxWindow * _arg0; | |
2423 | int * _arg1; | |
2424 | int temp; | |
2425 | int * _arg2; | |
2426 | int temp0; | |
1d99702e | 2427 | PyObject * _argo0 = 0; |
efc5f224 | 2428 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2429 | |
2430 | self = self; | |
2431 | { | |
2432 | _arg1 = &temp; | |
2433 | } | |
2434 | { | |
2435 | _arg2 = &temp0; | |
2436 | } | |
efc5f224 | 2437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2438 | return NULL; |
1d99702e RD |
2439 | if (_argo0) { |
2440 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2441 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2442 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2443 | return NULL; |
2444 | } | |
2445 | } | |
cf694132 | 2446 | { |
4268f798 | 2447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2448 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2449 | |
4268f798 | 2450 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2451 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2452 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2453 | _resultobj = Py_None; |
2454 | { | |
2455 | PyObject *o; | |
2456 | o = PyInt_FromLong((long) (*_arg1)); | |
2457 | _resultobj = t_output_helper(_resultobj, o); | |
2458 | } | |
2459 | { | |
2460 | PyObject *o; | |
2461 | o = PyInt_FromLong((long) (*_arg2)); | |
2462 | _resultobj = t_output_helper(_resultobj, o); | |
2463 | } | |
2464 | return _resultobj; | |
2465 | } | |
2466 | ||
b8b8dda7 | 2467 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2468 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2469 | PyObject * _resultobj; |
2470 | wxSize * _result; | |
2471 | wxWindow * _arg0; | |
1d99702e | 2472 | PyObject * _argo0 = 0; |
efc5f224 | 2473 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2474 | char _ptemp[128]; |
2475 | ||
2476 | self = self; | |
efc5f224 | 2477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2478 | return NULL; |
1d99702e RD |
2479 | if (_argo0) { |
2480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2483 | return NULL; | |
2484 | } | |
2485 | } | |
cf694132 | 2486 | { |
4268f798 | 2487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2488 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2489 | |
4268f798 | 2490 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2491 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2492 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2493 | _resultobj = Py_BuildValue("s",_ptemp); |
2494 | return _resultobj; | |
2495 | } | |
2496 | ||
8ab979d7 | 2497 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2498 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2499 | PyObject * _resultobj; |
2500 | wxWindow * _arg0; | |
2501 | wxString * _arg1; | |
2502 | int * _arg2; | |
2503 | int temp; | |
2504 | int * _arg3; | |
2505 | int temp0; | |
1d99702e | 2506 | PyObject * _argo0 = 0; |
8ab979d7 | 2507 | PyObject * _obj1 = 0; |
efc5f224 | 2508 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2509 | |
2510 | self = self; | |
2511 | { | |
2512 | _arg2 = &temp; | |
2513 | } | |
2514 | { | |
2515 | _arg3 = &temp0; | |
2516 | } | |
efc5f224 | 2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2518 | return NULL; |
1d99702e RD |
2519 | if (_argo0) { |
2520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2523 | return NULL; | |
2524 | } | |
2525 | } | |
2526 | { | |
c8bc7bb8 RD |
2527 | _arg1 = wxString_in_helper(_obj1); |
2528 | if (_arg1 == NULL) | |
8ab979d7 | 2529 | return NULL; |
8ab979d7 | 2530 | } |
cf694132 | 2531 | { |
4268f798 | 2532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2533 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2534 | |
4268f798 | 2535 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2536 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2537 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2538 | _resultobj = Py_None; |
2539 | { | |
2540 | PyObject *o; | |
2541 | o = PyInt_FromLong((long) (*_arg2)); | |
2542 | _resultobj = t_output_helper(_resultobj, o); | |
2543 | } | |
2544 | { | |
2545 | PyObject *o; | |
2546 | o = PyInt_FromLong((long) (*_arg3)); | |
2547 | _resultobj = t_output_helper(_resultobj, o); | |
2548 | } | |
2549 | { | |
2550 | if (_obj1) | |
2551 | delete _arg1; | |
2552 | } | |
2553 | return _resultobj; | |
2554 | } | |
2555 | ||
af309447 | 2556 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2557 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2558 | PyObject * _resultobj; |
2559 | wxWindow * _arg0; | |
2560 | wxString * _arg1; | |
2561 | int * _arg2; | |
2562 | int temp; | |
2563 | int * _arg3; | |
2564 | int temp0; | |
2565 | int * _arg4; | |
2566 | int temp1; | |
2567 | int * _arg5; | |
2568 | int temp2; | |
1d99702e RD |
2569 | wxFont * _arg6 = (wxFont *) NULL; |
2570 | PyObject * _argo0 = 0; | |
af309447 | 2571 | PyObject * _obj1 = 0; |
1d99702e | 2572 | PyObject * _argo6 = 0; |
efc5f224 | 2573 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2574 | |
2575 | self = self; | |
2576 | { | |
2577 | _arg2 = &temp; | |
2578 | } | |
2579 | { | |
2580 | _arg3 = &temp0; | |
2581 | } | |
2582 | { | |
2583 | _arg4 = &temp1; | |
2584 | } | |
2585 | { | |
2586 | _arg5 = &temp2; | |
2587 | } | |
efc5f224 | 2588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2589 | return NULL; |
1d99702e RD |
2590 | if (_argo0) { |
2591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2594 | return NULL; | |
2595 | } | |
2596 | } | |
2597 | { | |
c8bc7bb8 RD |
2598 | _arg1 = wxString_in_helper(_obj1); |
2599 | if (_arg1 == NULL) | |
af309447 | 2600 | return NULL; |
af309447 | 2601 | } |
1d99702e RD |
2602 | if (_argo6) { |
2603 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2604 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2606 | return NULL; | |
2607 | } | |
2608 | } | |
cf694132 | 2609 | { |
4268f798 | 2610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2611 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2612 | |
4268f798 | 2613 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2614 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2615 | } Py_INCREF(Py_None); |
af309447 RD |
2616 | _resultobj = Py_None; |
2617 | { | |
2618 | PyObject *o; | |
2619 | o = PyInt_FromLong((long) (*_arg2)); | |
2620 | _resultobj = t_output_helper(_resultobj, o); | |
2621 | } | |
2622 | { | |
2623 | PyObject *o; | |
2624 | o = PyInt_FromLong((long) (*_arg3)); | |
2625 | _resultobj = t_output_helper(_resultobj, o); | |
2626 | } | |
2627 | { | |
2628 | PyObject *o; | |
2629 | o = PyInt_FromLong((long) (*_arg4)); | |
2630 | _resultobj = t_output_helper(_resultobj, o); | |
2631 | } | |
2632 | { | |
2633 | PyObject *o; | |
2634 | o = PyInt_FromLong((long) (*_arg5)); | |
2635 | _resultobj = t_output_helper(_resultobj, o); | |
2636 | } | |
2637 | { | |
2638 | if (_obj1) | |
2639 | delete _arg1; | |
2640 | } | |
2641 | return _resultobj; | |
2642 | } | |
2643 | ||
8ab979d7 | 2644 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2645 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2646 | PyObject * _resultobj; |
2647 | wxString * _result; | |
2648 | wxWindow * _arg0; | |
1d99702e | 2649 | PyObject * _argo0 = 0; |
efc5f224 | 2650 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2651 | |
2652 | self = self; | |
efc5f224 | 2653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2654 | return NULL; |
1d99702e RD |
2655 | if (_argo0) { |
2656 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2657 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2659 | return NULL; | |
2660 | } | |
2661 | } | |
8ab979d7 | 2662 | { |
4268f798 | 2663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2664 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2665 | |
4268f798 | 2666 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2667 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2668 | }{ |
c8bc7bb8 RD |
2669 | #if wxUSE_UNICODE |
2670 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2671 | #else | |
eec92d76 | 2672 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2673 | #endif |
8ab979d7 RD |
2674 | } |
2675 | { | |
2676 | delete _result; | |
2677 | } | |
2678 | return _resultobj; | |
2679 | } | |
2680 | ||
8bf5d46e | 2681 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2682 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2683 | PyObject * _resultobj; |
2684 | wxRegion * _result; | |
2685 | wxWindow * _arg0; | |
1d99702e | 2686 | PyObject * _argo0 = 0; |
efc5f224 | 2687 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2688 | char _ptemp[128]; |
2689 | ||
2690 | self = self; | |
efc5f224 | 2691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2692 | return NULL; |
1d99702e RD |
2693 | if (_argo0) { |
2694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2697 | return NULL; | |
2698 | } | |
2699 | } | |
2700 | { | |
4268f798 | 2701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2702 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2703 | |
4268f798 | 2704 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2705 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2706 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2707 | _resultobj = Py_BuildValue("s",_ptemp); | |
2708 | return _resultobj; | |
2709 | } | |
2710 | ||
8ab979d7 | 2711 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2712 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2713 | PyObject * _resultobj; |
2714 | long _result; | |
2715 | wxWindow * _arg0; | |
1d99702e | 2716 | PyObject * _argo0 = 0; |
efc5f224 | 2717 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2718 | |
2719 | self = self; | |
efc5f224 | 2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2721 | return NULL; |
1d99702e RD |
2722 | if (_argo0) { |
2723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2726 | return NULL; | |
2727 | } | |
2728 | } | |
cf694132 | 2729 | { |
4268f798 | 2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2731 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2732 | |
4268f798 | 2733 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2734 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2735 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2736 | return _resultobj; |
2737 | } | |
2738 | ||
f6bcfd97 BP |
2739 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2740 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2741 | PyObject * _resultobj; | |
2742 | wxWindow * _arg0; | |
2743 | long _arg1; | |
2744 | PyObject * _argo0 = 0; | |
2745 | char *_kwnames[] = { "self","style", NULL }; | |
2746 | ||
2747 | self = self; | |
2748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2749 | return NULL; | |
2750 | if (_argo0) { | |
2751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2754 | return NULL; | |
2755 | } | |
2756 | } | |
2757 | { | |
4268f798 | 2758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2759 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2760 | |
4268f798 | 2761 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2762 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2763 | } Py_INCREF(Py_None); |
2764 | _resultobj = Py_None; | |
2765 | return _resultobj; | |
2766 | } | |
2767 | ||
2768 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2769 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2770 | PyObject * _resultobj; | |
2771 | wxWindow * _arg0; | |
2772 | long _arg1; | |
2773 | PyObject * _argo0 = 0; | |
2774 | char *_kwnames[] = { "self","style", NULL }; | |
2775 | ||
2776 | self = self; | |
2777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2778 | return NULL; | |
2779 | if (_argo0) { | |
2780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2783 | return NULL; | |
2784 | } | |
2785 | } | |
2786 | { | |
4268f798 | 2787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2788 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2789 | |
4268f798 | 2790 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2791 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2792 | } Py_INCREF(Py_None); |
2793 | _resultobj = Py_None; | |
2794 | return _resultobj; | |
2795 | } | |
2796 | ||
23bed520 RD |
2797 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2798 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2799 | PyObject * _resultobj; | |
2800 | bool _result; | |
2801 | wxWindow * _arg0; | |
2802 | int _arg1; | |
2803 | PyObject * _argo0 = 0; | |
2804 | char *_kwnames[] = { "self","orient", NULL }; | |
2805 | ||
2806 | self = self; | |
2807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2808 | return NULL; | |
2809 | if (_argo0) { | |
2810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2813 | return NULL; | |
2814 | } | |
2815 | } | |
2816 | { | |
2817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2818 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
23bed520 RD |
2819 | |
2820 | wxPyEndAllowThreads(__tstate); | |
2821 | if (PyErr_Occurred()) return NULL; | |
2822 | } _resultobj = Py_BuildValue("i",_result); | |
2823 | return _resultobj; | |
2824 | } | |
2825 | ||
bb0054cd | 2826 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2827 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2828 | PyObject * _resultobj; |
2829 | bool _result; | |
2830 | wxWindow * _arg0; | |
1d99702e | 2831 | PyObject * _argo0 = 0; |
efc5f224 | 2832 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2833 | |
2834 | self = self; | |
efc5f224 | 2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2836 | return NULL; |
1d99702e RD |
2837 | if (_argo0) { |
2838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2841 | return NULL; | |
2842 | } | |
2843 | } | |
2844 | { | |
4268f798 | 2845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2846 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2847 | |
4268f798 | 2848 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2849 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2850 | } _resultobj = Py_BuildValue("i",_result); |
2851 | return _resultobj; | |
2852 | } | |
2853 | ||
23bed520 RD |
2854 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2855 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2856 | PyObject * _resultobj; | |
2857 | wxHitTest _result; | |
2858 | wxWindow * _arg0; | |
2859 | wxPoint * _arg1; | |
2860 | PyObject * _argo0 = 0; | |
2861 | wxPoint temp; | |
2862 | PyObject * _obj1 = 0; | |
2863 | char *_kwnames[] = { "self","pt", NULL }; | |
2864 | ||
2865 | self = self; | |
2866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2867 | return NULL; | |
2868 | if (_argo0) { | |
2869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2872 | return NULL; | |
2873 | } | |
2874 | } | |
2875 | { | |
2876 | _arg1 = &temp; | |
2877 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2878 | return NULL; | |
2879 | } | |
2880 | { | |
2881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2882 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
23bed520 RD |
2883 | |
2884 | wxPyEndAllowThreads(__tstate); | |
2885 | if (PyErr_Occurred()) return NULL; | |
2886 | } _resultobj = Py_BuildValue("i",_result); | |
2887 | return _resultobj; | |
2888 | } | |
2889 | ||
8ab979d7 | 2890 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2891 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2892 | PyObject * _resultobj; |
2893 | wxWindow * _arg0; | |
1d99702e | 2894 | PyObject * _argo0 = 0; |
efc5f224 | 2895 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2896 | |
2897 | self = self; | |
efc5f224 | 2898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2899 | return NULL; |
1d99702e RD |
2900 | if (_argo0) { |
2901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2904 | return NULL; | |
2905 | } | |
2906 | } | |
cf694132 | 2907 | { |
4268f798 | 2908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2909 | wxWindow_InitDialog(_arg0); |
cf694132 | 2910 | |
4268f798 | 2911 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2912 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2913 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2914 | _resultobj = Py_None; |
2915 | return _resultobj; | |
2916 | } | |
2917 | ||
2918 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2919 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2920 | PyObject * _resultobj; |
2921 | bool _result; | |
2922 | wxWindow * _arg0; | |
1d99702e | 2923 | PyObject * _argo0 = 0; |
efc5f224 | 2924 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2925 | |
2926 | self = self; | |
efc5f224 | 2927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2928 | return NULL; |
1d99702e RD |
2929 | if (_argo0) { |
2930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2933 | return NULL; | |
2934 | } | |
2935 | } | |
cf694132 | 2936 | { |
4268f798 | 2937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2938 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 2939 | |
4268f798 | 2940 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2941 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2942 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2943 | return _resultobj; |
2944 | } | |
2945 | ||
1b55cabf RD |
2946 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2947 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2948 | PyObject * _resultobj; | |
2949 | bool _result; | |
2950 | wxWindow * _arg0; | |
2951 | int _arg1; | |
2952 | int _arg2; | |
2953 | int _arg3 = (int ) 0; | |
2954 | int _arg4 = (int ) 0; | |
2955 | PyObject * _argo0 = 0; | |
2956 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2957 | ||
2958 | self = self; | |
2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2960 | return NULL; | |
2961 | if (_argo0) { | |
2962 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2963 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2964 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2965 | return NULL; | |
2966 | } | |
2967 | } | |
2968 | { | |
4268f798 | 2969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2970 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 2971 | |
4268f798 | 2972 | wxPyEndAllowThreads(__tstate); |
493f1553 | 2973 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2974 | } _resultobj = Py_BuildValue("i",_result); |
2975 | return _resultobj; | |
2976 | } | |
2977 | ||
2978 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2979 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2980 | PyObject * _resultobj; | |
2981 | bool _result; | |
2982 | wxWindow * _arg0; | |
2983 | wxPoint * _arg1; | |
2984 | PyObject * _argo0 = 0; | |
2985 | wxPoint temp; | |
2986 | PyObject * _obj1 = 0; | |
2987 | char *_kwnames[] = { "self","pt", NULL }; | |
2988 | ||
2989 | self = self; | |
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
2991 | return NULL; | |
2992 | if (_argo0) { | |
2993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedPoint. Expected _wxWindow_p."); | |
2996 | return NULL; | |
2997 | } | |
2998 | } | |
2999 | { | |
3000 | _arg1 = &temp; | |
3001 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3002 | return NULL; | |
3003 | } | |
3004 | { | |
4268f798 | 3005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3006 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 3007 | |
4268f798 | 3008 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3009 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3010 | } _resultobj = Py_BuildValue("i",_result); |
3011 | return _resultobj; | |
3012 | } | |
3013 | ||
3014 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
3015 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject * _resultobj; | |
3017 | bool _result; | |
3018 | wxWindow * _arg0; | |
3019 | wxRect * _arg1; | |
3020 | PyObject * _argo0 = 0; | |
3021 | wxRect temp; | |
3022 | PyObject * _obj1 = 0; | |
3023 | char *_kwnames[] = { "self","rect", NULL }; | |
3024 | ||
3025 | self = self; | |
3026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
3027 | return NULL; | |
3028 | if (_argo0) { | |
3029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3032 | return NULL; | |
3033 | } | |
3034 | } | |
3035 | { | |
3036 | _arg1 = &temp; | |
3037 | if (! wxRect_helper(_obj1, &_arg1)) | |
3038 | return NULL; | |
3039 | } | |
3040 | { | |
4268f798 | 3041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3042 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3043 | |
4268f798 | 3044 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3045 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3046 | } _resultobj = Py_BuildValue("i",_result); |
3047 | return _resultobj; | |
3048 | } | |
3049 | ||
8ab979d7 | 3050 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3051 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3052 | PyObject * _resultobj; |
3053 | bool _result; | |
3054 | wxWindow * _arg0; | |
1d99702e | 3055 | PyObject * _argo0 = 0; |
efc5f224 | 3056 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3057 | |
3058 | self = self; | |
efc5f224 | 3059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3060 | return NULL; |
1d99702e RD |
3061 | if (_argo0) { |
3062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3065 | return NULL; | |
3066 | } | |
3067 | } | |
cf694132 | 3068 | { |
4268f798 | 3069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3070 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3071 | |
4268f798 | 3072 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3073 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3074 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3075 | return _resultobj; |
3076 | } | |
3077 | ||
3078 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3079 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3080 | PyObject * _resultobj; |
3081 | bool _result; | |
3082 | wxWindow * _arg0; | |
1d99702e | 3083 | PyObject * _argo0 = 0; |
efc5f224 | 3084 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3085 | |
3086 | self = self; | |
efc5f224 | 3087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3088 | return NULL; |
1d99702e RD |
3089 | if (_argo0) { |
3090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3093 | return NULL; | |
3094 | } | |
3095 | } | |
cf694132 | 3096 | { |
4268f798 | 3097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3098 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3099 | |
4268f798 | 3100 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3101 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3102 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3103 | return _resultobj; |
3104 | } | |
3105 | ||
bb0054cd | 3106 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3107 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3108 | PyObject * _resultobj; |
3109 | bool _result; | |
3110 | wxWindow * _arg0; | |
1d99702e | 3111 | PyObject * _argo0 = 0; |
efc5f224 | 3112 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3113 | |
3114 | self = self; | |
efc5f224 | 3115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3116 | return NULL; |
1d99702e RD |
3117 | if (_argo0) { |
3118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3121 | return NULL; | |
3122 | } | |
3123 | } | |
3124 | { | |
4268f798 | 3125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3126 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3127 | |
4268f798 | 3128 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3129 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3130 | } _resultobj = Py_BuildValue("i",_result); |
3131 | return _resultobj; | |
3132 | } | |
3133 | ||
8ab979d7 | 3134 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3135 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3136 | PyObject * _resultobj; |
3137 | wxWindow * _arg0; | |
1d99702e | 3138 | PyObject * _argo0 = 0; |
efc5f224 | 3139 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3140 | |
3141 | self = self; | |
efc5f224 | 3142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3143 | return NULL; |
1d99702e RD |
3144 | if (_argo0) { |
3145 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3146 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3148 | return NULL; | |
3149 | } | |
3150 | } | |
cf694132 | 3151 | { |
4268f798 | 3152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3153 | wxWindow_Layout(_arg0); |
cf694132 | 3154 | |
4268f798 | 3155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3157 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3158 | _resultobj = Py_None; |
3159 | return _resultobj; | |
3160 | } | |
3161 | ||
3162 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3163 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3164 | PyObject * _resultobj; |
3165 | bool _result; | |
3166 | wxWindow * _arg0; | |
3167 | wxWindow * _arg1; | |
3168 | wxString * _arg2; | |
1d99702e RD |
3169 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3170 | PyObject * _argo0 = 0; | |
3171 | PyObject * _argo1 = 0; | |
8ab979d7 | 3172 | PyObject * _obj2 = 0; |
1d99702e | 3173 | PyObject * _argo3 = 0; |
efc5f224 | 3174 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3175 | |
3176 | self = self; | |
efc5f224 | 3177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3178 | return NULL; |
1d99702e RD |
3179 | if (_argo0) { |
3180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3183 | return NULL; | |
3184 | } | |
3185 | } | |
1d99702e RD |
3186 | if (_argo1) { |
3187 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3188 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3190 | return NULL; | |
3191 | } | |
3192 | } | |
3193 | { | |
c8bc7bb8 RD |
3194 | _arg2 = wxString_in_helper(_obj2); |
3195 | if (_arg2 == NULL) | |
8ab979d7 | 3196 | return NULL; |
8ab979d7 | 3197 | } |
1d99702e RD |
3198 | if (_argo3) { |
3199 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3200 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
cf694132 | 3205 | { |
4268f798 | 3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3207 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 3208 | |
4268f798 | 3209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3211 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3212 | { |
3213 | if (_obj2) | |
3214 | delete _arg2; | |
3215 | } | |
3216 | return _resultobj; | |
3217 | } | |
3218 | ||
3219 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3220 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3221 | PyObject * _resultobj; |
3222 | wxWindow * _arg0; | |
1d99702e | 3223 | PyObject * _argo0 = 0; |
efc5f224 | 3224 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3225 | |
3226 | self = self; | |
efc5f224 | 3227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3228 | return NULL; |
1d99702e RD |
3229 | if (_argo0) { |
3230 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3231 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3232 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3233 | return NULL; | |
3234 | } | |
3235 | } | |
cf694132 | 3236 | { |
4268f798 | 3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3238 | wxWindow_Lower(_arg0); |
cf694132 | 3239 | |
4268f798 | 3240 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3241 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3242 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3243 | _resultobj = Py_None; |
3244 | return _resultobj; | |
3245 | } | |
3246 | ||
3247 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3248 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3249 | PyObject * _resultobj; |
3250 | wxWindow * _arg0; | |
900d9886 | 3251 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3252 | PyObject * _argo0 = 0; |
900d9886 | 3253 | int tempbool1 = (int) TRUE; |
efc5f224 | 3254 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3255 | |
3256 | self = self; | |
900d9886 | 3257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3258 | return NULL; |
1d99702e RD |
3259 | if (_argo0) { |
3260 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3261 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3262 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3263 | return NULL; | |
3264 | } | |
3265 | } | |
3266 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3267 | { |
4268f798 | 3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3269 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3270 | |
4268f798 | 3271 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3272 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3273 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3274 | _resultobj = Py_None; |
3275 | return _resultobj; | |
3276 | } | |
3277 | ||
23bed520 | 3278 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3279 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3280 | PyObject * _resultobj; |
3281 | wxWindow * _arg0; | |
3282 | int _arg1; | |
3283 | int _arg2; | |
23bed520 | 3284 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3285 | PyObject * _argo0 = 0; |
23bed520 | 3286 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3287 | |
3288 | self = self; | |
23bed520 | 3289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3290 | return NULL; |
1d99702e RD |
3291 | if (_argo0) { |
3292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3295 | return NULL; | |
3296 | } | |
3297 | } | |
cf694132 | 3298 | { |
4268f798 | 3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3300 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3301 | |
4268f798 | 3302 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3303 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3304 | } Py_INCREF(Py_None); |
af309447 RD |
3305 | _resultobj = Py_None; |
3306 | return _resultobj; | |
3307 | } | |
3308 | ||
23bed520 | 3309 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3310 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3311 | PyObject * _resultobj; |
3312 | wxWindow * _arg0; | |
3313 | wxPoint * _arg1; | |
23bed520 | 3314 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3315 | PyObject * _argo0 = 0; |
2f90df85 RD |
3316 | wxPoint temp; |
3317 | PyObject * _obj1 = 0; | |
23bed520 | 3318 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3319 | |
3320 | self = self; | |
23bed520 | 3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3322 | return NULL; |
1d99702e RD |
3323 | if (_argo0) { |
3324 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3325 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3326 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3327 | return NULL; | |
3328 | } | |
3329 | } | |
2f90df85 RD |
3330 | { |
3331 | _arg1 = &temp; | |
3332 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3333 | return NULL; |
2f90df85 | 3334 | } |
cf694132 | 3335 | { |
4268f798 | 3336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3337 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3338 | |
4268f798 | 3339 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3340 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3341 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3342 | _resultobj = Py_None; |
3343 | return _resultobj; | |
3344 | } | |
3345 | ||
1afc06c2 RD |
3346 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3347 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3348 | PyObject * _resultobj; | |
3349 | wxEvtHandler * _result; | |
3350 | wxWindow * _arg0; | |
3351 | bool _arg1 = (bool ) FALSE; | |
3352 | PyObject * _argo0 = 0; | |
3353 | int tempbool1 = (int) FALSE; | |
3354 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3355 | |
3356 | self = self; | |
3357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3358 | return NULL; | |
3359 | if (_argo0) { | |
3360 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3361 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3362 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3363 | return NULL; | |
3364 | } | |
3365 | } | |
3366 | _arg1 = (bool ) tempbool1; | |
3367 | { | |
4268f798 | 3368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3369 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3370 | |
4268f798 | 3371 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3372 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 3373 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3374 | return _resultobj; |
3375 | } | |
3376 | ||
3377 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3378 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3379 | PyObject * _resultobj; | |
3380 | wxWindow * _arg0; | |
3381 | wxEvtHandler * _arg1; | |
3382 | PyObject * _argo0 = 0; | |
3383 | PyObject * _argo1 = 0; | |
3384 | char *_kwnames[] = { "self","handler", NULL }; | |
3385 | ||
3386 | self = self; | |
3387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3388 | return NULL; | |
3389 | if (_argo0) { | |
3390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3393 | return NULL; | |
3394 | } | |
3395 | } | |
3396 | if (_argo1) { | |
3397 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3398 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3400 | return NULL; | |
3401 | } | |
3402 | } | |
3403 | { | |
4268f798 | 3404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3405 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3406 | |
4268f798 | 3407 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3408 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3409 | } Py_INCREF(Py_None); |
3410 | _resultobj = Py_None; | |
3411 | return _resultobj; | |
3412 | } | |
3413 | ||
c6c593e8 RD |
3414 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3415 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3416 | PyObject * _resultobj; | |
3417 | bool _result; | |
3418 | wxWindow * _arg0; | |
3419 | wxEvtHandler * _arg1; | |
3420 | PyObject * _argo0 = 0; | |
3421 | PyObject * _argo1 = 0; | |
3422 | char *_kwnames[] = { "self","handler", NULL }; | |
3423 | ||
3424 | self = self; | |
3425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3426 | return NULL; | |
3427 | if (_argo0) { | |
3428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3431 | return NULL; | |
3432 | } | |
3433 | } | |
3434 | if (_argo1) { | |
3435 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3436 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3438 | return NULL; | |
3439 | } | |
3440 | } | |
3441 | { | |
3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3443 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
c6c593e8 RD |
3444 | |
3445 | wxPyEndAllowThreads(__tstate); | |
3446 | if (PyErr_Occurred()) return NULL; | |
3447 | } _resultobj = Py_BuildValue("i",_result); | |
3448 | return _resultobj; | |
3449 | } | |
3450 | ||
8bf5d46e | 3451 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3452 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3453 | PyObject * _resultobj; |
3454 | bool _result; | |
3455 | wxWindow * _arg0; | |
3456 | wxMenu * _arg1; | |
3457 | int _arg2; | |
3458 | int _arg3; | |
1d99702e RD |
3459 | PyObject * _argo0 = 0; |
3460 | PyObject * _argo1 = 0; | |
efc5f224 | 3461 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3462 | |
3463 | self = self; | |
efc5f224 | 3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3465 | return NULL; |
1d99702e RD |
3466 | if (_argo0) { |
3467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3470 | return NULL; | |
3471 | } | |
3472 | } | |
1d99702e RD |
3473 | if (_argo1) { |
3474 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3475 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3477 | return NULL; | |
3478 | } | |
3479 | } | |
3480 | { | |
4268f798 | 3481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3482 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3483 | |
4268f798 | 3484 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3485 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3486 | } _resultobj = Py_BuildValue("i",_result); |
3487 | return _resultobj; | |
3488 | } | |
3489 | ||
3490 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3491 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3492 | PyObject * _resultobj; |
3493 | bool _result; | |
3494 | wxWindow * _arg0; | |
3495 | wxMenu * _arg1; | |
3496 | wxPoint * _arg2; | |
1d99702e RD |
3497 | PyObject * _argo0 = 0; |
3498 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3499 | wxPoint temp; |
3500 | PyObject * _obj2 = 0; | |
efc5f224 | 3501 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3502 | |
3503 | self = self; | |
2f90df85 | 3504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3505 | return NULL; |
1d99702e RD |
3506 | if (_argo0) { |
3507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3510 | return NULL; | |
3511 | } | |
3512 | } | |
1d99702e RD |
3513 | if (_argo1) { |
3514 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3515 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3516 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3517 | return NULL; | |
3518 | } | |
3519 | } | |
2f90df85 RD |
3520 | { |
3521 | _arg2 = &temp; | |
3522 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3523 | return NULL; |
2f90df85 | 3524 | } |
cf694132 | 3525 | { |
4268f798 | 3526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3527 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3528 | |
4268f798 | 3529 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3530 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3531 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3532 | return _resultobj; |
3533 | } | |
3534 | ||
3535 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3536 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3537 | PyObject * _resultobj; |
3538 | wxWindow * _arg0; | |
1d99702e | 3539 | PyObject * _argo0 = 0; |
efc5f224 | 3540 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3541 | |
3542 | self = self; | |
efc5f224 | 3543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3544 | return NULL; |
1d99702e RD |
3545 | if (_argo0) { |
3546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3549 | return NULL; | |
3550 | } | |
3551 | } | |
cf694132 | 3552 | { |
4268f798 | 3553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3554 | wxWindow_Raise(_arg0); |
cf694132 | 3555 | |
4268f798 | 3556 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3557 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3558 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3559 | _resultobj = Py_None; |
3560 | return _resultobj; | |
3561 | } | |
3562 | ||
3563 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3564 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3565 | PyObject * _resultobj; |
3566 | wxWindow * _arg0; | |
1d99702e RD |
3567 | bool _arg1 = (bool ) TRUE; |
3568 | wxRect * _arg2 = (wxRect *) NULL; | |
3569 | PyObject * _argo0 = 0; | |
3570 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3571 | wxRect temp; |
3572 | PyObject * _obj2 = 0; | |
efc5f224 | 3573 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3574 | |
3575 | self = self; | |
2f90df85 | 3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3577 | return NULL; |
1d99702e RD |
3578 | if (_argo0) { |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3586 | if (_obj2) |
3587 | { | |
3588 | _arg2 = &temp; | |
3589 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3590 | return NULL; |
2f90df85 | 3591 | } |
cf694132 | 3592 | { |
4268f798 | 3593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3594 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3595 | |
4268f798 | 3596 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3597 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3598 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3599 | _resultobj = Py_None; |
3600 | return _resultobj; | |
3601 | } | |
3602 | ||
09f3d4e6 RD |
3603 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3604 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3605 | PyObject * _resultobj; | |
3606 | wxWindow * _arg0; | |
3607 | wxRect * _arg1; | |
3608 | PyObject * _argo0 = 0; | |
3609 | wxRect temp; | |
3610 | PyObject * _obj1 = 0; | |
3611 | char *_kwnames[] = { "self","rect", NULL }; | |
3612 | ||
3613 | self = self; | |
3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3615 | return NULL; | |
3616 | if (_argo0) { | |
3617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3620 | return NULL; | |
3621 | } | |
3622 | } | |
3623 | { | |
3624 | _arg1 = &temp; | |
3625 | if (! wxRect_helper(_obj1, &_arg1)) | |
3626 | return NULL; | |
3627 | } | |
3628 | { | |
4268f798 | 3629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3630 | wxWindow_RefreshRect(_arg0,*_arg1); |
09f3d4e6 | 3631 | |
4268f798 | 3632 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
3633 | if (PyErr_Occurred()) return NULL; |
3634 | } Py_INCREF(Py_None); | |
3635 | _resultobj = Py_None; | |
3636 | return _resultobj; | |
3637 | } | |
3638 | ||
8ab979d7 | 3639 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3640 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3641 | PyObject * _resultobj; |
3642 | wxWindow * _arg0; | |
1d99702e | 3643 | PyObject * _argo0 = 0; |
efc5f224 | 3644 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3645 | |
3646 | self = self; | |
efc5f224 | 3647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3648 | return NULL; |
1d99702e RD |
3649 | if (_argo0) { |
3650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3653 | return NULL; | |
3654 | } | |
3655 | } | |
cf694132 | 3656 | { |
4268f798 | 3657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3658 | wxWindow_ReleaseMouse(_arg0); |
cf694132 | 3659 | |
4268f798 | 3660 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3661 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3662 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3663 | _resultobj = Py_None; |
3664 | return _resultobj; | |
3665 | } | |
3666 | ||
b7e72427 RD |
3667 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3668 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3669 | PyObject * _resultobj; | |
3670 | wxWindow * _arg0; | |
3671 | wxWindow * _arg1; | |
3672 | PyObject * _argo0 = 0; | |
3673 | PyObject * _argo1 = 0; | |
3674 | char *_kwnames[] = { "self","child", NULL }; | |
3675 | ||
3676 | self = self; | |
3677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3678 | return NULL; | |
3679 | if (_argo0) { | |
3680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3683 | return NULL; | |
3684 | } | |
3685 | } | |
3686 | if (_argo1) { | |
3687 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3688 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3690 | return NULL; | |
3691 | } | |
3692 | } | |
3693 | { | |
4268f798 | 3694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3695 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3696 | |
4268f798 | 3697 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3698 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3699 | } Py_INCREF(Py_None); |
3700 | _resultobj = Py_None; | |
3701 | return _resultobj; | |
3702 | } | |
3703 | ||
bb0054cd | 3704 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3705 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3706 | PyObject * _resultobj; |
3707 | bool _result; | |
3708 | wxWindow * _arg0; | |
3709 | wxWindow * _arg1; | |
1d99702e RD |
3710 | PyObject * _argo0 = 0; |
3711 | PyObject * _argo1 = 0; | |
efc5f224 | 3712 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3713 | |
3714 | self = self; | |
efc5f224 | 3715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3716 | return NULL; |
1d99702e RD |
3717 | if (_argo0) { |
3718 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3719 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3720 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3721 | return NULL; | |
3722 | } | |
3723 | } | |
1d99702e RD |
3724 | if (_argo1) { |
3725 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3726 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3728 | return NULL; | |
3729 | } | |
3730 | } | |
3731 | { | |
4268f798 | 3732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3733 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3734 | |
4268f798 | 3735 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3736 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3737 | } _resultobj = Py_BuildValue("i",_result); |
3738 | return _resultobj; | |
3739 | } | |
3740 | ||
af309447 | 3741 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3742 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3743 | PyObject * _resultobj; |
3744 | wxWindow * _arg0; | |
3745 | int * _arg1; | |
3746 | int * _arg2; | |
1d99702e | 3747 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3748 | int temp; |
3749 | PyObject * _obj1 = 0; | |
3750 | int temp0; | |
3751 | PyObject * _obj2 = 0; | |
efc5f224 | 3752 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3753 | |
3754 | self = self; | |
efc5f224 | 3755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3756 | return NULL; |
1d99702e RD |
3757 | if (_argo0) { |
3758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3761 | return NULL; |
3762 | } | |
3763 | } | |
3764 | { | |
3765 | temp = (int) PyInt_AsLong(_obj1); | |
3766 | _arg1 = &temp; | |
3767 | } | |
3768 | { | |
3769 | temp0 = (int) PyInt_AsLong(_obj2); | |
3770 | _arg2 = &temp0; | |
3771 | } | |
cf694132 | 3772 | { |
4268f798 | 3773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3774 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3775 | |
4268f798 | 3776 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3777 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3778 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3779 | _resultobj = Py_None; |
3780 | { | |
3781 | PyObject *o; | |
3782 | o = PyInt_FromLong((long) (*_arg1)); | |
3783 | _resultobj = t_output_helper(_resultobj, o); | |
3784 | } | |
3785 | { | |
3786 | PyObject *o; | |
3787 | o = PyInt_FromLong((long) (*_arg2)); | |
3788 | _resultobj = t_output_helper(_resultobj, o); | |
3789 | } | |
3790 | return _resultobj; | |
3791 | } | |
3792 | ||
af309447 | 3793 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3794 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3795 | PyObject * _resultobj; |
3796 | wxPoint * _result; | |
3797 | wxWindow * _arg0; | |
3798 | wxPoint * _arg1; | |
1d99702e | 3799 | PyObject * _argo0 = 0; |
2f90df85 RD |
3800 | wxPoint temp; |
3801 | PyObject * _obj1 = 0; | |
efc5f224 | 3802 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3803 | char _ptemp[128]; |
3804 | ||
3805 | self = self; | |
2f90df85 | 3806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3807 | return NULL; |
1d99702e RD |
3808 | if (_argo0) { |
3809 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3810 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3811 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3812 | return NULL; | |
3813 | } | |
3814 | } | |
2f90df85 RD |
3815 | { |
3816 | _arg1 = &temp; | |
3817 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3818 | return NULL; |
2f90df85 | 3819 | } |
cf694132 | 3820 | { |
4268f798 | 3821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3822 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3823 | |
4268f798 | 3824 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3825 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3826 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3827 | _resultobj = Py_BuildValue("s",_ptemp); |
3828 | return _resultobj; | |
3829 | } | |
3830 | ||
8ab979d7 | 3831 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3832 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3833 | PyObject * _resultobj; |
3834 | wxWindow * _arg0; | |
3835 | int _arg1; | |
3836 | int _arg2; | |
1d99702e RD |
3837 | wxRect * _arg3 = (wxRect *) NULL; |
3838 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3839 | wxRect temp; |
3840 | PyObject * _obj3 = 0; | |
efc5f224 | 3841 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3842 | |
3843 | self = self; | |
2f90df85 | 3844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3845 | return NULL; |
1d99702e RD |
3846 | if (_argo0) { |
3847 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3848 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3849 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3850 | return NULL; | |
3851 | } | |
3852 | } | |
2f90df85 RD |
3853 | if (_obj3) |
3854 | { | |
3855 | _arg3 = &temp; | |
3856 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3857 | return NULL; |
2f90df85 | 3858 | } |
cf694132 | 3859 | { |
4268f798 | 3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3861 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3862 | |
4268f798 | 3863 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3864 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3865 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3866 | _resultobj = Py_None; |
3867 | return _resultobj; | |
3868 | } | |
3869 | ||
3870 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3871 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3872 | PyObject * _resultobj; |
3873 | wxWindow * _arg0; | |
3874 | bool _arg1; | |
1d99702e | 3875 | PyObject * _argo0 = 0; |
8ab979d7 | 3876 | int tempbool1; |
efc5f224 | 3877 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3878 | |
3879 | self = self; | |
efc5f224 | 3880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
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_SetAutoLayout. Expected _wxWindow_p."); |
3886 | return NULL; | |
3887 | } | |
3888 | } | |
3889 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3890 | { |
4268f798 | 3891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3892 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3893 | |
4268f798 | 3894 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3895 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3896 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3897 | _resultobj = Py_None; |
3898 | return _resultobj; | |
3899 | } | |
3900 | ||
9d8bd15f RD |
3901 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3902 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3903 | PyObject * _resultobj; | |
3904 | bool _result; | |
3905 | wxWindow * _arg0; | |
3906 | PyObject * _argo0 = 0; | |
3907 | char *_kwnames[] = { "self", NULL }; | |
3908 | ||
3909 | self = self; | |
3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3911 | return NULL; | |
3912 | if (_argo0) { | |
3913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3916 | return NULL; | |
3917 | } | |
3918 | } | |
3919 | { | |
4268f798 | 3920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3921 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3922 | |
4268f798 | 3923 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3924 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3925 | } _resultobj = Py_BuildValue("i",_result); |
3926 | return _resultobj; | |
3927 | } | |
3928 | ||
8ab979d7 | 3929 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3930 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3931 | PyObject * _resultobj; |
3932 | wxWindow * _arg0; | |
3933 | wxColour * _arg1; | |
1d99702e | 3934 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3935 | wxColour temp; |
3936 | PyObject * _obj1 = 0; | |
efc5f224 | 3937 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3938 | |
3939 | self = self; | |
f6bcfd97 | 3940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3941 | return NULL; |
1d99702e RD |
3942 | if (_argo0) { |
3943 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3944 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3945 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3946 | return NULL; | |
3947 | } | |
3948 | } | |
f6bcfd97 BP |
3949 | { |
3950 | _arg1 = &temp; | |
3951 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3952 | return NULL; |
f6bcfd97 | 3953 | } |
cf694132 | 3954 | { |
4268f798 | 3955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3956 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3957 | |
4268f798 | 3958 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3959 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3960 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3961 | _resultobj = Py_None; |
3962 | return _resultobj; | |
3963 | } | |
3964 | ||
3965 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3966 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3967 | PyObject * _resultobj; |
3968 | wxWindow * _arg0; | |
3969 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3970 | PyObject * _argo0 = 0; |
3971 | PyObject * _argo1 = 0; | |
efc5f224 | 3972 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3973 | |
3974 | self = self; | |
efc5f224 | 3975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3976 | return NULL; |
1d99702e RD |
3977 | if (_argo0) { |
3978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3981 | return NULL; | |
3982 | } | |
3983 | } | |
1d99702e RD |
3984 | if (_argo1) { |
3985 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3986 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3988 | return NULL; | |
3989 | } | |
3990 | } | |
cf694132 | 3991 | { |
4268f798 | 3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3993 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 3994 | |
4268f798 | 3995 | wxPyEndAllowThreads(__tstate); |
493f1553 | 3996 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3997 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3998 | _resultobj = Py_None; |
3999 | return _resultobj; | |
4000 | } | |
4001 | ||
2f90df85 RD |
4002 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
4003 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4004 | PyObject * _resultobj; | |
4005 | wxWindow * _arg0; | |
4006 | wxLayoutConstraints * _arg1; | |
4007 | PyObject * _argo0 = 0; | |
4008 | PyObject * _argo1 = 0; | |
4009 | char *_kwnames[] = { "self","constraints", NULL }; | |
4010 | ||
4011 | self = self; | |
4012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
4013 | return NULL; | |
4014 | if (_argo0) { | |
4015 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4016 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4017 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
4018 | return NULL; | |
4019 | } | |
4020 | } | |
4021 | if (_argo1) { | |
4022 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4023 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
4024 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
4025 | return NULL; | |
4026 | } | |
4027 | } | |
4028 | { | |
4268f798 | 4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4030 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4031 | |
4268f798 | 4032 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4033 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4034 | } Py_INCREF(Py_None); |
4035 | _resultobj = Py_None; | |
4036 | return _resultobj; | |
4037 | } | |
4038 | ||
8ab979d7 | 4039 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4040 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4041 | PyObject * _resultobj; |
4042 | wxWindow * _arg0; | |
1d99702e | 4043 | PyObject * _argo0 = 0; |
efc5f224 | 4044 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4045 | |
4046 | self = self; | |
efc5f224 | 4047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4048 | return NULL; |
1d99702e RD |
4049 | if (_argo0) { |
4050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4053 | return NULL; | |
4054 | } | |
4055 | } | |
cf694132 | 4056 | { |
4268f798 | 4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4058 | wxWindow_SetFocus(_arg0); |
cf694132 | 4059 | |
4268f798 | 4060 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4061 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4062 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4063 | _resultobj = Py_None; |
4064 | return _resultobj; | |
4065 | } | |
4066 | ||
2f90df85 RD |
4067 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4068 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject * _resultobj; | |
4070 | bool _result; | |
4071 | wxWindow * _arg0; | |
4072 | PyObject * _argo0 = 0; | |
4073 | char *_kwnames[] = { "self", NULL }; | |
4074 | ||
4075 | self = self; | |
4076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4077 | return NULL; | |
4078 | if (_argo0) { | |
4079 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4080 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4081 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4082 | return NULL; | |
4083 | } | |
4084 | } | |
4085 | { | |
4268f798 | 4086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4087 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4088 | |
4268f798 | 4089 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4090 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4091 | } _resultobj = Py_BuildValue("i",_result); |
4092 | return _resultobj; | |
4093 | } | |
4094 | ||
8ab979d7 | 4095 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4096 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4097 | PyObject * _resultobj; |
4098 | wxWindow * _arg0; | |
4099 | wxFont * _arg1; | |
1d99702e RD |
4100 | PyObject * _argo0 = 0; |
4101 | PyObject * _argo1 = 0; | |
efc5f224 | 4102 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4103 | |
4104 | self = self; | |
efc5f224 | 4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4106 | return NULL; |
1d99702e RD |
4107 | if (_argo0) { |
4108 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4109 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4110 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4111 | return NULL; | |
4112 | } | |
4113 | } | |
1d99702e RD |
4114 | if (_argo1) { |
4115 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4116 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4118 | return NULL; | |
4119 | } | |
4120 | } | |
cf694132 | 4121 | { |
4268f798 | 4122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4123 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4124 | |
4268f798 | 4125 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4126 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4127 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4128 | _resultobj = Py_None; |
4129 | return _resultobj; | |
4130 | } | |
4131 | ||
4132 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4133 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4134 | PyObject * _resultobj; |
4135 | wxWindow * _arg0; | |
4136 | wxColour * _arg1; | |
1d99702e | 4137 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4138 | wxColour temp; |
4139 | PyObject * _obj1 = 0; | |
efc5f224 | 4140 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4141 | |
4142 | self = self; | |
f6bcfd97 | 4143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4144 | return NULL; |
1d99702e RD |
4145 | if (_argo0) { |
4146 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4147 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4148 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4149 | return NULL; | |
4150 | } | |
4151 | } | |
f6bcfd97 BP |
4152 | { |
4153 | _arg1 = &temp; | |
4154 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4155 | return NULL; |
f6bcfd97 | 4156 | } |
cf694132 | 4157 | { |
4268f798 | 4158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4159 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4160 | |
4268f798 | 4161 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4162 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4163 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4164 | _resultobj = Py_None; |
4165 | return _resultobj; | |
4166 | } | |
4167 | ||
4168 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4169 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4170 | PyObject * _resultobj; |
4171 | wxWindow * _arg0; | |
4172 | int _arg1; | |
1d99702e | 4173 | PyObject * _argo0 = 0; |
efc5f224 | 4174 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4175 | |
4176 | self = self; | |
efc5f224 | 4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4178 | return NULL; |
1d99702e RD |
4179 | if (_argo0) { |
4180 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4181 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4182 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4183 | return NULL; | |
4184 | } | |
4185 | } | |
cf694132 | 4186 | { |
4268f798 | 4187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4188 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4189 | |
4268f798 | 4190 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4191 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4192 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4193 | _resultobj = Py_None; |
4194 | return _resultobj; | |
4195 | } | |
4196 | ||
4197 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4198 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4199 | PyObject * _resultobj; |
4200 | wxWindow * _arg0; | |
4201 | wxString * _arg1; | |
1d99702e | 4202 | PyObject * _argo0 = 0; |
8ab979d7 | 4203 | PyObject * _obj1 = 0; |
efc5f224 | 4204 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4205 | |
4206 | self = self; | |
efc5f224 | 4207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4208 | return NULL; |
1d99702e RD |
4209 | if (_argo0) { |
4210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4213 | return NULL; | |
4214 | } | |
4215 | } | |
4216 | { | |
c8bc7bb8 RD |
4217 | _arg1 = wxString_in_helper(_obj1); |
4218 | if (_arg1 == NULL) | |
185d7c3e | 4219 | return NULL; |
8ab979d7 | 4220 | } |
cf694132 | 4221 | { |
4268f798 | 4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4223 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4224 | |
4268f798 | 4225 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4226 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4227 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4228 | _resultobj = Py_None; |
4229 | { | |
4230 | if (_obj1) | |
4231 | delete _arg1; | |
4232 | } | |
4233 | return _resultobj; | |
4234 | } | |
4235 | ||
8ab979d7 | 4236 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4237 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4238 | PyObject * _resultobj; |
4239 | wxWindow * _arg0; | |
4240 | int _arg1; | |
4241 | int _arg2; | |
4242 | int _arg3; | |
4243 | int _arg4; | |
eb715945 | 4244 | int _arg5 = (int ) TRUE; |
1d99702e | 4245 | PyObject * _argo0 = 0; |
efc5f224 | 4246 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4247 | |
4248 | self = self; | |
eb715945 | 4249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4250 | return NULL; |
1d99702e RD |
4251 | if (_argo0) { |
4252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4255 | return NULL; | |
4256 | } | |
4257 | } | |
cf694132 | 4258 | { |
4268f798 | 4259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4260 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4261 | |
4268f798 | 4262 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4263 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4264 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4265 | _resultobj = Py_None; |
4266 | return _resultobj; | |
4267 | } | |
4268 | ||
4269 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4270 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4271 | PyObject * _resultobj; |
4272 | wxWindow * _arg0; | |
4273 | int _arg1; | |
4274 | int _arg2; | |
1d99702e RD |
4275 | bool _arg3 = (bool ) TRUE; |
4276 | PyObject * _argo0 = 0; | |
4277 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4278 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4279 | |
4280 | self = self; | |
efc5f224 | 4281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4282 | return NULL; |
1d99702e RD |
4283 | if (_argo0) { |
4284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4287 | return NULL; | |
4288 | } | |
4289 | } | |
4290 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4291 | { |
4268f798 | 4292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4293 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4294 | |
4268f798 | 4295 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4296 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4297 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4298 | _resultobj = Py_None; |
4299 | return _resultobj; | |
4300 | } | |
4301 | ||
4302 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4303 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4304 | PyObject * _resultobj; |
4305 | wxWindow * _arg0; | |
4306 | int _arg1; | |
4307 | int _arg2; | |
4308 | int _arg3; | |
4309 | int _arg4; | |
1d99702e RD |
4310 | int _arg5 = (int ) wxSIZE_AUTO; |
4311 | PyObject * _argo0 = 0; | |
efc5f224 | 4312 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4313 | |
4314 | self = self; | |
efc5f224 | 4315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4316 | return NULL; |
1d99702e RD |
4317 | if (_argo0) { |
4318 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4319 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4320 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4321 | return NULL; | |
4322 | } | |
4323 | } | |
cf694132 | 4324 | { |
4268f798 | 4325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4326 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4327 | |
4268f798 | 4328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4329 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4330 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4331 | _resultobj = Py_None; |
4332 | return _resultobj; | |
4333 | } | |
4334 | ||
4335 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4336 | self->SetSize(size); |
8ab979d7 | 4337 | } |
efc5f224 | 4338 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4339 | PyObject * _resultobj; |
4340 | wxWindow * _arg0; | |
4341 | wxSize * _arg1; | |
1d99702e | 4342 | PyObject * _argo0 = 0; |
2f90df85 RD |
4343 | wxSize temp; |
4344 | PyObject * _obj1 = 0; | |
efc5f224 | 4345 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4346 | |
4347 | self = self; | |
2f90df85 | 4348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4349 | return NULL; |
1d99702e RD |
4350 | if (_argo0) { |
4351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4354 | return NULL; | |
4355 | } | |
4356 | } | |
2f90df85 RD |
4357 | { |
4358 | _arg1 = &temp; | |
4359 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4360 | return NULL; |
2f90df85 | 4361 | } |
cf694132 | 4362 | { |
4268f798 | 4363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4364 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4365 | |
4268f798 | 4366 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4367 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4368 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4369 | _resultobj = Py_None; |
4370 | return _resultobj; | |
4371 | } | |
4372 | ||
23bed520 RD |
4373 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4374 | self->Move(pos, flags); | |
8ab979d7 | 4375 | } |
efc5f224 | 4376 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4377 | PyObject * _resultobj; |
4378 | wxWindow * _arg0; | |
4379 | wxPoint * _arg1; | |
23bed520 | 4380 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4381 | PyObject * _argo0 = 0; |
2f90df85 RD |
4382 | wxPoint temp; |
4383 | PyObject * _obj1 = 0; | |
23bed520 | 4384 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4385 | |
4386 | self = self; | |
23bed520 | 4387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4388 | return NULL; |
1d99702e RD |
4389 | if (_argo0) { |
4390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4393 | return NULL; | |
4394 | } | |
4395 | } | |
2f90df85 RD |
4396 | { |
4397 | _arg1 = &temp; | |
4398 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4399 | return NULL; |
2f90df85 | 4400 | } |
cf694132 | 4401 | { |
4268f798 | 4402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4403 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4404 | |
4268f798 | 4405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4407 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4408 | _resultobj = Py_None; |
4409 | return _resultobj; | |
4410 | } | |
4411 | ||
dbbb98cd RD |
4412 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4413 | self->SetSize(rect, sizeFlags); | |
4414 | } | |
4415 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4416 | PyObject * _resultobj; | |
4417 | wxWindow * _arg0; | |
4418 | wxRect * _arg1; | |
4419 | int _arg2 = (int ) wxSIZE_AUTO; | |
4420 | PyObject * _argo0 = 0; | |
4421 | wxRect temp; | |
4422 | PyObject * _obj1 = 0; | |
4423 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4424 | ||
4425 | self = self; | |
4426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4427 | return NULL; | |
4428 | if (_argo0) { | |
4429 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4430 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4431 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4432 | return NULL; | |
4433 | } | |
4434 | } | |
4435 | { | |
4436 | _arg1 = &temp; | |
4437 | if (! wxRect_helper(_obj1, &_arg1)) | |
4438 | return NULL; | |
4439 | } | |
4440 | { | |
4268f798 | 4441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4442 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
dbbb98cd | 4443 | |
4268f798 | 4444 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4445 | if (PyErr_Occurred()) return NULL; |
dbbb98cd RD |
4446 | } Py_INCREF(Py_None); |
4447 | _resultobj = Py_None; | |
4448 | return _resultobj; | |
4449 | } | |
4450 | ||
8ab979d7 | 4451 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4452 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4453 | PyObject * _resultobj; |
4454 | wxWindow * _arg0; | |
1d99702e RD |
4455 | int _arg1 = (int ) -1; |
4456 | int _arg2 = (int ) -1; | |
4457 | int _arg3 = (int ) -1; | |
4458 | int _arg4 = (int ) -1; | |
4459 | int _arg5 = (int ) -1; | |
4460 | int _arg6 = (int ) -1; | |
4461 | PyObject * _argo0 = 0; | |
efc5f224 | 4462 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4463 | |
4464 | self = self; | |
efc5f224 | 4465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4466 | return NULL; |
1d99702e RD |
4467 | if (_argo0) { |
4468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4471 | return NULL; | |
4472 | } | |
4473 | } | |
cf694132 | 4474 | { |
4268f798 | 4475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4476 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4477 | |
4268f798 | 4478 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4479 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4480 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4481 | _resultobj = Py_None; |
4482 | return _resultobj; | |
4483 | } | |
4484 | ||
af309447 | 4485 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4486 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4487 | PyObject * _resultobj; |
4488 | wxWindow * _arg0; | |
4489 | int _arg1; | |
4490 | int _arg2; | |
1d99702e | 4491 | PyObject * _argo0 = 0; |
efc5f224 | 4492 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4493 | |
4494 | self = self; | |
efc5f224 | 4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4496 | return NULL; |
1d99702e RD |
4497 | if (_argo0) { |
4498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4501 | return NULL; | |
4502 | } | |
4503 | } | |
cf694132 | 4504 | { |
4268f798 | 4505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4506 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4507 | |
4268f798 | 4508 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4509 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4510 | } Py_INCREF(Py_None); |
af309447 RD |
4511 | _resultobj = Py_None; |
4512 | return _resultobj; | |
4513 | } | |
4514 | ||
4515 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4516 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4517 | PyObject * _resultobj; |
4518 | wxWindow * _arg0; | |
4519 | wxSize * _arg1; | |
1d99702e | 4520 | PyObject * _argo0 = 0; |
2f90df85 RD |
4521 | wxSize temp; |
4522 | PyObject * _obj1 = 0; | |
efc5f224 | 4523 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4524 | |
4525 | self = self; | |
2f90df85 | 4526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4527 | return NULL; |
1d99702e RD |
4528 | if (_argo0) { |
4529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4532 | return NULL; | |
4533 | } | |
4534 | } | |
2f90df85 RD |
4535 | { |
4536 | _arg1 = &temp; | |
4537 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4538 | return NULL; |
2f90df85 | 4539 | } |
cf694132 | 4540 | { |
4268f798 | 4541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4542 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4543 | |
4268f798 | 4544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4545 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4546 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4547 | _resultobj = Py_None; |
4548 | return _resultobj; | |
4549 | } | |
4550 | ||
4551 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4552 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4553 | PyObject * _resultobj; |
4554 | wxWindow * _arg0; | |
4555 | wxCursor * _arg1; | |
1d99702e RD |
4556 | PyObject * _argo0 = 0; |
4557 | PyObject * _argo1 = 0; | |
efc5f224 | 4558 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4559 | |
4560 | self = self; | |
efc5f224 | 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4562 | return NULL; |
1d99702e RD |
4563 | if (_argo0) { |
4564 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4565 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4566 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4567 | return NULL; | |
4568 | } | |
4569 | } | |
1d99702e RD |
4570 | if (_argo1) { |
4571 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4572 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4574 | return NULL; | |
4575 | } | |
4576 | } | |
cf694132 | 4577 | { |
4268f798 | 4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4579 | wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4580 | |
4268f798 | 4581 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4582 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4583 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4584 | _resultobj = Py_None; |
4585 | return _resultobj; | |
4586 | } | |
4587 | ||
1afc06c2 RD |
4588 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4589 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4590 | PyObject * _resultobj; | |
4591 | wxWindow * _arg0; | |
4592 | wxEvtHandler * _arg1; | |
4593 | PyObject * _argo0 = 0; | |
4594 | PyObject * _argo1 = 0; | |
4595 | char *_kwnames[] = { "self","handler", NULL }; | |
4596 | ||
4597 | self = self; | |
4598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4599 | return NULL; | |
4600 | if (_argo0) { | |
4601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4604 | return NULL; | |
4605 | } | |
4606 | } | |
4607 | if (_argo1) { | |
4608 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4609 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4611 | return NULL; | |
4612 | } | |
4613 | } | |
4614 | { | |
4268f798 | 4615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4616 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4617 | |
4268f798 | 4618 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4619 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4620 | } Py_INCREF(Py_None); |
4621 | _resultobj = Py_None; | |
4622 | return _resultobj; | |
4623 | } | |
4624 | ||
83b18bab RD |
4625 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4626 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4627 | PyObject * _resultobj; | |
4628 | wxWindow * _arg0; | |
4629 | long _arg1; | |
4630 | PyObject * _argo0 = 0; | |
4631 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4632 | ||
4633 | self = self; | |
4634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4635 | return NULL; | |
4636 | if (_argo0) { | |
4637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4640 | return NULL; | |
4641 | } | |
4642 | } | |
4643 | { | |
4268f798 | 4644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4645 | wxWindow_SetExtraStyle(_arg0,_arg1); |
83b18bab | 4646 | |
4268f798 | 4647 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4648 | if (PyErr_Occurred()) return NULL; |
83b18bab RD |
4649 | } Py_INCREF(Py_None); |
4650 | _resultobj = Py_None; | |
4651 | return _resultobj; | |
4652 | } | |
4653 | ||
8ab979d7 | 4654 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4655 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4656 | PyObject * _resultobj; |
4657 | wxWindow * _arg0; | |
4658 | wxString * _arg1; | |
1d99702e | 4659 | PyObject * _argo0 = 0; |
8ab979d7 | 4660 | PyObject * _obj1 = 0; |
efc5f224 | 4661 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4662 | |
4663 | self = self; | |
efc5f224 | 4664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4665 | return NULL; |
1d99702e RD |
4666 | if (_argo0) { |
4667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4670 | return NULL; | |
4671 | } | |
4672 | } | |
4673 | { | |
c8bc7bb8 RD |
4674 | _arg1 = wxString_in_helper(_obj1); |
4675 | if (_arg1 == NULL) | |
185d7c3e | 4676 | return NULL; |
8ab979d7 | 4677 | } |
cf694132 | 4678 | { |
4268f798 | 4679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4680 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 4681 | |
4268f798 | 4682 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4683 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4684 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4685 | _resultobj = Py_None; |
4686 | { | |
4687 | if (_obj1) | |
4688 | delete _arg1; | |
4689 | } | |
4690 | return _resultobj; | |
4691 | } | |
4692 | ||
4693 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4694 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4695 | PyObject * _resultobj; |
4696 | bool _result; | |
4697 | wxWindow * _arg0; | |
7b7ac0ab | 4698 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4699 | PyObject * _argo0 = 0; |
7b7ac0ab | 4700 | int tempbool1 = (int) TRUE; |
efc5f224 | 4701 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4702 | |
4703 | self = self; | |
7b7ac0ab | 4704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4705 | return NULL; |
1d99702e RD |
4706 | if (_argo0) { |
4707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4710 | return NULL; | |
4711 | } | |
4712 | } | |
4713 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4714 | { |
4268f798 | 4715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4716 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 4717 | |
4268f798 | 4718 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4719 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4720 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4721 | return _resultobj; |
4722 | } | |
4723 | ||
4724 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4725 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4726 | PyObject * _resultobj; |
4727 | bool _result; | |
4728 | wxWindow * _arg0; | |
1d99702e | 4729 | PyObject * _argo0 = 0; |
efc5f224 | 4730 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4731 | |
4732 | self = self; | |
efc5f224 | 4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4734 | return NULL; |
1d99702e RD |
4735 | if (_argo0) { |
4736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4739 | return NULL; | |
4740 | } | |
4741 | } | |
cf694132 | 4742 | { |
4268f798 | 4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4744 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 4745 | |
4268f798 | 4746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4747 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4748 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4749 | return _resultobj; |
4750 | } | |
4751 | ||
4752 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4753 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4754 | PyObject * _resultobj; |
4755 | bool _result; | |
4756 | wxWindow * _arg0; | |
1d99702e | 4757 | PyObject * _argo0 = 0; |
efc5f224 | 4758 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4759 | |
4760 | self = self; | |
efc5f224 | 4761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4762 | return NULL; |
1d99702e RD |
4763 | if (_argo0) { |
4764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4767 | return NULL; | |
4768 | } | |
4769 | } | |
cf694132 | 4770 | { |
4268f798 | 4771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4772 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 4773 | |
4268f798 | 4774 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4775 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4776 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4777 | return _resultobj; |
4778 | } | |
4779 | ||
23bed520 RD |
4780 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
4781 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4782 | PyObject * _resultobj; | |
4783 | wxWindow * _arg0; | |
4784 | PyObject * _argo0 = 0; | |
4785 | char *_kwnames[] = { "self", NULL }; | |
4786 | ||
4787 | self = self; | |
4788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4789 | return NULL; | |
4790 | if (_argo0) { | |
4791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4794 | return NULL; | |
4795 | } | |
4796 | } | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4799 | wxWindow_UpdateWindowUI(_arg0); |
23bed520 RD |
4800 | |
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) return NULL; | |
4803 | } Py_INCREF(Py_None); | |
4804 | _resultobj = Py_None; | |
4805 | return _resultobj; | |
4806 | } | |
4807 | ||
8ab979d7 | 4808 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 4809 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4810 | PyObject * _resultobj; |
4811 | bool _result; | |
4812 | wxWindow * _arg0; | |
1d99702e | 4813 | PyObject * _argo0 = 0; |
efc5f224 | 4814 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4815 | |
4816 | self = self; | |
efc5f224 | 4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4818 | return NULL; |
1d99702e RD |
4819 | if (_argo0) { |
4820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4823 | return NULL; | |
4824 | } | |
4825 | } | |
cf694132 | 4826 | { |
4268f798 | 4827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4828 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 4829 | |
4268f798 | 4830 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4831 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4832 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4833 | return _resultobj; |
4834 | } | |
4835 | ||
4836 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4837 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4838 | PyObject * _resultobj; |
4839 | wxWindow * _arg0; | |
4840 | int _arg1; | |
4841 | int _arg2; | |
1d99702e | 4842 | PyObject * _argo0 = 0; |
efc5f224 | 4843 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4844 | |
4845 | self = self; | |
efc5f224 | 4846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4847 | return NULL; |
1d99702e RD |
4848 | if (_argo0) { |
4849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4852 | return NULL; | |
4853 | } | |
4854 | } | |
cf694132 | 4855 | { |
4268f798 | 4856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4857 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); |
cf694132 | 4858 | |
4268f798 | 4859 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4860 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4861 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4862 | _resultobj = Py_None; |
4863 | return _resultobj; | |
4864 | } | |
4865 | ||
b8b8dda7 | 4866 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4867 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4868 | PyObject * _resultobj; |
4869 | wxPoint * _result; | |
4870 | wxWindow * _arg0; | |
4871 | wxPoint * _arg1; | |
1d99702e | 4872 | PyObject * _argo0 = 0; |
2f90df85 RD |
4873 | wxPoint temp; |
4874 | PyObject * _obj1 = 0; | |
efc5f224 | 4875 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4876 | char _ptemp[128]; |
4877 | ||
4878 | self = self; | |
2f90df85 | 4879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4880 | return NULL; |
1d99702e RD |
4881 | if (_argo0) { |
4882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4885 | return NULL; | |
4886 | } | |
4887 | } | |
2f90df85 RD |
4888 | { |
4889 | _arg1 = &temp; | |
4890 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4891 | return NULL; |
2f90df85 | 4892 | } |
cf694132 | 4893 | { |
4268f798 | 4894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4895 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 4896 | |
4268f798 | 4897 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4898 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4899 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4900 | _resultobj = Py_BuildValue("s",_ptemp); |
4901 | return _resultobj; | |
4902 | } | |
4903 | ||
4904 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4905 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4906 | PyObject * _resultobj; |
4907 | wxSize * _result; | |
4908 | wxWindow * _arg0; | |
4909 | wxSize * _arg1; | |
1d99702e | 4910 | PyObject * _argo0 = 0; |
2f90df85 RD |
4911 | wxSize temp; |
4912 | PyObject * _obj1 = 0; | |
efc5f224 | 4913 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4914 | char _ptemp[128]; |
4915 | ||
4916 | self = self; | |
2f90df85 | 4917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4918 | return NULL; |
1d99702e RD |
4919 | if (_argo0) { |
4920 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4921 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4923 | return NULL; | |
4924 | } | |
4925 | } | |
2f90df85 RD |
4926 | { |
4927 | _arg1 = &temp; | |
4928 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4929 | return NULL; |
2f90df85 | 4930 | } |
cf694132 | 4931 | { |
4268f798 | 4932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4933 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 4934 | |
4268f798 | 4935 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4936 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4937 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4938 | _resultobj = Py_BuildValue("s",_ptemp); |
4939 | return _resultobj; | |
4940 | } | |
4941 | ||
4942 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4943 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4944 | PyObject * _resultobj; |
4945 | wxPoint * _result; | |
4946 | wxWindow * _arg0; | |
4947 | wxPoint * _arg1; | |
1d99702e | 4948 | PyObject * _argo0 = 0; |
2f90df85 RD |
4949 | wxPoint temp; |
4950 | PyObject * _obj1 = 0; | |
efc5f224 | 4951 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4952 | char _ptemp[128]; |
4953 | ||
4954 | self = self; | |
2f90df85 | 4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4956 | return NULL; |
1d99702e RD |
4957 | if (_argo0) { |
4958 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4959 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4961 | return NULL; | |
4962 | } | |
4963 | } | |
2f90df85 RD |
4964 | { |
4965 | _arg1 = &temp; | |
4966 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4967 | return NULL; |
2f90df85 | 4968 | } |
cf694132 | 4969 | { |
4268f798 | 4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4971 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 4972 | |
4268f798 | 4973 | wxPyEndAllowThreads(__tstate); |
493f1553 | 4974 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4975 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4976 | _resultobj = Py_BuildValue("s",_ptemp); |
4977 | return _resultobj; | |
4978 | } | |
4979 | ||
4980 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4981 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4982 | PyObject * _resultobj; |
4983 | wxSize * _result; | |
4984 | wxWindow * _arg0; | |
4985 | wxSize * _arg1; | |
1d99702e | 4986 | PyObject * _argo0 = 0; |
2f90df85 RD |
4987 | wxSize temp; |
4988 | PyObject * _obj1 = 0; | |
efc5f224 | 4989 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4990 | char _ptemp[128]; |
4991 | ||
4992 | self = self; | |
2f90df85 | 4993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4994 | return NULL; |
1d99702e RD |
4995 | if (_argo0) { |
4996 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4997 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4998 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4999 | return NULL; | |
5000 | } | |
5001 | } | |
2f90df85 RD |
5002 | { |
5003 | _arg1 = &temp; | |
5004 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 5005 | return NULL; |
2f90df85 | 5006 | } |
cf694132 | 5007 | { |
4268f798 | 5008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5009 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 5010 | |
4268f798 | 5011 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5012 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5013 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
5014 | _resultobj = Py_BuildValue("s",_ptemp); |
5015 | return _resultobj; | |
5016 | } | |
5017 | ||
af309447 | 5018 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 5019 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5020 | PyObject * _resultobj; |
5021 | wxWindow * _arg0; | |
5022 | wxString * _arg1; | |
1d99702e | 5023 | PyObject * _argo0 = 0; |
af309447 | 5024 | PyObject * _obj1 = 0; |
efc5f224 | 5025 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
5026 | |
5027 | self = self; | |
efc5f224 | 5028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 5029 | return NULL; |
1d99702e RD |
5030 | if (_argo0) { |
5031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5034 | return NULL; | |
5035 | } | |
5036 | } | |
5037 | { | |
c8bc7bb8 RD |
5038 | _arg1 = wxString_in_helper(_obj1); |
5039 | if (_arg1 == NULL) | |
185d7c3e | 5040 | return NULL; |
af309447 | 5041 | } |
cf694132 | 5042 | { |
4268f798 | 5043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5044 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5045 | |
4268f798 | 5046 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5048 | } Py_INCREF(Py_None); |
af309447 RD |
5049 | _resultobj = Py_None; |
5050 | { | |
5051 | if (_obj1) | |
5052 | delete _arg1; | |
5053 | } | |
5054 | return _resultobj; | |
5055 | } | |
5056 | ||
5057 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5058 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5059 | PyObject * _resultobj; |
5060 | wxWindow * _arg0; | |
5061 | wxToolTip * _arg1; | |
1d99702e RD |
5062 | PyObject * _argo0 = 0; |
5063 | PyObject * _argo1 = 0; | |
efc5f224 | 5064 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5065 | |
5066 | self = self; | |
efc5f224 | 5067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5068 | return NULL; |
1d99702e RD |
5069 | if (_argo0) { |
5070 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5071 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5072 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5073 | return NULL; | |
5074 | } | |
5075 | } | |
1d99702e RD |
5076 | if (_argo1) { |
5077 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5078 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5080 | return NULL; | |
5081 | } | |
5082 | } | |
cf694132 | 5083 | { |
4268f798 | 5084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5085 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5086 | |
4268f798 | 5087 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5088 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5089 | } Py_INCREF(Py_None); |
af309447 RD |
5090 | _resultobj = Py_None; |
5091 | return _resultobj; | |
5092 | } | |
5093 | ||
5094 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5095 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5096 | PyObject * _resultobj; |
5097 | wxToolTip * _result; | |
5098 | wxWindow * _arg0; | |
1d99702e | 5099 | PyObject * _argo0 = 0; |
efc5f224 | 5100 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5101 | |
5102 | self = self; | |
efc5f224 | 5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5104 | return NULL; |
1d99702e RD |
5105 | if (_argo0) { |
5106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5109 | return NULL; | |
5110 | } | |
5111 | } | |
cf694132 | 5112 | { |
4268f798 | 5113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5114 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5115 | |
4268f798 | 5116 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5117 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5118 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5119 | return _resultobj; |
5120 | } | |
5121 | ||
a541c325 | 5122 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5123 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5124 | PyObject * _resultobj; | |
5125 | wxWindow * _arg0; | |
5126 | wxSizer * _arg1; | |
a541c325 | 5127 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5128 | PyObject * _argo0 = 0; |
5129 | PyObject * _argo1 = 0; | |
a541c325 RD |
5130 | int tempbool2 = (int) TRUE; |
5131 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5132 | |
5133 | self = self; | |
a541c325 | 5134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5135 | return NULL; |
5136 | if (_argo0) { | |
5137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5140 | return NULL; | |
5141 | } | |
5142 | } | |
5143 | if (_argo1) { | |
5144 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5145 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5147 | return NULL; | |
5148 | } | |
5149 | } | |
a541c325 | 5150 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5151 | { |
4268f798 | 5152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a541c325 | 5153 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5154 | |
4268f798 | 5155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5156 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5157 | } Py_INCREF(Py_None); |
5158 | _resultobj = Py_None; | |
5159 | return _resultobj; | |
5160 | } | |
5161 | ||
f6bcfd97 BP |
5162 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5163 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5164 | PyObject * _resultobj; | |
5165 | wxSizer * _result; | |
5166 | wxWindow * _arg0; | |
5167 | PyObject * _argo0 = 0; | |
5168 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5169 | |
5170 | self = self; | |
5171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5172 | return NULL; | |
5173 | if (_argo0) { | |
5174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5177 | return NULL; | |
5178 | } | |
5179 | } | |
5180 | { | |
4268f798 | 5181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5182 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5183 | |
4268f798 | 5184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5185 | if (PyErr_Occurred()) return NULL; |
2f4e9287 | 5186 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5187 | return _resultobj; |
5188 | } | |
5189 | ||
be90c029 RD |
5190 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5191 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5192 | PyObject * _resultobj; | |
5193 | wxWindow * _arg0; | |
5194 | wxSizer * _arg1; | |
5195 | PyObject * _argo0 = 0; | |
5196 | PyObject * _argo1 = 0; | |
5197 | char *_kwnames[] = { "self","sizer", NULL }; | |
5198 | ||
5199 | self = self; | |
5200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5201 | return NULL; | |
5202 | if (_argo0) { | |
5203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5206 | return NULL; | |
5207 | } | |
5208 | } | |
5209 | if (_argo1) { | |
5210 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5211 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5213 | return NULL; | |
5214 | } | |
5215 | } | |
5216 | { | |
5217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5218 | wxWindow_SetContainingSizer(_arg0,_arg1); |
be90c029 RD |
5219 | |
5220 | wxPyEndAllowThreads(__tstate); | |
5221 | if (PyErr_Occurred()) return NULL; | |
5222 | } Py_INCREF(Py_None); | |
5223 | _resultobj = Py_None; | |
5224 | return _resultobj; | |
5225 | } | |
5226 | ||
5227 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5228 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5229 | PyObject * _resultobj; | |
5230 | wxSizer * _result; | |
5231 | wxWindow * _arg0; | |
5232 | PyObject * _argo0 = 0; | |
5233 | char *_kwnames[] = { "self", NULL }; | |
5234 | ||
5235 | self = self; | |
5236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5237 | return NULL; | |
5238 | if (_argo0) { | |
5239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5242 | return NULL; | |
5243 | } | |
5244 | } | |
5245 | { | |
5246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5247 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
be90c029 RD |
5248 | |
5249 | wxPyEndAllowThreads(__tstate); | |
5250 | if (PyErr_Occurred()) return NULL; | |
5251 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5252 | return _resultobj; | |
5253 | } | |
5254 | ||
2f90df85 RD |
5255 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5256 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5257 | PyObject * _resultobj; | |
5258 | wxValidator * _result; | |
5259 | wxWindow * _arg0; | |
5260 | PyObject * _argo0 = 0; | |
5261 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5262 | |
5263 | self = self; | |
5264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5265 | return NULL; | |
5266 | if (_argo0) { | |
5267 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5268 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5269 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5270 | return NULL; | |
5271 | } | |
5272 | } | |
5273 | { | |
4268f798 | 5274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5275 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5276 | |
4268f798 | 5277 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5278 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 5279 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5280 | return _resultobj; |
5281 | } | |
5282 | ||
5283 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5284 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5285 | PyObject * _resultobj; | |
5286 | wxWindow * _arg0; | |
5287 | wxValidator * _arg1; | |
5288 | PyObject * _argo0 = 0; | |
5289 | PyObject * _argo1 = 0; | |
5290 | char *_kwnames[] = { "self","validator", NULL }; | |
5291 | ||
5292 | self = self; | |
5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5294 | return NULL; | |
5295 | if (_argo0) { | |
5296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5299 | return NULL; | |
5300 | } | |
5301 | } | |
5302 | if (_argo1) { | |
5303 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5304 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5306 | return NULL; | |
5307 | } | |
5308 | } | |
5309 | { | |
4268f798 | 5310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5311 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5312 | |
4268f798 | 5313 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5314 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5315 | } Py_INCREF(Py_None); |
5316 | _resultobj = Py_None; | |
5317 | return _resultobj; | |
5318 | } | |
5319 | ||
b1462dfa RD |
5320 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5321 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5322 | PyObject * _resultobj; | |
5323 | wxWindow * _arg0; | |
5324 | wxDropTarget * _arg1; | |
5325 | PyObject * _argo0 = 0; | |
5326 | PyObject * _argo1 = 0; | |
5327 | char *_kwnames[] = { "self","target", NULL }; | |
5328 | ||
5329 | self = self; | |
5330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5331 | return NULL; | |
5332 | if (_argo0) { | |
5333 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5334 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5335 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5336 | return NULL; | |
5337 | } | |
5338 | } | |
5339 | if (_argo1) { | |
5340 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5341 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5343 | return NULL; | |
5344 | } | |
5345 | } | |
5346 | { | |
4268f798 | 5347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5348 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5349 | |
4268f798 | 5350 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5351 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5352 | } Py_INCREF(Py_None); |
5353 | _resultobj = Py_None; | |
5354 | return _resultobj; | |
5355 | } | |
5356 | ||
5357 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5358 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5359 | PyObject * _resultobj; | |
5360 | wxDropTarget * _result; | |
5361 | wxWindow * _arg0; | |
5362 | PyObject * _argo0 = 0; | |
5363 | char *_kwnames[] = { "self", NULL }; | |
5364 | char _ptemp[128]; | |
5365 | ||
5366 | self = self; | |
5367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5368 | return NULL; | |
5369 | if (_argo0) { | |
5370 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5371 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5373 | return NULL; | |
5374 | } | |
5375 | } | |
5376 | { | |
4268f798 | 5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5378 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5379 | |
4268f798 | 5380 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5381 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5382 | } if (_result) { |
5383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5384 | _resultobj = Py_BuildValue("s",_ptemp); | |
5385 | } else { | |
5386 | Py_INCREF(Py_None); | |
5387 | _resultobj = Py_None; | |
5388 | } | |
5389 | return _resultobj; | |
5390 | } | |
5391 | ||
694759cf RD |
5392 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5393 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5394 | PyObject * _resultobj; | |
5395 | wxSize * _result; | |
5396 | wxWindow * _arg0; | |
5397 | PyObject * _argo0 = 0; | |
5398 | char *_kwnames[] = { "self", NULL }; | |
5399 | char _ptemp[128]; | |
5400 | ||
5401 | self = self; | |
5402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5403 | return NULL; | |
5404 | if (_argo0) { | |
5405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5408 | return NULL; | |
5409 | } | |
5410 | } | |
5411 | { | |
4268f798 | 5412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5413 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5414 | |
4268f798 | 5415 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5416 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5417 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5418 | _resultobj = Py_BuildValue("s",_ptemp); | |
5419 | return _resultobj; | |
5420 | } | |
5421 | ||
a541c325 RD |
5422 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5423 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject * _resultobj; | |
5425 | wxSize * _result; | |
5426 | wxWindow * _arg0; | |
5427 | PyObject * _argo0 = 0; | |
5428 | char *_kwnames[] = { "self", NULL }; | |
5429 | char _ptemp[128]; | |
5430 | ||
5431 | self = self; | |
5432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5433 | return NULL; | |
5434 | if (_argo0) { | |
5435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5438 | return NULL; | |
5439 | } | |
5440 | } | |
5441 | { | |
5442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5443 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5444 | ||
5445 | wxPyEndAllowThreads(__tstate); | |
5446 | if (PyErr_Occurred()) return NULL; | |
5447 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5448 | _resultobj = Py_BuildValue("s",_ptemp); | |
5449 | return _resultobj; | |
5450 | } | |
5451 | ||
a1df7a95 RD |
5452 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5453 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5454 | PyObject * _resultobj; | |
5455 | wxWindow * _arg0; | |
5456 | wxCaret * _arg1; | |
5457 | PyObject * _argo0 = 0; | |
5458 | PyObject * _argo1 = 0; | |
5459 | char *_kwnames[] = { "self","caret", NULL }; | |
5460 | ||
5461 | self = self; | |
5462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5463 | return NULL; | |
5464 | if (_argo0) { | |
5465 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5466 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5467 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5468 | return NULL; | |
5469 | } | |
5470 | } | |
5471 | if (_argo1) { | |
5472 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5473 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5475 | return NULL; | |
5476 | } | |
5477 | } | |
5478 | { | |
4268f798 | 5479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5480 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5481 | |
4268f798 | 5482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5483 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5484 | } Py_INCREF(Py_None); |
5485 | _resultobj = Py_None; | |
5486 | return _resultobj; | |
5487 | } | |
5488 | ||
5489 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5490 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5491 | PyObject * _resultobj; | |
5492 | wxCaret * _result; | |
5493 | wxWindow * _arg0; | |
5494 | PyObject * _argo0 = 0; | |
5495 | char *_kwnames[] = { "self", NULL }; | |
5496 | char _ptemp[128]; | |
5497 | ||
5498 | self = self; | |
5499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5500 | return NULL; | |
5501 | if (_argo0) { | |
5502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5505 | return NULL; | |
5506 | } | |
5507 | } | |
5508 | { | |
4268f798 | 5509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5510 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5511 | |
4268f798 | 5512 | wxPyEndAllowThreads(__tstate); |
493f1553 | 5513 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5514 | } if (_result) { |
5515 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5516 | _resultobj = Py_BuildValue("s",_ptemp); | |
5517 | } else { | |
5518 | Py_INCREF(Py_None); | |
5519 | _resultobj = Py_None; | |
5520 | } | |
5521 | return _resultobj; | |
5522 | } | |
5523 | ||
3a0958b1 RD |
5524 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5525 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5526 | PyObject * _resultobj; | |
5527 | wxWindow * _arg0; | |
5528 | PyObject * _argo0 = 0; | |
5529 | char *_kwnames[] = { "self", NULL }; | |
5530 | ||
5531 | self = self; | |
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5533 | return NULL; | |
5534 | if (_argo0) { | |
5535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5538 | return NULL; | |
5539 | } | |
5540 | } | |
5541 | { | |
4268f798 | 5542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5543 | wxWindow_Freeze(_arg0); |
3a0958b1 | 5544 | |
4268f798 | 5545 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5546 | if (PyErr_Occurred()) return NULL; |
5547 | } Py_INCREF(Py_None); | |
5548 | _resultobj = Py_None; | |
5549 | return _resultobj; | |
5550 | } | |
5551 | ||
5552 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5553 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5554 | PyObject * _resultobj; | |
5555 | wxWindow * _arg0; | |
5556 | PyObject * _argo0 = 0; | |
5557 | char *_kwnames[] = { "self", NULL }; | |
5558 | ||
5559 | self = self; | |
5560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5561 | return NULL; | |
5562 | if (_argo0) { | |
5563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5566 | return NULL; | |
5567 | } | |
5568 | } | |
5569 | { | |
4268f798 | 5570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5571 | wxWindow_Thaw(_arg0); |
3a0958b1 | 5572 | |
4268f798 | 5573 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
5574 | if (PyErr_Occurred()) return NULL; |
5575 | } Py_INCREF(Py_None); | |
5576 | _resultobj = Py_None; | |
5577 | return _resultobj; | |
5578 | } | |
5579 | ||
09f3d4e6 RD |
5580 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5581 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5582 | PyObject * _resultobj; | |
5583 | wxWindow * _arg0; | |
5584 | PyObject * _argo0 = 0; | |
5585 | char *_kwnames[] = { "self", NULL }; | |
5586 | ||
5587 | self = self; | |
5588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5589 | return NULL; | |
5590 | if (_argo0) { | |
5591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5594 | return NULL; | |
5595 | } | |
5596 | } | |
5597 | { | |
4268f798 | 5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5599 | wxWindow_Update(_arg0); |
09f3d4e6 | 5600 | |
4268f798 | 5601 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5602 | if (PyErr_Occurred()) return NULL; |
5603 | } Py_INCREF(Py_None); | |
5604 | _resultobj = Py_None; | |
5605 | return _resultobj; | |
5606 | } | |
5607 | ||
4f3449b4 RD |
5608 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5609 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5610 | PyObject * _resultobj; | |
5611 | wxString * _result; | |
5612 | wxWindow * _arg0; | |
5613 | PyObject * _argo0 = 0; | |
5614 | char *_kwnames[] = { "self", NULL }; | |
5615 | ||
5616 | self = self; | |
5617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5618 | return NULL; | |
5619 | if (_argo0) { | |
5620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5623 | return NULL; | |
5624 | } | |
5625 | } | |
5626 | { | |
4268f798 | 5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5628 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
4f3449b4 | 5629 | |
4268f798 | 5630 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5631 | if (PyErr_Occurred()) return NULL; |
5632 | }{ | |
c8bc7bb8 RD |
5633 | #if wxUSE_UNICODE |
5634 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5635 | #else | |
4f3449b4 | 5636 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5637 | #endif |
4f3449b4 RD |
5638 | } |
5639 | { | |
5640 | delete _result; | |
5641 | } | |
5642 | return _resultobj; | |
5643 | } | |
5644 | ||
5645 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5646 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5647 | PyObject * _resultobj; | |
5648 | wxWindow * _arg0; | |
5649 | wxString * _arg1; | |
5650 | PyObject * _argo0 = 0; | |
5651 | PyObject * _obj1 = 0; | |
5652 | char *_kwnames[] = { "self","helpText", NULL }; | |
5653 | ||
5654 | self = self; | |
5655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5656 | return NULL; | |
5657 | if (_argo0) { | |
5658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5661 | return NULL; | |
5662 | } | |
5663 | } | |
5664 | { | |
c8bc7bb8 RD |
5665 | _arg1 = wxString_in_helper(_obj1); |
5666 | if (_arg1 == NULL) | |
4f3449b4 | 5667 | return NULL; |
4f3449b4 RD |
5668 | } |
5669 | { | |
4268f798 | 5670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5671 | wxWindow_SetHelpText(_arg0,*_arg1); |
4f3449b4 | 5672 | |
4268f798 | 5673 | wxPyEndAllowThreads(__tstate); |
4f3449b4 RD |
5674 | if (PyErr_Occurred()) return NULL; |
5675 | } Py_INCREF(Py_None); | |
5676 | _resultobj = Py_None; | |
5677 | { | |
5678 | if (_obj1) | |
5679 | delete _arg1; | |
5680 | } | |
5681 | return _resultobj; | |
5682 | } | |
5683 | ||
23bed520 RD |
5684 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
5685 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5686 | PyObject * _resultobj; | |
5687 | wxWindow * _arg0; | |
5688 | wxString * _arg1; | |
5689 | PyObject * _argo0 = 0; | |
5690 | PyObject * _obj1 = 0; | |
5691 | char *_kwnames[] = { "self","text", NULL }; | |
5692 | ||
5693 | self = self; | |
5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5695 | return NULL; | |
5696 | if (_argo0) { | |
5697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5700 | return NULL; | |
5701 | } | |
5702 | } | |
5703 | { | |
c8bc7bb8 RD |
5704 | _arg1 = wxString_in_helper(_obj1); |
5705 | if (_arg1 == NULL) | |
23bed520 | 5706 | return NULL; |
23bed520 RD |
5707 | } |
5708 | { | |
5709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5710 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
23bed520 RD |
5711 | |
5712 | wxPyEndAllowThreads(__tstate); | |
5713 | if (PyErr_Occurred()) return NULL; | |
5714 | } Py_INCREF(Py_None); | |
5715 | _resultobj = Py_None; | |
5716 | { | |
5717 | if (_obj1) | |
5718 | delete _arg1; | |
5719 | } | |
5720 | return _resultobj; | |
5721 | } | |
5722 | ||
c7e7022c RD |
5723 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5724 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5725 | PyObject * _resultobj; | |
5726 | bool _result; | |
5727 | wxWindow * _arg0; | |
5728 | int _arg1; | |
5729 | PyObject * _argo0 = 0; | |
5730 | char *_kwnames[] = { "self","lines", NULL }; | |
5731 | ||
5732 | self = self; | |
5733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5734 | return NULL; | |
5735 | if (_argo0) { | |
5736 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5737 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5739 | return NULL; | |
5740 | } | |
5741 | } | |
5742 | { | |
4268f798 | 5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5744 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
c7e7022c | 5745 | |
4268f798 | 5746 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5747 | if (PyErr_Occurred()) return NULL; |
5748 | } _resultobj = Py_BuildValue("i",_result); | |
5749 | return _resultobj; | |
5750 | } | |
5751 | ||
5752 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5753 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5754 | PyObject * _resultobj; | |
5755 | bool _result; | |
5756 | wxWindow * _arg0; | |
5757 | int _arg1; | |
5758 | PyObject * _argo0 = 0; | |
5759 | char *_kwnames[] = { "self","pages", NULL }; | |
5760 | ||
5761 | self = self; | |
5762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5763 | return NULL; | |
5764 | if (_argo0) { | |
5765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5768 | return NULL; | |
5769 | } | |
5770 | } | |
5771 | { | |
4268f798 | 5772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5773 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
c7e7022c | 5774 | |
4268f798 | 5775 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5776 | if (PyErr_Occurred()) return NULL; |
5777 | } _resultobj = Py_BuildValue("i",_result); | |
5778 | return _resultobj; | |
5779 | } | |
5780 | ||
5781 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5782 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5783 | PyObject * _resultobj; | |
5784 | bool _result; | |
5785 | wxWindow * _arg0; | |
5786 | PyObject * _argo0 = 0; | |
5787 | char *_kwnames[] = { "self", NULL }; | |
5788 | ||
5789 | self = self; | |
5790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5791 | return NULL; | |
5792 | if (_argo0) { | |
5793 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5794 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5795 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5796 | return NULL; | |
5797 | } | |
5798 | } | |
5799 | { | |
4268f798 | 5800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5801 | _result = (bool )wxWindow_LineUp(_arg0); |
c7e7022c | 5802 | |
4268f798 | 5803 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5804 | if (PyErr_Occurred()) return NULL; |
5805 | } _resultobj = Py_BuildValue("i",_result); | |
5806 | return _resultobj; | |
5807 | } | |
5808 | ||
5809 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5810 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5811 | PyObject * _resultobj; | |
5812 | bool _result; | |
5813 | wxWindow * _arg0; | |
5814 | PyObject * _argo0 = 0; | |
5815 | char *_kwnames[] = { "self", NULL }; | |
5816 | ||
5817 | self = self; | |
5818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5819 | return NULL; | |
5820 | if (_argo0) { | |
5821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5824 | return NULL; | |
5825 | } | |
5826 | } | |
5827 | { | |
4268f798 | 5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5829 | _result = (bool )wxWindow_LineDown(_arg0); |
c7e7022c | 5830 | |
4268f798 | 5831 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5832 | if (PyErr_Occurred()) return NULL; |
5833 | } _resultobj = Py_BuildValue("i",_result); | |
5834 | return _resultobj; | |
5835 | } | |
5836 | ||
5837 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5838 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject * _resultobj; | |
5840 | bool _result; | |
5841 | wxWindow * _arg0; | |
5842 | PyObject * _argo0 = 0; | |
5843 | char *_kwnames[] = { "self", NULL }; | |
5844 | ||
5845 | self = self; | |
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5847 | return NULL; | |
5848 | if (_argo0) { | |
5849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5852 | return NULL; | |
5853 | } | |
5854 | } | |
5855 | { | |
4268f798 | 5856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5857 | _result = (bool )wxWindow_PageUp(_arg0); |
c7e7022c | 5858 | |
4268f798 | 5859 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5860 | if (PyErr_Occurred()) return NULL; |
5861 | } _resultobj = Py_BuildValue("i",_result); | |
5862 | return _resultobj; | |
5863 | } | |
5864 | ||
5865 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5866 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5867 | PyObject * _resultobj; | |
5868 | bool _result; | |
5869 | wxWindow * _arg0; | |
5870 | PyObject * _argo0 = 0; | |
5871 | char *_kwnames[] = { "self", NULL }; | |
5872 | ||
5873 | self = self; | |
5874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5875 | return NULL; | |
5876 | if (_argo0) { | |
5877 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5878 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5880 | return NULL; | |
5881 | } | |
5882 | } | |
5883 | { | |
4268f798 | 5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5885 | _result = (bool )wxWindow_PageDown(_arg0); |
c7e7022c | 5886 | |
4268f798 | 5887 | wxPyEndAllowThreads(__tstate); |
c7e7022c RD |
5888 | if (PyErr_Occurred()) return NULL; |
5889 | } _resultobj = Py_BuildValue("i",_result); | |
5890 | return _resultobj; | |
5891 | } | |
5892 | ||
09f3d4e6 RD |
5893 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5894 | PyObject * _resultobj; | |
5895 | wxWindow * _result; | |
5896 | char *_kwnames[] = { NULL }; | |
5897 | ||
5898 | self = self; | |
5899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5900 | return NULL; | |
5901 | { | |
4268f798 | 5902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5903 | _result = (wxWindow *)wxWindow::FindFocus(); |
09f3d4e6 | 5904 | |
4268f798 | 5905 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5906 | if (PyErr_Occurred()) return NULL; |
5907 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5908 | return _resultobj; | |
5909 | } | |
5910 | ||
5911 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5912 | PyObject * _resultobj; | |
5913 | int _result; | |
5914 | char *_kwnames[] = { NULL }; | |
5915 | ||
5916 | self = self; | |
5917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5918 | return NULL; | |
5919 | { | |
4268f798 | 5920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5921 | _result = (int )wxWindow::NewControlId(); |
09f3d4e6 | 5922 | |
4268f798 | 5923 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5924 | if (PyErr_Occurred()) return NULL; |
5925 | } _resultobj = Py_BuildValue("i",_result); | |
5926 | return _resultobj; | |
5927 | } | |
5928 | ||
5929 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5930 | PyObject * _resultobj; | |
5931 | int _result; | |
5932 | int _arg0; | |
5933 | char *_kwnames[] = { "id", NULL }; | |
5934 | ||
5935 | self = self; | |
5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5937 | return NULL; | |
5938 | { | |
4268f798 | 5939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5940 | _result = (int )wxWindow::NextControlId(_arg0); |
09f3d4e6 | 5941 | |
4268f798 | 5942 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5943 | if (PyErr_Occurred()) return NULL; |
5944 | } _resultobj = Py_BuildValue("i",_result); | |
5945 | return _resultobj; | |
5946 | } | |
5947 | ||
5948 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5949 | PyObject * _resultobj; | |
5950 | int _result; | |
5951 | int _arg0; | |
5952 | char *_kwnames[] = { "id", NULL }; | |
5953 | ||
5954 | self = self; | |
5955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5956 | return NULL; | |
5957 | { | |
4268f798 | 5958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5959 | _result = (int )wxWindow::PrevControlId(_arg0); |
09f3d4e6 | 5960 | |
4268f798 | 5961 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
5962 | if (PyErr_Occurred()) return NULL; |
5963 | } _resultobj = Py_BuildValue("i",_result); | |
5964 | return _resultobj; | |
5965 | } | |
5966 | ||
76bfdc78 RD |
5967 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5968 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5969 | PyObject * _resultobj; | |
5970 | wxWindow * _arg0; | |
5971 | wxAcceleratorTable * _arg1; | |
5972 | PyObject * _argo0 = 0; | |
5973 | PyObject * _argo1 = 0; | |
5974 | char *_kwnames[] = { "self","accel", NULL }; | |
5975 | ||
5976 | self = self; | |
5977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
5978 | return NULL; | |
5979 | if (_argo0) { | |
5980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
5983 | return NULL; | |
5984 | } | |
5985 | } | |
5986 | if (_argo1) { | |
5987 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5988 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5989 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5990 | return NULL; | |
5991 | } | |
5992 | } | |
5993 | { | |
4268f798 | 5994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5995 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
76bfdc78 | 5996 | |
4268f798 | 5997 | wxPyEndAllowThreads(__tstate); |
76bfdc78 RD |
5998 | if (PyErr_Occurred()) return NULL; |
5999 | } Py_INCREF(Py_None); | |
6000 | _resultobj = Py_None; | |
6001 | return _resultobj; | |
6002 | } | |
6003 | ||
900d9886 RD |
6004 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
6005 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6006 | PyObject * _resultobj; | |
6007 | wxAcceleratorTable * _result; | |
6008 | wxWindow * _arg0; | |
6009 | PyObject * _argo0 = 0; | |
6010 | char *_kwnames[] = { "self", NULL }; | |
6011 | char _ptemp[128]; | |
6012 | ||
6013 | self = self; | |
6014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
6015 | return NULL; | |
6016 | if (_argo0) { | |
6017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
6020 | return NULL; | |
6021 | } | |
6022 | } | |
6023 | { | |
4268f798 | 6024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6025 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
900d9886 | 6026 | |
4268f798 | 6027 | wxPyEndAllowThreads(__tstate); |
900d9886 RD |
6028 | if (PyErr_Occurred()) return NULL; |
6029 | } if (_result) { | |
6030 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6031 | _resultobj = Py_BuildValue("s",_ptemp); | |
6032 | } else { | |
6033 | Py_INCREF(Py_None); | |
6034 | _resultobj = Py_None; | |
6035 | } | |
6036 | return _resultobj; | |
6037 | } | |
6038 | ||
07c99b26 RD |
6039 | #define wxWindow_OnPaint(_swigobj,_swigarg0) (_swigobj->OnPaint(_swigarg0)) |
6040 | static PyObject *_wrap_wxWindow_OnPaint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
78e8819c RD |
6041 | PyObject * _resultobj; |
6042 | wxWindow * _arg0; | |
6043 | wxPaintEvent * _arg1; | |
6044 | PyObject * _argo0 = 0; | |
6045 | PyObject * _argo1 = 0; | |
6046 | char *_kwnames[] = { "self","event", NULL }; | |
6047 | ||
6048 | self = self; | |
07c99b26 | 6049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_OnPaint",_kwnames,&_argo0,&_argo1)) |
78e8819c RD |
6050 | return NULL; |
6051 | if (_argo0) { | |
6052 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6053 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
07c99b26 | 6054 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_OnPaint. Expected _wxWindow_p."); |
78e8819c RD |
6055 | return NULL; |
6056 | } | |
6057 | } | |
6058 | if (_argo1) { | |
6059 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6060 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPaintEvent_p")) { | |
07c99b26 | 6061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_OnPaint. Expected _wxPaintEvent_p."); |
78e8819c RD |
6062 | return NULL; |
6063 | } | |
6064 | } | |
6065 | { | |
4268f798 | 6066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6067 | wxWindow_OnPaint(_arg0,*_arg1); |
78e8819c | 6068 | |
4268f798 | 6069 | wxPyEndAllowThreads(__tstate); |
78e8819c RD |
6070 | if (PyErr_Occurred()) return NULL; |
6071 | } Py_INCREF(Py_None); | |
6072 | _resultobj = Py_None; | |
6073 | return _resultobj; | |
6074 | } | |
6075 | ||
5a2930ab RD |
6076 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6077 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6078 | PyObject * _resultobj; | |
26e335b8 | 6079 | wxWindow * _result; |
5a2930ab RD |
6080 | wxWindow * _arg0; |
6081 | PyObject * _argo0 = 0; | |
6082 | char *_kwnames[] = { "self", NULL }; | |
6083 | ||
6084 | self = self; | |
6085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6086 | return NULL; | |
6087 | if (_argo0) { | |
6088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6091 | return NULL; | |
6092 | } | |
6093 | } | |
6094 | { | |
6095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6096 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
5a2930ab RD |
6097 | |
6098 | wxPyEndAllowThreads(__tstate); | |
6099 | if (PyErr_Occurred()) return NULL; | |
6100 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6101 | return _resultobj; | |
6102 | } | |
6103 | ||
6104 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6105 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6106 | PyObject * _resultobj; | |
26e335b8 | 6107 | wxWindow * _result; |
5a2930ab | 6108 | wxWindow * _arg0; |
26e335b8 | 6109 | wxWindow * _arg1; |
5a2930ab RD |
6110 | PyObject * _argo0 = 0; |
6111 | PyObject * _argo1 = 0; | |
6112 | char *_kwnames[] = { "self","btn", NULL }; | |
6113 | ||
6114 | self = self; | |
6115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6116 | return NULL; | |
6117 | if (_argo0) { | |
6118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6121 | return NULL; | |
6122 | } | |
6123 | } | |
6124 | if (_argo1) { | |
6125 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
26e335b8 RD |
6126 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6127 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
5a2930ab RD |
6128 | return NULL; |
6129 | } | |
6130 | } | |
6131 | { | |
6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26e335b8 | 6133 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
5a2930ab RD |
6134 | |
6135 | wxPyEndAllowThreads(__tstate); | |
6136 | if (PyErr_Occurred()) return NULL; | |
26e335b8 | 6137 | }{ _resultobj = wxPyMake_wxObject(_result); } |
5a2930ab RD |
6138 | return _resultobj; |
6139 | } | |
6140 | ||
8ab979d7 RD |
6141 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6142 | wxPanel *src; | |
6143 | wxWindow *dest; | |
6144 | src = (wxPanel *) ptr; | |
6145 | dest = (wxWindow *) src; | |
6146 | return (void *) dest; | |
6147 | } | |
6148 | ||
6149 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6150 | wxPanel *src; | |
6151 | wxEvtHandler *dest; | |
6152 | src = (wxPanel *) ptr; | |
6153 | dest = (wxEvtHandler *) src; | |
6154 | return (void *) dest; | |
6155 | } | |
6156 | ||
9416aa89 RD |
6157 | static void *SwigwxPanelTowxObject(void *ptr) { |
6158 | wxPanel *src; | |
6159 | wxObject *dest; | |
6160 | src = (wxPanel *) ptr; | |
6161 | dest = (wxObject *) src; | |
6162 | return (void *) dest; | |
6163 | } | |
6164 | ||
8ab979d7 | 6165 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6166 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6167 | PyObject * _resultobj; |
6168 | wxPanel * _result; | |
6169 | wxWindow * _arg0; | |
6170 | wxWindowID _arg1; | |
e508a2b6 RD |
6171 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6172 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6173 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
6174 | char * _arg5 = (char *) "panel"; | |
6175 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6176 | wxPoint temp; |
6177 | PyObject * _obj2 = 0; | |
6178 | wxSize temp0; | |
6179 | PyObject * _obj3 = 0; | |
efc5f224 | 6180 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6181 | char _ptemp[128]; |
6182 | ||
6183 | self = self; | |
2f90df85 | 6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6185 | return NULL; |
1d99702e RD |
6186 | if (_argo0) { |
6187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6190 | return NULL; | |
6191 | } | |
6192 | } | |
2f90df85 RD |
6193 | if (_obj2) |
6194 | { | |
6195 | _arg2 = &temp; | |
6196 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6197 | return NULL; |
2f90df85 RD |
6198 | } |
6199 | if (_obj3) | |
6200 | { | |
6201 | _arg3 = &temp0; | |
6202 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6203 | return NULL; |
2f90df85 | 6204 | } |
cf694132 | 6205 | { |
4268f798 | 6206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6207 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 6208 | |
4268f798 | 6209 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6210 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6211 | } if (_result) { |
6212 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6213 | _resultobj = Py_BuildValue("s",_ptemp); | |
6214 | } else { | |
6215 | Py_INCREF(Py_None); | |
6216 | _resultobj = Py_None; | |
6217 | } | |
8ab979d7 RD |
6218 | return _resultobj; |
6219 | } | |
6220 | ||
09f3d4e6 RD |
6221 | #define new_wxPrePanel() (new wxPanel()) |
6222 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6223 | PyObject * _resultobj; | |
6224 | wxPanel * _result; | |
6225 | char *_kwnames[] = { NULL }; | |
6226 | char _ptemp[128]; | |
6227 | ||
6228 | self = self; | |
6229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6230 | return NULL; | |
6231 | { | |
4268f798 | 6232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6233 | _result = (wxPanel *)new_wxPrePanel(); |
09f3d4e6 | 6234 | |
4268f798 | 6235 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6236 | if (PyErr_Occurred()) return NULL; |
6237 | } if (_result) { | |
6238 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6239 | _resultobj = Py_BuildValue("s",_ptemp); | |
6240 | } else { | |
6241 | Py_INCREF(Py_None); | |
6242 | _resultobj = Py_None; | |
6243 | } | |
6244 | return _resultobj; | |
6245 | } | |
6246 | ||
6247 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6248 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6249 | PyObject * _resultobj; | |
6250 | bool _result; | |
6251 | wxPanel * _arg0; | |
6252 | wxWindow * _arg1; | |
6253 | wxWindowID _arg2; | |
6254 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6255 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6256 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
6257 | char * _arg6 = (char *) "panel"; | |
6258 | PyObject * _argo0 = 0; | |
6259 | PyObject * _argo1 = 0; | |
6260 | wxPoint temp; | |
6261 | PyObject * _obj3 = 0; | |
6262 | wxSize temp0; | |
6263 | PyObject * _obj4 = 0; | |
6264 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6265 | ||
6266 | self = self; | |
6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOls:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6268 | return NULL; | |
6269 | if (_argo0) { | |
6270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6273 | return NULL; | |
6274 | } | |
6275 | } | |
6276 | if (_argo1) { | |
6277 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6278 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6280 | return NULL; | |
6281 | } | |
6282 | } | |
6283 | if (_obj3) | |
6284 | { | |
6285 | _arg3 = &temp; | |
6286 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6287 | return NULL; | |
6288 | } | |
6289 | if (_obj4) | |
6290 | { | |
6291 | _arg4 = &temp0; | |
6292 | if (! wxSize_helper(_obj4, &_arg4)) | |
6293 | return NULL; | |
6294 | } | |
6295 | { | |
4268f798 | 6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6297 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
09f3d4e6 | 6298 | |
4268f798 | 6299 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6300 | if (PyErr_Occurred()) return NULL; |
6301 | } _resultobj = Py_BuildValue("i",_result); | |
6302 | return _resultobj; | |
6303 | } | |
6304 | ||
8ab979d7 | 6305 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6306 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6307 | PyObject * _resultobj; |
6308 | wxPanel * _arg0; | |
1d99702e | 6309 | PyObject * _argo0 = 0; |
efc5f224 | 6310 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6311 | |
6312 | self = self; | |
efc5f224 | 6313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6314 | return NULL; |
1d99702e RD |
6315 | if (_argo0) { |
6316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6319 | return NULL; | |
6320 | } | |
6321 | } | |
cf694132 | 6322 | { |
4268f798 | 6323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6324 | wxPanel_InitDialog(_arg0); |
cf694132 | 6325 | |
4268f798 | 6326 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6327 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6328 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6329 | _resultobj = Py_None; |
6330 | return _resultobj; | |
6331 | } | |
6332 | ||
bb0054cd RD |
6333 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6334 | wxScrolledWindow *src; | |
6335 | wxPanel *dest; | |
6336 | src = (wxScrolledWindow *) ptr; | |
6337 | dest = (wxPanel *) src; | |
6338 | return (void *) dest; | |
6339 | } | |
6340 | ||
8ab979d7 RD |
6341 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6342 | wxScrolledWindow *src; | |
6343 | wxWindow *dest; | |
6344 | src = (wxScrolledWindow *) ptr; | |
6345 | dest = (wxWindow *) src; | |
6346 | return (void *) dest; | |
6347 | } | |
6348 | ||
6349 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6350 | wxScrolledWindow *src; | |
6351 | wxEvtHandler *dest; | |
6352 | src = (wxScrolledWindow *) ptr; | |
6353 | dest = (wxEvtHandler *) src; | |
6354 | return (void *) dest; | |
6355 | } | |
6356 | ||
9416aa89 RD |
6357 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6358 | wxScrolledWindow *src; | |
6359 | wxObject *dest; | |
6360 | src = (wxScrolledWindow *) ptr; | |
6361 | dest = (wxObject *) src; | |
6362 | return (void *) dest; | |
6363 | } | |
6364 | ||
8ab979d7 | 6365 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6366 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6367 | PyObject * _resultobj; |
6368 | wxScrolledWindow * _result; | |
6369 | wxWindow * _arg0; | |
1d99702e | 6370 | wxWindowID _arg1 = (wxWindowID ) -1; |
e508a2b6 RD |
6371 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6372 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e RD |
6373 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
6374 | char * _arg5 = (char *) "scrolledWindow"; | |
6375 | PyObject * _argo0 = 0; | |
2f90df85 RD |
6376 | wxPoint temp; |
6377 | PyObject * _obj2 = 0; | |
6378 | wxSize temp0; | |
6379 | PyObject * _obj3 = 0; | |
efc5f224 | 6380 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6381 | char _ptemp[128]; |
6382 | ||
6383 | self = self; | |
2f90df85 | 6384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
8ab979d7 | 6385 | return NULL; |
1d99702e RD |
6386 | if (_argo0) { |
6387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6390 | return NULL; | |
6391 | } | |
6392 | } | |
2f90df85 RD |
6393 | if (_obj2) |
6394 | { | |
6395 | _arg2 = &temp; | |
6396 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6397 | return NULL; |
2f90df85 RD |
6398 | } |
6399 | if (_obj3) | |
6400 | { | |
6401 | _arg3 = &temp0; | |
6402 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6403 | return NULL; |
2f90df85 | 6404 | } |
cf694132 | 6405 | { |
4268f798 | 6406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6407 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 6408 | |
4268f798 | 6409 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6410 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6411 | } if (_result) { |
6412 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6413 | _resultobj = Py_BuildValue("s",_ptemp); | |
6414 | } else { | |
6415 | Py_INCREF(Py_None); | |
6416 | _resultobj = Py_None; | |
6417 | } | |
8ab979d7 RD |
6418 | return _resultobj; |
6419 | } | |
6420 | ||
09f3d4e6 RD |
6421 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6422 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6423 | PyObject * _resultobj; | |
6424 | wxScrolledWindow * _result; | |
6425 | char *_kwnames[] = { NULL }; | |
6426 | char _ptemp[128]; | |
6427 | ||
6428 | self = self; | |
6429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6430 | return NULL; | |
6431 | { | |
4268f798 | 6432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6433 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
09f3d4e6 | 6434 | |
4268f798 | 6435 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6436 | if (PyErr_Occurred()) return NULL; |
6437 | } if (_result) { | |
6438 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6439 | _resultobj = Py_BuildValue("s",_ptemp); | |
6440 | } else { | |
6441 | Py_INCREF(Py_None); | |
6442 | _resultobj = Py_None; | |
6443 | } | |
6444 | return _resultobj; | |
6445 | } | |
6446 | ||
6447 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6448 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6449 | PyObject * _resultobj; | |
6450 | bool _result; | |
6451 | wxScrolledWindow * _arg0; | |
6452 | wxWindow * _arg1; | |
6453 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6454 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6455 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6456 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
6457 | char * _arg6 = (char *) "scrolledWindow"; | |
6458 | PyObject * _argo0 = 0; | |
6459 | PyObject * _argo1 = 0; | |
6460 | wxPoint temp; | |
6461 | PyObject * _obj3 = 0; | |
6462 | wxSize temp0; | |
6463 | PyObject * _obj4 = 0; | |
6464 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; | |
6465 | ||
6466 | self = self; | |
6467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOls:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_arg6)) | |
6468 | return NULL; | |
6469 | if (_argo0) { | |
6470 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6471 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6472 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6473 | return NULL; | |
6474 | } | |
6475 | } | |
6476 | if (_argo1) { | |
6477 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6478 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6480 | return NULL; | |
6481 | } | |
6482 | } | |
6483 | if (_obj3) | |
6484 | { | |
6485 | _arg3 = &temp; | |
6486 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6487 | return NULL; | |
6488 | } | |
6489 | if (_obj4) | |
6490 | { | |
6491 | _arg4 = &temp0; | |
6492 | if (! wxSize_helper(_obj4, &_arg4)) | |
6493 | return NULL; | |
6494 | } | |
6495 | { | |
4268f798 | 6496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6497 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,_arg6); |
09f3d4e6 | 6498 | |
4268f798 | 6499 | wxPyEndAllowThreads(__tstate); |
09f3d4e6 RD |
6500 | if (PyErr_Occurred()) return NULL; |
6501 | } _resultobj = Py_BuildValue("i",_result); | |
6502 | return _resultobj; | |
6503 | } | |
6504 | ||
8ab979d7 | 6505 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6506 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6507 | PyObject * _resultobj; |
6508 | wxScrolledWindow * _arg0; | |
6509 | bool _arg1; | |
6510 | bool _arg2; | |
1d99702e | 6511 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6512 | int tempbool1; |
6513 | int tempbool2; | |
efc5f224 | 6514 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6515 | |
6516 | self = self; | |
efc5f224 | 6517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6518 | return NULL; |
1d99702e RD |
6519 | if (_argo0) { |
6520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6523 | return NULL; | |
6524 | } | |
6525 | } | |
6526 | _arg1 = (bool ) tempbool1; | |
6527 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6528 | { |
4268f798 | 6529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6530 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 6531 | |
4268f798 | 6532 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6533 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6534 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6535 | _resultobj = Py_None; |
6536 | return _resultobj; | |
6537 | } | |
6538 | ||
b7e72427 RD |
6539 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6540 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6541 | PyObject * _resultobj; | |
6542 | int _result; | |
6543 | wxScrolledWindow * _arg0; | |
6544 | int _arg1; | |
6545 | PyObject * _argo0 = 0; | |
6546 | char *_kwnames[] = { "self","orient", NULL }; | |
6547 | ||
6548 | self = self; | |
6549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6550 | return NULL; | |
6551 | if (_argo0) { | |
6552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6555 | return NULL; | |
6556 | } | |
6557 | } | |
6558 | { | |
4268f798 | 6559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6560 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 6561 | |
4268f798 | 6562 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6563 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6564 | } _resultobj = Py_BuildValue("i",_result); |
6565 | return _resultobj; | |
6566 | } | |
6567 | ||
8ab979d7 | 6568 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6569 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6570 | PyObject * _resultobj; |
6571 | wxScrolledWindow * _arg0; | |
6572 | int * _arg1; | |
6573 | int temp; | |
6574 | int * _arg2; | |
6575 | int temp0; | |
1d99702e | 6576 | PyObject * _argo0 = 0; |
efc5f224 | 6577 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6578 | |
6579 | self = self; | |
6580 | { | |
6581 | _arg1 = &temp; | |
6582 | } | |
6583 | { | |
6584 | _arg2 = &temp0; | |
6585 | } | |
efc5f224 | 6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6587 | return NULL; |
1d99702e RD |
6588 | if (_argo0) { |
6589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6592 | return NULL; | |
6593 | } | |
6594 | } | |
cf694132 | 6595 | { |
4268f798 | 6596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6597 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 6598 | |
4268f798 | 6599 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6600 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6601 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6602 | _resultobj = Py_None; |
6603 | { | |
6604 | PyObject *o; | |
6605 | o = PyInt_FromLong((long) (*_arg1)); | |
6606 | _resultobj = t_output_helper(_resultobj, o); | |
6607 | } | |
6608 | { | |
6609 | PyObject *o; | |
6610 | o = PyInt_FromLong((long) (*_arg2)); | |
6611 | _resultobj = t_output_helper(_resultobj, o); | |
6612 | } | |
6613 | return _resultobj; | |
6614 | } | |
6615 | ||
b7e72427 RD |
6616 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6617 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6618 | PyObject * _resultobj; | |
6619 | wxWindow * _result; | |
6620 | wxScrolledWindow * _arg0; | |
6621 | PyObject * _argo0 = 0; | |
6622 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6623 | |
6624 | self = self; | |
6625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6626 | return NULL; | |
6627 | if (_argo0) { | |
6628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6631 | return NULL; | |
6632 | } | |
6633 | } | |
6634 | { | |
4268f798 | 6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6636 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 6637 | |
4268f798 | 6638 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6639 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 6640 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6641 | return _resultobj; |
6642 | } | |
6643 | ||
8ab979d7 | 6644 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6645 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6646 | PyObject * _resultobj; |
6647 | wxScrolledWindow * _arg0; | |
6648 | int * _arg1; | |
6649 | int temp; | |
6650 | int * _arg2; | |
6651 | int temp0; | |
1d99702e | 6652 | PyObject * _argo0 = 0; |
efc5f224 | 6653 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6654 | |
6655 | self = self; | |
6656 | { | |
6657 | _arg1 = &temp; | |
6658 | } | |
6659 | { | |
6660 | _arg2 = &temp0; | |
6661 | } | |
efc5f224 | 6662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6663 | return NULL; |
1d99702e RD |
6664 | if (_argo0) { |
6665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6668 | return NULL; | |
6669 | } | |
6670 | } | |
cf694132 | 6671 | { |
4268f798 | 6672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6673 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); |
cf694132 | 6674 | |
4268f798 | 6675 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6677 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6678 | _resultobj = Py_None; |
6679 | { | |
6680 | PyObject *o; | |
6681 | o = PyInt_FromLong((long) (*_arg1)); | |
6682 | _resultobj = t_output_helper(_resultobj, o); | |
6683 | } | |
6684 | { | |
6685 | PyObject *o; | |
6686 | o = PyInt_FromLong((long) (*_arg2)); | |
6687 | _resultobj = t_output_helper(_resultobj, o); | |
6688 | } | |
6689 | return _resultobj; | |
6690 | } | |
6691 | ||
6692 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6693 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6694 | PyObject * _resultobj; |
6695 | bool _result; | |
6696 | wxScrolledWindow * _arg0; | |
1d99702e | 6697 | PyObject * _argo0 = 0; |
efc5f224 | 6698 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6699 | |
6700 | self = self; | |
efc5f224 | 6701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6702 | return NULL; |
1d99702e RD |
6703 | if (_argo0) { |
6704 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6705 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6707 | return NULL; | |
6708 | } | |
6709 | } | |
cf694132 | 6710 | { |
4268f798 | 6711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6712 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 6713 | |
4268f798 | 6714 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6715 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6716 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6717 | return _resultobj; |
6718 | } | |
6719 | ||
6720 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6721 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6722 | PyObject * _resultobj; |
6723 | wxScrolledWindow * _arg0; | |
6724 | wxDC * _arg1; | |
1d99702e RD |
6725 | PyObject * _argo0 = 0; |
6726 | PyObject * _argo1 = 0; | |
efc5f224 | 6727 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6728 | |
6729 | self = self; | |
efc5f224 | 6730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6731 | return NULL; |
1d99702e RD |
6732 | if (_argo0) { |
6733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6736 | return NULL; | |
6737 | } | |
6738 | } | |
1d99702e RD |
6739 | if (_argo1) { |
6740 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6741 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6743 | return NULL; | |
6744 | } | |
6745 | } | |
cf694132 | 6746 | { |
4268f798 | 6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6748 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 6749 | |
4268f798 | 6750 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6751 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6752 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6753 | _resultobj = Py_None; |
6754 | return _resultobj; | |
6755 | } | |
6756 | ||
6757 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6758 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6759 | PyObject * _resultobj; |
6760 | wxScrolledWindow * _arg0; | |
6761 | int _arg1; | |
6762 | int _arg2; | |
1d99702e | 6763 | PyObject * _argo0 = 0; |
efc5f224 | 6764 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6765 | |
6766 | self = self; | |
efc5f224 | 6767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6768 | return NULL; |
1d99702e RD |
6769 | if (_argo0) { |
6770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6773 | return NULL; | |
6774 | } | |
6775 | } | |
cf694132 | 6776 | { |
4268f798 | 6777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6778 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 6779 | |
4268f798 | 6780 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6781 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6782 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6783 | _resultobj = Py_None; |
6784 | return _resultobj; | |
6785 | } | |
6786 | ||
f6bcfd97 | 6787 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6788 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6789 | PyObject * _resultobj; |
6790 | wxScrolledWindow * _arg0; | |
6791 | int _arg1; | |
6792 | int _arg2; | |
6793 | int _arg3; | |
6794 | int _arg4; | |
1d99702e RD |
6795 | int _arg5 = (int ) 0; |
6796 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6797 | int _arg7 = (int ) FALSE; |
1d99702e | 6798 | PyObject * _argo0 = 0; |
f6bcfd97 | 6799 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6800 | |
6801 | self = self; | |
f6bcfd97 | 6802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6803 | return NULL; |
1d99702e RD |
6804 | if (_argo0) { |
6805 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6806 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6807 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6808 | return NULL; | |
6809 | } | |
6810 | } | |
cf694132 | 6811 | { |
4268f798 | 6812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6813 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 6814 | |
4268f798 | 6815 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6816 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6817 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6818 | _resultobj = Py_None; |
6819 | return _resultobj; | |
6820 | } | |
6821 | ||
b7e72427 RD |
6822 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6823 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6824 | PyObject * _resultobj; | |
6825 | wxScrolledWindow * _arg0; | |
6826 | int _arg1; | |
6827 | int _arg2; | |
6828 | PyObject * _argo0 = 0; | |
6829 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6830 | ||
6831 | self = self; | |
6832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6833 | return NULL; | |
6834 | if (_argo0) { | |
6835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6838 | return NULL; | |
6839 | } | |
6840 | } | |
6841 | { | |
4268f798 | 6842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6843 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 6844 | |
4268f798 | 6845 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6846 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6847 | } Py_INCREF(Py_None); |
6848 | _resultobj = Py_None; | |
6849 | return _resultobj; | |
6850 | } | |
6851 | ||
eb715945 RD |
6852 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6853 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6854 | PyObject * _resultobj; | |
6855 | wxScrolledWindow * _arg0; | |
6856 | wxWindow * _arg1; | |
6857 | PyObject * _argo0 = 0; | |
6858 | PyObject * _argo1 = 0; | |
6859 | char *_kwnames[] = { "self","window", NULL }; | |
6860 | ||
6861 | self = self; | |
6862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6863 | return NULL; | |
6864 | if (_argo0) { | |
6865 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6866 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6867 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6868 | return NULL; | |
6869 | } | |
6870 | } | |
6871 | if (_argo1) { | |
6872 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6873 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6875 | return NULL; | |
6876 | } | |
6877 | } | |
6878 | { | |
4268f798 | 6879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6880 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 6881 | |
4268f798 | 6882 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6883 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6884 | } Py_INCREF(Py_None); |
6885 | _resultobj = Py_None; | |
6886 | return _resultobj; | |
6887 | } | |
6888 | ||
4c9993c3 RD |
6889 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6890 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6891 | PyObject * _resultobj; | |
6892 | wxScrolledWindow * _arg0; | |
6893 | int * _arg1; | |
6894 | int temp; | |
6895 | int * _arg2; | |
6896 | int temp0; | |
6897 | PyObject * _argo0 = 0; | |
6898 | char *_kwnames[] = { "self", NULL }; | |
6899 | ||
6900 | self = self; | |
6901 | { | |
6902 | _arg1 = &temp; | |
6903 | } | |
6904 | { | |
6905 | _arg2 = &temp0; | |
6906 | } | |
6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6908 | return NULL; | |
6909 | if (_argo0) { | |
6910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6913 | return NULL; | |
6914 | } | |
6915 | } | |
6916 | { | |
4268f798 | 6917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6918 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 6919 | |
4268f798 | 6920 | wxPyEndAllowThreads(__tstate); |
493f1553 | 6921 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6922 | } Py_INCREF(Py_None); |
6923 | _resultobj = Py_None; | |
6924 | { | |
6925 | PyObject *o; | |
6926 | o = PyInt_FromLong((long) (*_arg1)); | |
6927 | _resultobj = t_output_helper(_resultobj, o); | |
6928 | } | |
6929 | { | |
6930 | PyObject *o; | |
6931 | o = PyInt_FromLong((long) (*_arg2)); | |
6932 | _resultobj = t_output_helper(_resultobj, o); | |
6933 | } | |
6934 | return _resultobj; | |
6935 | } | |
6936 | ||
e9159fe8 RD |
6937 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
6938 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6939 | PyObject * _resultobj; | |
6940 | wxPoint * _result; | |
6941 | wxScrolledWindow * _arg0; | |
6942 | wxPoint * _arg1; | |
6943 | PyObject * _argo0 = 0; | |
6944 | wxPoint temp; | |
6945 | PyObject * _obj1 = 0; | |
6946 | char *_kwnames[] = { "self","pt", NULL }; | |
6947 | char _ptemp[128]; | |
6948 | ||
6949 | self = self; | |
6950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
6951 | return NULL; | |
6952 | if (_argo0) { | |
6953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
6956 | return NULL; | |
6957 | } | |
6958 | } | |
6959 | { | |
6960 | _arg1 = &temp; | |
6961 | if (! wxPoint_helper(_obj1, &_arg1)) | |
6962 | return NULL; | |
6963 | } | |
6964 | { | |
6965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6966 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
6967 | ||
6968 | wxPyEndAllowThreads(__tstate); | |
6969 | if (PyErr_Occurred()) return NULL; | |
6970 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6971 | _resultobj = Py_BuildValue("s",_ptemp); | |
6972 | return _resultobj; | |
6973 | } | |
6974 | ||
6975 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6976 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
6977 | PyObject * _resultobj; |
6978 | wxScrolledWindow * _arg0; | |
6979 | int _arg1; | |
6980 | int _arg2; | |
6981 | int * _arg3; | |
6982 | int temp; | |
6983 | int * _arg4; | |
6984 | int temp0; | |
6985 | PyObject * _argo0 = 0; | |
6986 | char *_kwnames[] = { "self","x","y", NULL }; | |
6987 | ||
6988 | self = self; | |
6989 | { | |
6990 | _arg3 = &temp; | |
6991 | } | |
6992 | { | |
6993 | _arg4 = &temp0; | |
6994 | } | |
e9159fe8 | 6995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
6996 | return NULL; |
6997 | if (_argo0) { | |
6998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7001 | return NULL; |
7002 | } | |
7003 | } | |
7004 | { | |
4268f798 | 7005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7006 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7007 | |
4268f798 | 7008 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7009 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7010 | } Py_INCREF(Py_None); |
7011 | _resultobj = Py_None; | |
7012 | { | |
7013 | PyObject *o; | |
7014 | o = PyInt_FromLong((long) (*_arg3)); | |
7015 | _resultobj = t_output_helper(_resultobj, o); | |
7016 | } | |
7017 | { | |
7018 | PyObject *o; | |
7019 | o = PyInt_FromLong((long) (*_arg4)); | |
7020 | _resultobj = t_output_helper(_resultobj, o); | |
7021 | } | |
7022 | return _resultobj; | |
7023 | } | |
7024 | ||
e9159fe8 RD |
7025 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7026 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7027 | PyObject * _resultobj; | |
7028 | wxPoint * _result; | |
7029 | wxScrolledWindow * _arg0; | |
7030 | wxPoint * _arg1; | |
7031 | PyObject * _argo0 = 0; | |
7032 | wxPoint temp; | |
7033 | PyObject * _obj1 = 0; | |
7034 | char *_kwnames[] = { "self","pt", NULL }; | |
7035 | char _ptemp[128]; | |
7036 | ||
7037 | self = self; | |
7038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7039 | return NULL; | |
7040 | if (_argo0) { | |
7041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7044 | return NULL; | |
7045 | } | |
7046 | } | |
7047 | { | |
7048 | _arg1 = &temp; | |
7049 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7050 | return NULL; | |
7051 | } | |
7052 | { | |
7053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7054 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7055 | ||
7056 | wxPyEndAllowThreads(__tstate); | |
7057 | if (PyErr_Occurred()) return NULL; | |
7058 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7059 | _resultobj = Py_BuildValue("s",_ptemp); | |
7060 | return _resultobj; | |
7061 | } | |
7062 | ||
7063 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7064 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7065 | PyObject * _resultobj; |
7066 | wxScrolledWindow * _arg0; | |
7067 | int _arg1; | |
7068 | int _arg2; | |
7069 | int * _arg3; | |
7070 | int temp; | |
7071 | int * _arg4; | |
7072 | int temp0; | |
7073 | PyObject * _argo0 = 0; | |
7074 | char *_kwnames[] = { "self","x","y", NULL }; | |
7075 | ||
7076 | self = self; | |
7077 | { | |
7078 | _arg3 = &temp; | |
7079 | } | |
7080 | { | |
7081 | _arg4 = &temp0; | |
7082 | } | |
e9159fe8 | 7083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7084 | return NULL; |
7085 | if (_argo0) { | |
7086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
e9159fe8 | 7088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7089 | return NULL; |
7090 | } | |
7091 | } | |
7092 | { | |
4268f798 | 7093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7094 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7095 | |
4268f798 | 7096 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7097 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7098 | } Py_INCREF(Py_None); |
7099 | _resultobj = Py_None; | |
7100 | { | |
7101 | PyObject *o; | |
7102 | o = PyInt_FromLong((long) (*_arg3)); | |
7103 | _resultobj = t_output_helper(_resultobj, o); | |
7104 | } | |
7105 | { | |
7106 | PyObject *o; | |
7107 | o = PyInt_FromLong((long) (*_arg4)); | |
7108 | _resultobj = t_output_helper(_resultobj, o); | |
7109 | } | |
7110 | return _resultobj; | |
7111 | } | |
7112 | ||
d1679124 RD |
7113 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7114 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7115 | PyObject * _resultobj; | |
7116 | wxScrolledWindow * _arg0; | |
7117 | double _arg1; | |
7118 | double _arg2; | |
7119 | PyObject * _argo0 = 0; | |
7120 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7121 | ||
7122 | self = self; | |
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7124 | return NULL; | |
7125 | if (_argo0) { | |
7126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7129 | return NULL; | |
7130 | } | |
7131 | } | |
7132 | { | |
4268f798 | 7133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7134 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
d1679124 | 7135 | |
4268f798 | 7136 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7137 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7138 | } Py_INCREF(Py_None); |
7139 | _resultobj = Py_None; | |
7140 | return _resultobj; | |
7141 | } | |
7142 | ||
7143 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7144 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7145 | PyObject * _resultobj; | |
7146 | double _result; | |
7147 | wxScrolledWindow * _arg0; | |
7148 | PyObject * _argo0 = 0; | |
7149 | char *_kwnames[] = { "self", NULL }; | |
7150 | ||
7151 | self = self; | |
7152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7153 | return NULL; | |
7154 | if (_argo0) { | |
7155 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7156 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7158 | return NULL; | |
7159 | } | |
7160 | } | |
7161 | { | |
4268f798 | 7162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 RD |
7163 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7164 | ||
7165 | wxPyEndAllowThreads(__tstate); | |
7166 | if (PyErr_Occurred()) return NULL; | |
7167 | } _resultobj = Py_BuildValue("d",_result); | |
7168 | return _resultobj; | |
7169 | } | |
7170 | ||
7171 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7172 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7173 | PyObject * _resultobj; | |
7174 | double _result; | |
7175 | wxScrolledWindow * _arg0; | |
7176 | PyObject * _argo0 = 0; | |
7177 | char *_kwnames[] = { "self", NULL }; | |
7178 | ||
7179 | self = self; | |
7180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7181 | return NULL; | |
7182 | if (_argo0) { | |
7183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7186 | return NULL; | |
7187 | } | |
7188 | } | |
7189 | { | |
7190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7191 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7192 | ||
7193 | wxPyEndAllowThreads(__tstate); | |
7194 | if (PyErr_Occurred()) return NULL; | |
7195 | } _resultobj = Py_BuildValue("d",_result); | |
7196 | return _resultobj; | |
7197 | } | |
7198 | ||
7199 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7200 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7201 | PyObject * _resultobj; | |
7202 | wxScrolledWindow * _arg0; | |
7203 | PyObject * _argo0 = 0; | |
7204 | char *_kwnames[] = { "self", NULL }; | |
7205 | ||
7206 | self = self; | |
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7208 | return NULL; | |
7209 | if (_argo0) { | |
7210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7213 | return NULL; | |
7214 | } | |
7215 | } | |
7216 | { | |
7217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7218 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7219 | ||
7220 | wxPyEndAllowThreads(__tstate); | |
7221 | if (PyErr_Occurred()) return NULL; | |
7222 | } Py_INCREF(Py_None); | |
7223 | _resultobj = Py_None; | |
7224 | return _resultobj; | |
7225 | } | |
7226 | ||
7227 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7228 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7229 | PyObject * _resultobj; | |
7230 | bool _result; | |
7231 | wxScrolledWindow * _arg0; | |
7232 | PyObject * _argo0 = 0; | |
7233 | char *_kwnames[] = { "self", NULL }; | |
7234 | ||
7235 | self = self; | |
7236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7237 | return NULL; | |
7238 | if (_argo0) { | |
7239 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7240 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7241 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7242 | return NULL; | |
7243 | } | |
7244 | } | |
7245 | { | |
7246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7247 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7248 | ||
7249 | wxPyEndAllowThreads(__tstate); | |
7250 | if (PyErr_Occurred()) return NULL; | |
7251 | } _resultobj = Py_BuildValue("i",_result); | |
7252 | return _resultobj; | |
7253 | } | |
7254 | ||
7255 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { | |
7256 | wxMenu *src; | |
7257 | wxEvtHandler *dest; | |
7258 | src = (wxMenu *) ptr; | |
7259 | dest = (wxEvtHandler *) src; | |
7260 | return (void *) dest; | |
7261 | } | |
7262 | ||
7263 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7264 | wxMenu *src; | |
7265 | wxObject *dest; | |
7266 | src = (wxMenu *) ptr; | |
7267 | dest = (wxObject *) src; | |
7268 | return (void *) dest; | |
7269 | } | |
7270 | ||
7271 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7272 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7273 | PyObject * _resultobj; | |
7274 | wxMenu * _result; | |
7275 | wxString * _arg0 = (wxString *) &wxEmptyString; | |
7276 | long _arg1 = (long ) 0; | |
7277 | PyObject * _obj0 = 0; | |
7278 | char *_kwnames[] = { "title","style", NULL }; | |
7279 | char _ptemp[128]; | |
7280 | ||
7281 | self = self; | |
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7283 | return NULL; | |
7284 | if (_obj0) | |
7285 | { | |
7286 | _arg0 = wxString_in_helper(_obj0); | |
7287 | if (_arg0 == NULL) | |
7288 | return NULL; | |
7289 | } | |
7290 | { | |
7291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7292 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7293 | ||
7294 | wxPyEndAllowThreads(__tstate); | |
7295 | if (PyErr_Occurred()) return NULL; | |
7296 | } if (_result) { | |
7297 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7298 | _resultobj = Py_BuildValue("s",_ptemp); | |
7299 | } else { | |
7300 | Py_INCREF(Py_None); | |
7301 | _resultobj = Py_None; | |
7302 | } | |
7303 | { | |
7304 | if (_obj0) | |
7305 | delete _arg0; | |
7306 | } | |
7307 | return _resultobj; | |
7308 | } | |
7309 | ||
7310 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7311 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7312 | PyObject * _resultobj; | |
7313 | wxMenu * _arg0; | |
7314 | int _arg1; | |
7315 | wxString * _arg2; | |
7316 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
7317 | wxItemKind _arg4 = (wxItemKind ) wxItem_Normal; | |
7318 | PyObject * _argo0 = 0; | |
7319 | PyObject * _obj2 = 0; | |
7320 | PyObject * _obj3 = 0; | |
7321 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7322 | ||
7323 | self = self; | |
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7325 | return NULL; | |
7326 | if (_argo0) { | |
7327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7330 | return NULL; | |
7331 | } | |
7332 | } | |
7333 | { | |
7334 | _arg2 = wxString_in_helper(_obj2); | |
7335 | if (_arg2 == NULL) | |
7336 | return NULL; | |
7337 | } | |
7338 | if (_obj3) | |
7339 | { | |
7340 | _arg3 = wxString_in_helper(_obj3); | |
7341 | if (_arg3 == NULL) | |
7342 | return NULL; | |
7343 | } | |
7344 | { | |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7347 | ||
7348 | wxPyEndAllowThreads(__tstate); | |
7349 | if (PyErr_Occurred()) return NULL; | |
7350 | } Py_INCREF(Py_None); | |
7351 | _resultobj = Py_None; | |
7352 | { | |
7353 | if (_obj2) | |
7354 | delete _arg2; | |
7355 | } | |
7356 | { | |
7357 | if (_obj3) | |
7358 | delete _arg3; | |
7359 | } | |
7360 | return _resultobj; | |
7361 | } | |
7362 | ||
7363 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7364 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7365 | PyObject * _resultobj; | |
7366 | wxMenu * _arg0; | |
7367 | int _arg1; | |
7368 | wxString * _arg2; | |
7369 | wxMenu * _arg3; | |
7370 | wxString * _arg4 = (wxString *) &wxEmptyString; | |
7371 | PyObject * _argo0 = 0; | |
7372 | PyObject * _obj2 = 0; | |
7373 | PyObject * _argo3 = 0; | |
7374 | PyObject * _obj4 = 0; | |
7375 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7376 | ||
7377 | self = self; | |
7378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7379 | return NULL; | |
7380 | if (_argo0) { | |
7381 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7382 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7383 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7384 | return NULL; | |
7385 | } | |
7386 | } | |
7387 | { | |
7388 | _arg2 = wxString_in_helper(_obj2); | |
7389 | if (_arg2 == NULL) | |
7390 | return NULL; | |
7391 | } | |
7392 | if (_argo3) { | |
7393 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7394 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7396 | return NULL; | |
7397 | } | |
7398 | } | |
7399 | if (_obj4) | |
7400 | { | |
7401 | _arg4 = wxString_in_helper(_obj4); | |
7402 | if (_arg4 == NULL) | |
7403 | return NULL; | |
7404 | } | |
7405 | { | |
7406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7407 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7408 | ||
7409 | wxPyEndAllowThreads(__tstate); | |
7410 | if (PyErr_Occurred()) return NULL; | |
7411 | } Py_INCREF(Py_None); | |
7412 | _resultobj = Py_None; | |
7413 | { | |
7414 | if (_obj2) | |
7415 | delete _arg2; | |
7416 | } | |
7417 | { | |
7418 | if (_obj4) | |
7419 | delete _arg4; | |
7420 | } | |
7421 | return _resultobj; | |
7422 | } | |
7423 | ||
7424 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7425 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7426 | PyObject * _resultobj; | |
7427 | wxMenu * _arg0; | |
7428 | wxMenuItem * _arg1; | |
7429 | PyObject * _argo0 = 0; | |
7430 | PyObject * _argo1 = 0; | |
7431 | char *_kwnames[] = { "self","item", NULL }; | |
7432 | ||
7433 | self = self; | |
7434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7435 | return NULL; | |
7436 | if (_argo0) { | |
7437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7440 | return NULL; | |
7441 | } | |
7442 | } | |
7443 | if (_argo1) { | |
7444 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7445 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7447 | return NULL; | |
7448 | } | |
7449 | } | |
7450 | { | |
7451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7452 | wxMenu_AppendItem(_arg0,_arg1); | |
7453 | ||
7454 | wxPyEndAllowThreads(__tstate); | |
7455 | if (PyErr_Occurred()) return NULL; | |
7456 | } Py_INCREF(Py_None); | |
7457 | _resultobj = Py_None; | |
7458 | return _resultobj; | |
7459 | } | |
7460 | ||
7461 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
7462 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject * _resultobj; | |
7464 | wxMenu * _arg0; | |
7465 | int _arg1; | |
7466 | wxString * _arg2; | |
7467 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
7468 | PyObject * _argo0 = 0; | |
7469 | PyObject * _obj2 = 0; | |
7470 | PyObject * _obj3 = 0; | |
7471 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7472 | ||
7473 | self = self; | |
7474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7475 | return NULL; | |
7476 | if (_argo0) { | |
7477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
7480 | return NULL; | |
7481 | } | |
7482 | } | |
7483 | { | |
7484 | _arg2 = wxString_in_helper(_obj2); | |
7485 | if (_arg2 == NULL) | |
7486 | return NULL; | |
7487 | } | |
7488 | if (_obj3) | |
7489 | { | |
7490 | _arg3 = wxString_in_helper(_obj3); | |
7491 | if (_arg3 == NULL) | |
7492 | return NULL; | |
7493 | } | |
7494 | { | |
7495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7496 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
7497 | ||
7498 | wxPyEndAllowThreads(__tstate); | |
7499 | if (PyErr_Occurred()) return NULL; | |
7500 | } Py_INCREF(Py_None); | |
7501 | _resultobj = Py_None; | |
7502 | { | |
7503 | if (_obj2) | |
7504 | delete _arg2; | |
7505 | } | |
7506 | { | |
7507 | if (_obj3) | |
7508 | delete _arg3; | |
7509 | } | |
7510 | return _resultobj; | |
7511 | } | |
7512 | ||
7513 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
7514 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7515 | PyObject * _resultobj; | |
7516 | wxMenu * _arg0; | |
7517 | int _arg1; | |
7518 | wxString * _arg2; | |
7519 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
7520 | PyObject * _argo0 = 0; | |
7521 | PyObject * _obj2 = 0; | |
7522 | PyObject * _obj3 = 0; | |
7523 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7524 | ||
7525 | self = self; | |
7526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7527 | return NULL; | |
7528 | if (_argo0) { | |
7529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
7532 | return NULL; | |
7533 | } | |
7534 | } | |
7535 | { | |
7536 | _arg2 = wxString_in_helper(_obj2); | |
7537 | if (_arg2 == NULL) | |
7538 | return NULL; | |
7539 | } | |
7540 | if (_obj3) | |
7541 | { | |
7542 | _arg3 = wxString_in_helper(_obj3); | |
7543 | if (_arg3 == NULL) | |
7544 | return NULL; | |
7545 | } | |
7546 | { | |
7547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7548 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
7549 | ||
7550 | wxPyEndAllowThreads(__tstate); | |
7551 | if (PyErr_Occurred()) return NULL; | |
7552 | } Py_INCREF(Py_None); | |
7553 | _resultobj = Py_None; | |
7554 | { | |
7555 | if (_obj2) | |
7556 | delete _arg2; | |
7557 | } | |
7558 | { | |
7559 | if (_obj3) | |
7560 | delete _arg3; | |
7561 | } | |
7562 | return _resultobj; | |
7563 | } | |
7564 | ||
7565 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
7566 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7567 | PyObject * _resultobj; | |
7568 | wxMenu * _arg0; | |
7569 | PyObject * _argo0 = 0; | |
7570 | char *_kwnames[] = { "self", NULL }; | |
7571 | ||
7572 | self = self; | |
7573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
7574 | return NULL; | |
7575 | if (_argo0) { | |
7576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
7579 | return NULL; | |
7580 | } | |
7581 | } | |
7582 | { | |
7583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7584 | wxMenu_AppendSeparator(_arg0); | |
7585 | ||
7586 | wxPyEndAllowThreads(__tstate); | |
7587 | if (PyErr_Occurred()) return NULL; | |
7588 | } Py_INCREF(Py_None); | |
7589 | _resultobj = Py_None; | |
7590 | return _resultobj; | |
7591 | } | |
7592 | ||
7593 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7594 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7595 | PyObject * _resultobj; | |
7596 | wxMenu * _arg0; | |
7597 | size_t _arg1; | |
7598 | int _arg2; | |
7599 | wxString * _arg3; | |
7600 | wxString * _arg4 = (wxString *) &wxEmptyString; | |
7601 | wxItemKind _arg5 = (wxItemKind ) wxItem_Normal; | |
7602 | PyObject * _argo0 = 0; | |
7603 | PyObject * _obj3 = 0; | |
7604 | PyObject * _obj4 = 0; | |
7605 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
7606 | ||
7607 | self = self; | |
7608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
7609 | return NULL; | |
7610 | if (_argo0) { | |
7611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7614 | return NULL; | |
7615 | } | |
7616 | } | |
7617 | { | |
7618 | _arg3 = wxString_in_helper(_obj3); | |
7619 | if (_arg3 == NULL) | |
7620 | return NULL; | |
7621 | } | |
7622 | if (_obj4) | |
7623 | { | |
7624 | _arg4 = wxString_in_helper(_obj4); | |
7625 | if (_arg4 == NULL) | |
7626 | return NULL; | |
7627 | } | |
7628 | { | |
7629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7630 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
7631 | ||
7632 | wxPyEndAllowThreads(__tstate); | |
7633 | if (PyErr_Occurred()) return NULL; | |
7634 | } Py_INCREF(Py_None); | |
7635 | _resultobj = Py_None; | |
7636 | { | |
7637 | if (_obj3) | |
7638 | delete _arg3; | |
7639 | } | |
7640 | { | |
7641 | if (_obj4) | |
7642 | delete _arg4; | |
7643 | } | |
7644 | return _resultobj; | |
7645 | } | |
7646 | ||
7647 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
7648 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7649 | PyObject * _resultobj; | |
7650 | wxMenu * _arg0; | |
7651 | size_t _arg1; | |
7652 | PyObject * _argo0 = 0; | |
7653 | char *_kwnames[] = { "self","pos", NULL }; | |
7654 | ||
7655 | self = self; | |
7656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
7657 | return NULL; | |
7658 | if (_argo0) { | |
7659 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7660 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7661 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
7662 | return NULL; | |
7663 | } | |
7664 | } | |
7665 | { | |
7666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7667 | wxMenu_InsertSeparator(_arg0,_arg1); | |
7668 | ||
7669 | wxPyEndAllowThreads(__tstate); | |
7670 | if (PyErr_Occurred()) return NULL; | |
7671 | } Py_INCREF(Py_None); | |
7672 | _resultobj = Py_None; | |
7673 | return _resultobj; | |
7674 | } | |
7675 | ||
7676 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7677 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7678 | PyObject * _resultobj; | |
7679 | wxMenu * _arg0; | |
7680 | size_t _arg1; | |
7681 | int _arg2; | |
7682 | wxString * _arg3; | |
7683 | wxString * _arg4 = (wxString *) &wxEmptyString; | |
7684 | PyObject * _argo0 = 0; | |
7685 | PyObject * _obj3 = 0; | |
7686 | PyObject * _obj4 = 0; | |
7687 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7688 | ||
7689 | self = self; | |
7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7691 | return NULL; | |
7692 | if (_argo0) { | |
7693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
7696 | return NULL; | |
7697 | } | |
7698 | } | |
7699 | { | |
7700 | _arg3 = wxString_in_helper(_obj3); | |
7701 | if (_arg3 == NULL) | |
7702 | return NULL; | |
7703 | } | |
7704 | if (_obj4) | |
7705 | { | |
7706 | _arg4 = wxString_in_helper(_obj4); | |
7707 | if (_arg4 == NULL) | |
7708 | return NULL; | |
7709 | } | |
7710 | { | |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) return NULL; | |
7716 | } Py_INCREF(Py_None); | |
7717 | _resultobj = Py_None; | |
7718 | { | |
7719 | if (_obj3) | |
7720 | delete _arg3; | |
7721 | } | |
7722 | { | |
7723 | if (_obj4) | |
7724 | delete _arg4; | |
7725 | } | |
7726 | return _resultobj; | |
7727 | } | |
7728 | ||
7729 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7730 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7731 | PyObject * _resultobj; | |
7732 | wxMenu * _arg0; | |
7733 | size_t _arg1; | |
7734 | int _arg2; | |
7735 | wxString * _arg3; | |
7736 | wxString * _arg4 = (wxString *) &wxEmptyString; | |
7737 | PyObject * _argo0 = 0; | |
7738 | PyObject * _obj3 = 0; | |
7739 | PyObject * _obj4 = 0; | |
7740 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7741 | ||
7742 | self = self; | |
7743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7744 | return NULL; | |
7745 | if (_argo0) { | |
7746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
7749 | return NULL; | |
7750 | } | |
7751 | } | |
7752 | { | |
7753 | _arg3 = wxString_in_helper(_obj3); | |
7754 | if (_arg3 == NULL) | |
7755 | return NULL; | |
7756 | } | |
7757 | if (_obj4) | |
7758 | { | |
7759 | _arg4 = wxString_in_helper(_obj4); | |
7760 | if (_arg4 == NULL) | |
7761 | return NULL; | |
7762 | } | |
7763 | { | |
7764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7765 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7766 | ||
7767 | wxPyEndAllowThreads(__tstate); | |
7768 | if (PyErr_Occurred()) return NULL; | |
7769 | } Py_INCREF(Py_None); | |
7770 | _resultobj = Py_None; | |
7771 | { | |
7772 | if (_obj3) | |
7773 | delete _arg3; | |
7774 | } | |
7775 | { | |
7776 | if (_obj4) | |
7777 | delete _arg4; | |
7778 | } | |
7779 | return _resultobj; | |
7780 | } | |
7781 | ||
7782 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7783 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7784 | PyObject * _resultobj; | |
7785 | wxMenu * _arg0; | |
7786 | size_t _arg1; | |
7787 | int _arg2; | |
7788 | wxString * _arg3; | |
7789 | wxMenu * _arg4; | |
7790 | wxString * _arg5 = (wxString *) &wxEmptyString; | |
7791 | PyObject * _argo0 = 0; | |
7792 | PyObject * _obj3 = 0; | |
7793 | PyObject * _argo4 = 0; | |
7794 | PyObject * _obj5 = 0; | |
7795 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
7796 | ||
7797 | self = self; | |
7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
7799 | return NULL; | |
7800 | if (_argo0) { | |
7801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7804 | return NULL; | |
7805 | } | |
7806 | } | |
7807 | { | |
7808 | _arg3 = wxString_in_helper(_obj3); | |
7809 | if (_arg3 == NULL) | |
7810 | return NULL; | |
7811 | } | |
7812 | if (_argo4) { | |
7813 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7814 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
7815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7816 | return NULL; | |
7817 | } | |
7818 | } | |
7819 | if (_obj5) | |
7820 | { | |
7821 | _arg5 = wxString_in_helper(_obj5); | |
7822 | if (_arg5 == NULL) | |
7823 | return NULL; | |
7824 | } | |
7825 | { | |
7826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7827 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
d1679124 | 7828 | |
4268f798 | 7829 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7830 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
7831 | } Py_INCREF(Py_None); |
7832 | _resultobj = Py_None; | |
7833 | { | |
7834 | if (_obj3) | |
7835 | delete _arg3; | |
7836 | } | |
7837 | { | |
7838 | if (_obj5) | |
7839 | delete _arg5; | |
7840 | } | |
d1679124 RD |
7841 | return _resultobj; |
7842 | } | |
7843 | ||
e9159fe8 RD |
7844 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7845 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 7846 | PyObject * _resultobj; |
e9159fe8 RD |
7847 | bool _result; |
7848 | wxMenu * _arg0; | |
7849 | size_t _arg1; | |
7850 | wxMenuItem * _arg2; | |
d1679124 | 7851 | PyObject * _argo0 = 0; |
e9159fe8 RD |
7852 | PyObject * _argo2 = 0; |
7853 | char *_kwnames[] = { "self","pos","item", NULL }; | |
d1679124 RD |
7854 | |
7855 | self = self; | |
e9159fe8 | 7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
d1679124 RD |
7857 | return NULL; |
7858 | if (_argo0) { | |
7859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
7860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
7862 | return NULL; | |
7863 | } | |
7864 | } | |
7865 | if (_argo2) { | |
7866 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7867 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
d1679124 RD |
7869 | return NULL; |
7870 | } | |
7871 | } | |
7872 | { | |
4268f798 | 7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7874 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
d1679124 | 7875 | |
4268f798 | 7876 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7877 | if (PyErr_Occurred()) return NULL; |
e9159fe8 | 7878 | } _resultobj = Py_BuildValue("i",_result); |
d1679124 RD |
7879 | return _resultobj; |
7880 | } | |
7881 | ||
e9159fe8 RD |
7882 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7883 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d1679124 | 7884 | PyObject * _resultobj; |
e9159fe8 RD |
7885 | wxMenu * _arg0; |
7886 | int _arg1; | |
7887 | wxString * _arg2; | |
7888 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
7889 | wxItemKind _arg4 = (wxItemKind ) wxItem_Normal; | |
d1679124 | 7890 | PyObject * _argo0 = 0; |
e9159fe8 RD |
7891 | PyObject * _obj2 = 0; |
7892 | PyObject * _obj3 = 0; | |
7893 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
d1679124 RD |
7894 | |
7895 | self = self; | |
e9159fe8 | 7896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
d1679124 RD |
7897 | return NULL; |
7898 | if (_argo0) { | |
7899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
7900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
d1679124 RD |
7902 | return NULL; |
7903 | } | |
7904 | } | |
e9159fe8 RD |
7905 | { |
7906 | _arg2 = wxString_in_helper(_obj2); | |
7907 | if (_arg2 == NULL) | |
7908 | return NULL; | |
7909 | } | |
7910 | if (_obj3) | |
7911 | { | |
7912 | _arg3 = wxString_in_helper(_obj3); | |
7913 | if (_arg3 == NULL) | |
7914 | return NULL; | |
7915 | } | |
d1679124 | 7916 | { |
4268f798 | 7917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7918 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
d1679124 | 7919 | |
4268f798 | 7920 | wxPyEndAllowThreads(__tstate); |
493f1553 | 7921 | if (PyErr_Occurred()) return NULL; |
d1679124 RD |
7922 | } Py_INCREF(Py_None); |
7923 | _resultobj = Py_None; | |
e9159fe8 RD |
7924 | { |
7925 | if (_obj2) | |
7926 | delete _arg2; | |
7927 | } | |
7928 | { | |
7929 | if (_obj3) | |
7930 | delete _arg3; | |
7931 | } | |
d1679124 RD |
7932 | return _resultobj; |
7933 | } | |
7934 | ||
e9159fe8 RD |
7935 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
7936 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26e335b8 | 7937 | PyObject * _resultobj; |
e9159fe8 | 7938 | wxMenu * _arg0; |
26e335b8 RD |
7939 | PyObject * _argo0 = 0; |
7940 | char *_kwnames[] = { "self", NULL }; | |
7941 | ||
7942 | self = self; | |
e9159fe8 | 7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
26e335b8 RD |
7944 | return NULL; |
7945 | if (_argo0) { | |
7946 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
e9159fe8 RD |
7947 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
26e335b8 RD |
7949 | return NULL; |
7950 | } | |
7951 | } | |
7952 | { | |
7953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e9159fe8 | 7954 | wxMenu_PrependSeparator(_arg0); |
26e335b8 RD |
7955 | |
7956 | wxPyEndAllowThreads(__tstate); | |
7957 | if (PyErr_Occurred()) return NULL; | |
e9159fe8 RD |
7958 | } Py_INCREF(Py_None); |
7959 | _resultobj = Py_None; | |
26e335b8 RD |
7960 | return _resultobj; |
7961 | } | |
7962 | ||
e9159fe8 RD |
7963 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
7964 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7965 | PyObject * _resultobj; |
e9159fe8 RD |
7966 | wxMenu * _arg0; |
7967 | int _arg1; | |
7968 | wxString * _arg2; | |
7969 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
7970 | PyObject * _argo0 = 0; | |
7971 | PyObject * _obj2 = 0; | |
7972 | PyObject * _obj3 = 0; | |
7973 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
7974 | |
7975 | self = self; | |
e9159fe8 | 7976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 7977 | return NULL; |
e9159fe8 RD |
7978 | if (_argo0) { |
7979 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7980 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7981 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
7982 | return NULL; | |
7983 | } | |
7984 | } | |
8ab979d7 | 7985 | { |
e9159fe8 RD |
7986 | _arg2 = wxString_in_helper(_obj2); |
7987 | if (_arg2 == NULL) | |
7988 | return NULL; | |
7989 | } | |
7990 | if (_obj3) | |
7991 | { | |
7992 | _arg3 = wxString_in_helper(_obj3); | |
7993 | if (_arg3 == NULL) | |
185d7c3e | 7994 | return NULL; |
8ab979d7 | 7995 | } |
cf694132 | 7996 | { |
4268f798 | 7997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 7998 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 7999 | |
4268f798 | 8000 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8001 | if (PyErr_Occurred()) return NULL; |
e9159fe8 RD |
8002 | } Py_INCREF(Py_None); |
8003 | _resultobj = Py_None; | |
8ab979d7 | 8004 | { |
e9159fe8 RD |
8005 | if (_obj2) |
8006 | delete _arg2; | |
8007 | } | |
8008 | { | |
8009 | if (_obj3) | |
8010 | delete _arg3; | |
8ab979d7 RD |
8011 | } |
8012 | return _resultobj; | |
8013 | } | |
8014 | ||
e9159fe8 RD |
8015 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
8016 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8017 | PyObject * _resultobj; |
8018 | wxMenu * _arg0; | |
8019 | int _arg1; | |
8020 | wxString * _arg2; | |
23bed520 | 8021 | wxString * _arg3 = (wxString *) &wxEmptyString; |
1d99702e | 8022 | PyObject * _argo0 = 0; |
8ab979d7 RD |
8023 | PyObject * _obj2 = 0; |
8024 | PyObject * _obj3 = 0; | |
e9159fe8 | 8025 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8026 | |
8027 | self = self; | |
e9159fe8 | 8028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8029 | return NULL; |
1d99702e RD |
8030 | if (_argo0) { |
8031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8034 | return NULL; |
8035 | } | |
8036 | } | |
8037 | { | |
c8bc7bb8 RD |
8038 | _arg2 = wxString_in_helper(_obj2); |
8039 | if (_arg2 == NULL) | |
8ab979d7 | 8040 | return NULL; |
8ab979d7 RD |
8041 | } |
8042 | if (_obj3) | |
8043 | { | |
c8bc7bb8 RD |
8044 | _arg3 = wxString_in_helper(_obj3); |
8045 | if (_arg3 == NULL) | |
8ab979d7 | 8046 | return NULL; |
8ab979d7 | 8047 | } |
cf694132 | 8048 | { |
4268f798 | 8049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8050 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8051 | |
4268f798 | 8052 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8053 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8054 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8055 | _resultobj = Py_None; |
8056 | { | |
8057 | if (_obj2) | |
8058 | delete _arg2; | |
8059 | } | |
8060 | { | |
8061 | if (_obj3) | |
8062 | delete _arg3; | |
8063 | } | |
8064 | return _resultobj; | |
8065 | } | |
8066 | ||
e9159fe8 RD |
8067 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8068 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8069 | PyObject * _resultobj; |
8070 | wxMenu * _arg0; | |
8071 | int _arg1; | |
8072 | wxString * _arg2; | |
8073 | wxMenu * _arg3; | |
23bed520 | 8074 | wxString * _arg4 = (wxString *) &wxEmptyString; |
1d99702e | 8075 | PyObject * _argo0 = 0; |
8ab979d7 | 8076 | PyObject * _obj2 = 0; |
1d99702e | 8077 | PyObject * _argo3 = 0; |
8ab979d7 | 8078 | PyObject * _obj4 = 0; |
e9159fe8 | 8079 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8080 | |
8081 | self = self; | |
e9159fe8 | 8082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8083 | return NULL; |
1d99702e RD |
8084 | if (_argo0) { |
8085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8088 | return NULL; |
8089 | } | |
8090 | } | |
8091 | { | |
c8bc7bb8 RD |
8092 | _arg2 = wxString_in_helper(_obj2); |
8093 | if (_arg2 == NULL) | |
185d7c3e | 8094 | return NULL; |
8ab979d7 | 8095 | } |
1d99702e RD |
8096 | if (_argo3) { |
8097 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8098 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
e9159fe8 | 8099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8100 | return NULL; |
8101 | } | |
8102 | } | |
8103 | if (_obj4) | |
8104 | { | |
c8bc7bb8 RD |
8105 | _arg4 = wxString_in_helper(_obj4); |
8106 | if (_arg4 == NULL) | |
185d7c3e | 8107 | return NULL; |
8ab979d7 | 8108 | } |
cf694132 | 8109 | { |
4268f798 | 8110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8111 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8112 | |
4268f798 | 8113 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8114 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8115 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8116 | _resultobj = Py_None; |
8117 | { | |
8118 | if (_obj2) | |
8119 | delete _arg2; | |
8120 | } | |
8121 | { | |
8122 | if (_obj4) | |
8123 | delete _arg4; | |
8124 | } | |
8125 | return _resultobj; | |
8126 | } | |
8127 | ||
e9159fe8 RD |
8128 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8129 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8130 | PyObject * _resultobj; |
8131 | wxMenu * _arg0; | |
8132 | wxMenuItem * _arg1; | |
1d99702e RD |
8133 | PyObject * _argo0 = 0; |
8134 | PyObject * _argo1 = 0; | |
efc5f224 | 8135 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8136 | |
8137 | self = self; | |
e9159fe8 | 8138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8139 | return NULL; |
1d99702e RD |
8140 | if (_argo0) { |
8141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
e9159fe8 | 8143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8144 | return NULL; |
8145 | } | |
8146 | } | |
1d99702e RD |
8147 | if (_argo1) { |
8148 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8149 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
e9159fe8 | 8150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8151 | return NULL; |
8152 | } | |
8153 | } | |
cf694132 | 8154 | { |
4268f798 | 8155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
e9159fe8 | 8156 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8157 | |
4268f798 | 8158 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8159 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8160 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8161 | _resultobj = Py_None; |
8162 | return _resultobj; | |
8163 | } | |
8164 | ||
8165 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8166 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8167 | PyObject * _resultobj; |
8168 | wxMenu * _arg0; | |
1d99702e | 8169 | PyObject * _argo0 = 0; |
efc5f224 | 8170 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8171 | |
8172 | self = self; | |
efc5f224 | 8173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8174 | return NULL; |
1d99702e RD |
8175 | if (_argo0) { |
8176 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8177 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8178 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8179 | return NULL; | |
8180 | } | |
8181 | } | |
cf694132 | 8182 | { |
4268f798 | 8183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8184 | wxMenu_Break(_arg0); |
cf694132 | 8185 | |
4268f798 | 8186 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8187 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8188 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8189 | _resultobj = Py_None; |
8190 | return _resultobj; | |
8191 | } | |
8192 | ||
8193 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8194 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8195 | PyObject * _resultobj; |
8196 | wxMenu * _arg0; | |
8197 | int _arg1; | |
8198 | bool _arg2; | |
1d99702e | 8199 | PyObject * _argo0 = 0; |
8ab979d7 | 8200 | int tempbool2; |
efc5f224 | 8201 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8202 | |
8203 | self = self; | |
efc5f224 | 8204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8205 | return NULL; |
1d99702e RD |
8206 | if (_argo0) { |
8207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
8210 | return NULL; | |
8211 | } | |
8212 | } | |
8213 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8214 | { |
4268f798 | 8215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8216 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8217 | |
4268f798 | 8218 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8219 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8220 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8221 | _resultobj = Py_None; |
8222 | return _resultobj; | |
8223 | } | |
8224 | ||
b1462dfa RD |
8225 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8226 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8227 | PyObject * _resultobj; | |
8228 | bool _result; | |
8229 | wxMenu * _arg0; | |
8230 | int _arg1; | |
8231 | PyObject * _argo0 = 0; | |
8232 | char *_kwnames[] = { "self","id", NULL }; | |
8233 | ||
8234 | self = self; | |
8235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8236 | return NULL; | |
8237 | if (_argo0) { | |
8238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8241 | return NULL; | |
8242 | } | |
8243 | } | |
8244 | { | |
4268f798 | 8245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8246 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8247 | |
4268f798 | 8248 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8249 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8250 | } _resultobj = Py_BuildValue("i",_result); |
8251 | return _resultobj; | |
8252 | } | |
8253 | ||
8ab979d7 | 8254 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8255 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8256 | PyObject * _resultobj; |
8257 | wxMenu * _arg0; | |
8258 | int _arg1; | |
8259 | bool _arg2; | |
1d99702e | 8260 | PyObject * _argo0 = 0; |
8ab979d7 | 8261 | int tempbool2; |
efc5f224 | 8262 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8263 | |
8264 | self = self; | |
efc5f224 | 8265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8266 | return NULL; |
1d99702e RD |
8267 | if (_argo0) { |
8268 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8269 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8270 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8271 | return NULL; | |
8272 | } | |
8273 | } | |
8274 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8275 | { |
4268f798 | 8276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8277 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8278 | |
4268f798 | 8279 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8280 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8281 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8282 | _resultobj = Py_None; |
8283 | return _resultobj; | |
8284 | } | |
8285 | ||
b1462dfa RD |
8286 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8287 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8288 | PyObject * _resultobj; | |
8289 | bool _result; | |
8290 | wxMenu * _arg0; | |
8291 | int _arg1; | |
8292 | PyObject * _argo0 = 0; | |
8293 | char *_kwnames[] = { "self","id", NULL }; | |
8294 | ||
8295 | self = self; | |
8296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
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_IsEnabled. Expected _wxMenu_p."); | |
8302 | return NULL; | |
8303 | } | |
8304 | } | |
8305 | { | |
4268f798 | 8306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8307 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8308 | |
4268f798 | 8309 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8310 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8311 | } _resultobj = Py_BuildValue("i",_result); |
8312 | return _resultobj; | |
8313 | } | |
8314 | ||
8ab979d7 | 8315 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 8316 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8317 | PyObject * _resultobj; |
8318 | int _result; | |
8319 | wxMenu * _arg0; | |
8320 | wxString * _arg1; | |
1d99702e | 8321 | PyObject * _argo0 = 0; |
8ab979d7 | 8322 | PyObject * _obj1 = 0; |
efc5f224 | 8323 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
8324 | |
8325 | self = self; | |
efc5f224 | 8326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8327 | return NULL; |
1d99702e RD |
8328 | if (_argo0) { |
8329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
8332 | return NULL; | |
8333 | } | |
8334 | } | |
8335 | { | |
c8bc7bb8 RD |
8336 | _arg1 = wxString_in_helper(_obj1); |
8337 | if (_arg1 == NULL) | |
185d7c3e | 8338 | return NULL; |
8ab979d7 | 8339 | } |
cf694132 | 8340 | { |
4268f798 | 8341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8342 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 8343 | |
4268f798 | 8344 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8345 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8346 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8347 | { |
8348 | if (_obj1) | |
8349 | delete _arg1; | |
8350 | } | |
8351 | return _resultobj; | |
8352 | } | |
8353 | ||
b1462dfa RD |
8354 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
8355 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8356 | PyObject * _resultobj; | |
8357 | wxMenuItem * _result; | |
8358 | wxMenu * _arg0; | |
8359 | int _arg1; | |
8360 | PyObject * _argo0 = 0; | |
8361 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8362 | |
8363 | self = self; | |
8364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8365 | return NULL; | |
8366 | if (_argo0) { | |
8367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8370 | return NULL; | |
8371 | } | |
8372 | } | |
8373 | { | |
4268f798 | 8374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8375 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 8376 | |
4268f798 | 8377 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8378 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8379 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
8380 | return _resultobj; |
8381 | } | |
8382 | ||
8ab979d7 | 8383 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 8384 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8385 | PyObject * _resultobj; |
8386 | wxString * _result; | |
8387 | wxMenu * _arg0; | |
1d99702e | 8388 | PyObject * _argo0 = 0; |
efc5f224 | 8389 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8390 | |
8391 | self = self; | |
efc5f224 | 8392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 8393 | return NULL; |
1d99702e RD |
8394 | if (_argo0) { |
8395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
8398 | return NULL; | |
8399 | } | |
8400 | } | |
8ab979d7 | 8401 | { |
4268f798 | 8402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8403 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 8404 | |
4268f798 | 8405 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8406 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8407 | }{ |
c8bc7bb8 RD |
8408 | #if wxUSE_UNICODE |
8409 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8410 | #else | |
eec92d76 | 8411 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8412 | #endif |
8ab979d7 RD |
8413 | } |
8414 | { | |
8415 | delete _result; | |
8416 | } | |
8417 | return _resultobj; | |
8418 | } | |
8419 | ||
8420 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 8421 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8422 | PyObject * _resultobj; |
8423 | wxMenu * _arg0; | |
8424 | wxString * _arg1; | |
1d99702e | 8425 | PyObject * _argo0 = 0; |
8ab979d7 | 8426 | PyObject * _obj1 = 0; |
efc5f224 | 8427 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
8428 | |
8429 | self = self; | |
efc5f224 | 8430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8431 | return NULL; |
1d99702e RD |
8432 | if (_argo0) { |
8433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
8436 | return NULL; | |
8437 | } | |
8438 | } | |
8439 | { | |
c8bc7bb8 RD |
8440 | _arg1 = wxString_in_helper(_obj1); |
8441 | if (_arg1 == NULL) | |
185d7c3e | 8442 | return NULL; |
8ab979d7 | 8443 | } |
cf694132 | 8444 | { |
4268f798 | 8445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8446 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 8447 | |
4268f798 | 8448 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8449 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8450 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8451 | _resultobj = Py_None; |
8452 | { | |
8453 | if (_obj1) | |
8454 | delete _arg1; | |
8455 | } | |
8456 | return _resultobj; | |
8457 | } | |
8458 | ||
b1462dfa RD |
8459 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8460 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8461 | PyObject * _resultobj; |
b1462dfa | 8462 | wxString * _result; |
8ab979d7 RD |
8463 | wxMenu * _arg0; |
8464 | int _arg1; | |
1d99702e | 8465 | PyObject * _argo0 = 0; |
efc5f224 | 8466 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8467 | |
8468 | self = self; | |
b1462dfa | 8469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8470 | return NULL; |
1d99702e RD |
8471 | if (_argo0) { |
8472 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8473 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8474 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8475 | return NULL; |
8476 | } | |
8477 | } | |
cf694132 | 8478 | { |
4268f798 | 8479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8480 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 8481 | |
4268f798 | 8482 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8483 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8484 | }{ |
c8bc7bb8 RD |
8485 | #if wxUSE_UNICODE |
8486 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8487 | #else | |
eec92d76 | 8488 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8489 | #endif |
b1462dfa RD |
8490 | } |
8491 | { | |
8492 | delete _result; | |
8493 | } | |
8ab979d7 RD |
8494 | return _resultobj; |
8495 | } | |
8496 | ||
b1462dfa RD |
8497 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8498 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8499 | PyObject * _resultobj; |
8ab979d7 RD |
8500 | wxMenu * _arg0; |
8501 | int _arg1; | |
b1462dfa | 8502 | wxString * _arg2; |
1d99702e | 8503 | PyObject * _argo0 = 0; |
b1462dfa RD |
8504 | PyObject * _obj2 = 0; |
8505 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8506 | |
8507 | self = self; | |
b1462dfa | 8508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8509 | return NULL; |
1d99702e RD |
8510 | if (_argo0) { |
8511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8514 | return NULL; |
8515 | } | |
8516 | } | |
b1462dfa | 8517 | { |
c8bc7bb8 RD |
8518 | _arg2 = wxString_in_helper(_obj2); |
8519 | if (_arg2 == NULL) | |
185d7c3e | 8520 | return NULL; |
b1462dfa | 8521 | } |
8ab979d7 | 8522 | { |
4268f798 | 8523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8524 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 8525 | |
4268f798 | 8526 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8527 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8528 | } Py_INCREF(Py_None); |
8529 | _resultobj = Py_None; | |
8ab979d7 | 8530 | { |
b1462dfa RD |
8531 | if (_obj2) |
8532 | delete _arg2; | |
8ab979d7 RD |
8533 | } |
8534 | return _resultobj; | |
8535 | } | |
8536 | ||
b1462dfa RD |
8537 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
8538 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8539 | PyObject * _resultobj; |
8540 | wxString * _result; | |
8541 | wxMenu * _arg0; | |
8542 | int _arg1; | |
1d99702e | 8543 | PyObject * _argo0 = 0; |
efc5f224 | 8544 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8545 | |
8546 | self = self; | |
b1462dfa | 8547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8548 | return NULL; |
1d99702e RD |
8549 | if (_argo0) { |
8550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
8553 | return NULL; |
8554 | } | |
8555 | } | |
8ab979d7 | 8556 | { |
4268f798 | 8557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8558 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 8559 | |
4268f798 | 8560 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8561 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8562 | }{ |
c8bc7bb8 RD |
8563 | #if wxUSE_UNICODE |
8564 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8565 | #else | |
eec92d76 | 8566 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8567 | #endif |
8ab979d7 RD |
8568 | } |
8569 | { | |
8570 | delete _result; | |
8571 | } | |
8572 | return _resultobj; | |
8573 | } | |
8574 | ||
8575 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 8576 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8577 | PyObject * _resultobj; |
8578 | wxMenu * _arg0; | |
8579 | int _arg1; | |
8580 | wxString * _arg2; | |
1d99702e | 8581 | PyObject * _argo0 = 0; |
8ab979d7 | 8582 | PyObject * _obj2 = 0; |
efc5f224 | 8583 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
8584 | |
8585 | self = self; | |
efc5f224 | 8586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8587 | return NULL; |
1d99702e RD |
8588 | if (_argo0) { |
8589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
8592 | return NULL; | |
8593 | } | |
8594 | } | |
8595 | { | |
c8bc7bb8 RD |
8596 | _arg2 = wxString_in_helper(_obj2); |
8597 | if (_arg2 == NULL) | |
185d7c3e | 8598 | return NULL; |
8ab979d7 | 8599 | } |
cf694132 | 8600 | { |
4268f798 | 8601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8602 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 8603 | |
4268f798 | 8604 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8605 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8606 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8607 | _resultobj = Py_None; |
8608 | { | |
8609 | if (_obj2) | |
8610 | delete _arg2; | |
8611 | } | |
8612 | return _resultobj; | |
8613 | } | |
8614 | ||
b1462dfa RD |
8615 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
8616 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8617 | PyObject * _resultobj; |
8ab979d7 | 8618 | wxMenu * _arg0; |
b1462dfa | 8619 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 8620 | PyObject * _argo0 = 0; |
b1462dfa RD |
8621 | PyObject * _argo1 = 0; |
8622 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
8623 | |
8624 | self = self; | |
b1462dfa | 8625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8626 | return NULL; |
1d99702e RD |
8627 | if (_argo0) { |
8628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
8630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
8631 | return NULL; | |
8632 | } | |
8633 | } | |
8634 | if (_argo1) { | |
8635 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8636 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
8638 | return NULL; |
8639 | } | |
8640 | } | |
cf694132 | 8641 | { |
4268f798 | 8642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8643 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 8644 | |
4268f798 | 8645 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8646 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8647 | } Py_INCREF(Py_None); |
8648 | _resultobj = Py_None; | |
8ab979d7 RD |
8649 | return _resultobj; |
8650 | } | |
8651 | ||
b1462dfa RD |
8652 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8653 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8654 | PyObject * _resultobj; |
8655 | bool _result; | |
8656 | wxMenu * _arg0; | |
8657 | int _arg1; | |
1d99702e | 8658 | PyObject * _argo0 = 0; |
efc5f224 | 8659 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8660 | |
8661 | self = self; | |
b1462dfa | 8662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8663 | return NULL; |
1d99702e RD |
8664 | if (_argo0) { |
8665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
8668 | return NULL; |
8669 | } | |
8670 | } | |
cf694132 | 8671 | { |
4268f798 | 8672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8673 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 8674 | |
4268f798 | 8675 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8676 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8677 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8678 | return _resultobj; |
8679 | } | |
8680 | ||
b1462dfa RD |
8681 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8682 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8683 | PyObject * _resultobj; |
b1462dfa | 8684 | bool _result; |
8ab979d7 | 8685 | wxMenu * _arg0; |
b1462dfa | 8686 | wxMenuItem * _arg1; |
1d99702e | 8687 | PyObject * _argo0 = 0; |
b1462dfa RD |
8688 | PyObject * _argo1 = 0; |
8689 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8690 | |
8691 | self = self; | |
b1462dfa | 8692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8693 | return NULL; |
1d99702e RD |
8694 | if (_argo0) { |
8695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8698 | return NULL; |
8699 | } | |
8700 | } | |
b1462dfa RD |
8701 | if (_argo1) { |
8702 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8703 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8705 | return NULL; |
b1462dfa | 8706 | } |
8ab979d7 | 8707 | } |
cf694132 | 8708 | { |
4268f798 | 8709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8710 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 8711 | |
4268f798 | 8712 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8713 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8714 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8715 | return _resultobj; |
8716 | } | |
8717 | ||
b1462dfa RD |
8718 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8719 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 8720 | PyObject * _resultobj; |
b1462dfa | 8721 | wxMenuItem * _result; |
efc5f224 | 8722 | wxMenu * _arg0; |
b1462dfa | 8723 | int _arg1; |
efc5f224 | 8724 | PyObject * _argo0 = 0; |
b1462dfa | 8725 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
8726 | |
8727 | self = self; | |
b1462dfa | 8728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
8729 | return NULL; |
8730 | if (_argo0) { | |
8731 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8732 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8733 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
8734 | return NULL; |
8735 | } | |
8736 | } | |
8737 | { | |
4268f798 | 8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8739 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 8740 | |
4268f798 | 8741 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8742 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8743 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
8744 | return _resultobj; |
8745 | } | |
8746 | ||
b1462dfa RD |
8747 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8748 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8749 | PyObject * _resultobj; |
b1462dfa RD |
8750 | wxMenuItem * _result; |
8751 | wxMenu * _arg0; | |
8752 | wxMenuItem * _arg1; | |
8753 | PyObject * _argo0 = 0; | |
8754 | PyObject * _argo1 = 0; | |
8755 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8756 | |
8757 | self = self; | |
b1462dfa RD |
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
8759 | return NULL; | |
8760 | if (_argo0) { | |
8761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
8764 | return NULL; | |
8765 | } | |
8766 | } | |
8767 | if (_argo1) { | |
8768 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8769 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8770 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8771 | return NULL; |
b1462dfa RD |
8772 | } |
8773 | } | |
cf694132 | 8774 | { |
4268f798 | 8775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8776 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 8777 | |
4268f798 | 8778 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8779 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 8780 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8781 | return _resultobj; |
8782 | } | |
8783 | ||
eb715945 | 8784 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 8785 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8786 | PyObject * _resultobj; |
b1462dfa | 8787 | wxMenu * _arg0; |
1d99702e | 8788 | PyObject * _argo0 = 0; |
b1462dfa | 8789 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8790 | |
8791 | self = self; | |
b1462dfa | 8792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 8793 | return NULL; |
1d99702e RD |
8794 | if (_argo0) { |
8795 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8796 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8797 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
8798 | return NULL; |
8799 | } | |
8800 | } | |
cf694132 | 8801 | { |
4268f798 | 8802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8803 | wxMenu_Destroy(_arg0); |
cf694132 | 8804 | |
4268f798 | 8805 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8806 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8807 | } Py_INCREF(Py_None); |
8ab979d7 | 8808 | _resultobj = Py_None; |
8ab979d7 RD |
8809 | return _resultobj; |
8810 | } | |
8811 | ||
b1462dfa RD |
8812 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8813 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8814 | PyObject * _resultobj; |
b1462dfa RD |
8815 | bool _result; |
8816 | wxMenu * _arg0; | |
8ab979d7 | 8817 | int _arg1; |
1d99702e | 8818 | PyObject * _argo0 = 0; |
b1462dfa | 8819 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8820 | |
8821 | self = self; | |
b1462dfa | 8822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8823 | return NULL; |
1d99702e RD |
8824 | if (_argo0) { |
8825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
8828 | return NULL; |
8829 | } | |
8830 | } | |
cf694132 | 8831 | { |
4268f798 | 8832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8833 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 8834 | |
4268f798 | 8835 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8836 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8837 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8838 | return _resultobj; |
8839 | } | |
8840 | ||
b1462dfa RD |
8841 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8842 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8843 | PyObject * _resultobj; |
b1462dfa RD |
8844 | bool _result; |
8845 | wxMenu * _arg0; | |
8846 | wxMenuItem * _arg1; | |
1d99702e | 8847 | PyObject * _argo0 = 0; |
b1462dfa RD |
8848 | PyObject * _argo1 = 0; |
8849 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8850 | |
8851 | self = self; | |
b1462dfa | 8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8853 | return NULL; |
1d99702e RD |
8854 | if (_argo0) { |
8855 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8856 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8857 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8858 | return NULL; | |
8859 | } | |
8860 | } | |
8861 | if (_argo1) { | |
8862 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8863 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8865 | return NULL; |
8866 | } | |
8867 | } | |
cf694132 | 8868 | { |
4268f798 | 8869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8870 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 8871 | |
4268f798 | 8872 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8873 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8874 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8875 | return _resultobj; |
8876 | } | |
8877 | ||
b1462dfa RD |
8878 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
8879 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8880 | PyObject * _resultobj; |
b1462dfa RD |
8881 | size_t _result; |
8882 | wxMenu * _arg0; | |
1d99702e | 8883 | PyObject * _argo0 = 0; |
b1462dfa | 8884 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8885 | |
8886 | self = self; | |
b1462dfa | 8887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 8888 | return NULL; |
1d99702e RD |
8889 | if (_argo0) { |
8890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
8893 | return NULL; |
8894 | } | |
8895 | } | |
cf694132 | 8896 | { |
4268f798 | 8897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8898 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 8899 | |
4268f798 | 8900 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8901 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 8902 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8903 | return _resultobj; |
8904 | } | |
8905 | ||
b1462dfa RD |
8906 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
8907 | wxMenuItemList& list = self->GetMenuItems(); | |
8908 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8909 | } | |
8910 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8911 | PyObject * _resultobj; |
b1462dfa RD |
8912 | PyObject * _result; |
8913 | wxMenu * _arg0; | |
1d99702e | 8914 | PyObject * _argo0 = 0; |
b1462dfa | 8915 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8916 | |
8917 | self = self; | |
b1462dfa | 8918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 8919 | return NULL; |
1d99702e RD |
8920 | if (_argo0) { |
8921 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8922 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8923 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8924 | return NULL; |
8925 | } | |
8926 | } | |
cf694132 | 8927 | { |
4268f798 | 8928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8929 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 8930 | |
4268f798 | 8931 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8932 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8933 | }{ |
8934 | _resultobj = _result; | |
8935 | } | |
8ab979d7 RD |
8936 | return _resultobj; |
8937 | } | |
8938 | ||
b1462dfa RD |
8939 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8940 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8941 | PyObject * _resultobj; |
b1462dfa RD |
8942 | wxMenu * _arg0; |
8943 | wxEvtHandler * _arg1; | |
1d99702e | 8944 | PyObject * _argo0 = 0; |
b1462dfa RD |
8945 | PyObject * _argo1 = 0; |
8946 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8947 | |
8948 | self = self; | |
b1462dfa | 8949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8950 | return NULL; |
1d99702e RD |
8951 | if (_argo0) { |
8952 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8953 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8954 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8955 | return NULL; |
8956 | } | |
8957 | } | |
b1462dfa RD |
8958 | if (_argo1) { |
8959 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8960 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8961 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8962 | return NULL; |
b1462dfa | 8963 | } |
8ab979d7 | 8964 | } |
cf694132 | 8965 | { |
4268f798 | 8966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8967 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 8968 | |
4268f798 | 8969 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8970 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8971 | } Py_INCREF(Py_None); |
8972 | _resultobj = Py_None; | |
8ab979d7 RD |
8973 | return _resultobj; |
8974 | } | |
8975 | ||
b1462dfa RD |
8976 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8977 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8978 | PyObject * _resultobj; |
b1462dfa RD |
8979 | wxEvtHandler * _result; |
8980 | wxMenu * _arg0; | |
1d99702e | 8981 | PyObject * _argo0 = 0; |
b1462dfa | 8982 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8983 | |
8984 | self = self; | |
b1462dfa | 8985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8986 | return NULL; |
1d99702e RD |
8987 | if (_argo0) { |
8988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8991 | return NULL; |
8992 | } | |
8993 | } | |
cf694132 | 8994 | { |
4268f798 | 8995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8996 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 8997 | |
4268f798 | 8998 | wxPyEndAllowThreads(__tstate); |
493f1553 | 8999 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9000 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9001 | return _resultobj; |
9002 | } | |
9003 | ||
b1462dfa RD |
9004 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
9005 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 9006 | PyObject * _resultobj; |
b1462dfa RD |
9007 | wxMenu * _arg0; |
9008 | wxWindow * _arg1; | |
2f90df85 | 9009 | PyObject * _argo0 = 0; |
b1462dfa RD |
9010 | PyObject * _argo1 = 0; |
9011 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
9012 | |
9013 | self = self; | |
b1462dfa | 9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
9015 | return NULL; |
9016 | if (_argo0) { | |
9017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
9020 | return NULL; |
9021 | } | |
9022 | } | |
b1462dfa RD |
9023 | if (_argo1) { |
9024 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9025 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9026 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9027 | return NULL; |
b1462dfa | 9028 | } |
2f90df85 | 9029 | } |
2f90df85 | 9030 | { |
4268f798 | 9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9032 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9033 | |
4268f798 | 9034 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9035 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9036 | } Py_INCREF(Py_None); |
9037 | _resultobj = Py_None; | |
2f90df85 RD |
9038 | return _resultobj; |
9039 | } | |
9040 | ||
b1462dfa RD |
9041 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9042 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9043 | PyObject * _resultobj; |
b1462dfa RD |
9044 | wxWindow * _result; |
9045 | wxMenu * _arg0; | |
1d99702e | 9046 | PyObject * _argo0 = 0; |
b1462dfa | 9047 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9048 | |
9049 | self = self; | |
b1462dfa | 9050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9051 | return NULL; |
1d99702e RD |
9052 | if (_argo0) { |
9053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9056 | return NULL; |
9057 | } | |
9058 | } | |
cf694132 | 9059 | { |
4268f798 | 9060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9061 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9062 | |
4268f798 | 9063 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9064 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9065 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9066 | return _resultobj; |
9067 | } | |
9068 | ||
b1462dfa RD |
9069 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9070 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9071 | PyObject * _resultobj; |
b1462dfa RD |
9072 | long _result; |
9073 | wxMenu * _arg0; | |
1d99702e | 9074 | PyObject * _argo0 = 0; |
b1462dfa | 9075 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9076 | |
9077 | self = self; | |
b1462dfa | 9078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9079 | return NULL; |
1d99702e RD |
9080 | if (_argo0) { |
9081 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9082 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9083 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9084 | return NULL; |
9085 | } | |
9086 | } | |
8ab979d7 | 9087 | { |
4268f798 | 9088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9089 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9090 | |
4268f798 | 9091 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9092 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9093 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9094 | return _resultobj; |
9095 | } | |
9096 | ||
b1462dfa RD |
9097 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9098 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9099 | PyObject * _resultobj; |
b1462dfa RD |
9100 | bool _result; |
9101 | wxMenu * _arg0; | |
1d99702e | 9102 | PyObject * _argo0 = 0; |
b1462dfa | 9103 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9104 | |
9105 | self = self; | |
b1462dfa | 9106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9107 | return NULL; |
1d99702e RD |
9108 | if (_argo0) { |
9109 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9110 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9112 | return NULL; |
9113 | } | |
9114 | } | |
8ab979d7 | 9115 | { |
4268f798 | 9116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9117 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 9118 | |
4268f798 | 9119 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9120 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9121 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9122 | return _resultobj; |
9123 | } | |
9124 | ||
b1462dfa RD |
9125 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9126 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9127 | PyObject * _resultobj; |
b1462dfa RD |
9128 | wxMenu * _arg0; |
9129 | wxMenu * _arg1; | |
1d99702e | 9130 | PyObject * _argo0 = 0; |
b1462dfa RD |
9131 | PyObject * _argo1 = 0; |
9132 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9133 | |
9134 | self = self; | |
b1462dfa | 9135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9136 | return NULL; |
1d99702e RD |
9137 | if (_argo0) { |
9138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9141 | return NULL; |
9142 | } | |
9143 | } | |
b1462dfa RD |
9144 | if (_argo1) { |
9145 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9146 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9147 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9148 | return NULL; |
b1462dfa | 9149 | } |
8ab979d7 | 9150 | } |
cf694132 | 9151 | { |
4268f798 | 9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9153 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9154 | |
4268f798 | 9155 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9156 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9157 | } Py_INCREF(Py_None); |
8ab979d7 | 9158 | _resultobj = Py_None; |
8ab979d7 RD |
9159 | return _resultobj; |
9160 | } | |
9161 | ||
b1462dfa RD |
9162 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9163 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9164 | PyObject * _resultobj; |
b1462dfa RD |
9165 | wxMenu * _result; |
9166 | wxMenu * _arg0; | |
1d99702e | 9167 | PyObject * _argo0 = 0; |
b1462dfa | 9168 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9169 | |
9170 | self = self; | |
b1462dfa | 9171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9172 | return NULL; |
1d99702e RD |
9173 | if (_argo0) { |
9174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9177 | return NULL; |
9178 | } | |
9179 | } | |
8ab979d7 | 9180 | { |
4268f798 | 9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9182 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9183 | |
4268f798 | 9184 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9185 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9186 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9187 | return _resultobj; |
8ab979d7 | 9188 | } |
b1462dfa RD |
9189 | |
9190 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9191 | wxMenuBar *src; | |
9192 | wxWindow *dest; | |
9193 | src = (wxMenuBar *) ptr; | |
9194 | dest = (wxWindow *) src; | |
9195 | return (void *) dest; | |
9196 | } | |
9197 | ||
9198 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9199 | wxMenuBar *src; | |
9200 | wxEvtHandler *dest; | |
9201 | src = (wxMenuBar *) ptr; | |
9202 | dest = (wxEvtHandler *) src; | |
9203 | return (void *) dest; | |
8ab979d7 | 9204 | } |
b1462dfa | 9205 | |
9416aa89 RD |
9206 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9207 | wxMenuBar *src; | |
9208 | wxObject *dest; | |
9209 | src = (wxMenuBar *) ptr; | |
9210 | dest = (wxObject *) src; | |
9211 | return (void *) dest; | |
9212 | } | |
9213 | ||
c368d904 | 9214 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9215 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9216 | PyObject * _resultobj; | |
9217 | wxMenuBar * _result; | |
c368d904 RD |
9218 | long _arg0 = (long ) 0; |
9219 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9220 | char _ptemp[128]; |
9221 | ||
9222 | self = self; | |
c368d904 | 9223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9224 | return NULL; |
9225 | { | |
4268f798 | 9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9227 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9228 | |
4268f798 | 9229 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9230 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9231 | } if (_result) { |
9232 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9233 | _resultobj = Py_BuildValue("s",_ptemp); | |
9234 | } else { | |
9235 | Py_INCREF(Py_None); | |
9236 | _resultobj = Py_None; | |
9237 | } | |
8ab979d7 RD |
9238 | return _resultobj; |
9239 | } | |
9240 | ||
b1462dfa RD |
9241 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9242 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9243 | PyObject * _resultobj; |
b1462dfa | 9244 | bool _result; |
8ab979d7 | 9245 | wxMenuBar * _arg0; |
b1462dfa | 9246 | wxMenu * _arg1; |
8ab979d7 | 9247 | wxString * _arg2; |
1d99702e | 9248 | PyObject * _argo0 = 0; |
b1462dfa | 9249 | PyObject * _argo1 = 0; |
8ab979d7 | 9250 | PyObject * _obj2 = 0; |
b1462dfa | 9251 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9252 | |
9253 | self = self; | |
b1462dfa | 9254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9255 | return NULL; |
1d99702e RD |
9256 | if (_argo0) { |
9257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9260 | return NULL; | |
9261 | } | |
9262 | } | |
9263 | if (_argo1) { | |
9264 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9265 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9267 | return NULL; |
9268 | } | |
9269 | } | |
9270 | { | |
c8bc7bb8 RD |
9271 | _arg2 = wxString_in_helper(_obj2); |
9272 | if (_arg2 == NULL) | |
185d7c3e | 9273 | return NULL; |
8ab979d7 | 9274 | } |
cf694132 | 9275 | { |
4268f798 | 9276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9277 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9278 | |
4268f798 | 9279 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9280 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9281 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9282 | { |
9283 | if (_obj2) | |
9284 | delete _arg2; | |
9285 | } | |
9286 | return _resultobj; | |
9287 | } | |
9288 | ||
b1462dfa RD |
9289 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
9290 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9291 | PyObject * _resultobj; |
b1462dfa | 9292 | bool _result; |
8ab979d7 | 9293 | wxMenuBar * _arg0; |
b1462dfa RD |
9294 | size_t _arg1; |
9295 | wxMenu * _arg2; | |
9296 | wxString * _arg3; | |
1d99702e | 9297 | PyObject * _argo0 = 0; |
b1462dfa RD |
9298 | PyObject * _argo2 = 0; |
9299 | PyObject * _obj3 = 0; | |
9300 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
9301 | |
9302 | self = self; | |
b1462dfa | 9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 9304 | return NULL; |
1d99702e RD |
9305 | if (_argo0) { |
9306 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9307 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9308 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
9309 | return NULL; | |
9310 | } | |
9311 | } | |
9312 | if (_argo2) { | |
9313 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9314 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
9316 | return NULL; |
9317 | } | |
9318 | } | |
b1462dfa | 9319 | { |
c8bc7bb8 RD |
9320 | _arg3 = wxString_in_helper(_obj3); |
9321 | if (_arg3 == NULL) | |
185d7c3e | 9322 | return NULL; |
b1462dfa | 9323 | } |
cf694132 | 9324 | { |
4268f798 | 9325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9326 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9327 | |
4268f798 | 9328 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9329 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9330 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
9331 | { |
9332 | if (_obj3) | |
9333 | delete _arg3; | |
9334 | } | |
8ab979d7 RD |
9335 | return _resultobj; |
9336 | } | |
9337 | ||
b1462dfa RD |
9338 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
9339 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9340 | PyObject * _resultobj; |
b1462dfa | 9341 | size_t _result; |
8ab979d7 | 9342 | wxMenuBar * _arg0; |
1d99702e | 9343 | PyObject * _argo0 = 0; |
b1462dfa | 9344 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9345 | |
9346 | self = self; | |
b1462dfa | 9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9348 | return NULL; |
1d99702e RD |
9349 | if (_argo0) { |
9350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9353 | return NULL; |
9354 | } | |
9355 | } | |
cf694132 | 9356 | { |
4268f798 | 9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9358 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 9359 | |
4268f798 | 9360 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9361 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9362 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9363 | return _resultobj; |
9364 | } | |
9365 | ||
b1462dfa RD |
9366 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9367 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9368 | PyObject * _resultobj; |
b1462dfa | 9369 | wxMenu * _result; |
06c0fba4 | 9370 | wxMenuBar * _arg0; |
b1462dfa | 9371 | size_t _arg1; |
06c0fba4 | 9372 | PyObject * _argo0 = 0; |
b1462dfa | 9373 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9374 | |
9375 | self = self; | |
b1462dfa | 9376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9377 | return NULL; |
9378 | if (_argo0) { | |
9379 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9380 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9381 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
9382 | return NULL; |
9383 | } | |
9384 | } | |
9385 | { | |
4268f798 | 9386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9387 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 9388 | |
4268f798 | 9389 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9390 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9391 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
9392 | return _resultobj; |
9393 | } | |
9394 | ||
2abc0a0f RD |
9395 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
9396 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9397 | PyObject * _resultobj; | |
9398 | wxMenu * _result; | |
9399 | wxMenuBar * _arg0; | |
9400 | size_t _arg1; | |
9401 | wxMenu * _arg2; | |
9402 | wxString * _arg3; | |
9403 | PyObject * _argo0 = 0; | |
9404 | PyObject * _argo2 = 0; | |
9405 | PyObject * _obj3 = 0; | |
9406 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
9407 | |
9408 | self = self; | |
9409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9410 | return NULL; | |
9411 | if (_argo0) { | |
9412 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9413 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9414 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
9415 | return NULL; | |
9416 | } | |
9417 | } | |
9418 | if (_argo2) { | |
9419 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9420 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9422 | return NULL; | |
9423 | } | |
9424 | } | |
9425 | { | |
c8bc7bb8 RD |
9426 | _arg3 = wxString_in_helper(_obj3); |
9427 | if (_arg3 == NULL) | |
185d7c3e | 9428 | return NULL; |
2abc0a0f RD |
9429 | } |
9430 | { | |
4268f798 | 9431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9432 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 9433 | |
4268f798 | 9434 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9435 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9436 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9437 | { |
9438 | if (_obj3) | |
9439 | delete _arg3; | |
9440 | } | |
9441 | return _resultobj; | |
9442 | } | |
9443 | ||
9444 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9445 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9446 | PyObject * _resultobj; | |
9447 | wxMenu * _result; | |
9448 | wxMenuBar * _arg0; | |
9449 | size_t _arg1; | |
9450 | PyObject * _argo0 = 0; | |
9451 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
9452 | |
9453 | self = self; | |
9454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9455 | return NULL; | |
9456 | if (_argo0) { | |
9457 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9458 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9459 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9460 | return NULL; | |
9461 | } | |
9462 | } | |
9463 | { | |
4268f798 | 9464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9465 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 9466 | |
4268f798 | 9467 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9468 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9469 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9470 | return _resultobj; |
9471 | } | |
9472 | ||
b1462dfa RD |
9473 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
9474 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9475 | PyObject * _resultobj; |
b1462dfa RD |
9476 | wxMenuBar * _arg0; |
9477 | size_t _arg1; | |
9478 | bool _arg2; | |
9479 | PyObject * _argo0 = 0; | |
9480 | int tempbool2; | |
9481 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9482 | ||
9483 | self = self; | |
9484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9485 | return NULL; | |
9486 | if (_argo0) { | |
9487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9490 | return NULL; | |
9491 | } | |
9492 | } | |
9493 | _arg2 = (bool ) tempbool2; | |
9494 | { | |
4268f798 | 9495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9496 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 9497 | |
4268f798 | 9498 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9499 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9500 | } Py_INCREF(Py_None); |
9501 | _resultobj = Py_None; | |
9502 | return _resultobj; | |
9503 | } | |
9504 | ||
9505 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9506 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9507 | PyObject * _resultobj; | |
9508 | wxMenuBar * _arg0; | |
9509 | size_t _arg1; | |
9510 | wxString * _arg2; | |
1d99702e | 9511 | PyObject * _argo0 = 0; |
cf694132 | 9512 | PyObject * _obj2 = 0; |
b1462dfa | 9513 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
9514 | |
9515 | self = self; | |
b1462dfa | 9516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 9517 | return NULL; |
1d99702e RD |
9518 | if (_argo0) { |
9519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
9522 | return NULL; |
9523 | } | |
9524 | } | |
cf694132 | 9525 | { |
c8bc7bb8 RD |
9526 | _arg2 = wxString_in_helper(_obj2); |
9527 | if (_arg2 == NULL) | |
185d7c3e | 9528 | return NULL; |
cf694132 | 9529 | } |
cf694132 | 9530 | { |
4268f798 | 9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9532 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 9533 | |
4268f798 | 9534 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9535 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9536 | } Py_INCREF(Py_None); |
9537 | _resultobj = Py_None; | |
9538 | { | |
9539 | if (_obj2) | |
9540 | delete _arg2; | |
9541 | } | |
9542 | return _resultobj; | |
9543 | } | |
9544 | ||
9545 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
9546 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject * _resultobj; | |
9548 | wxString * _result; | |
9549 | wxMenuBar * _arg0; | |
9550 | size_t _arg1; | |
9551 | PyObject * _argo0 = 0; | |
9552 | char *_kwnames[] = { "self","pos", NULL }; | |
9553 | ||
9554 | self = self; | |
9555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
9556 | return NULL; | |
9557 | if (_argo0) { | |
9558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
9561 | return NULL; | |
9562 | } | |
9563 | } | |
9564 | { | |
4268f798 | 9565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9566 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 9567 | |
4268f798 | 9568 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9569 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9570 | }{ |
c8bc7bb8 RD |
9571 | #if wxUSE_UNICODE |
9572 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9573 | #else | |
eec92d76 | 9574 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9575 | #endif |
b1462dfa RD |
9576 | } |
9577 | { | |
9578 | delete _result; | |
9579 | } | |
9580 | return _resultobj; | |
9581 | } | |
9582 | ||
3a0958b1 RD |
9583 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
9584 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9585 | PyObject * _resultobj; | |
9586 | int _result; | |
9587 | wxMenuBar * _arg0; | |
9588 | wxString * _arg1; | |
9589 | PyObject * _argo0 = 0; | |
9590 | PyObject * _obj1 = 0; | |
9591 | char *_kwnames[] = { "self","title", NULL }; | |
9592 | ||
9593 | self = self; | |
9594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9595 | return NULL; | |
9596 | if (_argo0) { | |
9597 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9598 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9599 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9600 | return NULL; | |
9601 | } | |
9602 | } | |
9603 | { | |
c8bc7bb8 RD |
9604 | _arg1 = wxString_in_helper(_obj1); |
9605 | if (_arg1 == NULL) | |
3a0958b1 | 9606 | return NULL; |
3a0958b1 RD |
9607 | } |
9608 | { | |
4268f798 | 9609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9610 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
3a0958b1 | 9611 | |
4268f798 | 9612 | wxPyEndAllowThreads(__tstate); |
3a0958b1 RD |
9613 | if (PyErr_Occurred()) return NULL; |
9614 | } _resultobj = Py_BuildValue("i",_result); | |
9615 | { | |
9616 | if (_obj1) | |
9617 | delete _arg1; | |
9618 | } | |
9619 | return _resultobj; | |
9620 | } | |
9621 | ||
b1462dfa RD |
9622 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
9623 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9624 | PyObject * _resultobj; | |
9625 | int _result; | |
9626 | wxMenuBar * _arg0; | |
9627 | wxString * _arg1; | |
9628 | wxString * _arg2; | |
9629 | PyObject * _argo0 = 0; | |
9630 | PyObject * _obj1 = 0; | |
9631 | PyObject * _obj2 = 0; | |
9632 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
9633 | ||
9634 | self = self; | |
9635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9636 | return NULL; | |
9637 | if (_argo0) { | |
9638 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9639 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9640 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
9641 | return NULL; | |
9642 | } | |
9643 | } | |
9644 | { | |
c8bc7bb8 RD |
9645 | _arg1 = wxString_in_helper(_obj1); |
9646 | if (_arg1 == NULL) | |
185d7c3e | 9647 | return NULL; |
cf694132 | 9648 | } |
b1462dfa | 9649 | { |
c8bc7bb8 RD |
9650 | _arg2 = wxString_in_helper(_obj2); |
9651 | if (_arg2 == NULL) | |
b1462dfa | 9652 | return NULL; |
b1462dfa RD |
9653 | } |
9654 | { | |
4268f798 | 9655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9656 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 9657 | |
4268f798 | 9658 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9659 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9660 | } _resultobj = Py_BuildValue("i",_result); |
9661 | { | |
9662 | if (_obj1) | |
9663 | delete _arg1; | |
9664 | } | |
9665 | { | |
9666 | if (_obj2) | |
9667 | delete _arg2; | |
9668 | } | |
9669 | return _resultobj; | |
9670 | } | |
9671 | ||
9672 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
9673 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9674 | PyObject * _resultobj; | |
9675 | wxMenuItem * _result; | |
9676 | wxMenuBar * _arg0; | |
9677 | int _arg1; | |
9678 | PyObject * _argo0 = 0; | |
9679 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
9680 | |
9681 | self = self; | |
9682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
9683 | return NULL; | |
9684 | if (_argo0) { | |
9685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
9688 | return NULL; |
9689 | } | |
9690 | } | |
9691 | { | |
4268f798 | 9692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9693 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 9694 | |
4268f798 | 9695 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9696 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 9697 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9698 | return _resultobj; |
cf694132 | 9699 | } |
b1462dfa RD |
9700 | |
9701 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9702 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9703 | PyObject * _resultobj; | |
9704 | wxMenuBar * _arg0; | |
9705 | int _arg1; | |
9706 | bool _arg2; | |
9707 | PyObject * _argo0 = 0; | |
9708 | int tempbool2; | |
9709 | char *_kwnames[] = { "self","id","enable", NULL }; | |
9710 | ||
9711 | self = self; | |
9712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9713 | return NULL; | |
9714 | if (_argo0) { | |
9715 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9716 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9717 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
9718 | return NULL; | |
9719 | } | |
9720 | } | |
9721 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9722 | { |
4268f798 | 9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9724 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 9725 | |
4268f798 | 9726 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9727 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9728 | } Py_INCREF(Py_None); |
9729 | _resultobj = Py_None; | |
9730 | return _resultobj; | |
cf694132 | 9731 | } |
b1462dfa RD |
9732 | |
9733 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
9734 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9735 | PyObject * _resultobj; | |
9736 | wxMenuBar * _arg0; | |
9737 | int _arg1; | |
9738 | bool _arg2; | |
9739 | PyObject * _argo0 = 0; | |
9740 | int tempbool2; | |
9741 | char *_kwnames[] = { "self","id","check", NULL }; | |
9742 | ||
9743 | self = self; | |
9744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9745 | return NULL; | |
9746 | if (_argo0) { | |
9747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
9750 | return NULL; | |
9751 | } | |
9752 | } | |
9753 | _arg2 = (bool ) tempbool2; | |
9754 | { | |
4268f798 | 9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9756 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 9757 | |
4268f798 | 9758 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9759 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9760 | } Py_INCREF(Py_None); |
9761 | _resultobj = Py_None; | |
cf694132 RD |
9762 | return _resultobj; |
9763 | } | |
9764 | ||
b1462dfa RD |
9765 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
9766 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9767 | PyObject * _resultobj; |
9768 | bool _result; | |
b1462dfa RD |
9769 | wxMenuBar * _arg0; |
9770 | int _arg1; | |
1d99702e | 9771 | PyObject * _argo0 = 0; |
b1462dfa | 9772 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9773 | |
9774 | self = self; | |
b1462dfa | 9775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9776 | return NULL; |
1d99702e RD |
9777 | if (_argo0) { |
9778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9781 | return NULL; |
9782 | } | |
9783 | } | |
cf694132 | 9784 | { |
4268f798 | 9785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9786 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 9787 | |
4268f798 | 9788 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9789 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9790 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9791 | return _resultobj; |
9792 | } | |
9793 | ||
b1462dfa RD |
9794 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
9795 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9796 | PyObject * _resultobj; |
9797 | bool _result; | |
b1462dfa RD |
9798 | wxMenuBar * _arg0; |
9799 | int _arg1; | |
1d99702e | 9800 | PyObject * _argo0 = 0; |
b1462dfa | 9801 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9802 | |
9803 | self = self; | |
b1462dfa | 9804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9805 | return NULL; |
1d99702e RD |
9806 | if (_argo0) { |
9807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9810 | return NULL; |
9811 | } | |
9812 | } | |
cf694132 | 9813 | { |
4268f798 | 9814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9815 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 9816 | |
4268f798 | 9817 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9818 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9819 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9820 | return _resultobj; |
9821 | } | |
9822 | ||
b1462dfa RD |
9823 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9824 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9825 | PyObject * _resultobj; |
b1462dfa RD |
9826 | wxMenuBar * _arg0; |
9827 | int _arg1; | |
9828 | wxString * _arg2; | |
1d99702e | 9829 | PyObject * _argo0 = 0; |
b1462dfa RD |
9830 | PyObject * _obj2 = 0; |
9831 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9832 | |
9833 | self = self; | |
b1462dfa | 9834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9835 | return NULL; |
1d99702e RD |
9836 | if (_argo0) { |
9837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9840 | return NULL; |
9841 | } | |
9842 | } | |
b1462dfa | 9843 | { |
c8bc7bb8 RD |
9844 | _arg2 = wxString_in_helper(_obj2); |
9845 | if (_arg2 == NULL) | |
b1462dfa | 9846 | return NULL; |
b1462dfa | 9847 | } |
cf694132 | 9848 | { |
4268f798 | 9849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9850 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9851 | |
4268f798 | 9852 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9853 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9854 | } Py_INCREF(Py_None); |
9855 | _resultobj = Py_None; | |
9856 | { | |
9857 | if (_obj2) | |
9858 | delete _arg2; | |
9859 | } | |
8ab979d7 RD |
9860 | return _resultobj; |
9861 | } | |
9862 | ||
b1462dfa RD |
9863 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9864 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9865 | PyObject * _resultobj; |
b1462dfa RD |
9866 | wxString * _result; |
9867 | wxMenuBar * _arg0; | |
9868 | int _arg1; | |
1d99702e | 9869 | PyObject * _argo0 = 0; |
b1462dfa | 9870 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9871 | |
9872 | self = self; | |
b1462dfa | 9873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9874 | return NULL; |
1d99702e RD |
9875 | if (_argo0) { |
9876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9879 | return NULL; | |
9880 | } | |
9881 | } | |
9882 | { | |
4268f798 | 9883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9884 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 9885 | |
4268f798 | 9886 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9887 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9888 | }{ |
c8bc7bb8 RD |
9889 | #if wxUSE_UNICODE |
9890 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9891 | #else | |
eec92d76 | 9892 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9893 | #endif |
b1462dfa RD |
9894 | } |
9895 | { | |
9896 | delete _result; | |
9897 | } | |
9898 | return _resultobj; | |
9899 | } | |
9900 | ||
9901 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9902 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9903 | PyObject * _resultobj; | |
9904 | wxMenuBar * _arg0; | |
9905 | int _arg1; | |
9906 | wxString * _arg2; | |
9907 | PyObject * _argo0 = 0; | |
9908 | PyObject * _obj2 = 0; | |
9909 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9910 | ||
9911 | self = self; | |
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9913 | return NULL; | |
9914 | if (_argo0) { | |
9915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9918 | return NULL; | |
9919 | } | |
9920 | } | |
9921 | { | |
c8bc7bb8 RD |
9922 | _arg2 = wxString_in_helper(_obj2); |
9923 | if (_arg2 == NULL) | |
b1462dfa | 9924 | return NULL; |
b1462dfa RD |
9925 | } |
9926 | { | |
4268f798 | 9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9928 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 9929 | |
4268f798 | 9930 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9931 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9932 | } Py_INCREF(Py_None); |
9933 | _resultobj = Py_None; | |
9934 | { | |
9935 | if (_obj2) | |
9936 | delete _arg2; | |
9937 | } | |
9938 | return _resultobj; | |
9939 | } | |
9940 | ||
9941 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9942 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9943 | PyObject * _resultobj; | |
9944 | wxString * _result; | |
9945 | wxMenuBar * _arg0; | |
9946 | int _arg1; | |
9947 | PyObject * _argo0 = 0; | |
9948 | char *_kwnames[] = { "self","id", NULL }; | |
9949 | ||
9950 | self = self; | |
9951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9952 | return NULL; | |
9953 | if (_argo0) { | |
9954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9957 | return NULL; |
9958 | } | |
9959 | } | |
cf694132 | 9960 | { |
4268f798 | 9961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9962 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 9963 | |
4268f798 | 9964 | wxPyEndAllowThreads(__tstate); |
493f1553 | 9965 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9966 | }{ |
c8bc7bb8 RD |
9967 | #if wxUSE_UNICODE |
9968 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9969 | #else | |
eec92d76 | 9970 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9971 | #endif |
b1462dfa RD |
9972 | } |
9973 | { | |
9974 | delete _result; | |
9975 | } | |
8ab979d7 RD |
9976 | return _resultobj; |
9977 | } | |
9978 | ||
9416aa89 RD |
9979 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9980 | wxMenuItem *src; | |
9981 | wxObject *dest; | |
9982 | src = (wxMenuItem *) ptr; | |
9983 | dest = (wxObject *) src; | |
9984 | return (void *) dest; | |
9985 | } | |
9986 | ||
b1462dfa RD |
9987 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9988 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9989 | PyObject * _resultobj; |
b1462dfa RD |
9990 | wxMenuItem * _result; |
9991 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9992 | int _arg1 = (int ) wxID_SEPARATOR; |
23bed520 RD |
9993 | wxString * _arg2 = (wxString *) &wxEmptyString; |
9994 | wxString * _arg3 = (wxString *) &wxEmptyString; | |
e9159fe8 | 9995 | wxItemKind _arg4 = (wxItemKind ) wxItem_Normal; |
b1462dfa | 9996 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 9997 | PyObject * _argo0 = 0; |
b1462dfa RD |
9998 | PyObject * _obj2 = 0; |
9999 | PyObject * _obj3 = 0; | |
b1462dfa | 10000 | PyObject * _argo5 = 0; |
e9159fe8 | 10001 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 10002 | char _ptemp[128]; |
8ab979d7 RD |
10003 | |
10004 | self = self; | |
e9159fe8 | 10005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 10006 | return NULL; |
1d99702e RD |
10007 | if (_argo0) { |
10008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
10009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
10010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
10011 | return NULL; | |
10012 | } | |
10013 | } | |
10014 | if (_obj2) | |
10015 | { | |
c8bc7bb8 RD |
10016 | _arg2 = wxString_in_helper(_obj2); |
10017 | if (_arg2 == NULL) | |
b1462dfa | 10018 | return NULL; |
b1462dfa RD |
10019 | } |
10020 | if (_obj3) | |
10021 | { | |
c8bc7bb8 RD |
10022 | _arg3 = wxString_in_helper(_obj3); |
10023 | if (_arg3 == NULL) | |
b1462dfa | 10024 | return NULL; |
b1462dfa | 10025 | } |
b1462dfa RD |
10026 | if (_argo5) { |
10027 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10028 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10030 | return NULL; |
10031 | } | |
10032 | } | |
cf694132 | 10033 | { |
4268f798 | 10034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10035 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10036 | |
4268f798 | 10037 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10038 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10039 | } if (_result) { |
10040 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10041 | _resultobj = Py_BuildValue("s",_ptemp); | |
10042 | } else { | |
10043 | Py_INCREF(Py_None); | |
10044 | _resultobj = Py_None; | |
10045 | } | |
10046 | { | |
10047 | if (_obj2) | |
10048 | delete _arg2; | |
10049 | } | |
10050 | { | |
10051 | if (_obj3) | |
10052 | delete _arg3; | |
10053 | } | |
8ab979d7 RD |
10054 | return _resultobj; |
10055 | } | |
10056 | ||
b1462dfa RD |
10057 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10058 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10059 | PyObject * _resultobj; |
b1462dfa | 10060 | wxMenu * _result; |
8ab979d7 | 10061 | wxMenuItem * _arg0; |
1d99702e | 10062 | PyObject * _argo0 = 0; |
efc5f224 | 10063 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10064 | |
10065 | self = self; | |
b1462dfa | 10066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10067 | return NULL; |
1d99702e RD |
10068 | if (_argo0) { |
10069 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10070 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10071 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10072 | return NULL; |
10073 | } | |
10074 | } | |
cf694132 | 10075 | { |
4268f798 | 10076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10077 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10078 | |
4268f798 | 10079 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10080 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10081 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10082 | return _resultobj; |
10083 | } | |
10084 | ||
2abc0a0f RD |
10085 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10086 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10087 | PyObject * _resultobj; |
10088 | wxMenuItem * _arg0; | |
2abc0a0f | 10089 | int _arg1; |
1d99702e | 10090 | PyObject * _argo0 = 0; |
2abc0a0f | 10091 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10092 | |
10093 | self = self; | |
2abc0a0f | 10094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10095 | return NULL; |
1d99702e RD |
10096 | if (_argo0) { |
10097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10100 | return NULL; |
10101 | } | |
10102 | } | |
cf694132 | 10103 | { |
4268f798 | 10104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10105 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10106 | |
4268f798 | 10107 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10108 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10109 | } Py_INCREF(Py_None); |
8ab979d7 | 10110 | _resultobj = Py_None; |
8ab979d7 RD |
10111 | return _resultobj; |
10112 | } | |
10113 | ||
b1462dfa RD |
10114 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10115 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10116 | PyObject * _resultobj; |
b1462dfa | 10117 | int _result; |
8ab979d7 | 10118 | wxMenuItem * _arg0; |
1d99702e | 10119 | PyObject * _argo0 = 0; |
efc5f224 | 10120 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10121 | |
10122 | self = self; | |
b1462dfa | 10123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 10124 | return NULL; |
1d99702e RD |
10125 | if (_argo0) { |
10126 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10127 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10128 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10129 | return NULL; |
10130 | } | |
10131 | } | |
8ab979d7 | 10132 | { |
4268f798 | 10133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10134 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10135 | |
4268f798 | 10136 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10137 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10138 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10139 | return _resultobj; |
10140 | } | |
10141 | ||
b1462dfa RD |
10142 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10143 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10144 | PyObject * _resultobj; |
b1462dfa | 10145 | bool _result; |
8ab979d7 | 10146 | wxMenuItem * _arg0; |
1d99702e | 10147 | PyObject * _argo0 = 0; |
efc5f224 | 10148 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10149 | |
10150 | self = self; | |
b1462dfa | 10151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 10152 | return NULL; |
1d99702e RD |
10153 | if (_argo0) { |
10154 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10155 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10156 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10157 | return NULL; |
10158 | } | |
10159 | } | |
8ab979d7 | 10160 | { |
4268f798 | 10161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10162 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10163 | |
4268f798 | 10164 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10165 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10166 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10167 | return _resultobj; |
10168 | } | |
10169 | ||
b1462dfa RD |
10170 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10171 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10172 | PyObject * _resultobj; |
10173 | wxMenuItem * _arg0; | |
10174 | wxString * _arg1; | |
1d99702e | 10175 | PyObject * _argo0 = 0; |
8ab979d7 | 10176 | PyObject * _obj1 = 0; |
b1462dfa | 10177 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10178 | |
10179 | self = self; | |
b1462dfa | 10180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10181 | return NULL; |
1d99702e RD |
10182 | if (_argo0) { |
10183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10186 | return NULL; |
10187 | } | |
10188 | } | |
10189 | { | |
c8bc7bb8 RD |
10190 | _arg1 = wxString_in_helper(_obj1); |
10191 | if (_arg1 == NULL) | |
185d7c3e | 10192 | return NULL; |
8ab979d7 | 10193 | } |
cf694132 | 10194 | { |
4268f798 | 10195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10196 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10197 | |
4268f798 | 10198 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10199 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10200 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10201 | _resultobj = Py_None; |
10202 | { | |
10203 | if (_obj1) | |
10204 | delete _arg1; | |
10205 | } | |
10206 | return _resultobj; | |
10207 | } | |
10208 | ||
b1462dfa RD |
10209 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10210 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10211 | PyObject * _resultobj; |
b1462dfa | 10212 | wxString * _result; |
8ab979d7 | 10213 | wxMenuItem * _arg0; |
1d99702e | 10214 | PyObject * _argo0 = 0; |
b1462dfa | 10215 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10216 | |
10217 | self = self; | |
b1462dfa | 10218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 10219 | return NULL; |
1d99702e RD |
10220 | if (_argo0) { |
10221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10224 | return NULL; |
10225 | } | |
10226 | } | |
cf694132 | 10227 | { |
4268f798 | 10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10229 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 10230 | |
4268f798 | 10231 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10232 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10233 | }{ |
c8bc7bb8 RD |
10234 | #if wxUSE_UNICODE |
10235 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10236 | #else | |
eec92d76 | 10237 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10238 | #endif |
8ab979d7 | 10239 | } |
cf694132 | 10240 | { |
b1462dfa RD |
10241 | delete _result; |
10242 | } | |
cf694132 RD |
10243 | return _resultobj; |
10244 | } | |
10245 | ||
b1462dfa RD |
10246 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10247 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10248 | PyObject * _resultobj; |
b1462dfa | 10249 | wxString * _result; |
cf694132 | 10250 | wxMenuItem * _arg0; |
1d99702e | 10251 | PyObject * _argo0 = 0; |
efc5f224 | 10252 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10253 | |
10254 | self = self; | |
b1462dfa | 10255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10256 | return NULL; |
1d99702e RD |
10257 | if (_argo0) { |
10258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10261 | return NULL; |
10262 | } | |
10263 | } | |
10264 | { | |
4268f798 | 10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10266 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 10267 | _result = (wxString *) &_result_ref; |
cf694132 | 10268 | |
4268f798 | 10269 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10270 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10271 | }{ |
c8bc7bb8 RD |
10272 | #if wxUSE_UNICODE |
10273 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10274 | #else | |
eec92d76 | 10275 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10276 | #endif |
cf694132 | 10277 | } |
cf694132 RD |
10278 | return _resultobj; |
10279 | } | |
10280 | ||
e9159fe8 RD |
10281 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10282 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10283 | PyObject * _resultobj; | |
10284 | wxItemKind _result; | |
10285 | wxMenuItem * _arg0; | |
10286 | PyObject * _argo0 = 0; | |
10287 | char *_kwnames[] = { "self", NULL }; | |
10288 | ||
10289 | self = self; | |
10290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10291 | return NULL; | |
10292 | if (_argo0) { | |
10293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10296 | return NULL; | |
10297 | } | |
10298 | } | |
10299 | { | |
10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10301 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10302 | ||
10303 | wxPyEndAllowThreads(__tstate); | |
10304 | if (PyErr_Occurred()) return NULL; | |
10305 | } _resultobj = Py_BuildValue("i",_result); | |
10306 | return _resultobj; | |
10307 | } | |
10308 | ||
b1462dfa RD |
10309 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10310 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10311 | PyObject * _resultobj; |
cf694132 | 10312 | wxMenuItem * _arg0; |
b1462dfa | 10313 | bool _arg1; |
1d99702e | 10314 | PyObject * _argo0 = 0; |
b1462dfa RD |
10315 | int tempbool1; |
10316 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10317 | |
10318 | self = self; | |
b1462dfa | 10319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10320 | return NULL; |
1d99702e RD |
10321 | if (_argo0) { |
10322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10325 | return NULL; |
10326 | } | |
10327 | } | |
b1462dfa | 10328 | _arg1 = (bool ) tempbool1; |
cf694132 | 10329 | { |
4268f798 | 10330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10331 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 10332 | |
4268f798 | 10333 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10334 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10335 | } Py_INCREF(Py_None); |
10336 | _resultobj = Py_None; | |
cf694132 RD |
10337 | return _resultobj; |
10338 | } | |
10339 | ||
b1462dfa RD |
10340 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10341 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10342 | PyObject * _resultobj; |
b1462dfa | 10343 | bool _result; |
cf694132 | 10344 | wxMenuItem * _arg0; |
1d99702e | 10345 | PyObject * _argo0 = 0; |
efc5f224 | 10346 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10347 | |
10348 | self = self; | |
b1462dfa | 10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 10350 | return NULL; |
1d99702e RD |
10351 | if (_argo0) { |
10352 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10353 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10354 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10355 | return NULL; |
10356 | } | |
10357 | } | |
10358 | { | |
4268f798 | 10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10360 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 10361 | |
4268f798 | 10362 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10363 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10364 | } _resultobj = Py_BuildValue("i",_result); |
10365 | return _resultobj; | |
10366 | } | |
10367 | ||
b1462dfa RD |
10368 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
10369 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10370 | PyObject * _resultobj; |
b1462dfa | 10371 | bool _result; |
cf694132 | 10372 | wxMenuItem * _arg0; |
1d99702e | 10373 | PyObject * _argo0 = 0; |
efc5f224 | 10374 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10375 | |
10376 | self = self; | |
b1462dfa | 10377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 10378 | return NULL; |
1d99702e RD |
10379 | if (_argo0) { |
10380 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10381 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10383 | return NULL; |
10384 | } | |
10385 | } | |
10386 | { | |
4268f798 | 10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10388 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 10389 | |
4268f798 | 10390 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10391 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10392 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10393 | return _resultobj; |
10394 | } | |
10395 | ||
b1462dfa RD |
10396 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
10397 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10398 | PyObject * _resultobj; |
10399 | wxMenuItem * _arg0; | |
b1462dfa | 10400 | wxMenu * _arg1; |
1d99702e RD |
10401 | PyObject * _argo0 = 0; |
10402 | PyObject * _argo1 = 0; | |
b1462dfa | 10403 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
10404 | |
10405 | self = self; | |
b1462dfa | 10406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 10407 | return NULL; |
1d99702e RD |
10408 | if (_argo0) { |
10409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10412 | return NULL; |
10413 | } | |
10414 | } | |
1d99702e RD |
10415 | if (_argo1) { |
10416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
10418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
10419 | return NULL; |
10420 | } | |
10421 | } | |
10422 | { | |
4268f798 | 10423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10424 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 10425 | |
4268f798 | 10426 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10427 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10428 | } Py_INCREF(Py_None); |
10429 | _resultobj = Py_None; | |
10430 | return _resultobj; | |
10431 | } | |
10432 | ||
b1462dfa RD |
10433 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
10434 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10435 | PyObject * _resultobj; |
b1462dfa | 10436 | wxMenu * _result; |
cf694132 | 10437 | wxMenuItem * _arg0; |
1d99702e | 10438 | PyObject * _argo0 = 0; |
b1462dfa | 10439 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10440 | |
10441 | self = self; | |
b1462dfa | 10442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 10443 | return NULL; |
1d99702e RD |
10444 | if (_argo0) { |
10445 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10446 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10447 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10448 | return NULL; |
10449 | } | |
10450 | } | |
b1462dfa | 10451 | { |
4268f798 | 10452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10453 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 10454 | |
4268f798 | 10455 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10456 | if (PyErr_Occurred()) return NULL; |
9416aa89 | 10457 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
10458 | return _resultobj; |
10459 | } | |
10460 | ||
10461 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10462 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10463 | PyObject * _resultobj; | |
10464 | wxMenuItem * _arg0; | |
10465 | bool _arg1 = (bool ) TRUE; | |
10466 | PyObject * _argo0 = 0; | |
10467 | int tempbool1 = (int) TRUE; | |
10468 | char *_kwnames[] = { "self","enable", NULL }; | |
10469 | ||
10470 | self = self; | |
10471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10472 | return NULL; | |
10473 | if (_argo0) { | |
10474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
10477 | return NULL; |
10478 | } | |
10479 | } | |
b1462dfa | 10480 | _arg1 = (bool ) tempbool1; |
cf694132 | 10481 | { |
4268f798 | 10482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10483 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 10484 | |
4268f798 | 10485 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10486 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10487 | } Py_INCREF(Py_None); |
10488 | _resultobj = Py_None; | |
10489 | return _resultobj; | |
10490 | } | |
10491 | ||
b1462dfa RD |
10492 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
10493 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10494 | PyObject * _resultobj; |
b1462dfa | 10495 | bool _result; |
cf694132 | 10496 | wxMenuItem * _arg0; |
1d99702e | 10497 | PyObject * _argo0 = 0; |
b1462dfa | 10498 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10499 | |
10500 | self = self; | |
b1462dfa | 10501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 10502 | return NULL; |
1d99702e RD |
10503 | if (_argo0) { |
10504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
10507 | return NULL; |
10508 | } | |
10509 | } | |
10510 | { | |
4268f798 | 10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10512 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 10513 | |
4268f798 | 10514 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10515 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10516 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10517 | return _resultobj; |
10518 | } | |
10519 | ||
b1462dfa RD |
10520 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
10521 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10522 | PyObject * _resultobj; |
10523 | wxMenuItem * _arg0; | |
b1462dfa | 10524 | bool _arg1 = (bool ) TRUE; |
1d99702e | 10525 | PyObject * _argo0 = 0; |
b1462dfa RD |
10526 | int tempbool1 = (int) TRUE; |
10527 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
10528 | |
10529 | self = self; | |
b1462dfa | 10530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10531 | return NULL; |
1d99702e RD |
10532 | if (_argo0) { |
10533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
10536 | return NULL; |
10537 | } | |
10538 | } | |
b1462dfa | 10539 | _arg1 = (bool ) tempbool1; |
cf694132 | 10540 | { |
4268f798 | 10541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10542 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 10543 | |
4268f798 | 10544 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10545 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10546 | } Py_INCREF(Py_None); |
10547 | _resultobj = Py_None; | |
10548 | return _resultobj; | |
10549 | } | |
10550 | ||
b1462dfa RD |
10551 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
10552 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10553 | PyObject * _resultobj; |
b1462dfa | 10554 | bool _result; |
2abc0a0f | 10555 | wxMenuItem * _arg0; |
2abc0a0f | 10556 | PyObject * _argo0 = 0; |
b1462dfa | 10557 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
10558 | |
10559 | self = self; | |
b1462dfa | 10560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
10561 | return NULL; |
10562 | if (_argo0) { | |
10563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10566 | return NULL; |
10567 | } | |
10568 | } | |
2abc0a0f | 10569 | { |
4268f798 | 10570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10571 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 10572 | |
4268f798 | 10573 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10574 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10575 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
10576 | return _resultobj; |
10577 | } | |
10578 | ||
b1462dfa RD |
10579 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
10580 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10581 | PyObject * _resultobj; |
2abc0a0f RD |
10582 | wxMenuItem * _arg0; |
10583 | PyObject * _argo0 = 0; | |
10584 | char *_kwnames[] = { "self", NULL }; | |
10585 | ||
10586 | self = self; | |
b1462dfa | 10587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
10588 | return NULL; |
10589 | if (_argo0) { | |
10590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10593 | return NULL; |
10594 | } | |
10595 | } | |
10596 | { | |
4268f798 | 10597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10598 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 10599 | |
4268f798 | 10600 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10601 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10602 | } Py_INCREF(Py_None); |
10603 | _resultobj = Py_None; | |
2abc0a0f RD |
10604 | return _resultobj; |
10605 | } | |
10606 | ||
b1462dfa RD |
10607 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
10608 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10609 | PyObject * _resultobj; |
10610 | wxMenuItem * _arg0; | |
b1462dfa | 10611 | wxString * _arg1; |
1d99702e | 10612 | PyObject * _argo0 = 0; |
b1462dfa RD |
10613 | PyObject * _obj1 = 0; |
10614 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
10615 | |
10616 | self = self; | |
b1462dfa | 10617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 10618 | return NULL; |
1d99702e RD |
10619 | if (_argo0) { |
10620 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10621 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10622 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
10623 | return NULL; |
10624 | } | |
10625 | } | |
b1462dfa | 10626 | { |
c8bc7bb8 RD |
10627 | _arg1 = wxString_in_helper(_obj1); |
10628 | if (_arg1 == NULL) | |
185d7c3e | 10629 | return NULL; |
b1462dfa | 10630 | } |
cf694132 | 10631 | { |
4268f798 | 10632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10633 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 10634 | |
4268f798 | 10635 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10636 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10637 | } Py_INCREF(Py_None); |
8ab979d7 | 10638 | _resultobj = Py_None; |
b1462dfa RD |
10639 | { |
10640 | if (_obj1) | |
10641 | delete _arg1; | |
10642 | } | |
8ab979d7 RD |
10643 | return _resultobj; |
10644 | } | |
10645 | ||
b1462dfa RD |
10646 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
10647 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 10648 | PyObject * _resultobj; |
b1462dfa | 10649 | wxString * _result; |
be4d9c1f | 10650 | wxMenuItem * _arg0; |
1d99702e | 10651 | PyObject * _argo0 = 0; |
efc5f224 | 10652 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
10653 | |
10654 | self = self; | |
b1462dfa | 10655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 10656 | return NULL; |
1d99702e RD |
10657 | if (_argo0) { |
10658 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10659 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10660 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
10661 | return NULL; |
10662 | } | |
10663 | } | |
cf694132 | 10664 | { |
4268f798 | 10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10666 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 10667 | _result = (wxString *) &_result_ref; |
cf694132 | 10668 | |
4268f798 | 10669 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10670 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10671 | }{ |
c8bc7bb8 RD |
10672 | #if wxUSE_UNICODE |
10673 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10674 | #else | |
eec92d76 | 10675 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10676 | #endif |
b1462dfa | 10677 | } |
be4d9c1f RD |
10678 | return _resultobj; |
10679 | } | |
10680 | ||
b1462dfa RD |
10681 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
10682 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10683 | PyObject * _resultobj; |
b1462dfa | 10684 | wxAcceleratorEntry * _result; |
2abc0a0f | 10685 | wxMenuItem * _arg0; |
2abc0a0f | 10686 | PyObject * _argo0 = 0; |
b1462dfa RD |
10687 | char *_kwnames[] = { "self", NULL }; |
10688 | char _ptemp[128]; | |
2abc0a0f RD |
10689 | |
10690 | self = self; | |
b1462dfa | 10691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
10692 | return NULL; |
10693 | if (_argo0) { | |
10694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10697 | return NULL; |
10698 | } | |
10699 | } | |
2abc0a0f | 10700 | { |
4268f798 | 10701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10702 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 10703 | |
4268f798 | 10704 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10705 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10706 | } if (_result) { |
10707 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
10708 | _resultobj = Py_BuildValue("s",_ptemp); | |
10709 | } else { | |
10710 | Py_INCREF(Py_None); | |
10711 | _resultobj = Py_None; | |
10712 | } | |
2abc0a0f RD |
10713 | return _resultobj; |
10714 | } | |
10715 | ||
b1462dfa RD |
10716 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
10717 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
10718 | PyObject * _resultobj; |
10719 | wxMenuItem * _arg0; | |
b1462dfa | 10720 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
10721 | PyObject * _argo0 = 0; |
10722 | PyObject * _argo1 = 0; | |
b1462dfa | 10723 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
10724 | |
10725 | self = self; | |
b1462dfa | 10726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
10727 | return NULL; |
10728 | if (_argo0) { | |
10729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10732 | return NULL; |
10733 | } | |
10734 | } | |
10735 | if (_argo1) { | |
10736 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10737 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
10738 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
10739 | return NULL; |
10740 | } | |
10741 | } | |
10742 | { | |
4268f798 | 10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10744 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 10745 | |
4268f798 | 10746 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10747 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
10748 | } Py_INCREF(Py_None); |
10749 | _resultobj = Py_None; | |
10750 | return _resultobj; | |
10751 | } | |
10752 | ||
1b62f00d RD |
10753 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
10754 | PyObject * _resultobj; | |
10755 | wxString * _result; | |
10756 | wxString * _arg0; | |
10757 | PyObject * _obj0 = 0; | |
10758 | char *_kwnames[] = { "text", NULL }; | |
10759 | ||
10760 | self = self; | |
10761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
10762 | return NULL; | |
10763 | { | |
c8bc7bb8 RD |
10764 | _arg0 = wxString_in_helper(_obj0); |
10765 | if (_arg0 == NULL) | |
1b62f00d | 10766 | return NULL; |
1b62f00d RD |
10767 | } |
10768 | { | |
4268f798 | 10769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10770 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
1b62f00d | 10771 | |
4268f798 | 10772 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10773 | if (PyErr_Occurred()) return NULL; |
1b62f00d | 10774 | }{ |
c8bc7bb8 RD |
10775 | #if wxUSE_UNICODE |
10776 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10777 | #else | |
1b62f00d | 10778 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10779 | #endif |
1b62f00d RD |
10780 | } |
10781 | { | |
10782 | if (_obj0) | |
10783 | delete _arg0; | |
10784 | } | |
10785 | { | |
10786 | delete _result; | |
10787 | } | |
10788 | return _resultobj; | |
10789 | } | |
10790 | ||
f3d9dc1d RD |
10791 | #define wxMenuItem_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
10792 | static PyObject *_wrap_wxMenuItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10793 | PyObject * _resultobj; | |
10794 | wxMenuItem * _arg0; | |
10795 | wxFont * _arg1; | |
10796 | PyObject * _argo0 = 0; | |
10797 | PyObject * _argo1 = 0; | |
10798 | char *_kwnames[] = { "self","font", NULL }; | |
10799 | ||
10800 | self = self; | |
10801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetFont",_kwnames,&_argo0,&_argo1)) | |
10802 | return NULL; | |
10803 | if (_argo0) { | |
10804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetFont. Expected _wxMenuItem_p."); | |
10807 | return NULL; | |
10808 | } | |
10809 | } | |
10810 | if (_argo1) { | |
10811 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10812 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
10813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetFont. Expected _wxFont_p."); | |
10814 | return NULL; | |
10815 | } | |
10816 | } | |
10817 | { | |
4268f798 | 10818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10819 | wxMenuItem_SetFont(_arg0,*_arg1); |
f3d9dc1d | 10820 | |
4268f798 | 10821 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10822 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10823 | } Py_INCREF(Py_None); |
10824 | _resultobj = Py_None; | |
10825 | return _resultobj; | |
10826 | } | |
10827 | ||
10828 | #define wxMenuItem_GetFont(_swigobj) (_swigobj->GetFont()) | |
10829 | static PyObject *_wrap_wxMenuItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10830 | PyObject * _resultobj; | |
10831 | wxFont * _result; | |
10832 | wxMenuItem * _arg0; | |
10833 | PyObject * _argo0 = 0; | |
10834 | char *_kwnames[] = { "self", NULL }; | |
10835 | char _ptemp[128]; | |
10836 | ||
10837 | self = self; | |
10838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetFont",_kwnames,&_argo0)) | |
10839 | return NULL; | |
10840 | if (_argo0) { | |
10841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetFont. Expected _wxMenuItem_p."); | |
10844 | return NULL; | |
10845 | } | |
10846 | } | |
10847 | { | |
4268f798 | 10848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10849 | _result = new wxFont (wxMenuItem_GetFont(_arg0)); |
f3d9dc1d | 10850 | |
4268f798 | 10851 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10852 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
10853 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
10854 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10855 | return _resultobj; |
10856 | } | |
10857 | ||
10858 | #define wxMenuItem_SetTextColour(_swigobj,_swigarg0) (_swigobj->SetTextColour(_swigarg0)) | |
10859 | static PyObject *_wrap_wxMenuItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10860 | PyObject * _resultobj; | |
10861 | wxMenuItem * _arg0; | |
10862 | wxColour * _arg1; | |
10863 | PyObject * _argo0 = 0; | |
10864 | wxColour temp; | |
10865 | PyObject * _obj1 = 0; | |
10866 | char *_kwnames[] = { "self","colText", NULL }; | |
10867 | ||
10868 | self = self; | |
10869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetTextColour",_kwnames,&_argo0,&_obj1)) | |
10870 | return NULL; | |
10871 | if (_argo0) { | |
10872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetTextColour. Expected _wxMenuItem_p."); | |
10875 | return NULL; | |
10876 | } | |
10877 | } | |
10878 | { | |
10879 | _arg1 = &temp; | |
10880 | if (! wxColour_helper(_obj1, &_arg1)) | |
10881 | return NULL; | |
10882 | } | |
10883 | { | |
4268f798 | 10884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10885 | wxMenuItem_SetTextColour(_arg0,*_arg1); |
f3d9dc1d | 10886 | |
4268f798 | 10887 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10888 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10889 | } Py_INCREF(Py_None); |
10890 | _resultobj = Py_None; | |
10891 | return _resultobj; | |
10892 | } | |
10893 | ||
10894 | #define wxMenuItem_GetTextColour(_swigobj) (_swigobj->GetTextColour()) | |
10895 | static PyObject *_wrap_wxMenuItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10896 | PyObject * _resultobj; | |
10897 | wxColour * _result; | |
10898 | wxMenuItem * _arg0; | |
10899 | PyObject * _argo0 = 0; | |
10900 | char *_kwnames[] = { "self", NULL }; | |
10901 | char _ptemp[128]; | |
10902 | ||
10903 | self = self; | |
10904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetTextColour",_kwnames,&_argo0)) | |
10905 | return NULL; | |
10906 | if (_argo0) { | |
10907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetTextColour. Expected _wxMenuItem_p."); | |
10910 | return NULL; | |
10911 | } | |
10912 | } | |
10913 | { | |
4268f798 | 10914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10915 | _result = new wxColour (wxMenuItem_GetTextColour(_arg0)); |
f3d9dc1d | 10916 | |
4268f798 | 10917 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10918 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10919 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10920 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10921 | return _resultobj; |
10922 | } | |
10923 | ||
10924 | #define wxMenuItem_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) | |
10925 | static PyObject *_wrap_wxMenuItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10926 | PyObject * _resultobj; | |
10927 | wxMenuItem * _arg0; | |
10928 | wxColour * _arg1; | |
10929 | PyObject * _argo0 = 0; | |
10930 | wxColour temp; | |
10931 | PyObject * _obj1 = 0; | |
10932 | char *_kwnames[] = { "self","colBack", NULL }; | |
10933 | ||
10934 | self = self; | |
10935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) | |
10936 | return NULL; | |
10937 | if (_argo0) { | |
10938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBackgroundColour. Expected _wxMenuItem_p."); | |
10941 | return NULL; | |
10942 | } | |
10943 | } | |
10944 | { | |
10945 | _arg1 = &temp; | |
10946 | if (! wxColour_helper(_obj1, &_arg1)) | |
10947 | return NULL; | |
10948 | } | |
10949 | { | |
4268f798 | 10950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10951 | wxMenuItem_SetBackgroundColour(_arg0,*_arg1); |
f3d9dc1d | 10952 | |
4268f798 | 10953 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10954 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
10955 | } Py_INCREF(Py_None); |
10956 | _resultobj = Py_None; | |
10957 | return _resultobj; | |
10958 | } | |
10959 | ||
10960 | #define wxMenuItem_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
10961 | static PyObject *_wrap_wxMenuItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10962 | PyObject * _resultobj; | |
10963 | wxColour * _result; | |
10964 | wxMenuItem * _arg0; | |
10965 | PyObject * _argo0 = 0; | |
10966 | char *_kwnames[] = { "self", NULL }; | |
10967 | char _ptemp[128]; | |
10968 | ||
10969 | self = self; | |
10970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetBackgroundColour",_kwnames,&_argo0)) | |
10971 | return NULL; | |
10972 | if (_argo0) { | |
10973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBackgroundColour. Expected _wxMenuItem_p."); | |
10976 | return NULL; | |
10977 | } | |
10978 | } | |
10979 | { | |
4268f798 | 10980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10981 | _result = new wxColour (wxMenuItem_GetBackgroundColour(_arg0)); |
f3d9dc1d | 10982 | |
4268f798 | 10983 | wxPyEndAllowThreads(__tstate); |
493f1553 | 10984 | if (PyErr_Occurred()) return NULL; |
25832b3f RD |
10985 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
10986 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
10987 | return _resultobj; |
10988 | } | |
10989 | ||
10990 | #define wxMenuItem_SetBitmaps(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetBitmaps(_swigarg0,_swigarg1)) | |
10991 | static PyObject *_wrap_wxMenuItem_SetBitmaps(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10992 | PyObject * _resultobj; | |
10993 | wxMenuItem * _arg0; | |
10994 | wxBitmap * _arg1; | |
10995 | wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap; | |
10996 | PyObject * _argo0 = 0; | |
10997 | PyObject * _argo1 = 0; | |
10998 | PyObject * _argo2 = 0; | |
10999 | char *_kwnames[] = { "self","bmpChecked","bmpUnchecked", NULL }; | |
11000 | ||
11001 | self = self; | |
11002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxMenuItem_SetBitmaps",_kwnames,&_argo0,&_argo1,&_argo2)) | |
11003 | return NULL; | |
11004 | if (_argo0) { | |
11005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmaps. Expected _wxMenuItem_p."); | |
11008 | return NULL; | |
11009 | } | |
11010 | } | |
11011 | if (_argo1) { | |
11012 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11013 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11015 | return NULL; | |
11016 | } | |
11017 | } | |
11018 | if (_argo2) { | |
11019 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
11020 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) { | |
11021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuItem_SetBitmaps. Expected _wxBitmap_p."); | |
11022 | return NULL; | |
11023 | } | |
11024 | } | |
11025 | { | |
4268f798 | 11026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11027 | wxMenuItem_SetBitmaps(_arg0,*_arg1,*_arg2); |
f3d9dc1d | 11028 | |
4268f798 | 11029 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11030 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11031 | } Py_INCREF(Py_None); |
11032 | _resultobj = Py_None; | |
11033 | return _resultobj; | |
11034 | } | |
11035 | ||
11036 | #define wxMenuItem_SetBitmap(_swigobj,_swigarg0) (_swigobj->SetBitmap(_swigarg0)) | |
11037 | static PyObject *_wrap_wxMenuItem_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11038 | PyObject * _resultobj; | |
11039 | wxMenuItem * _arg0; | |
11040 | wxBitmap * _arg1; | |
11041 | PyObject * _argo0 = 0; | |
11042 | PyObject * _argo1 = 0; | |
11043 | char *_kwnames[] = { "self","bmpChecked", NULL }; | |
11044 | ||
11045 | self = self; | |
11046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetBitmap",_kwnames,&_argo0,&_argo1)) | |
11047 | return NULL; | |
11048 | if (_argo0) { | |
11049 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11050 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11051 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetBitmap. Expected _wxMenuItem_p."); | |
11052 | return NULL; | |
11053 | } | |
11054 | } | |
11055 | if (_argo1) { | |
11056 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
11057 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
11058 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetBitmap. Expected _wxBitmap_p."); | |
11059 | return NULL; | |
11060 | } | |
11061 | } | |
11062 | { | |
4268f798 | 11063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11064 | wxMenuItem_SetBitmap(_arg0,*_arg1); |
f3d9dc1d | 11065 | |
4268f798 | 11066 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11067 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11068 | } Py_INCREF(Py_None); |
11069 | _resultobj = Py_None; | |
11070 | return _resultobj; | |
11071 | } | |
11072 | ||
11073 | #define wxMenuItem_GetBitmap(_swigobj,_swigarg0) (_swigobj->GetBitmap(_swigarg0)) | |
11074 | static PyObject *_wrap_wxMenuItem_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11075 | PyObject * _resultobj; | |
11076 | wxBitmap * _result; | |
11077 | wxMenuItem * _arg0; | |
11078 | bool _arg1 = (bool ) TRUE; | |
11079 | PyObject * _argo0 = 0; | |
11080 | int tempbool1 = (int) TRUE; | |
11081 | char *_kwnames[] = { "self","bChecked", NULL }; | |
11082 | char _ptemp[128]; | |
11083 | ||
11084 | self = self; | |
11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_GetBitmap",_kwnames,&_argo0,&tempbool1)) | |
11086 | return NULL; | |
11087 | if (_argo0) { | |
11088 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11089 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11090 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetBitmap. Expected _wxMenuItem_p."); | |
11091 | return NULL; | |
11092 | } | |
11093 | } | |
11094 | _arg1 = (bool ) tempbool1; | |
11095 | { | |
4268f798 | 11096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11097 | _result = new wxBitmap (wxMenuItem_GetBitmap(_arg0,_arg1)); |
f3d9dc1d | 11098 | |
4268f798 | 11099 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11100 | if (PyErr_Occurred()) return NULL; |
c5943253 RD |
11101 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
11102 | _resultobj = Py_BuildValue("s",_ptemp); | |
f3d9dc1d RD |
11103 | return _resultobj; |
11104 | } | |
11105 | ||
11106 | #define wxMenuItem_SetMarginWidth(_swigobj,_swigarg0) (_swigobj->SetMarginWidth(_swigarg0)) | |
11107 | static PyObject *_wrap_wxMenuItem_SetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11108 | PyObject * _resultobj; | |
11109 | wxMenuItem * _arg0; | |
11110 | int _arg1; | |
11111 | PyObject * _argo0 = 0; | |
11112 | char *_kwnames[] = { "self","nWidth", NULL }; | |
11113 | ||
11114 | self = self; | |
11115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetMarginWidth",_kwnames,&_argo0,&_arg1)) | |
11116 | return NULL; | |
11117 | if (_argo0) { | |
11118 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11119 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetMarginWidth. Expected _wxMenuItem_p."); | |
11121 | return NULL; | |
11122 | } | |
11123 | } | |
11124 | { | |
4268f798 | 11125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11126 | wxMenuItem_SetMarginWidth(_arg0,_arg1); |
f3d9dc1d | 11127 | |
4268f798 | 11128 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11129 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11130 | } Py_INCREF(Py_None); |
11131 | _resultobj = Py_None; | |
11132 | return _resultobj; | |
11133 | } | |
11134 | ||
11135 | #define wxMenuItem_GetMarginWidth(_swigobj) (_swigobj->GetMarginWidth()) | |
11136 | static PyObject *_wrap_wxMenuItem_GetMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11137 | PyObject * _resultobj; | |
11138 | int _result; | |
11139 | wxMenuItem * _arg0; | |
11140 | PyObject * _argo0 = 0; | |
11141 | char *_kwnames[] = { "self", NULL }; | |
11142 | ||
11143 | self = self; | |
11144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMarginWidth",_kwnames,&_argo0)) | |
11145 | return NULL; | |
11146 | if (_argo0) { | |
11147 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11148 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11149 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMarginWidth. Expected _wxMenuItem_p."); | |
11150 | return NULL; | |
11151 | } | |
11152 | } | |
11153 | { | |
4268f798 | 11154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11155 | _result = (int )wxMenuItem_GetMarginWidth(_arg0); |
f3d9dc1d | 11156 | |
4268f798 | 11157 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11158 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11159 | } _resultobj = Py_BuildValue("i",_result); |
11160 | return _resultobj; | |
11161 | } | |
11162 | ||
11163 | static PyObject *_wrap_wxMenuItem_GetDefaultMarginWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11164 | PyObject * _resultobj; | |
11165 | int _result; | |
11166 | char *_kwnames[] = { NULL }; | |
11167 | ||
11168 | self = self; | |
11169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMenuItem_GetDefaultMarginWidth",_kwnames)) | |
11170 | return NULL; | |
11171 | { | |
4268f798 | 11172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11173 | _result = (int )wxMenuItem::GetDefaultMarginWidth(); |
f3d9dc1d | 11174 | |
4268f798 | 11175 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11176 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11177 | } _resultobj = Py_BuildValue("i",_result); |
11178 | return _resultobj; | |
11179 | } | |
11180 | ||
11181 | #define wxMenuItem_IsOwnerDrawn(_swigobj) (_swigobj->IsOwnerDrawn()) | |
11182 | static PyObject *_wrap_wxMenuItem_IsOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11183 | PyObject * _resultobj; | |
11184 | bool _result; | |
11185 | wxMenuItem * _arg0; | |
11186 | PyObject * _argo0 = 0; | |
11187 | char *_kwnames[] = { "self", NULL }; | |
11188 | ||
11189 | self = self; | |
11190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsOwnerDrawn",_kwnames,&_argo0)) | |
11191 | return NULL; | |
11192 | if (_argo0) { | |
11193 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11194 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11195 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsOwnerDrawn. Expected _wxMenuItem_p."); | |
11196 | return NULL; | |
11197 | } | |
11198 | } | |
11199 | { | |
4268f798 | 11200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11201 | _result = (bool )wxMenuItem_IsOwnerDrawn(_arg0); |
f3d9dc1d | 11202 | |
4268f798 | 11203 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11204 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11205 | } _resultobj = Py_BuildValue("i",_result); |
11206 | return _resultobj; | |
11207 | } | |
11208 | ||
11209 | #define wxMenuItem_ResetOwnerDrawn(_swigobj) (_swigobj->ResetOwnerDrawn()) | |
11210 | static PyObject *_wrap_wxMenuItem_ResetOwnerDrawn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11211 | PyObject * _resultobj; | |
11212 | wxMenuItem * _arg0; | |
11213 | PyObject * _argo0 = 0; | |
11214 | char *_kwnames[] = { "self", NULL }; | |
11215 | ||
11216 | self = self; | |
11217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_ResetOwnerDrawn",_kwnames,&_argo0)) | |
11218 | return NULL; | |
11219 | if (_argo0) { | |
11220 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11221 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
11222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_ResetOwnerDrawn. Expected _wxMenuItem_p."); | |
11223 | return NULL; | |
11224 | } | |
11225 | } | |
11226 | { | |
4268f798 | 11227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 11228 | wxMenuItem_ResetOwnerDrawn(_arg0); |
f3d9dc1d | 11229 | |
4268f798 | 11230 | wxPyEndAllowThreads(__tstate); |
493f1553 | 11231 | if (PyErr_Occurred()) return NULL; |
f3d9dc1d RD |
11232 | } Py_INCREF(Py_None); |
11233 | _resultobj = Py_None; | |
11234 | return _resultobj; | |
11235 | } | |
11236 | ||
8ab979d7 | 11237 | static PyMethodDef windowscMethods[] = { |
f3d9dc1d RD |
11238 | { "wxMenuItem_ResetOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_ResetOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, |
11239 | { "wxMenuItem_IsOwnerDrawn", (PyCFunction) _wrap_wxMenuItem_IsOwnerDrawn, METH_VARARGS | METH_KEYWORDS }, | |
11240 | { "wxMenuItem_GetDefaultMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetDefaultMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11241 | { "wxMenuItem_GetMarginWidth", (PyCFunction) _wrap_wxMenuItem_GetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11242 | { "wxMenuItem_SetMarginWidth", (PyCFunction) _wrap_wxMenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS }, | |
11243 | { "wxMenuItem_GetBitmap", (PyCFunction) _wrap_wxMenuItem_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11244 | { "wxMenuItem_SetBitmap", (PyCFunction) _wrap_wxMenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11245 | { "wxMenuItem_SetBitmaps", (PyCFunction) _wrap_wxMenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS }, | |
11246 | { "wxMenuItem_GetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11247 | { "wxMenuItem_SetBackgroundColour", (PyCFunction) _wrap_wxMenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11248 | { "wxMenuItem_GetTextColour", (PyCFunction) _wrap_wxMenuItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11249 | { "wxMenuItem_SetTextColour", (PyCFunction) _wrap_wxMenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
11250 | { "wxMenuItem_GetFont", (PyCFunction) _wrap_wxMenuItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11251 | { "wxMenuItem_SetFont", (PyCFunction) _wrap_wxMenuItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 11252 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11253 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
11254 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
11255 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11256 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
11257 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
11258 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11259 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11260 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11261 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11262 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11263 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 11264 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11265 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11266 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 | 11267 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11268 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
11269 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11270 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11271 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11272 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
11273 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11274 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11275 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11276 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11277 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
11278 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11279 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
11280 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11281 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11282 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11283 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
11284 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
11285 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
3a0958b1 | 11286 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11287 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
11288 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
11289 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
11290 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
11291 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
11292 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
11293 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
11294 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11295 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
11296 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11297 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
11298 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
11299 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
11300 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
11301 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11302 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
11303 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11304 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
11305 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
11306 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
11307 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
11308 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11309 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11310 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
11311 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
11312 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
11313 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11314 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11315 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11316 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11317 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
11318 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11319 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
11320 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 11321 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11322 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11323 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11324 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11325 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11326 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
11327 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
11328 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
11329 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
11330 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11331 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11332 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11333 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
11334 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
11335 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
11336 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
11337 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
11338 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
11339 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11340 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
e9159fe8 RD |
11341 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
11342 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11343 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
11344 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
11345 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
11346 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
26e335b8 | 11347 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
d1679124 RD |
11348 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11349 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
11350 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
11351 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
e9159fe8 RD |
11352 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
11353 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
11354 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
11355 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 11356 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 11357 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11358 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11359 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
11360 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
11361 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11364 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11365 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 11366 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11367 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11368 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11369 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11370 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11371 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11372 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
11373 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11374 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
5a2930ab RD |
11375 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
11376 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
07c99b26 | 11377 | { "wxWindow_OnPaint", (PyCFunction) _wrap_wxWindow_OnPaint, METH_VARARGS | METH_KEYWORDS }, |
900d9886 | 11378 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11379 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 RD |
11380 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
11381 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
11382 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
11383 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
c7e7022c RD |
11384 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
11385 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
11387 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
11388 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
11389 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11390 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
4f3449b4 RD |
11391 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
11392 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 | 11393 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
3a0958b1 RD |
11394 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
11395 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11396 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
11397 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
a541c325 | 11398 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 11399 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
11400 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
11401 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11402 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
11403 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
be90c029 RD |
11404 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
11405 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11406 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11407 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11408 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
11409 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
11410 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11414 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11419 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11420 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
11421 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
83b18bab | 11424 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 11425 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11426 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
11427 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
dbbb98cd | 11430 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11431 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
11432 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 11440 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11441 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11442 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11443 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
11444 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 11445 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11446 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11447 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
11448 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
11449 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 11451 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11452 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
09f3d4e6 | 11453 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11454 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
11455 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
c6c593e8 | 11458 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
11459 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
11460 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11461 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
11462 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
11467 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
11470 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
11471 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
11472 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11473 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
11474 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
23bed520 | 11475 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11476 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11477 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11478 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
11479 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11480 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
11481 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
11482 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
11483 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11486 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11487 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11488 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11489 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11490 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11491 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11492 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11493 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11494 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 11498 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11499 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
11500 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11501 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11502 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11503 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
23bed520 RD |
11504 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
11505 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11506 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11507 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11508 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11509 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11510 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
23bed520 | 11511 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11512 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11513 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11514 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11515 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11516 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
11517 | { "wxWindow_DragAcceptFiles", (PyCFunction) _wrap_wxWindow_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 11518 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11519 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11520 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11521 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11522 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
d56cebe7 | 11524 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11525 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11526 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11527 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11528 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
09f3d4e6 RD |
11532 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11533 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11534 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 11535 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11536 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9416aa89 RD |
11537 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11538 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11539 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11540 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11541 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11542 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11543 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11544 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11545 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11546 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11547 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11552 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11553 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11554 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11555 | { "wxWindow_FromHWND", (PyCFunction) _wrap_wxWindow_FromHWND, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11556 | { NULL, NULL } |
11557 | }; | |
1d99702e RD |
11558 | #ifdef __cplusplus |
11559 | } | |
11560 | #endif | |
11561 | /* | |
11562 | * This table is used by the pointer type-checker | |
11563 | */ | |
11564 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11565 | { "_signed_long","_long",0}, |
b1462dfa | 11566 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11567 | { "_wxPrintQuality","_int",0}, |
11568 | { "_wxPrintQuality","_signed_int",0}, | |
11569 | { "_wxPrintQuality","_unsigned_int",0}, | |
11570 | { "_wxPrintQuality","_wxWindowID",0}, | |
11571 | { "_wxPrintQuality","_uint",0}, | |
11572 | { "_wxPrintQuality","_EBool",0}, | |
11573 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11574 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11575 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11576 | { "_long","_unsigned_long",0}, |
11577 | { "_long","_signed_long",0}, | |
b1462dfa | 11578 | { "_size_t","_wxCoord",0}, |
1d99702e | 11579 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11580 | { "_size_t","_time_t",0}, |
1d99702e RD |
11581 | { "_size_t","_unsigned_int",0}, |
11582 | { "_size_t","_int",0}, | |
11583 | { "_size_t","_wxWindowID",0}, | |
11584 | { "_size_t","_uint",0}, | |
1d99702e | 11585 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 11586 | { "_uint","_wxCoord",0}, |
1d99702e | 11587 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11588 | { "_uint","_time_t",0}, |
1d99702e RD |
11589 | { "_uint","_size_t",0}, |
11590 | { "_uint","_unsigned_int",0}, | |
11591 | { "_uint","_int",0}, | |
11592 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11593 | { "_wxChar","_char",0}, |
f6bcfd97 | 11594 | { "_char","_wxChar",0}, |
cdf14688 | 11595 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11596 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11597 | { "_EBool","_wxPrintQuality",0}, |
11598 | { "_EBool","_signed_int",0}, | |
11599 | { "_EBool","_int",0}, | |
11600 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11601 | { "_unsigned_long","_long",0}, |
cdf14688 | 11602 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11603 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11604 | { "_signed_int","_wxPrintQuality",0}, |
11605 | { "_signed_int","_EBool",0}, | |
11606 | { "_signed_int","_wxWindowID",0}, | |
11607 | { "_signed_int","_int",0}, | |
1d99702e RD |
11608 | { "_WXTYPE","_short",0}, |
11609 | { "_WXTYPE","_signed_short",0}, | |
11610 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11611 | { "_unsigned_short","_WXTYPE",0}, |
11612 | { "_unsigned_short","_short",0}, | |
9416aa89 | 11613 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9416aa89 | 11614 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9416aa89 | 11615 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9416aa89 | 11616 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9416aa89 | 11617 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9416aa89 | 11618 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9416aa89 | 11619 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9416aa89 | 11620 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9416aa89 | 11621 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
11622 | { "_signed_short","_WXTYPE",0}, |
11623 | { "_signed_short","_short",0}, | |
1d99702e | 11624 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11625 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11626 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11627 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11628 | { "_unsigned_int","_size_t",0}, |
11629 | { "_unsigned_int","_uint",0}, | |
11630 | { "_unsigned_int","_wxWindowID",0}, | |
11631 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11632 | { "_short","_WXTYPE",0}, |
11633 | { "_short","_unsigned_short",0}, | |
11634 | { "_short","_signed_short",0}, | |
b1462dfa | 11635 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11636 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11637 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11638 | { "_wxWindowID","_size_t",0}, |
11639 | { "_wxWindowID","_EBool",0}, | |
11640 | { "_wxWindowID","_uint",0}, | |
11641 | { "_wxWindowID","_int",0}, | |
11642 | { "_wxWindowID","_signed_int",0}, | |
11643 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11644 | { "_int","_wxCoord",0}, |
1d99702e | 11645 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11646 | { "_int","_time_t",0}, |
1d99702e RD |
11647 | { "_int","_size_t",0}, |
11648 | { "_int","_EBool",0}, | |
11649 | { "_int","_uint",0}, | |
11650 | { "_int","_wxWindowID",0}, | |
11651 | { "_int","_unsigned_int",0}, | |
11652 | { "_int","_signed_int",0}, | |
c368d904 RD |
11653 | { "_time_t","_wxCoord",0}, |
11654 | { "_time_t","_wxPrintQuality",0}, | |
11655 | { "_time_t","_unsigned_int",0}, | |
11656 | { "_time_t","_int",0}, | |
11657 | { "_time_t","_wxWindowID",0}, | |
11658 | { "_time_t","_uint",0}, | |
11659 | { "_time_t","_size_t",0}, | |
2f90df85 | 11660 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
11661 | { "_wxCoord","_int",0}, |
11662 | { "_wxCoord","_signed_int",0}, | |
11663 | { "_wxCoord","_unsigned_int",0}, | |
11664 | { "_wxCoord","_wxWindowID",0}, | |
11665 | { "_wxCoord","_uint",0}, | |
11666 | { "_wxCoord","_EBool",0}, | |
11667 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11668 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11669 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 11670 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 11671 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 11672 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 11673 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 11674 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 11675 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 11676 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 11677 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 11678 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 11679 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
11680 | {0,0,0}}; |
11681 | ||
8ab979d7 RD |
11682 | static PyObject *SWIG_globals; |
11683 | #ifdef __cplusplus | |
11684 | extern "C" | |
11685 | #endif | |
1d99702e | 11686 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
11687 | PyObject *m, *d; |
11688 | SWIG_globals = SWIG_newvarlink(); | |
11689 | m = Py_InitModule("windowsc", windowscMethods); | |
11690 | d = PyModule_GetDict(m); | |
1d99702e RD |
11691 | { |
11692 | int i; | |
11693 | for (i = 0; _swig_mapping[i].n1; i++) | |
11694 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11695 | } | |
8ab979d7 | 11696 | } |