]>
Commit | Line | Data |
---|---|---|
8ab979d7 | 1 | /* |
c368d904 | 2 | * FILE : src/gtk/windows.cpp |
8ab979d7 RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
2cd2fac8 | 6 | * Version 1.1 (Build 883) |
8ab979d7 RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
8ab979d7 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
3bcd5e1c | 30 | # define SWIGEXPORT(a) a _export |
8ab979d7 | 31 | # else |
3bcd5e1c | 32 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
3bcd5e1c | 36 | # define SWIGEXPORT(a) a |
8ab979d7 RD |
37 | #endif |
38 | ||
3bcd5e1c RD |
39 | #include "Python.h" |
40 | ||
8ab979d7 RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
3bcd5e1c | 44 | |
8ab979d7 RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
8ab979d7 RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
8ab979d7 RD |
54 | #define SWIG_init initwindowsc |
55 | ||
56 | #define SWIG_name "windowsc" | |
57 | ||
58 | #include "helpers.h" | |
8ab979d7 | 59 | #include <wx/menuitem.h> |
9df61a29 | 60 | #include <wx/tooltip.h> |
8ab979d7 | 61 | |
8ab979d7 RD |
62 | |
63 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
64 | PyObject* o2; | |
65 | PyObject* o3; | |
66 | ||
3bcd5e1c | 67 | if (!target) { |
8ab979d7 | 68 | target = o; |
3bcd5e1c | 69 | } else if (target == Py_None) { |
8ab979d7 RD |
70 | Py_DECREF(Py_None); |
71 | target = o; | |
3bcd5e1c | 72 | } else { |
8ab979d7 RD |
73 | if (!PyTuple_Check(target)) { |
74 | o2 = target; | |
75 | target = PyTuple_New(1); | |
76 | PyTuple_SetItem(target, 0, o2); | |
77 | } | |
3bcd5e1c RD |
78 | o3 = PyTuple_New(1); |
79 | PyTuple_SetItem(o3, 0, o); | |
8ab979d7 RD |
80 | |
81 | o2 = target; | |
3bcd5e1c RD |
82 | target = PySequence_Concat(o2, o3); |
83 | Py_DECREF(o2); | |
8ab979d7 RD |
84 | Py_DECREF(o3); |
85 | } | |
86 | return target; | |
87 | } | |
88 | ||
9a74fcaf RD |
89 | // Put some wx default wxChar* values into wxStrings. |
90 | DECLARE_DEF_STRING(PanelNameStr); | |
91 | static const wxString wxPyEmptyString(wxT("")); | |
92 | ||
2f90df85 RD |
93 | class wxPyValidator : public wxValidator { |
94 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
95 | public: | |
96 | wxPyValidator() { | |
97 | } | |
2f90df85 RD |
98 | |
99 | ~wxPyValidator() { | |
100 | } | |
101 | ||
059a841c | 102 | wxObject* Clone() const { |
694759cf RD |
103 | wxPyValidator* ptr = NULL; |
104 | wxPyValidator* self = (wxPyValidator*)this; | |
2f90df85 | 105 | |
474c48f9 | 106 | wxPyBeginBlockThreads(); |
694759cf RD |
107 | if (self->m_myInst.findCallback("Clone")) { |
108 | PyObject* ro; | |
109 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
f6bcfd97 BP |
110 | if (ro) { |
111 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
112 | Py_DECREF(ro); | |
113 | } | |
694759cf | 114 | } |
474c48f9 | 115 | wxPyEndBlockThreads(); |
059a841c | 116 | |
694759cf RD |
117 | // This is very dangerous!!! But is the only way I could find |
118 | // to squash a memory leak. Currently it is okay, but if the | |
119 | // validator architecture in wxWindows ever changes, problems | |
120 | // could arise. | |
121 | delete self; | |
694759cf RD |
122 | return ptr; |
123 | } | |
2f90df85 | 124 | |
9df61a29 | 125 | |
2f90df85 RD |
126 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); |
127 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
128 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
129 | ||
130 | PYPRIVATE; | |
2f90df85 RD |
131 | }; |
132 | ||
133 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
134 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
135 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
136 | ||
137 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
8ab979d7 | 138 | |
2f90df85 RD |
139 | #ifdef __cplusplus |
140 | extern "C" { | |
141 | #endif | |
9df61a29 RD |
142 | static void *SwigwxEvtHandlerTowxObject(void *ptr) { |
143 | wxEvtHandler *src; | |
144 | wxObject *dest; | |
145 | src = (wxEvtHandler *) ptr; | |
146 | dest = (wxObject *) src; | |
147 | return (void *) dest; | |
148 | } | |
149 | ||
c368d904 RD |
150 | #define new_wxEvtHandler() (new wxEvtHandler()) |
151 | static PyObject *_wrap_new_wxEvtHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
152 | PyObject * _resultobj; | |
153 | wxEvtHandler * _result; | |
154 | char *_kwnames[] = { NULL }; | |
155 | char _ptemp[128]; | |
156 | ||
157 | self = self; | |
158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEvtHandler",_kwnames)) | |
159 | return NULL; | |
160 | { | |
474c48f9 | 161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 162 | _result = (wxEvtHandler *)new_wxEvtHandler(); |
c368d904 | 163 | |
474c48f9 | 164 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 165 | if (PyErr_Occurred()) return NULL; |
c368d904 RD |
166 | } if (_result) { |
167 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
168 | _resultobj = Py_BuildValue("s",_ptemp); | |
169 | } else { | |
170 | Py_INCREF(Py_None); | |
171 | _resultobj = Py_None; | |
172 | } | |
173 | return _resultobj; | |
174 | } | |
175 | ||
2f90df85 RD |
176 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
177 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
178 | PyObject * _resultobj; | |
179 | bool _result; | |
180 | wxEvtHandler * _arg0; | |
181 | wxEvent * _arg1; | |
182 | PyObject * _argo0 = 0; | |
183 | PyObject * _argo1 = 0; | |
184 | char *_kwnames[] = { "self","event", NULL }; | |
185 | ||
186 | self = self; | |
187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) | |
188 | return NULL; | |
189 | if (_argo0) { | |
190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); | |
193 | return NULL; | |
194 | } | |
195 | } | |
196 | if (_argo1) { | |
197 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
198 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); | |
200 | return NULL; | |
201 | } | |
202 | } | |
203 | { | |
474c48f9 | 204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 205 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); |
2f90df85 | 206 | |
474c48f9 | 207 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 208 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
209 | } _resultobj = Py_BuildValue("i",_result); |
210 | return _resultobj; | |
211 | } | |
212 | ||
f6bcfd97 BP |
213 | #define wxEvtHandler_AddPendingEvent(_swigobj,_swigarg0) (_swigobj->AddPendingEvent(_swigarg0)) |
214 | static PyObject *_wrap_wxEvtHandler_AddPendingEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
215 | PyObject * _resultobj; | |
216 | wxEvtHandler * _arg0; | |
217 | wxEvent * _arg1; | |
218 | PyObject * _argo0 = 0; | |
219 | PyObject * _argo1 = 0; | |
220 | char *_kwnames[] = { "self","event", NULL }; | |
221 | ||
222 | self = self; | |
223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_AddPendingEvent",_kwnames,&_argo0,&_argo1)) | |
224 | return NULL; | |
225 | if (_argo0) { | |
226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_AddPendingEvent. Expected _wxEvtHandler_p."); | |
229 | return NULL; | |
230 | } | |
231 | } | |
232 | if (_argo1) { | |
233 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
234 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_AddPendingEvent. Expected _wxEvent_p."); | |
236 | return NULL; | |
237 | } | |
238 | } | |
239 | { | |
474c48f9 | 240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 241 | wxEvtHandler_AddPendingEvent(_arg0,*_arg1); |
f6bcfd97 | 242 | |
474c48f9 | 243 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 244 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
245 | } Py_INCREF(Py_None); |
246 | _resultobj = Py_None; | |
247 | return _resultobj; | |
248 | } | |
249 | ||
2f90df85 RD |
250 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
251 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
252 | PyObject * _resultobj; | |
253 | bool _result; | |
254 | wxEvtHandler * _arg0; | |
255 | PyObject * _argo0 = 0; | |
256 | char *_kwnames[] = { "self", NULL }; | |
257 | ||
258 | self = self; | |
259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
260 | return NULL; | |
261 | if (_argo0) { | |
262 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
263 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
264 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
265 | return NULL; | |
266 | } | |
267 | } | |
268 | { | |
474c48f9 | 269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 270 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); |
2f90df85 | 271 | |
474c48f9 | 272 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 273 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
274 | } _resultobj = Py_BuildValue("i",_result); |
275 | return _resultobj; | |
276 | } | |
277 | ||
278 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
279 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
280 | PyObject * _resultobj; | |
281 | wxEvtHandler * _arg0; | |
282 | bool _arg1; | |
283 | PyObject * _argo0 = 0; | |
284 | int tempbool1; | |
285 | char *_kwnames[] = { "self","enabled", NULL }; | |
286 | ||
287 | self = self; | |
288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
289 | return NULL; | |
290 | if (_argo0) { | |
291 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
292 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
293 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
294 | return NULL; | |
295 | } | |
296 | } | |
297 | _arg1 = (bool ) tempbool1; | |
298 | { | |
474c48f9 | 299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 300 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); |
2f90df85 | 301 | |
474c48f9 | 302 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 303 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
304 | } Py_INCREF(Py_None); |
305 | _resultobj = Py_None; | |
306 | return _resultobj; | |
307 | } | |
308 | ||
309 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
310 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
311 | PyObject * _resultobj; | |
312 | wxEvtHandler * _result; | |
313 | wxEvtHandler * _arg0; | |
314 | PyObject * _argo0 = 0; | |
315 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
316 | |
317 | self = self; | |
318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
319 | return NULL; | |
320 | if (_argo0) { | |
321 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
322 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
323 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
324 | return NULL; | |
325 | } | |
326 | } | |
327 | { | |
474c48f9 | 328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 329 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); |
2f90df85 | 330 | |
474c48f9 | 331 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 332 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 333 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
334 | return _resultobj; |
335 | } | |
336 | ||
337 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
338 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
339 | PyObject * _resultobj; | |
340 | wxEvtHandler * _result; | |
341 | wxEvtHandler * _arg0; | |
342 | PyObject * _argo0 = 0; | |
343 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
344 | |
345 | self = self; | |
346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
347 | return NULL; | |
348 | if (_argo0) { | |
349 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
350 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
351 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
352 | return NULL; | |
353 | } | |
354 | } | |
355 | { | |
474c48f9 | 356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 357 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); |
2f90df85 | 358 | |
474c48f9 | 359 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 360 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 361 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
362 | return _resultobj; |
363 | } | |
364 | ||
365 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
366 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
367 | PyObject * _resultobj; | |
368 | wxEvtHandler * _arg0; | |
369 | wxEvtHandler * _arg1; | |
370 | PyObject * _argo0 = 0; | |
371 | PyObject * _argo1 = 0; | |
372 | char *_kwnames[] = { "self","handler", NULL }; | |
373 | ||
374 | self = self; | |
375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
376 | return NULL; | |
377 | if (_argo0) { | |
378 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
379 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
380 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
381 | return NULL; | |
382 | } | |
383 | } | |
384 | if (_argo1) { | |
385 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
386 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
388 | return NULL; | |
389 | } | |
390 | } | |
391 | { | |
474c48f9 | 392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 393 | wxEvtHandler_SetNextHandler(_arg0,_arg1); |
2f90df85 | 394 | |
474c48f9 | 395 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 396 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
397 | } Py_INCREF(Py_None); |
398 | _resultobj = Py_None; | |
399 | return _resultobj; | |
400 | } | |
401 | ||
402 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
403 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
404 | PyObject * _resultobj; | |
405 | wxEvtHandler * _arg0; | |
406 | wxEvtHandler * _arg1; | |
407 | PyObject * _argo0 = 0; | |
408 | PyObject * _argo1 = 0; | |
409 | char *_kwnames[] = { "self","handler", NULL }; | |
410 | ||
411 | self = self; | |
412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
413 | return NULL; | |
414 | if (_argo0) { | |
415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
418 | return NULL; | |
419 | } | |
420 | } | |
421 | if (_argo1) { | |
422 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
423 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
425 | return NULL; | |
426 | } | |
427 | } | |
428 | { | |
474c48f9 | 429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 430 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); |
2f90df85 | 431 | |
474c48f9 | 432 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 433 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
434 | } Py_INCREF(Py_None); |
435 | _resultobj = Py_None; | |
436 | return _resultobj; | |
437 | } | |
438 | ||
439 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { | |
440 | if (PyCallable_Check(func)) { | |
441 | self->Connect(id, lastId, eventType, | |
442 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
443 | new wxPyCallback(func)); | |
444 | } | |
a57d56d6 RD |
445 | else if (func == Py_None) { |
446 | self->Disconnect(id, lastId, eventType, | |
447 | (wxObjectEventFunction) | |
448 | &wxPyCallback::EventThunker); | |
449 | } | |
450 | else { | |
451 | PyErr_SetString(PyExc_TypeError, "Expected callable object or None."); | |
452 | } | |
2f90df85 RD |
453 | } |
454 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
455 | PyObject * _resultobj; | |
456 | wxEvtHandler * _arg0; | |
457 | int _arg1; | |
458 | int _arg2; | |
459 | int _arg3; | |
460 | PyObject * _arg4; | |
461 | PyObject * _argo0 = 0; | |
462 | PyObject * _obj4 = 0; | |
463 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; | |
464 | ||
465 | self = self; | |
466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) | |
467 | return NULL; | |
468 | if (_argo0) { | |
469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); | |
472 | return NULL; | |
473 | } | |
474 | } | |
475 | { | |
476 | _arg4 = _obj4; | |
477 | } | |
478 | { | |
474c48f9 | 479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 480 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); |
2f90df85 | 481 | |
474c48f9 | 482 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 483 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
484 | } Py_INCREF(Py_None); |
485 | _resultobj = Py_None; | |
486 | return _resultobj; | |
487 | } | |
488 | ||
6999b0d8 RD |
489 | static bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId,wxEventType eventType) { |
490 | return self->Disconnect(id, lastId, eventType, | |
491 | (wxObjectEventFunction) | |
492 | &wxPyCallback::EventThunker); | |
493 | } | |
494 | static PyObject *_wrap_wxEvtHandler_Disconnect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
495 | PyObject * _resultobj; | |
496 | bool _result; | |
497 | wxEvtHandler * _arg0; | |
498 | int _arg1; | |
499 | int _arg2 = (int ) -1; | |
500 | wxEventType _arg3 = (wxEventType ) wxEVT_NULL; | |
501 | PyObject * _argo0 = 0; | |
502 | char *_kwnames[] = { "self","id","lastId","eventType", NULL }; | |
503 | ||
504 | self = self; | |
505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|ii:wxEvtHandler_Disconnect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) | |
506 | return NULL; | |
507 | if (_argo0) { | |
508 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
509 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
510 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Disconnect. Expected _wxEvtHandler_p."); | |
511 | return NULL; | |
512 | } | |
513 | } | |
514 | { | |
474c48f9 | 515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 516 | _result = (bool )wxEvtHandler_Disconnect(_arg0,_arg1,_arg2,_arg3); |
6999b0d8 | 517 | |
474c48f9 | 518 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 519 | if (PyErr_Occurred()) return NULL; |
6999b0d8 RD |
520 | } _resultobj = Py_BuildValue("i",_result); |
521 | return _resultobj; | |
522 | } | |
523 | ||
0220cbc1 | 524 | static void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject * _self) { |
301dfd67 | 525 | self->SetClientObject(new wxPyOORClientData(_self)); |
0220cbc1 RD |
526 | } |
527 | static PyObject *_wrap_wxEvtHandler__setOORInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
528 | PyObject * _resultobj; | |
529 | wxEvtHandler * _arg0; | |
530 | PyObject * _arg1; | |
531 | PyObject * _argo0 = 0; | |
532 | PyObject * _obj1 = 0; | |
533 | char *_kwnames[] = { "self","_self", NULL }; | |
534 | ||
535 | self = self; | |
536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler__setOORInfo",_kwnames,&_argo0,&_obj1)) | |
537 | return NULL; | |
538 | if (_argo0) { | |
539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler__setOORInfo. Expected _wxEvtHandler_p."); | |
542 | return NULL; | |
543 | } | |
544 | } | |
545 | { | |
546 | _arg1 = _obj1; | |
547 | } | |
548 | { | |
474c48f9 | 549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 550 | wxEvtHandler__setOORInfo(_arg0,_arg1); |
0220cbc1 | 551 | |
474c48f9 | 552 | wxPyEndAllowThreads(__tstate); |
0220cbc1 RD |
553 | if (PyErr_Occurred()) return NULL; |
554 | } Py_INCREF(Py_None); | |
555 | _resultobj = Py_None; | |
556 | return _resultobj; | |
557 | } | |
558 | ||
2f90df85 RD |
559 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
560 | wxValidator *src; | |
561 | wxEvtHandler *dest; | |
562 | src = (wxValidator *) ptr; | |
563 | dest = (wxEvtHandler *) src; | |
564 | return (void *) dest; | |
565 | } | |
566 | ||
9df61a29 RD |
567 | static void *SwigwxValidatorTowxObject(void *ptr) { |
568 | wxValidator *src; | |
569 | wxObject *dest; | |
570 | src = (wxValidator *) ptr; | |
571 | dest = (wxObject *) src; | |
572 | return (void *) dest; | |
573 | } | |
574 | ||
2f90df85 RD |
575 | #define new_wxValidator() (new wxValidator()) |
576 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
577 | PyObject * _resultobj; | |
578 | wxValidator * _result; | |
579 | char *_kwnames[] = { NULL }; | |
580 | char _ptemp[128]; | |
581 | ||
582 | self = self; | |
583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
584 | return NULL; | |
585 | { | |
474c48f9 | 586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 587 | _result = (wxValidator *)new_wxValidator(); |
2f90df85 | 588 | |
474c48f9 | 589 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 590 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
591 | } if (_result) { |
592 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
593 | _resultobj = Py_BuildValue("s",_ptemp); | |
594 | } else { | |
595 | Py_INCREF(Py_None); | |
596 | _resultobj = Py_None; | |
597 | } | |
598 | return _resultobj; | |
af309447 | 599 | } |
2f90df85 RD |
600 | |
601 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
602 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 603 | PyObject * _resultobj; |
2f90df85 RD |
604 | wxValidator * _result; |
605 | wxValidator * _arg0; | |
606 | PyObject * _argo0 = 0; | |
607 | char *_kwnames[] = { "self", NULL }; | |
8ab979d7 RD |
608 | |
609 | self = self; | |
2f90df85 RD |
610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) |
611 | return NULL; | |
612 | if (_argo0) { | |
613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
8ab979d7 | 616 | return NULL; |
2f90df85 RD |
617 | } |
618 | } | |
cf694132 | 619 | { |
474c48f9 | 620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 621 | _result = (wxValidator *)wxValidator_Clone(_arg0); |
cf694132 | 622 | |
474c48f9 | 623 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 624 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 625 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
626 | return _resultobj; |
627 | } | |
628 | ||
2f90df85 RD |
629 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) |
630 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
631 | PyObject * _resultobj; |
632 | wxWindow * _result; | |
2f90df85 RD |
633 | wxValidator * _arg0; |
634 | PyObject * _argo0 = 0; | |
635 | char *_kwnames[] = { "self", NULL }; | |
af309447 RD |
636 | |
637 | self = self; | |
2f90df85 RD |
638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) |
639 | return NULL; | |
640 | if (_argo0) { | |
641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
af309447 | 644 | return NULL; |
2f90df85 RD |
645 | } |
646 | } | |
cf694132 | 647 | { |
474c48f9 | 648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 649 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); |
cf694132 | 650 | |
474c48f9 | 651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 652 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 653 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
654 | return _resultobj; |
655 | } | |
656 | ||
2f90df85 RD |
657 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) |
658 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 659 | PyObject * _resultobj; |
2f90df85 RD |
660 | wxValidator * _arg0; |
661 | wxWindow * _arg1; | |
1d99702e RD |
662 | PyObject * _argo0 = 0; |
663 | PyObject * _argo1 = 0; | |
2f90df85 | 664 | char *_kwnames[] = { "self","window", NULL }; |
cf694132 RD |
665 | |
666 | self = self; | |
2f90df85 | 667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) |
cf694132 | 668 | return NULL; |
1d99702e RD |
669 | if (_argo0) { |
670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 RD |
671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { |
672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
cf694132 RD |
673 | return NULL; |
674 | } | |
675 | } | |
1d99702e RD |
676 | if (_argo1) { |
677 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2f90df85 RD |
678 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
cf694132 RD |
680 | return NULL; |
681 | } | |
682 | } | |
683 | { | |
474c48f9 | 684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 685 | wxValidator_SetWindow(_arg0,_arg1); |
cf694132 | 686 | |
474c48f9 | 687 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 688 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
689 | } Py_INCREF(Py_None); |
690 | _resultobj = Py_None; | |
cf694132 RD |
691 | return _resultobj; |
692 | } | |
693 | ||
9df61a29 RD |
694 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
695 | PyObject * _resultobj; | |
696 | bool _result; | |
697 | char *_kwnames[] = { NULL }; | |
698 | ||
699 | self = self; | |
700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
701 | return NULL; | |
702 | { | |
474c48f9 | 703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 704 | _result = (bool )wxValidator::IsSilent(); |
9df61a29 | 705 | |
474c48f9 | 706 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 707 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
708 | } _resultobj = Py_BuildValue("i",_result); |
709 | return _resultobj; | |
710 | } | |
711 | ||
712 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
713 | PyObject * _resultobj; | |
714 | int _arg0 = (int ) TRUE; | |
715 | char *_kwnames[] = { "doIt", NULL }; | |
716 | ||
717 | self = self; | |
718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
719 | return NULL; | |
720 | { | |
474c48f9 | 721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 722 | wxValidator::SetBellOnError(_arg0); |
9df61a29 | 723 | |
474c48f9 | 724 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 725 | if (PyErr_Occurred()) return NULL; |
9df61a29 RD |
726 | } Py_INCREF(Py_None); |
727 | _resultobj = Py_None; | |
728 | return _resultobj; | |
729 | } | |
730 | ||
2f90df85 RD |
731 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { |
732 | wxPyValidator *src; | |
733 | wxValidator *dest; | |
734 | src = (wxPyValidator *) ptr; | |
735 | dest = (wxValidator *) src; | |
736 | return (void *) dest; | |
737 | } | |
738 | ||
739 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
740 | wxPyValidator *src; | |
741 | wxEvtHandler *dest; | |
742 | src = (wxPyValidator *) ptr; | |
743 | dest = (wxEvtHandler *) src; | |
744 | return (void *) dest; | |
745 | } | |
746 | ||
9df61a29 RD |
747 | static void *SwigwxPyValidatorTowxObject(void *ptr) { |
748 | wxPyValidator *src; | |
749 | wxObject *dest; | |
750 | src = (wxPyValidator *) ptr; | |
751 | dest = (wxObject *) src; | |
752 | return (void *) dest; | |
753 | } | |
754 | ||
2f90df85 RD |
755 | #define new_wxPyValidator() (new wxPyValidator()) |
756 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
757 | PyObject * _resultobj; | |
758 | wxPyValidator * _result; | |
759 | char *_kwnames[] = { NULL }; | |
760 | char _ptemp[128]; | |
761 | ||
762 | self = self; | |
763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
764 | return NULL; | |
765 | { | |
474c48f9 | 766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 767 | _result = (wxPyValidator *)new_wxPyValidator(); |
2f90df85 | 768 | |
474c48f9 | 769 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 770 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
771 | } if (_result) { |
772 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
773 | _resultobj = Py_BuildValue("s",_ptemp); | |
774 | } else { | |
775 | Py_INCREF(Py_None); | |
776 | _resultobj = Py_None; | |
777 | } | |
778 | return _resultobj; | |
779 | } | |
780 | ||
0220cbc1 RD |
781 | #define wxPyValidator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
782 | static PyObject *_wrap_wxPyValidator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 783 | PyObject * _resultobj; |
2f90df85 RD |
784 | wxPyValidator * _arg0; |
785 | PyObject * _arg1; | |
f6bcfd97 BP |
786 | PyObject * _arg2; |
787 | int _arg3 = (int ) TRUE; | |
1d99702e | 788 | PyObject * _argo0 = 0; |
2f90df85 | 789 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
790 | PyObject * _obj2 = 0; |
791 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
8ab979d7 RD |
792 | |
793 | self = self; | |
0220cbc1 | 794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxPyValidator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&_arg3)) |
8ab979d7 | 795 | return NULL; |
1d99702e RD |
796 | if (_argo0) { |
797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2f90df85 | 798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { |
0220cbc1 | 799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setCallbackInfo. Expected _wxPyValidator_p."); |
8ab979d7 RD |
800 | return NULL; |
801 | } | |
802 | } | |
803 | { | |
2f90df85 | 804 | _arg1 = _obj1; |
8ab979d7 | 805 | } |
f6bcfd97 BP |
806 | { |
807 | _arg2 = _obj2; | |
808 | } | |
cf694132 | 809 | { |
474c48f9 | 810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 811 | wxPyValidator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 812 | |
474c48f9 | 813 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 814 | if (PyErr_Occurred()) return NULL; |
cf694132 | 815 | } Py_INCREF(Py_None); |
8ab979d7 RD |
816 | _resultobj = Py_None; |
817 | return _resultobj; | |
818 | } | |
819 | ||
820 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { | |
821 | wxWindow *src; | |
822 | wxEvtHandler *dest; | |
823 | src = (wxWindow *) ptr; | |
824 | dest = (wxEvtHandler *) src; | |
825 | return (void *) dest; | |
826 | } | |
827 | ||
9df61a29 RD |
828 | static void *SwigwxWindowTowxObject(void *ptr) { |
829 | wxWindow *src; | |
830 | wxObject *dest; | |
831 | src = (wxWindow *) ptr; | |
832 | dest = (wxObject *) src; | |
833 | return (void *) dest; | |
834 | } | |
835 | ||
8ab979d7 | 836 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 837 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
838 | PyObject * _resultobj; |
839 | wxWindow * _result; | |
840 | wxWindow * _arg0; | |
841 | wxWindowID _arg1; | |
b68dc582 RD |
842 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
843 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 844 | long _arg4 = (long ) 0; |
9a74fcaf | 845 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 846 | PyObject * _argo0 = 0; |
2f90df85 RD |
847 | wxPoint temp; |
848 | PyObject * _obj2 = 0; | |
849 | wxSize temp0; | |
850 | PyObject * _obj3 = 0; | |
9a74fcaf | 851 | PyObject * _obj5 = 0; |
efc5f224 | 852 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
853 | char _ptemp[128]; |
854 | ||
855 | self = self; | |
9a74fcaf | 856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 857 | return NULL; |
1d99702e RD |
858 | if (_argo0) { |
859 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
860 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
861 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
862 | return NULL; | |
863 | } | |
864 | } | |
2f90df85 RD |
865 | if (_obj2) |
866 | { | |
867 | _arg2 = &temp; | |
868 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 869 | return NULL; |
2f90df85 RD |
870 | } |
871 | if (_obj3) | |
872 | { | |
873 | _arg3 = &temp0; | |
874 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 875 | return NULL; |
9a74fcaf RD |
876 | } |
877 | if (_obj5) | |
878 | { | |
879 | _arg5 = wxString_in_helper(_obj5); | |
880 | if (_arg5 == NULL) | |
881 | return NULL; | |
2f90df85 | 882 | } |
cf694132 | 883 | { |
474c48f9 | 884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 885 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 886 | |
474c48f9 | 887 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 888 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
889 | } if (_result) { |
890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
891 | _resultobj = Py_BuildValue("s",_ptemp); | |
892 | } else { | |
893 | Py_INCREF(Py_None); | |
894 | _resultobj = Py_None; | |
895 | } | |
9a74fcaf RD |
896 | { |
897 | if (_obj5) | |
898 | delete _arg5; | |
899 | } | |
8ab979d7 RD |
900 | return _resultobj; |
901 | } | |
902 | ||
aa2a5b86 RD |
903 | #define new_wxPreWindow() (new wxWindow()) |
904 | static PyObject *_wrap_new_wxPreWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
905 | PyObject * _resultobj; | |
906 | wxWindow * _result; | |
907 | char *_kwnames[] = { NULL }; | |
908 | char _ptemp[128]; | |
909 | ||
910 | self = self; | |
911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreWindow",_kwnames)) | |
912 | return NULL; | |
913 | { | |
474c48f9 | 914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 915 | _result = (wxWindow *)new_wxPreWindow(); |
aa2a5b86 | 916 | |
474c48f9 | 917 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
918 | if (PyErr_Occurred()) return NULL; |
919 | } if (_result) { | |
920 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
921 | _resultobj = Py_BuildValue("s",_ptemp); | |
922 | } else { | |
923 | Py_INCREF(Py_None); | |
924 | _resultobj = Py_None; | |
925 | } | |
926 | return _resultobj; | |
927 | } | |
928 | ||
929 | #define wxWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
930 | static PyObject *_wrap_wxWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
931 | PyObject * _resultobj; | |
932 | bool _result; | |
933 | wxWindow * _arg0; | |
934 | wxWindow * _arg1; | |
935 | wxWindowID _arg2; | |
936 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
937 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
938 | long _arg5 = (long ) 0; | |
9a74fcaf | 939 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
940 | PyObject * _argo0 = 0; |
941 | PyObject * _argo1 = 0; | |
942 | wxPoint temp; | |
943 | PyObject * _obj3 = 0; | |
944 | wxSize temp0; | |
945 | PyObject * _obj4 = 0; | |
9a74fcaf | 946 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
947 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
948 | ||
949 | self = self; | |
9a74fcaf | 950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
951 | return NULL; |
952 | if (_argo0) { | |
953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Create. Expected _wxWindow_p."); | |
956 | return NULL; | |
957 | } | |
958 | } | |
959 | if (_argo1) { | |
960 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
961 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Create. Expected _wxWindow_p."); | |
963 | return NULL; | |
964 | } | |
965 | } | |
966 | if (_obj3) | |
967 | { | |
968 | _arg3 = &temp; | |
969 | if (! wxPoint_helper(_obj3, &_arg3)) | |
970 | return NULL; | |
971 | } | |
972 | if (_obj4) | |
973 | { | |
974 | _arg4 = &temp0; | |
975 | if (! wxSize_helper(_obj4, &_arg4)) | |
976 | return NULL; | |
9a74fcaf RD |
977 | } |
978 | if (_obj6) | |
979 | { | |
980 | _arg6 = wxString_in_helper(_obj6); | |
981 | if (_arg6 == NULL) | |
982 | return NULL; | |
aa2a5b86 RD |
983 | } |
984 | { | |
474c48f9 | 985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 986 | _result = (bool )wxWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 987 | |
474c48f9 | 988 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
989 | if (PyErr_Occurred()) return NULL; |
990 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
991 | { |
992 | if (_obj6) | |
993 | delete _arg6; | |
994 | } | |
aa2a5b86 RD |
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 | { |
474c48f9 | 1016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1017 | wxWindow_CaptureMouse(_arg0); |
cf694132 | 1018 | |
474c48f9 | 1019 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { |
474c48f9 | 1045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1046 | wxWindow_Center(_arg0,_arg1); |
cf694132 | 1047 | |
474c48f9 | 1048 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { |
474c48f9 | 1074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1075 | wxWindow_Centre(_arg0,_arg1); |
cf694132 | 1076 | |
474c48f9 | 1077 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { | |
474c48f9 | 1103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1104 | wxWindow_CentreOnParent(_arg0,_arg1); |
bb0054cd | 1105 | |
474c48f9 | 1106 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { | |
474c48f9 | 1132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1133 | wxWindow_CenterOnParent(_arg0,_arg1); |
bb0054cd | 1134 | |
474c48f9 | 1135 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { | |
474c48f9 | 1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1162 | wxWindow_CentreOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1163 | |
474c48f9 | 1164 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { | |
474c48f9 | 1190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1191 | wxWindow_CenterOnScreen(_arg0,_arg1); |
3ca6a5f0 | 1192 | |
474c48f9 | 1193 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1194 | if (PyErr_Occurred()) return NULL; |
3ca6a5f0 BP |
1195 | } Py_INCREF(Py_None); |
1196 | _resultobj = Py_None; | |
1197 | return _resultobj; | |
1198 | } | |
1199 | ||
9d6da64a 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 | { | |
474c48f9 | 1218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1219 | wxWindow_Clear(_arg0); |
9d6da64a | 1220 | |
474c48f9 | 1221 | wxPyEndAllowThreads(__tstate); |
9d6da64a 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 | { |
474c48f9 | 1260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1261 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); |
cf694132 | 1262 | |
474c48f9 | 1263 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { |
474c48f9 | 1308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1309 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); |
cf694132 | 1310 | |
474c48f9 | 1311 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { |
474c48f9 | 1338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1339 | _result = (bool )wxWindow_Close(_arg0,_arg1); |
cf694132 | 1340 | |
474c48f9 | 1341 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { |
474c48f9 | 1366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1367 | _result = (bool )wxWindow_Destroy(_arg0); |
cf694132 | 1368 | |
474c48f9 | 1369 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 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 | { |
474c48f9 | 1393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1394 | wxWindow_DestroyChildren(_arg0); |
cf694132 | 1395 | |
474c48f9 | 1396 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1397 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1398 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1399 | _resultobj = Py_None; |
1400 | return _resultobj; | |
1401 | } | |
1402 | ||
4dfaa61e 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 | { | |
474c48f9 | 1422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1423 | _result = (bool )wxWindow_IsBeingDeleted(_arg0); |
4dfaa61e | 1424 | |
474c48f9 | 1425 | wxPyEndAllowThreads(__tstate); |
4dfaa61e RD |
1426 | if (PyErr_Occurred()) return NULL; |
1427 | } _resultobj = Py_BuildValue("i",_result); | |
1428 | return _resultobj; | |
1429 | } | |
1430 | ||
8ab979d7 | 1431 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) |
efc5f224 | 1432 | static PyObject *_wrap_wxWindow_Enable(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","enable", NULL }; |
8ab979d7 RD |
1439 | |
1440 | self = self; | |
efc5f224 | 1441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_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_Enable. Expected _wxWindow_p."); |
1447 | return NULL; | |
1448 | } | |
1449 | } | |
1450 | _arg1 = (bool ) tempbool1; | |
cf694132 | 1451 | { |
474c48f9 | 1452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1453 | wxWindow_Enable(_arg0,_arg1); |
cf694132 | 1454 | |
474c48f9 | 1455 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1456 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1457 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1458 | _resultobj = Py_None; |
1459 | return _resultobj; | |
1460 | } | |
1461 | ||
af309447 | 1462 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
efc5f224 | 1463 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1464 | PyObject * _resultobj; |
1465 | wxWindow * _result; | |
1466 | wxWindow * _arg0; | |
1467 | long _arg1; | |
1d99702e | 1468 | PyObject * _argo0 = 0; |
efc5f224 | 1469 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
1470 | |
1471 | self = self; | |
efc5f224 | 1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
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")) { | |
af309447 | 1477 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
8ab979d7 RD |
1478 | return NULL; |
1479 | } | |
1480 | } | |
cf694132 | 1481 | { |
474c48f9 | 1482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1483 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); |
cf694132 | 1484 | |
474c48f9 | 1485 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1486 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1487 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1488 | return _resultobj; |
1489 | } | |
1490 | ||
1491 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
efc5f224 | 1492 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1493 | PyObject * _resultobj; |
1494 | wxWindow * _result; | |
1495 | wxWindow * _arg0; | |
1496 | wxString * _arg1; | |
1d99702e | 1497 | PyObject * _argo0 = 0; |
8ab979d7 | 1498 | PyObject * _obj1 = 0; |
efc5f224 | 1499 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
1500 | |
1501 | self = self; | |
efc5f224 | 1502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 1503 | return NULL; |
1d99702e RD |
1504 | if (_argo0) { |
1505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1508 | return NULL; | |
1509 | } | |
1510 | } | |
1511 | { | |
c8bc7bb8 RD |
1512 | _arg1 = wxString_in_helper(_obj1); |
1513 | if (_arg1 == NULL) | |
8ab979d7 | 1514 | return NULL; |
8ab979d7 | 1515 | } |
cf694132 | 1516 | { |
474c48f9 | 1517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1518 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); |
cf694132 | 1519 | |
474c48f9 | 1520 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1521 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1522 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1523 | { |
1524 | if (_obj1) | |
1525 | delete _arg1; | |
1526 | } | |
1527 | return _resultobj; | |
1528 | } | |
1529 | ||
1530 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
efc5f224 | 1531 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1532 | PyObject * _resultobj; |
1533 | wxWindow * _arg0; | |
1d99702e | 1534 | PyObject * _argo0 = 0; |
efc5f224 | 1535 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1536 | |
1537 | self = self; | |
efc5f224 | 1538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
8ab979d7 | 1539 | return NULL; |
1d99702e RD |
1540 | if (_argo0) { |
1541 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1542 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1543 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1544 | return NULL; | |
1545 | } | |
1546 | } | |
cf694132 | 1547 | { |
474c48f9 | 1548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1549 | wxWindow_Fit(_arg0); |
cf694132 | 1550 | |
474c48f9 | 1551 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1552 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1553 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1554 | _resultobj = Py_None; |
1555 | return _resultobj; | |
1556 | } | |
1557 | ||
1558 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
efc5f224 | 1559 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1560 | PyObject * _resultobj; |
1561 | wxColour * _result; | |
1562 | wxWindow * _arg0; | |
1d99702e | 1563 | PyObject * _argo0 = 0; |
efc5f224 | 1564 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1565 | char _ptemp[128]; |
1566 | ||
1567 | self = self; | |
efc5f224 | 1568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1569 | return NULL; |
1d99702e RD |
1570 | if (_argo0) { |
1571 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1572 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1573 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1574 | return NULL; | |
1575 | } | |
1576 | } | |
cf694132 | 1577 | { |
474c48f9 | 1578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1579 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); |
cf694132 | 1580 | |
474c48f9 | 1581 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1582 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1583 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1584 | _resultobj = Py_BuildValue("s",_ptemp); |
1585 | return _resultobj; | |
1586 | } | |
1587 | ||
8cb49012 RD |
1588 | #define wxWindow_GetBorder(_swigobj) (_swigobj->GetBorder()) |
1589 | static PyObject *_wrap_wxWindow_GetBorder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1590 | PyObject * _resultobj; | |
1591 | wxBorder _result; | |
1592 | wxWindow * _arg0; | |
1593 | PyObject * _argo0 = 0; | |
1594 | char *_kwnames[] = { "self", NULL }; | |
1595 | ||
1596 | self = self; | |
1597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBorder",_kwnames,&_argo0)) | |
1598 | return NULL; | |
1599 | if (_argo0) { | |
1600 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1601 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1602 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBorder. Expected _wxWindow_p."); | |
1603 | return NULL; | |
1604 | } | |
1605 | } | |
1606 | { | |
1607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1608 | _result = (wxBorder )wxWindow_GetBorder(_arg0); |
8cb49012 RD |
1609 | |
1610 | wxPyEndAllowThreads(__tstate); | |
1611 | if (PyErr_Occurred()) return NULL; | |
1612 | } _resultobj = Py_BuildValue("i",_result); | |
1613 | return _resultobj; | |
1614 | } | |
1615 | ||
d426c97e RD |
1616 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1617 | wxWindowList& list = self->GetChildren(); | |
1618 | return wxPy_ConvertList(&list, "wxWindow"); | |
1619 | } | |
1620 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1621 | PyObject * _resultobj; | |
1622 | PyObject * _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_GetChildren",_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_GetChildren. Expected _wxWindow_p."); | |
1634 | return NULL; | |
1635 | } | |
1636 | } | |
1637 | { | |
474c48f9 | 1638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1639 | _result = (PyObject *)wxWindow_GetChildren(_arg0); |
d426c97e | 1640 | |
474c48f9 | 1641 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1642 | if (PyErr_Occurred()) return NULL; |
d426c97e RD |
1643 | }{ |
1644 | _resultobj = _result; | |
1645 | } | |
1646 | return _resultobj; | |
1647 | } | |
1648 | ||
8ab979d7 | 1649 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
efc5f224 | 1650 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1651 | PyObject * _resultobj; |
1652 | int _result; | |
1653 | wxWindow * _arg0; | |
1d99702e | 1654 | PyObject * _argo0 = 0; |
efc5f224 | 1655 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1656 | |
1657 | self = self; | |
efc5f224 | 1658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
8ab979d7 | 1659 | return NULL; |
1d99702e RD |
1660 | if (_argo0) { |
1661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1664 | return NULL; | |
1665 | } | |
1666 | } | |
cf694132 | 1667 | { |
474c48f9 | 1668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1669 | _result = (int )wxWindow_GetCharHeight(_arg0); |
cf694132 | 1670 | |
474c48f9 | 1671 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1672 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1673 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1674 | return _resultobj; |
1675 | } | |
1676 | ||
1677 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
efc5f224 | 1678 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1679 | PyObject * _resultobj; |
1680 | int _result; | |
1681 | wxWindow * _arg0; | |
1d99702e | 1682 | PyObject * _argo0 = 0; |
efc5f224 | 1683 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1684 | |
1685 | self = self; | |
efc5f224 | 1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
8ab979d7 | 1687 | return NULL; |
1d99702e RD |
1688 | if (_argo0) { |
1689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1692 | return NULL; | |
1693 | } | |
1694 | } | |
cf694132 | 1695 | { |
474c48f9 | 1696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1697 | _result = (int )wxWindow_GetCharWidth(_arg0); |
cf694132 | 1698 | |
474c48f9 | 1699 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1700 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1701 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
1702 | return _resultobj; |
1703 | } | |
1704 | ||
b8b8dda7 | 1705 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 1706 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1707 | PyObject * _resultobj; |
1708 | wxWindow * _arg0; | |
1709 | int * _arg1; | |
1710 | int temp; | |
1711 | int * _arg2; | |
1712 | int temp0; | |
1d99702e | 1713 | PyObject * _argo0 = 0; |
efc5f224 | 1714 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1715 | |
1716 | self = self; | |
1717 | { | |
1718 | _arg1 = &temp; | |
1719 | } | |
1720 | { | |
1721 | _arg2 = &temp0; | |
1722 | } | |
efc5f224 | 1723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 1724 | return NULL; |
1d99702e RD |
1725 | if (_argo0) { |
1726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 1728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
1729 | return NULL; |
1730 | } | |
1731 | } | |
cf694132 | 1732 | { |
474c48f9 | 1733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1734 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 1735 | |
474c48f9 | 1736 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1737 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1738 | } Py_INCREF(Py_None); |
8ab979d7 RD |
1739 | _resultobj = Py_None; |
1740 | { | |
1741 | PyObject *o; | |
1742 | o = PyInt_FromLong((long) (*_arg1)); | |
1743 | _resultobj = t_output_helper(_resultobj, o); | |
1744 | } | |
1745 | { | |
1746 | PyObject *o; | |
1747 | o = PyInt_FromLong((long) (*_arg2)); | |
1748 | _resultobj = t_output_helper(_resultobj, o); | |
1749 | } | |
1750 | return _resultobj; | |
1751 | } | |
1752 | ||
b8b8dda7 | 1753 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
efc5f224 | 1754 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
1755 | PyObject * _resultobj; |
1756 | wxSize * _result; | |
1757 | wxWindow * _arg0; | |
1d99702e | 1758 | PyObject * _argo0 = 0; |
efc5f224 | 1759 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
1760 | char _ptemp[128]; |
1761 | ||
1762 | self = self; | |
efc5f224 | 1763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
b8b8dda7 | 1764 | return NULL; |
1d99702e RD |
1765 | if (_argo0) { |
1766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
1768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1769 | return NULL; | |
1770 | } | |
1771 | } | |
cf694132 | 1772 | { |
474c48f9 | 1773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1774 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); |
cf694132 | 1775 | |
474c48f9 | 1776 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1777 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1778 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
1779 | _resultobj = Py_BuildValue("s",_ptemp); |
1780 | return _resultobj; | |
1781 | } | |
1782 | ||
8cb49012 RD |
1783 | #define wxWindow_GetClientAreaOrigin(_swigobj) (_swigobj->GetClientAreaOrigin()) |
1784 | static PyObject *_wrap_wxWindow_GetClientAreaOrigin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1785 | PyObject * _resultobj; | |
1786 | wxPoint * _result; | |
1787 | wxWindow * _arg0; | |
1788 | PyObject * _argo0 = 0; | |
1789 | char *_kwnames[] = { "self", NULL }; | |
1790 | char _ptemp[128]; | |
1791 | ||
1792 | self = self; | |
1793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientAreaOrigin",_kwnames,&_argo0)) | |
1794 | return NULL; | |
1795 | if (_argo0) { | |
1796 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1797 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1798 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientAreaOrigin. Expected _wxWindow_p."); | |
1799 | return NULL; | |
1800 | } | |
1801 | } | |
1802 | { | |
1803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1804 | _result = new wxPoint (wxWindow_GetClientAreaOrigin(_arg0)); |
8cb49012 RD |
1805 | |
1806 | wxPyEndAllowThreads(__tstate); | |
1807 | if (PyErr_Occurred()) return NULL; | |
1808 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
1809 | _resultobj = Py_BuildValue("s",_ptemp); | |
1810 | return _resultobj; | |
1811 | } | |
1812 | ||
1813 | #define wxWindow_GetClientRect(_swigobj) (_swigobj->GetClientRect()) | |
1814 | static PyObject *_wrap_wxWindow_GetClientRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1815 | PyObject * _resultobj; | |
1816 | wxRect * _result; | |
1817 | wxWindow * _arg0; | |
1818 | PyObject * _argo0 = 0; | |
1819 | char *_kwnames[] = { "self", NULL }; | |
1820 | char _ptemp[128]; | |
1821 | ||
1822 | self = self; | |
1823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientRect",_kwnames,&_argo0)) | |
1824 | return NULL; | |
1825 | if (_argo0) { | |
1826 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1827 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1828 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientRect. Expected _wxWindow_p."); | |
1829 | return NULL; | |
1830 | } | |
1831 | } | |
1832 | { | |
1833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 1834 | _result = new wxRect (wxWindow_GetClientRect(_arg0)); |
8cb49012 RD |
1835 | |
1836 | wxPyEndAllowThreads(__tstate); | |
1837 | if (PyErr_Occurred()) return NULL; | |
1838 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
1839 | _resultobj = Py_BuildValue("s",_ptemp); | |
1840 | return _resultobj; | |
1841 | } | |
1842 | ||
8ab979d7 | 1843 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
efc5f224 | 1844 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1845 | PyObject * _resultobj; |
1846 | wxLayoutConstraints * _result; | |
1847 | wxWindow * _arg0; | |
1d99702e | 1848 | PyObject * _argo0 = 0; |
efc5f224 | 1849 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1850 | char _ptemp[128]; |
1851 | ||
1852 | self = self; | |
efc5f224 | 1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
8ab979d7 | 1854 | return NULL; |
1d99702e RD |
1855 | if (_argo0) { |
1856 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1857 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1858 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1859 | return NULL; | |
1860 | } | |
1861 | } | |
cf694132 | 1862 | { |
474c48f9 | 1863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1864 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); |
cf694132 | 1865 | |
474c48f9 | 1866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1867 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
1868 | } if (_result) { |
1869 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1870 | _resultobj = Py_BuildValue("s",_ptemp); | |
1871 | } else { | |
1872 | Py_INCREF(Py_None); | |
1873 | _resultobj = Py_None; | |
1874 | } | |
8ab979d7 RD |
1875 | return _resultobj; |
1876 | } | |
1877 | ||
1afc06c2 RD |
1878 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1879 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1880 | PyObject * _resultobj; | |
1881 | wxEvtHandler * _result; | |
1882 | wxWindow * _arg0; | |
1883 | PyObject * _argo0 = 0; | |
1884 | char *_kwnames[] = { "self", NULL }; | |
1afc06c2 RD |
1885 | |
1886 | self = self; | |
1887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1888 | return NULL; | |
1889 | if (_argo0) { | |
1890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1893 | return NULL; | |
1894 | } | |
1895 | } | |
1896 | { | |
474c48f9 | 1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1898 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); |
1afc06c2 | 1899 | |
474c48f9 | 1900 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1901 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1902 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
1903 | return _resultobj; |
1904 | } | |
1905 | ||
8ab979d7 | 1906 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
efc5f224 | 1907 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1908 | PyObject * _resultobj; |
1909 | wxFont * _result; | |
1910 | wxWindow * _arg0; | |
1d99702e | 1911 | PyObject * _argo0 = 0; |
efc5f224 | 1912 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1913 | char _ptemp[128]; |
1914 | ||
1915 | self = self; | |
efc5f224 | 1916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
8ab979d7 | 1917 | return NULL; |
1d99702e RD |
1918 | if (_argo0) { |
1919 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1920 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1921 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1922 | return NULL; | |
1923 | } | |
1924 | } | |
cf694132 | 1925 | { |
474c48f9 | 1926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1927 | _result = new wxFont (wxWindow_GetFont(_arg0)); |
cf694132 | 1928 | |
474c48f9 | 1929 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1930 | if (PyErr_Occurred()) return NULL; |
3e212503 RD |
1931 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); |
1932 | _resultobj = Py_BuildValue("s",_ptemp); | |
8ab979d7 RD |
1933 | return _resultobj; |
1934 | } | |
1935 | ||
1936 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
efc5f224 | 1937 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1938 | PyObject * _resultobj; |
1939 | wxColour * _result; | |
1940 | wxWindow * _arg0; | |
1d99702e | 1941 | PyObject * _argo0 = 0; |
efc5f224 | 1942 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1943 | char _ptemp[128]; |
1944 | ||
1945 | self = self; | |
efc5f224 | 1946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
8ab979d7 | 1947 | return NULL; |
1d99702e RD |
1948 | if (_argo0) { |
1949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1952 | return NULL; | |
1953 | } | |
1954 | } | |
cf694132 | 1955 | { |
474c48f9 | 1956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1957 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); |
cf694132 | 1958 | |
474c48f9 | 1959 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1960 | if (PyErr_Occurred()) return NULL; |
cf694132 | 1961 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); |
8ab979d7 RD |
1962 | _resultobj = Py_BuildValue("s",_ptemp); |
1963 | return _resultobj; | |
1964 | } | |
1965 | ||
1966 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
efc5f224 | 1967 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
1968 | PyObject * _resultobj; |
1969 | wxWindow * _result; | |
1970 | wxWindow * _arg0; | |
1d99702e | 1971 | PyObject * _argo0 = 0; |
efc5f224 | 1972 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
1973 | |
1974 | self = self; | |
efc5f224 | 1975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
8ab979d7 | 1976 | return NULL; |
1d99702e RD |
1977 | if (_argo0) { |
1978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
1980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1981 | return NULL; | |
1982 | } | |
1983 | } | |
cf694132 | 1984 | { |
474c48f9 | 1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1986 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); |
cf694132 | 1987 | |
474c48f9 | 1988 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 1989 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 1990 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
1991 | return _resultobj; |
1992 | } | |
1993 | ||
2abc0a0f | 1994 | static long wxWindow_GetHandle(wxWindow *self) { |
1b55cabf | 1995 | return wxPyGetWinHandle(self); //(long)self->GetHandle(); |
2abc0a0f RD |
1996 | } |
1997 | static PyObject *_wrap_wxWindow_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1998 | PyObject * _resultobj; | |
1999 | long _result; | |
2000 | wxWindow * _arg0; | |
2001 | PyObject * _argo0 = 0; | |
2002 | char *_kwnames[] = { "self", NULL }; | |
2003 | ||
2004 | self = self; | |
2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHandle",_kwnames,&_argo0)) | |
2006 | return NULL; | |
2007 | if (_argo0) { | |
2008 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2009 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2010 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHandle. Expected _wxWindow_p."); | |
2011 | return NULL; | |
2012 | } | |
2013 | } | |
2014 | { | |
474c48f9 | 2015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2016 | _result = (long )wxWindow_GetHandle(_arg0); |
2abc0a0f | 2017 | |
474c48f9 | 2018 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2019 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
2020 | } _resultobj = Py_BuildValue("l",_result); |
2021 | return _resultobj; | |
2022 | } | |
2023 | ||
8ab979d7 | 2024 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) |
efc5f224 | 2025 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2026 | PyObject * _resultobj; |
2027 | int _result; | |
2028 | wxWindow * _arg0; | |
1d99702e | 2029 | PyObject * _argo0 = 0; |
efc5f224 | 2030 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2031 | |
2032 | self = self; | |
efc5f224 | 2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
8ab979d7 | 2034 | return NULL; |
1d99702e RD |
2035 | if (_argo0) { |
2036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
2039 | return NULL; | |
2040 | } | |
2041 | } | |
cf694132 | 2042 | { |
474c48f9 | 2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2044 | _result = (int )wxWindow_GetId(_arg0); |
cf694132 | 2045 | |
474c48f9 | 2046 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2047 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2048 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2049 | return _resultobj; |
2050 | } | |
2051 | ||
8ab979d7 | 2052 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
efc5f224 | 2053 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2054 | PyObject * _resultobj; |
2055 | wxString * _result; | |
2056 | wxWindow * _arg0; | |
1d99702e | 2057 | PyObject * _argo0 = 0; |
efc5f224 | 2058 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2059 | |
2060 | self = self; | |
efc5f224 | 2061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 2062 | return NULL; |
1d99702e RD |
2063 | if (_argo0) { |
2064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
2067 | return NULL; | |
2068 | } | |
2069 | } | |
8ab979d7 | 2070 | { |
474c48f9 | 2071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2072 | _result = new wxString (wxWindow_GetLabel(_arg0)); |
cf694132 | 2073 | |
474c48f9 | 2074 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2075 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2076 | }{ |
c8bc7bb8 RD |
2077 | #if wxUSE_UNICODE |
2078 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2079 | #else | |
eec92d76 | 2080 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2081 | #endif |
8ab979d7 RD |
2082 | } |
2083 | { | |
2084 | delete _result; | |
2085 | } | |
2086 | return _resultobj; | |
2087 | } | |
2088 | ||
bb0054cd | 2089 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
efc5f224 | 2090 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2091 | PyObject * _resultobj; |
2092 | wxWindow * _arg0; | |
2093 | wxString * _arg1; | |
1d99702e | 2094 | PyObject * _argo0 = 0; |
bb0054cd | 2095 | PyObject * _obj1 = 0; |
efc5f224 | 2096 | char *_kwnames[] = { "self","label", NULL }; |
bb0054cd RD |
2097 | |
2098 | self = self; | |
efc5f224 | 2099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
bb0054cd | 2100 | return NULL; |
1d99702e RD |
2101 | if (_argo0) { |
2102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
2105 | return NULL; | |
2106 | } | |
2107 | } | |
2108 | { | |
c8bc7bb8 RD |
2109 | _arg1 = wxString_in_helper(_obj1); |
2110 | if (_arg1 == NULL) | |
bb0054cd | 2111 | return NULL; |
bb0054cd RD |
2112 | } |
2113 | { | |
474c48f9 | 2114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2115 | wxWindow_SetLabel(_arg0,*_arg1); |
bb0054cd | 2116 | |
474c48f9 | 2117 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2118 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2119 | } Py_INCREF(Py_None); |
2120 | _resultobj = Py_None; | |
2121 | { | |
2122 | if (_obj1) | |
2123 | delete _arg1; | |
2124 | } | |
2125 | return _resultobj; | |
2126 | } | |
2127 | ||
8ab979d7 | 2128 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
efc5f224 | 2129 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2130 | PyObject * _resultobj; |
2131 | wxString * _result; | |
2132 | wxWindow * _arg0; | |
1d99702e | 2133 | PyObject * _argo0 = 0; |
efc5f224 | 2134 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2135 | |
2136 | self = self; | |
efc5f224 | 2137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
8ab979d7 | 2138 | return NULL; |
1d99702e RD |
2139 | if (_argo0) { |
2140 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2141 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2142 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
2143 | return NULL; | |
2144 | } | |
2145 | } | |
8ab979d7 | 2146 | { |
474c48f9 | 2147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2148 | _result = new wxString (wxWindow_GetName(_arg0)); |
cf694132 | 2149 | |
474c48f9 | 2150 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2151 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2152 | }{ |
c8bc7bb8 RD |
2153 | #if wxUSE_UNICODE |
2154 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2155 | #else | |
eec92d76 | 2156 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2157 | #endif |
8ab979d7 RD |
2158 | } |
2159 | { | |
2160 | delete _result; | |
2161 | } | |
2162 | return _resultobj; | |
2163 | } | |
2164 | ||
2165 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
efc5f224 | 2166 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2167 | PyObject * _resultobj; |
2168 | wxWindow * _result; | |
2169 | wxWindow * _arg0; | |
1d99702e | 2170 | PyObject * _argo0 = 0; |
efc5f224 | 2171 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2172 | |
2173 | self = self; | |
efc5f224 | 2174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 2175 | return NULL; |
1d99702e RD |
2176 | if (_argo0) { |
2177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
2180 | return NULL; | |
2181 | } | |
2182 | } | |
cf694132 | 2183 | { |
474c48f9 | 2184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2185 | _result = (wxWindow *)wxWindow_GetParent(_arg0); |
cf694132 | 2186 | |
474c48f9 | 2187 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2188 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 2189 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
2190 | return _resultobj; |
2191 | } | |
2192 | ||
b8b8dda7 | 2193 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
efc5f224 | 2194 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2195 | PyObject * _resultobj; |
2196 | wxWindow * _arg0; | |
2197 | int * _arg1; | |
2198 | int temp; | |
2199 | int * _arg2; | |
2200 | int temp0; | |
1d99702e | 2201 | PyObject * _argo0 = 0; |
efc5f224 | 2202 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2203 | |
2204 | self = self; | |
2205 | { | |
2206 | _arg1 = &temp; | |
2207 | } | |
2208 | { | |
2209 | _arg2 = &temp0; | |
2210 | } | |
efc5f224 | 2211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
b8b8dda7 | 2212 | return NULL; |
1d99702e RD |
2213 | if (_argo0) { |
2214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
2217 | return NULL; | |
2218 | } | |
2219 | } | |
cf694132 | 2220 | { |
474c48f9 | 2221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2222 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); |
cf694132 | 2223 | |
474c48f9 | 2224 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2225 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2226 | } Py_INCREF(Py_None); |
b8b8dda7 RD |
2227 | _resultobj = Py_None; |
2228 | { | |
2229 | PyObject *o; | |
2230 | o = PyInt_FromLong((long) (*_arg1)); | |
2231 | _resultobj = t_output_helper(_resultobj, o); | |
2232 | } | |
2233 | { | |
2234 | PyObject *o; | |
2235 | o = PyInt_FromLong((long) (*_arg2)); | |
2236 | _resultobj = t_output_helper(_resultobj, o); | |
2237 | } | |
2238 | return _resultobj; | |
2239 | } | |
2240 | ||
2241 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
efc5f224 | 2242 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2243 | PyObject * _resultobj; |
2244 | wxPoint * _result; | |
2245 | wxWindow * _arg0; | |
1d99702e | 2246 | PyObject * _argo0 = 0; |
efc5f224 | 2247 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2248 | char _ptemp[128]; |
2249 | ||
2250 | self = self; | |
efc5f224 | 2251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
b8b8dda7 | 2252 | return NULL; |
1d99702e RD |
2253 | if (_argo0) { |
2254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
2257 | return NULL; | |
2258 | } | |
2259 | } | |
cf694132 | 2260 | { |
474c48f9 | 2261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2262 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); |
cf694132 | 2263 | |
474c48f9 | 2264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2265 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2266 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
2267 | _resultobj = Py_BuildValue("s",_ptemp); |
2268 | return _resultobj; | |
2269 | } | |
2270 | ||
2271 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
efc5f224 | 2272 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2273 | PyObject * _resultobj; |
2274 | wxRect * _result; | |
2275 | wxWindow * _arg0; | |
1d99702e | 2276 | PyObject * _argo0 = 0; |
efc5f224 | 2277 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2278 | char _ptemp[128]; |
2279 | ||
2280 | self = self; | |
efc5f224 | 2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
b8b8dda7 | 2282 | return NULL; |
1d99702e RD |
2283 | if (_argo0) { |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
2287 | return NULL; | |
2288 | } | |
2289 | } | |
cf694132 | 2290 | { |
474c48f9 | 2291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2292 | _result = new wxRect (wxWindow_GetRect(_arg0)); |
cf694132 | 2293 | |
474c48f9 | 2294 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2295 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2296 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
b8b8dda7 RD |
2297 | _resultobj = Py_BuildValue("s",_ptemp); |
2298 | return _resultobj; | |
2299 | } | |
2300 | ||
8ab979d7 | 2301 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
efc5f224 | 2302 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2303 | PyObject * _resultobj; |
2304 | int _result; | |
2305 | wxWindow * _arg0; | |
2306 | int _arg1; | |
1d99702e | 2307 | PyObject * _argo0 = 0; |
efc5f224 | 2308 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2309 | |
2310 | self = self; | |
efc5f224 | 2311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2312 | return NULL; |
1d99702e RD |
2313 | if (_argo0) { |
2314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
2317 | return NULL; | |
2318 | } | |
2319 | } | |
cf694132 | 2320 | { |
474c48f9 | 2321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2322 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); |
cf694132 | 2323 | |
474c48f9 | 2324 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2325 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2326 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2327 | return _resultobj; |
2328 | } | |
2329 | ||
2330 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
efc5f224 | 2331 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2332 | PyObject * _resultobj; |
2333 | int _result; | |
2334 | wxWindow * _arg0; | |
2335 | int _arg1; | |
1d99702e | 2336 | PyObject * _argo0 = 0; |
efc5f224 | 2337 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2338 | |
2339 | self = self; | |
efc5f224 | 2340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2341 | return NULL; |
1d99702e RD |
2342 | if (_argo0) { |
2343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
2346 | return NULL; | |
2347 | } | |
2348 | } | |
cf694132 | 2349 | { |
474c48f9 | 2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2351 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); |
cf694132 | 2352 | |
474c48f9 | 2353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2354 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2355 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2356 | return _resultobj; |
2357 | } | |
2358 | ||
2359 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
efc5f224 | 2360 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2361 | PyObject * _resultobj; |
2362 | int _result; | |
2363 | wxWindow * _arg0; | |
2364 | int _arg1; | |
1d99702e | 2365 | PyObject * _argo0 = 0; |
efc5f224 | 2366 | char *_kwnames[] = { "self","orientation", NULL }; |
8ab979d7 RD |
2367 | |
2368 | self = self; | |
efc5f224 | 2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 2370 | return NULL; |
1d99702e RD |
2371 | if (_argo0) { |
2372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
2375 | return NULL; | |
2376 | } | |
2377 | } | |
cf694132 | 2378 | { |
474c48f9 | 2379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2380 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); |
cf694132 | 2381 | |
474c48f9 | 2382 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2383 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2384 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2385 | return _resultobj; |
2386 | } | |
2387 | ||
b8b8dda7 | 2388 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
efc5f224 | 2389 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2390 | PyObject * _resultobj; |
2391 | wxWindow * _arg0; | |
2392 | int * _arg1; | |
2393 | int temp; | |
2394 | int * _arg2; | |
2395 | int temp0; | |
1d99702e | 2396 | PyObject * _argo0 = 0; |
efc5f224 | 2397 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2398 | |
2399 | self = self; | |
2400 | { | |
2401 | _arg1 = &temp; | |
2402 | } | |
2403 | { | |
2404 | _arg2 = &temp0; | |
2405 | } | |
efc5f224 | 2406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
8ab979d7 | 2407 | return NULL; |
1d99702e RD |
2408 | if (_argo0) { |
2409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 | 2411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
8ab979d7 RD |
2412 | return NULL; |
2413 | } | |
2414 | } | |
cf694132 | 2415 | { |
474c48f9 | 2416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2417 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); |
cf694132 | 2418 | |
474c48f9 | 2419 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2420 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2421 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2422 | _resultobj = Py_None; |
2423 | { | |
2424 | PyObject *o; | |
2425 | o = PyInt_FromLong((long) (*_arg1)); | |
2426 | _resultobj = t_output_helper(_resultobj, o); | |
2427 | } | |
2428 | { | |
2429 | PyObject *o; | |
2430 | o = PyInt_FromLong((long) (*_arg2)); | |
2431 | _resultobj = t_output_helper(_resultobj, o); | |
2432 | } | |
2433 | return _resultobj; | |
2434 | } | |
2435 | ||
b8b8dda7 | 2436 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
efc5f224 | 2437 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
2438 | PyObject * _resultobj; |
2439 | wxSize * _result; | |
2440 | wxWindow * _arg0; | |
1d99702e | 2441 | PyObject * _argo0 = 0; |
efc5f224 | 2442 | char *_kwnames[] = { "self", NULL }; |
b8b8dda7 RD |
2443 | char _ptemp[128]; |
2444 | ||
2445 | self = self; | |
efc5f224 | 2446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
b8b8dda7 | 2447 | return NULL; |
1d99702e RD |
2448 | if (_argo0) { |
2449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
2451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
2452 | return NULL; | |
2453 | } | |
2454 | } | |
cf694132 | 2455 | { |
474c48f9 | 2456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2457 | _result = new wxSize (wxWindow_GetSize(_arg0)); |
cf694132 | 2458 | |
474c48f9 | 2459 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2460 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2461 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
2462 | _resultobj = Py_BuildValue("s",_ptemp); |
2463 | return _resultobj; | |
2464 | } | |
2465 | ||
8ab979d7 | 2466 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 2467 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2468 | PyObject * _resultobj; |
2469 | wxWindow * _arg0; | |
2470 | wxString * _arg1; | |
2471 | int * _arg2; | |
2472 | int temp; | |
2473 | int * _arg3; | |
2474 | int temp0; | |
1d99702e | 2475 | PyObject * _argo0 = 0; |
8ab979d7 | 2476 | PyObject * _obj1 = 0; |
efc5f224 | 2477 | char *_kwnames[] = { "self","string", NULL }; |
8ab979d7 RD |
2478 | |
2479 | self = self; | |
2480 | { | |
2481 | _arg2 = &temp; | |
2482 | } | |
2483 | { | |
2484 | _arg3 = &temp0; | |
2485 | } | |
efc5f224 | 2486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 2487 | return NULL; |
1d99702e RD |
2488 | if (_argo0) { |
2489 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2490 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2491 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2492 | return NULL; | |
2493 | } | |
2494 | } | |
2495 | { | |
c8bc7bb8 RD |
2496 | _arg1 = wxString_in_helper(_obj1); |
2497 | if (_arg1 == NULL) | |
8ab979d7 | 2498 | return NULL; |
8ab979d7 | 2499 | } |
cf694132 | 2500 | { |
474c48f9 | 2501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2502 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); |
cf694132 | 2503 | |
474c48f9 | 2504 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2505 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2506 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2507 | _resultobj = Py_None; |
2508 | { | |
2509 | PyObject *o; | |
2510 | o = PyInt_FromLong((long) (*_arg2)); | |
2511 | _resultobj = t_output_helper(_resultobj, o); | |
2512 | } | |
2513 | { | |
2514 | PyObject *o; | |
2515 | o = PyInt_FromLong((long) (*_arg3)); | |
2516 | _resultobj = t_output_helper(_resultobj, o); | |
2517 | } | |
2518 | { | |
2519 | if (_obj1) | |
2520 | delete _arg1; | |
2521 | } | |
2522 | return _resultobj; | |
2523 | } | |
2524 | ||
af309447 | 2525 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 2526 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
2527 | PyObject * _resultobj; |
2528 | wxWindow * _arg0; | |
2529 | wxString * _arg1; | |
2530 | int * _arg2; | |
2531 | int temp; | |
2532 | int * _arg3; | |
2533 | int temp0; | |
2534 | int * _arg4; | |
2535 | int temp1; | |
2536 | int * _arg5; | |
2537 | int temp2; | |
1d99702e RD |
2538 | wxFont * _arg6 = (wxFont *) NULL; |
2539 | PyObject * _argo0 = 0; | |
af309447 | 2540 | PyObject * _obj1 = 0; |
1d99702e | 2541 | PyObject * _argo6 = 0; |
efc5f224 | 2542 | char *_kwnames[] = { "self","string","font", NULL }; |
af309447 RD |
2543 | |
2544 | self = self; | |
2545 | { | |
2546 | _arg2 = &temp; | |
2547 | } | |
2548 | { | |
2549 | _arg3 = &temp0; | |
2550 | } | |
2551 | { | |
2552 | _arg4 = &temp1; | |
2553 | } | |
2554 | { | |
2555 | _arg5 = &temp2; | |
2556 | } | |
efc5f224 | 2557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
af309447 | 2558 | return NULL; |
1d99702e RD |
2559 | if (_argo0) { |
2560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
2562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2563 | return NULL; | |
2564 | } | |
2565 | } | |
2566 | { | |
c8bc7bb8 RD |
2567 | _arg1 = wxString_in_helper(_obj1); |
2568 | if (_arg1 == NULL) | |
af309447 | 2569 | return NULL; |
af309447 | 2570 | } |
1d99702e RD |
2571 | if (_argo6) { |
2572 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2573 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
af309447 RD |
2574 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2575 | return NULL; | |
2576 | } | |
2577 | } | |
cf694132 | 2578 | { |
474c48f9 | 2579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2580 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 2581 | |
474c48f9 | 2582 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2583 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2584 | } Py_INCREF(Py_None); |
af309447 RD |
2585 | _resultobj = Py_None; |
2586 | { | |
2587 | PyObject *o; | |
2588 | o = PyInt_FromLong((long) (*_arg2)); | |
2589 | _resultobj = t_output_helper(_resultobj, o); | |
2590 | } | |
2591 | { | |
2592 | PyObject *o; | |
2593 | o = PyInt_FromLong((long) (*_arg3)); | |
2594 | _resultobj = t_output_helper(_resultobj, o); | |
2595 | } | |
2596 | { | |
2597 | PyObject *o; | |
2598 | o = PyInt_FromLong((long) (*_arg4)); | |
2599 | _resultobj = t_output_helper(_resultobj, o); | |
2600 | } | |
2601 | { | |
2602 | PyObject *o; | |
2603 | o = PyInt_FromLong((long) (*_arg5)); | |
2604 | _resultobj = t_output_helper(_resultobj, o); | |
2605 | } | |
2606 | { | |
2607 | if (_obj1) | |
2608 | delete _arg1; | |
2609 | } | |
2610 | return _resultobj; | |
2611 | } | |
2612 | ||
8ab979d7 | 2613 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 2614 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2615 | PyObject * _resultobj; |
2616 | wxString * _result; | |
2617 | wxWindow * _arg0; | |
1d99702e | 2618 | PyObject * _argo0 = 0; |
efc5f224 | 2619 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2620 | |
2621 | self = self; | |
efc5f224 | 2622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 2623 | return NULL; |
1d99702e RD |
2624 | if (_argo0) { |
2625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2628 | return NULL; | |
2629 | } | |
2630 | } | |
8ab979d7 | 2631 | { |
474c48f9 | 2632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2633 | _result = new wxString (wxWindow_GetTitle(_arg0)); |
cf694132 | 2634 | |
474c48f9 | 2635 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2636 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2637 | }{ |
c8bc7bb8 RD |
2638 | #if wxUSE_UNICODE |
2639 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2640 | #else | |
eec92d76 | 2641 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2642 | #endif |
8ab979d7 RD |
2643 | } |
2644 | { | |
2645 | delete _result; | |
2646 | } | |
2647 | return _resultobj; | |
2648 | } | |
2649 | ||
8bf5d46e | 2650 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
efc5f224 | 2651 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2652 | PyObject * _resultobj; |
2653 | wxRegion * _result; | |
2654 | wxWindow * _arg0; | |
1d99702e | 2655 | PyObject * _argo0 = 0; |
efc5f224 | 2656 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2657 | char _ptemp[128]; |
2658 | ||
2659 | self = self; | |
efc5f224 | 2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2661 | return NULL; |
1d99702e RD |
2662 | if (_argo0) { |
2663 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2664 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2665 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2666 | return NULL; | |
2667 | } | |
2668 | } | |
2669 | { | |
474c48f9 | 2670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2671 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); |
8bf5d46e | 2672 | |
474c48f9 | 2673 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2674 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
2675 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); |
2676 | _resultobj = Py_BuildValue("s",_ptemp); | |
2677 | return _resultobj; | |
2678 | } | |
2679 | ||
8ab979d7 | 2680 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
efc5f224 | 2681 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2682 | PyObject * _resultobj; |
2683 | long _result; | |
2684 | wxWindow * _arg0; | |
1d99702e | 2685 | PyObject * _argo0 = 0; |
efc5f224 | 2686 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2687 | |
2688 | self = self; | |
efc5f224 | 2689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
8ab979d7 | 2690 | return NULL; |
1d99702e RD |
2691 | if (_argo0) { |
2692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2695 | return NULL; | |
2696 | } | |
2697 | } | |
cf694132 | 2698 | { |
474c48f9 | 2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2700 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); |
cf694132 | 2701 | |
474c48f9 | 2702 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2703 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2704 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
2705 | return _resultobj; |
2706 | } | |
2707 | ||
f6bcfd97 BP |
2708 | #define wxWindow_SetWindowStyleFlag(_swigobj,_swigarg0) (_swigobj->SetWindowStyleFlag(_swigarg0)) |
2709 | static PyObject *_wrap_wxWindow_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject * _resultobj; | |
2711 | wxWindow * _arg0; | |
2712 | long _arg1; | |
2713 | PyObject * _argo0 = 0; | |
2714 | char *_kwnames[] = { "self","style", NULL }; | |
2715 | ||
2716 | self = self; | |
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyleFlag",_kwnames,&_argo0,&_arg1)) | |
2718 | return NULL; | |
2719 | if (_argo0) { | |
2720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyleFlag. Expected _wxWindow_p."); | |
2723 | return NULL; | |
2724 | } | |
2725 | } | |
2726 | { | |
474c48f9 | 2727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2728 | wxWindow_SetWindowStyleFlag(_arg0,_arg1); |
f6bcfd97 | 2729 | |
474c48f9 | 2730 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2731 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2732 | } Py_INCREF(Py_None); |
2733 | _resultobj = Py_None; | |
2734 | return _resultobj; | |
2735 | } | |
2736 | ||
2737 | #define wxWindow_SetWindowStyle(_swigobj,_swigarg0) (_swigobj->SetWindowStyle(_swigarg0)) | |
2738 | static PyObject *_wrap_wxWindow_SetWindowStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2739 | PyObject * _resultobj; | |
2740 | wxWindow * _arg0; | |
2741 | long _arg1; | |
2742 | PyObject * _argo0 = 0; | |
2743 | char *_kwnames[] = { "self","style", NULL }; | |
2744 | ||
2745 | self = self; | |
2746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetWindowStyle",_kwnames,&_argo0,&_arg1)) | |
2747 | return NULL; | |
2748 | if (_argo0) { | |
2749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetWindowStyle. Expected _wxWindow_p."); | |
2752 | return NULL; | |
2753 | } | |
2754 | } | |
2755 | { | |
474c48f9 | 2756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2757 | wxWindow_SetWindowStyle(_arg0,_arg1); |
f6bcfd97 | 2758 | |
474c48f9 | 2759 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2760 | if (PyErr_Occurred()) return NULL; |
f6bcfd97 BP |
2761 | } Py_INCREF(Py_None); |
2762 | _resultobj = Py_None; | |
2763 | return _resultobj; | |
2764 | } | |
2765 | ||
8cb49012 RD |
2766 | #define wxWindow_HasScrollbar(_swigobj,_swigarg0) (_swigobj->HasScrollbar(_swigarg0)) |
2767 | static PyObject *_wrap_wxWindow_HasScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2768 | PyObject * _resultobj; | |
2769 | bool _result; | |
2770 | wxWindow * _arg0; | |
2771 | int _arg1; | |
2772 | PyObject * _argo0 = 0; | |
2773 | char *_kwnames[] = { "self","orient", NULL }; | |
2774 | ||
2775 | self = self; | |
2776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_HasScrollbar",_kwnames,&_argo0,&_arg1)) | |
2777 | return NULL; | |
2778 | if (_argo0) { | |
2779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HasScrollbar. Expected _wxWindow_p."); | |
2782 | return NULL; | |
2783 | } | |
2784 | } | |
2785 | { | |
2786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2787 | _result = (bool )wxWindow_HasScrollbar(_arg0,_arg1); |
8cb49012 RD |
2788 | |
2789 | wxPyEndAllowThreads(__tstate); | |
2790 | if (PyErr_Occurred()) return NULL; | |
2791 | } _resultobj = Py_BuildValue("i",_result); | |
2792 | return _resultobj; | |
2793 | } | |
2794 | ||
bb0054cd | 2795 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
efc5f224 | 2796 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
2797 | PyObject * _resultobj; |
2798 | bool _result; | |
2799 | wxWindow * _arg0; | |
1d99702e | 2800 | PyObject * _argo0 = 0; |
efc5f224 | 2801 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
2802 | |
2803 | self = self; | |
efc5f224 | 2804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
bb0054cd | 2805 | return NULL; |
1d99702e RD |
2806 | if (_argo0) { |
2807 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2808 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
2809 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2810 | return NULL; | |
2811 | } | |
2812 | } | |
2813 | { | |
474c48f9 | 2814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2815 | _result = (bool )wxWindow_Hide(_arg0); |
bb0054cd | 2816 | |
474c48f9 | 2817 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2818 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
2819 | } _resultobj = Py_BuildValue("i",_result); |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
8cb49012 RD |
2823 | #define wxWindow_HitTest(_swigobj,_swigarg0) (_swigobj->HitTest(_swigarg0)) |
2824 | static PyObject *_wrap_wxWindow_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | wxHitTest _result; | |
2827 | wxWindow * _arg0; | |
2828 | wxPoint * _arg1; | |
2829 | PyObject * _argo0 = 0; | |
2830 | wxPoint temp; | |
2831 | PyObject * _obj1 = 0; | |
2832 | char *_kwnames[] = { "self","pt", NULL }; | |
2833 | ||
2834 | self = self; | |
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_HitTest",_kwnames,&_argo0,&_obj1)) | |
2836 | return NULL; | |
2837 | if (_argo0) { | |
2838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_HitTest. Expected _wxWindow_p."); | |
2841 | return NULL; | |
2842 | } | |
2843 | } | |
2844 | { | |
2845 | _arg1 = &temp; | |
2846 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2847 | return NULL; | |
2848 | } | |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2851 | _result = (wxHitTest )wxWindow_HitTest(_arg0,*_arg1); |
8cb49012 RD |
2852 | |
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) return NULL; | |
2855 | } _resultobj = Py_BuildValue("i",_result); | |
2856 | return _resultobj; | |
2857 | } | |
2858 | ||
8ab979d7 | 2859 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 2860 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2861 | PyObject * _resultobj; |
2862 | wxWindow * _arg0; | |
1d99702e | 2863 | PyObject * _argo0 = 0; |
efc5f224 | 2864 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2865 | |
2866 | self = self; | |
efc5f224 | 2867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 2868 | return NULL; |
1d99702e RD |
2869 | if (_argo0) { |
2870 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2871 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2872 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2873 | return NULL; | |
2874 | } | |
2875 | } | |
cf694132 | 2876 | { |
474c48f9 | 2877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2878 | wxWindow_InitDialog(_arg0); |
cf694132 | 2879 | |
474c48f9 | 2880 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2881 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2882 | } Py_INCREF(Py_None); |
8ab979d7 RD |
2883 | _resultobj = Py_None; |
2884 | return _resultobj; | |
2885 | } | |
2886 | ||
2887 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
efc5f224 | 2888 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
2889 | PyObject * _resultobj; |
2890 | bool _result; | |
2891 | wxWindow * _arg0; | |
1d99702e | 2892 | PyObject * _argo0 = 0; |
efc5f224 | 2893 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
2894 | |
2895 | self = self; | |
efc5f224 | 2896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
8ab979d7 | 2897 | return NULL; |
1d99702e RD |
2898 | if (_argo0) { |
2899 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2900 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
2901 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2902 | return NULL; | |
2903 | } | |
2904 | } | |
cf694132 | 2905 | { |
474c48f9 | 2906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2907 | _result = (bool )wxWindow_IsEnabled(_arg0); |
cf694132 | 2908 | |
474c48f9 | 2909 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2910 | if (PyErr_Occurred()) return NULL; |
cf694132 | 2911 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
2912 | return _resultobj; |
2913 | } | |
2914 | ||
1b55cabf RD |
2915 | #define wxWindow_IsExposed(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->IsExposed(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
2916 | static PyObject *_wrap_wxWindow_IsExposed(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2917 | PyObject * _resultobj; | |
2918 | bool _result; | |
2919 | wxWindow * _arg0; | |
2920 | int _arg1; | |
2921 | int _arg2; | |
2922 | int _arg3 = (int ) 0; | |
2923 | int _arg4 = (int ) 0; | |
2924 | PyObject * _argo0 = 0; | |
2925 | char *_kwnames[] = { "self","x","y","w","h", NULL }; | |
2926 | ||
2927 | self = self; | |
2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|ii:wxWindow_IsExposed",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4)) | |
2929 | return NULL; | |
2930 | if (_argo0) { | |
2931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposed. Expected _wxWindow_p."); | |
2934 | return NULL; | |
2935 | } | |
2936 | } | |
2937 | { | |
474c48f9 | 2938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2939 | _result = (bool )wxWindow_IsExposed(_arg0,_arg1,_arg2,_arg3,_arg4); |
1b55cabf | 2940 | |
474c48f9 | 2941 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2942 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2943 | } _resultobj = Py_BuildValue("i",_result); |
2944 | return _resultobj; | |
2945 | } | |
2946 | ||
2947 | #define wxWindow_IsExposedPoint(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2948 | static PyObject *_wrap_wxWindow_IsExposedPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2949 | PyObject * _resultobj; | |
2950 | bool _result; | |
2951 | wxWindow * _arg0; | |
2952 | wxPoint * _arg1; | |
2953 | PyObject * _argo0 = 0; | |
2954 | wxPoint temp; | |
2955 | PyObject * _obj1 = 0; | |
2956 | char *_kwnames[] = { "self","pt", NULL }; | |
2957 | ||
2958 | self = self; | |
2959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedPoint",_kwnames,&_argo0,&_obj1)) | |
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_IsExposedPoint. Expected _wxWindow_p."); | |
2965 | return NULL; | |
2966 | } | |
2967 | } | |
2968 | { | |
2969 | _arg1 = &temp; | |
2970 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2971 | return NULL; | |
2972 | } | |
2973 | { | |
474c48f9 | 2974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2975 | _result = (bool )wxWindow_IsExposedPoint(_arg0,*_arg1); |
1b55cabf | 2976 | |
474c48f9 | 2977 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 2978 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
2979 | } _resultobj = Py_BuildValue("i",_result); |
2980 | return _resultobj; | |
2981 | } | |
2982 | ||
2983 | #define wxWindow_IsExposedRect(_swigobj,_swigarg0) (_swigobj->IsExposed(_swigarg0)) | |
2984 | static PyObject *_wrap_wxWindow_IsExposedRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2985 | PyObject * _resultobj; | |
2986 | bool _result; | |
2987 | wxWindow * _arg0; | |
2988 | wxRect * _arg1; | |
2989 | PyObject * _argo0 = 0; | |
2990 | wxRect temp; | |
2991 | PyObject * _obj1 = 0; | |
2992 | char *_kwnames[] = { "self","rect", NULL }; | |
2993 | ||
2994 | self = self; | |
2995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_IsExposedRect",_kwnames,&_argo0,&_obj1)) | |
2996 | return NULL; | |
2997 | if (_argo0) { | |
2998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsExposedRect. Expected _wxWindow_p."); | |
3001 | return NULL; | |
3002 | } | |
3003 | } | |
3004 | { | |
3005 | _arg1 = &temp; | |
3006 | if (! wxRect_helper(_obj1, &_arg1)) | |
3007 | return NULL; | |
3008 | } | |
3009 | { | |
474c48f9 | 3010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3011 | _result = (bool )wxWindow_IsExposedRect(_arg0,*_arg1); |
1b55cabf | 3012 | |
474c48f9 | 3013 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3014 | if (PyErr_Occurred()) return NULL; |
1b55cabf RD |
3015 | } _resultobj = Py_BuildValue("i",_result); |
3016 | return _resultobj; | |
3017 | } | |
3018 | ||
8ab979d7 | 3019 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) |
efc5f224 | 3020 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3021 | PyObject * _resultobj; |
3022 | bool _result; | |
3023 | wxWindow * _arg0; | |
1d99702e | 3024 | PyObject * _argo0 = 0; |
efc5f224 | 3025 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3026 | |
3027 | self = self; | |
efc5f224 | 3028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 3029 | return NULL; |
1d99702e RD |
3030 | if (_argo0) { |
3031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
3034 | return NULL; | |
3035 | } | |
3036 | } | |
cf694132 | 3037 | { |
474c48f9 | 3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3039 | _result = (bool )wxWindow_IsRetained(_arg0); |
cf694132 | 3040 | |
474c48f9 | 3041 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3042 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3043 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3044 | return _resultobj; |
3045 | } | |
3046 | ||
3047 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
efc5f224 | 3048 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3049 | PyObject * _resultobj; |
3050 | bool _result; | |
3051 | wxWindow * _arg0; | |
1d99702e | 3052 | PyObject * _argo0 = 0; |
efc5f224 | 3053 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3054 | |
3055 | self = self; | |
efc5f224 | 3056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
8ab979d7 | 3057 | return NULL; |
1d99702e RD |
3058 | if (_argo0) { |
3059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
3062 | return NULL; | |
3063 | } | |
3064 | } | |
cf694132 | 3065 | { |
474c48f9 | 3066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3067 | _result = (bool )wxWindow_IsShown(_arg0); |
cf694132 | 3068 | |
474c48f9 | 3069 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3070 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3071 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3072 | return _resultobj; |
3073 | } | |
3074 | ||
bb0054cd | 3075 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
efc5f224 | 3076 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3077 | PyObject * _resultobj; |
3078 | bool _result; | |
3079 | wxWindow * _arg0; | |
1d99702e | 3080 | PyObject * _argo0 = 0; |
efc5f224 | 3081 | char *_kwnames[] = { "self", NULL }; |
bb0054cd RD |
3082 | |
3083 | self = self; | |
efc5f224 | 3084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
bb0054cd | 3085 | return NULL; |
1d99702e RD |
3086 | if (_argo0) { |
3087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
3090 | return NULL; | |
3091 | } | |
3092 | } | |
3093 | { | |
474c48f9 | 3094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3095 | _result = (bool )wxWindow_IsTopLevel(_arg0); |
bb0054cd | 3096 | |
474c48f9 | 3097 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3098 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3099 | } _resultobj = Py_BuildValue("i",_result); |
3100 | return _resultobj; | |
3101 | } | |
3102 | ||
8ab979d7 | 3103 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
efc5f224 | 3104 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3105 | PyObject * _resultobj; |
3106 | wxWindow * _arg0; | |
1d99702e | 3107 | PyObject * _argo0 = 0; |
efc5f224 | 3108 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3109 | |
3110 | self = self; | |
efc5f224 | 3111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
8ab979d7 | 3112 | return NULL; |
1d99702e RD |
3113 | if (_argo0) { |
3114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
3117 | return NULL; | |
3118 | } | |
3119 | } | |
cf694132 | 3120 | { |
474c48f9 | 3121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3122 | wxWindow_Layout(_arg0); |
cf694132 | 3123 | |
474c48f9 | 3124 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3125 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3126 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3127 | _resultobj = Py_None; |
3128 | return _resultobj; | |
3129 | } | |
3130 | ||
3131 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 3132 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3133 | PyObject * _resultobj; |
3134 | bool _result; | |
3135 | wxWindow * _arg0; | |
3136 | wxWindow * _arg1; | |
3137 | wxString * _arg2; | |
1d99702e RD |
3138 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
3139 | PyObject * _argo0 = 0; | |
3140 | PyObject * _argo1 = 0; | |
8ab979d7 | 3141 | PyObject * _obj2 = 0; |
1d99702e | 3142 | PyObject * _argo3 = 0; |
efc5f224 | 3143 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
8ab979d7 RD |
3144 | |
3145 | self = self; | |
efc5f224 | 3146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
8ab979d7 | 3147 | return NULL; |
1d99702e RD |
3148 | if (_argo0) { |
3149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3152 | return NULL; | |
3153 | } | |
3154 | } | |
1d99702e RD |
3155 | if (_argo1) { |
3156 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3157 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8ab979d7 RD |
3158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
3159 | return NULL; | |
3160 | } | |
3161 | } | |
3162 | { | |
c8bc7bb8 RD |
3163 | _arg2 = wxString_in_helper(_obj2); |
3164 | if (_arg2 == NULL) | |
8ab979d7 | 3165 | return NULL; |
8ab979d7 | 3166 | } |
1d99702e RD |
3167 | if (_argo3) { |
3168 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3169 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
8ab979d7 RD |
3170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
3171 | return NULL; | |
3172 | } | |
3173 | } | |
cf694132 | 3174 | { |
474c48f9 | 3175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3176 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); |
cf694132 | 3177 | |
474c48f9 | 3178 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3179 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3180 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3181 | { |
3182 | if (_obj2) | |
3183 | delete _arg2; | |
3184 | } | |
3185 | return _resultobj; | |
3186 | } | |
3187 | ||
3188 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
efc5f224 | 3189 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3190 | PyObject * _resultobj; |
3191 | wxWindow * _arg0; | |
1d99702e | 3192 | PyObject * _argo0 = 0; |
efc5f224 | 3193 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3194 | |
3195 | self = self; | |
efc5f224 | 3196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
8ab979d7 | 3197 | return NULL; |
1d99702e RD |
3198 | if (_argo0) { |
3199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
3202 | return NULL; | |
3203 | } | |
3204 | } | |
cf694132 | 3205 | { |
474c48f9 | 3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3207 | wxWindow_Lower(_arg0); |
cf694132 | 3208 | |
474c48f9 | 3209 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3210 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3211 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3212 | _resultobj = Py_None; |
3213 | return _resultobj; | |
3214 | } | |
3215 | ||
3216 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
efc5f224 | 3217 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3218 | PyObject * _resultobj; |
3219 | wxWindow * _arg0; | |
65191ae8 | 3220 | bool _arg1 = (bool ) TRUE; |
1d99702e | 3221 | PyObject * _argo0 = 0; |
65191ae8 | 3222 | int tempbool1 = (int) TRUE; |
efc5f224 | 3223 | char *_kwnames[] = { "self","flag", NULL }; |
8ab979d7 RD |
3224 | |
3225 | self = self; | |
65191ae8 | 3226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3227 | return NULL; |
1d99702e RD |
3228 | if (_argo0) { |
3229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
3232 | return NULL; | |
3233 | } | |
3234 | } | |
3235 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3236 | { |
474c48f9 | 3237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3238 | wxWindow_MakeModal(_arg0,_arg1); |
cf694132 | 3239 | |
474c48f9 | 3240 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3241 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3242 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3243 | _resultobj = Py_None; |
3244 | return _resultobj; | |
3245 | } | |
3246 | ||
8cb49012 | 3247 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Move(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3248 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3249 | PyObject * _resultobj; |
3250 | wxWindow * _arg0; | |
3251 | int _arg1; | |
3252 | int _arg2; | |
8cb49012 | 3253 | int _arg3 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3254 | PyObject * _argo0 = 0; |
8cb49012 | 3255 | char *_kwnames[] = { "self","x","y","flags", NULL }; |
8ab979d7 RD |
3256 | |
3257 | self = self; | |
8cb49012 | 3258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3)) |
af309447 | 3259 | return NULL; |
1d99702e RD |
3260 | if (_argo0) { |
3261 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3262 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3263 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
3264 | return NULL; | |
3265 | } | |
3266 | } | |
cf694132 | 3267 | { |
474c48f9 | 3268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3269 | wxWindow_MoveXY(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3270 | |
474c48f9 | 3271 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3272 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3273 | } Py_INCREF(Py_None); |
af309447 RD |
3274 | _resultobj = Py_None; |
3275 | return _resultobj; | |
3276 | } | |
3277 | ||
8cb49012 | 3278 | #define wxWindow_Move(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
efc5f224 | 3279 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3280 | PyObject * _resultobj; |
3281 | wxWindow * _arg0; | |
3282 | wxPoint * _arg1; | |
8cb49012 | 3283 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 3284 | PyObject * _argo0 = 0; |
2f90df85 RD |
3285 | wxPoint temp; |
3286 | PyObject * _obj1 = 0; | |
8cb49012 | 3287 | char *_kwnames[] = { "self","point","flags", NULL }; |
af309447 RD |
3288 | |
3289 | self = self; | |
8cb49012 | 3290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_Move",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 3291 | return NULL; |
1d99702e RD |
3292 | if (_argo0) { |
3293 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3294 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3295 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
3296 | return NULL; | |
3297 | } | |
3298 | } | |
2f90df85 RD |
3299 | { |
3300 | _arg1 = &temp; | |
3301 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3302 | return NULL; |
2f90df85 | 3303 | } |
cf694132 | 3304 | { |
474c48f9 | 3305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3306 | wxWindow_Move(_arg0,*_arg1,_arg2); |
cf694132 | 3307 | |
474c48f9 | 3308 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3309 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3310 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3311 | _resultobj = Py_None; |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
1afc06c2 RD |
3315 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
3316 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject * _resultobj; | |
3318 | wxEvtHandler * _result; | |
3319 | wxWindow * _arg0; | |
3320 | bool _arg1 = (bool ) FALSE; | |
3321 | PyObject * _argo0 = 0; | |
3322 | int tempbool1 = (int) FALSE; | |
3323 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
1afc06c2 RD |
3324 | |
3325 | self = self; | |
3326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
3327 | return NULL; | |
3328 | if (_argo0) { | |
3329 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3330 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3331 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
3332 | return NULL; | |
3333 | } | |
3334 | } | |
3335 | _arg1 = (bool ) tempbool1; | |
3336 | { | |
474c48f9 | 3337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3338 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); |
1afc06c2 | 3339 | |
474c48f9 | 3340 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3341 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 3342 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1afc06c2 RD |
3343 | return _resultobj; |
3344 | } | |
3345 | ||
3346 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
3347 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3348 | PyObject * _resultobj; | |
3349 | wxWindow * _arg0; | |
3350 | wxEvtHandler * _arg1; | |
3351 | PyObject * _argo0 = 0; | |
3352 | PyObject * _argo1 = 0; | |
3353 | char *_kwnames[] = { "self","handler", NULL }; | |
3354 | ||
3355 | self = self; | |
3356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
3357 | return NULL; | |
3358 | if (_argo0) { | |
3359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
3362 | return NULL; | |
3363 | } | |
3364 | } | |
3365 | if (_argo1) { | |
3366 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3367 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
3369 | return NULL; | |
3370 | } | |
3371 | } | |
3372 | { | |
474c48f9 | 3373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3374 | wxWindow_PushEventHandler(_arg0,_arg1); |
1afc06c2 | 3375 | |
474c48f9 | 3376 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3377 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
3378 | } Py_INCREF(Py_None); |
3379 | _resultobj = Py_None; | |
3380 | return _resultobj; | |
3381 | } | |
3382 | ||
5d413391 RD |
3383 | #define wxWindow_RemoveEventHandler(_swigobj,_swigarg0) (_swigobj->RemoveEventHandler(_swigarg0)) |
3384 | static PyObject *_wrap_wxWindow_RemoveEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3385 | PyObject * _resultobj; | |
3386 | bool _result; | |
3387 | wxWindow * _arg0; | |
3388 | wxEvtHandler * _arg1; | |
3389 | PyObject * _argo0 = 0; | |
3390 | PyObject * _argo1 = 0; | |
3391 | char *_kwnames[] = { "self","handler", NULL }; | |
3392 | ||
3393 | self = self; | |
3394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveEventHandler",_kwnames,&_argo0,&_argo1)) | |
3395 | return NULL; | |
3396 | if (_argo0) { | |
3397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveEventHandler. Expected _wxWindow_p."); | |
3400 | return NULL; | |
3401 | } | |
3402 | } | |
3403 | if (_argo1) { | |
3404 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3405 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveEventHandler. Expected _wxEvtHandler_p."); | |
3407 | return NULL; | |
3408 | } | |
3409 | } | |
3410 | { | |
3411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 3412 | _result = (bool )wxWindow_RemoveEventHandler(_arg0,_arg1); |
5d413391 RD |
3413 | |
3414 | wxPyEndAllowThreads(__tstate); | |
3415 | if (PyErr_Occurred()) return NULL; | |
3416 | } _resultobj = Py_BuildValue("i",_result); | |
3417 | return _resultobj; | |
3418 | } | |
3419 | ||
8bf5d46e | 3420 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3421 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3422 | PyObject * _resultobj; |
3423 | bool _result; | |
3424 | wxWindow * _arg0; | |
3425 | wxMenu * _arg1; | |
3426 | int _arg2; | |
3427 | int _arg3; | |
1d99702e RD |
3428 | PyObject * _argo0 = 0; |
3429 | PyObject * _argo1 = 0; | |
efc5f224 | 3430 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
8ab979d7 RD |
3431 | |
3432 | self = self; | |
efc5f224 | 3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 3434 | return NULL; |
1d99702e RD |
3435 | if (_argo0) { |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
1d99702e RD |
3442 | if (_argo1) { |
3443 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3444 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
3445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
3446 | return NULL; | |
3447 | } | |
3448 | } | |
3449 | { | |
474c48f9 | 3450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3451 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); |
8bf5d46e | 3452 | |
474c48f9 | 3453 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3454 | if (PyErr_Occurred()) return NULL; |
8bf5d46e RD |
3455 | } _resultobj = Py_BuildValue("i",_result); |
3456 | return _resultobj; | |
3457 | } | |
3458 | ||
3459 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
efc5f224 | 3460 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
3461 | PyObject * _resultobj; |
3462 | bool _result; | |
3463 | wxWindow * _arg0; | |
3464 | wxMenu * _arg1; | |
3465 | wxPoint * _arg2; | |
1d99702e RD |
3466 | PyObject * _argo0 = 0; |
3467 | PyObject * _argo1 = 0; | |
2f90df85 RD |
3468 | wxPoint temp; |
3469 | PyObject * _obj2 = 0; | |
efc5f224 | 3470 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
3471 | |
3472 | self = self; | |
2f90df85 | 3473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 3474 | return NULL; |
1d99702e RD |
3475 | if (_argo0) { |
3476 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3477 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3478 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
3479 | return NULL; | |
3480 | } | |
3481 | } | |
1d99702e RD |
3482 | if (_argo1) { |
3483 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3484 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8ab979d7 RD |
3485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
3486 | return NULL; | |
3487 | } | |
3488 | } | |
2f90df85 RD |
3489 | { |
3490 | _arg2 = &temp; | |
3491 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 3492 | return NULL; |
2f90df85 | 3493 | } |
cf694132 | 3494 | { |
474c48f9 | 3495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3496 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
cf694132 | 3497 | |
474c48f9 | 3498 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3499 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3500 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
3501 | return _resultobj; |
3502 | } | |
3503 | ||
3504 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
efc5f224 | 3505 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3506 | PyObject * _resultobj; |
3507 | wxWindow * _arg0; | |
1d99702e | 3508 | PyObject * _argo0 = 0; |
efc5f224 | 3509 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3510 | |
3511 | self = self; | |
efc5f224 | 3512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
8ab979d7 | 3513 | return NULL; |
1d99702e RD |
3514 | if (_argo0) { |
3515 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3516 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3517 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
3518 | return NULL; | |
3519 | } | |
3520 | } | |
cf694132 | 3521 | { |
474c48f9 | 3522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3523 | wxWindow_Raise(_arg0); |
cf694132 | 3524 | |
474c48f9 | 3525 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3526 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3527 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3528 | _resultobj = Py_None; |
3529 | return _resultobj; | |
3530 | } | |
3531 | ||
3532 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
efc5f224 | 3533 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3534 | PyObject * _resultobj; |
3535 | wxWindow * _arg0; | |
1d99702e RD |
3536 | bool _arg1 = (bool ) TRUE; |
3537 | wxRect * _arg2 = (wxRect *) NULL; | |
3538 | PyObject * _argo0 = 0; | |
3539 | int tempbool1 = (int) TRUE; | |
2f90df85 RD |
3540 | wxRect temp; |
3541 | PyObject * _obj2 = 0; | |
efc5f224 | 3542 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
8ab979d7 RD |
3543 | |
3544 | self = self; | |
2f90df85 | 3545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
8ab979d7 | 3546 | return NULL; |
1d99702e RD |
3547 | if (_argo0) { |
3548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
3551 | return NULL; | |
3552 | } | |
3553 | } | |
3554 | _arg1 = (bool ) tempbool1; | |
2f90df85 RD |
3555 | if (_obj2) |
3556 | { | |
3557 | _arg2 = &temp; | |
3558 | if (! wxRect_helper(_obj2, &_arg2)) | |
8ab979d7 | 3559 | return NULL; |
2f90df85 | 3560 | } |
cf694132 | 3561 | { |
474c48f9 | 3562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3563 | wxWindow_Refresh(_arg0,_arg1,_arg2); |
cf694132 | 3564 | |
474c48f9 | 3565 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3566 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3567 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3568 | _resultobj = Py_None; |
3569 | return _resultobj; | |
3570 | } | |
3571 | ||
aa2a5b86 RD |
3572 | #define wxWindow_RefreshRect(_swigobj,_swigarg0) (_swigobj->RefreshRect(_swigarg0)) |
3573 | static PyObject *_wrap_wxWindow_RefreshRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3574 | PyObject * _resultobj; | |
3575 | wxWindow * _arg0; | |
3576 | wxRect * _arg1; | |
3577 | PyObject * _argo0 = 0; | |
3578 | wxRect temp; | |
3579 | PyObject * _obj1 = 0; | |
3580 | char *_kwnames[] = { "self","rect", NULL }; | |
3581 | ||
3582 | self = self; | |
3583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RefreshRect",_kwnames,&_argo0,&_obj1)) | |
3584 | return NULL; | |
3585 | if (_argo0) { | |
3586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RefreshRect. Expected _wxWindow_p."); | |
3589 | return NULL; | |
3590 | } | |
3591 | } | |
3592 | { | |
3593 | _arg1 = &temp; | |
3594 | if (! wxRect_helper(_obj1, &_arg1)) | |
3595 | return NULL; | |
3596 | } | |
3597 | { | |
474c48f9 | 3598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3599 | wxWindow_RefreshRect(_arg0,*_arg1); |
aa2a5b86 | 3600 | |
474c48f9 | 3601 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
3602 | if (PyErr_Occurred()) return NULL; |
3603 | } Py_INCREF(Py_None); | |
3604 | _resultobj = Py_None; | |
3605 | return _resultobj; | |
3606 | } | |
3607 | ||
8ab979d7 | 3608 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) |
efc5f224 | 3609 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3610 | PyObject * _resultobj; |
3611 | wxWindow * _arg0; | |
1d99702e | 3612 | PyObject * _argo0 = 0; |
efc5f224 | 3613 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
3614 | |
3615 | self = self; | |
efc5f224 | 3616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
8ab979d7 | 3617 | return NULL; |
1d99702e RD |
3618 | if (_argo0) { |
3619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
3622 | return NULL; | |
3623 | } | |
3624 | } | |
cf694132 | 3625 | { |
474c48f9 | 3626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3627 | wxWindow_ReleaseMouse(_arg0); |
cf694132 | 3628 | |
474c48f9 | 3629 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3630 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3631 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3632 | _resultobj = Py_None; |
3633 | return _resultobj; | |
3634 | } | |
3635 | ||
b7e72427 RD |
3636 | #define wxWindow_RemoveChild(_swigobj,_swigarg0) (_swigobj->RemoveChild(_swigarg0)) |
3637 | static PyObject *_wrap_wxWindow_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3638 | PyObject * _resultobj; | |
3639 | wxWindow * _arg0; | |
3640 | wxWindow * _arg1; | |
3641 | PyObject * _argo0 = 0; | |
3642 | PyObject * _argo1 = 0; | |
3643 | char *_kwnames[] = { "self","child", NULL }; | |
3644 | ||
3645 | self = self; | |
3646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_RemoveChild",_kwnames,&_argo0,&_argo1)) | |
3647 | return NULL; | |
3648 | if (_argo0) { | |
3649 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3650 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3651 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3652 | return NULL; | |
3653 | } | |
3654 | } | |
3655 | if (_argo1) { | |
3656 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3657 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
3658 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_RemoveChild. Expected _wxWindow_p."); | |
3659 | return NULL; | |
3660 | } | |
3661 | } | |
3662 | { | |
474c48f9 | 3663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3664 | wxWindow_RemoveChild(_arg0,_arg1); |
b7e72427 | 3665 | |
474c48f9 | 3666 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3667 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
3668 | } Py_INCREF(Py_None); |
3669 | _resultobj = Py_None; | |
3670 | return _resultobj; | |
3671 | } | |
3672 | ||
bb0054cd | 3673 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
efc5f224 | 3674 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
3675 | PyObject * _resultobj; |
3676 | bool _result; | |
3677 | wxWindow * _arg0; | |
3678 | wxWindow * _arg1; | |
1d99702e RD |
3679 | PyObject * _argo0 = 0; |
3680 | PyObject * _argo1 = 0; | |
efc5f224 | 3681 | char *_kwnames[] = { "self","newParent", NULL }; |
bb0054cd RD |
3682 | |
3683 | self = self; | |
efc5f224 | 3684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
bb0054cd | 3685 | return NULL; |
1d99702e RD |
3686 | if (_argo0) { |
3687 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3688 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
bb0054cd RD |
3689 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
3690 | return NULL; | |
3691 | } | |
3692 | } | |
1d99702e RD |
3693 | if (_argo1) { |
3694 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3695 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
3696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
3697 | return NULL; | |
3698 | } | |
3699 | } | |
3700 | { | |
474c48f9 | 3701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3702 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); |
bb0054cd | 3703 | |
474c48f9 | 3704 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3705 | if (PyErr_Occurred()) return NULL; |
bb0054cd RD |
3706 | } _resultobj = Py_BuildValue("i",_result); |
3707 | return _resultobj; | |
3708 | } | |
3709 | ||
af309447 | 3710 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
efc5f224 | 3711 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3712 | PyObject * _resultobj; |
3713 | wxWindow * _arg0; | |
3714 | int * _arg1; | |
3715 | int * _arg2; | |
1d99702e | 3716 | PyObject * _argo0 = 0; |
8ab979d7 RD |
3717 | int temp; |
3718 | PyObject * _obj1 = 0; | |
3719 | int temp0; | |
3720 | PyObject * _obj2 = 0; | |
efc5f224 | 3721 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
3722 | |
3723 | self = self; | |
efc5f224 | 3724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
8ab979d7 | 3725 | return NULL; |
1d99702e RD |
3726 | if (_argo0) { |
3727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 | 3729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
8ab979d7 RD |
3730 | return NULL; |
3731 | } | |
3732 | } | |
3733 | { | |
3734 | temp = (int) PyInt_AsLong(_obj1); | |
3735 | _arg1 = &temp; | |
3736 | } | |
3737 | { | |
3738 | temp0 = (int) PyInt_AsLong(_obj2); | |
3739 | _arg2 = &temp0; | |
3740 | } | |
cf694132 | 3741 | { |
474c48f9 | 3742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3743 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); |
cf694132 | 3744 | |
474c48f9 | 3745 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3746 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3747 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3748 | _resultobj = Py_None; |
3749 | { | |
3750 | PyObject *o; | |
3751 | o = PyInt_FromLong((long) (*_arg1)); | |
3752 | _resultobj = t_output_helper(_resultobj, o); | |
3753 | } | |
3754 | { | |
3755 | PyObject *o; | |
3756 | o = PyInt_FromLong((long) (*_arg2)); | |
3757 | _resultobj = t_output_helper(_resultobj, o); | |
3758 | } | |
3759 | return _resultobj; | |
3760 | } | |
3761 | ||
af309447 | 3762 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
efc5f224 | 3763 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
3764 | PyObject * _resultobj; |
3765 | wxPoint * _result; | |
3766 | wxWindow * _arg0; | |
3767 | wxPoint * _arg1; | |
1d99702e | 3768 | PyObject * _argo0 = 0; |
2f90df85 RD |
3769 | wxPoint temp; |
3770 | PyObject * _obj1 = 0; | |
efc5f224 | 3771 | char *_kwnames[] = { "self","pt", NULL }; |
af309447 RD |
3772 | char _ptemp[128]; |
3773 | ||
3774 | self = self; | |
2f90df85 | 3775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
af309447 | 3776 | return NULL; |
1d99702e RD |
3777 | if (_argo0) { |
3778 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3779 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
3780 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
3781 | return NULL; | |
3782 | } | |
3783 | } | |
2f90df85 RD |
3784 | { |
3785 | _arg1 = &temp; | |
3786 | if (! wxPoint_helper(_obj1, &_arg1)) | |
af309447 | 3787 | return NULL; |
2f90df85 | 3788 | } |
cf694132 | 3789 | { |
474c48f9 | 3790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3791 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); |
cf694132 | 3792 | |
474c48f9 | 3793 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3794 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3795 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
af309447 RD |
3796 | _resultobj = Py_BuildValue("s",_ptemp); |
3797 | return _resultobj; | |
3798 | } | |
3799 | ||
8ab979d7 | 3800 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
efc5f224 | 3801 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3802 | PyObject * _resultobj; |
3803 | wxWindow * _arg0; | |
3804 | int _arg1; | |
3805 | int _arg2; | |
1d99702e RD |
3806 | wxRect * _arg3 = (wxRect *) NULL; |
3807 | PyObject * _argo0 = 0; | |
2f90df85 RD |
3808 | wxRect temp; |
3809 | PyObject * _obj3 = 0; | |
efc5f224 | 3810 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
8ab979d7 RD |
3811 | |
3812 | self = self; | |
2f90df85 | 3813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
8ab979d7 | 3814 | return NULL; |
1d99702e RD |
3815 | if (_argo0) { |
3816 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3817 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3818 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3819 | return NULL; | |
3820 | } | |
3821 | } | |
2f90df85 RD |
3822 | if (_obj3) |
3823 | { | |
3824 | _arg3 = &temp; | |
3825 | if (! wxRect_helper(_obj3, &_arg3)) | |
8ab979d7 | 3826 | return NULL; |
2f90df85 | 3827 | } |
cf694132 | 3828 | { |
474c48f9 | 3829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3830 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 3831 | |
474c48f9 | 3832 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3833 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3834 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3835 | _resultobj = Py_None; |
3836 | return _resultobj; | |
3837 | } | |
3838 | ||
3839 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) | |
efc5f224 | 3840 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3841 | PyObject * _resultobj; |
3842 | wxWindow * _arg0; | |
3843 | bool _arg1; | |
1d99702e | 3844 | PyObject * _argo0 = 0; |
8ab979d7 | 3845 | int tempbool1; |
efc5f224 | 3846 | char *_kwnames[] = { "self","autoLayout", NULL }; |
8ab979d7 RD |
3847 | |
3848 | self = self; | |
efc5f224 | 3849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 3850 | return NULL; |
1d99702e RD |
3851 | if (_argo0) { |
3852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3855 | return NULL; | |
3856 | } | |
3857 | } | |
3858 | _arg1 = (bool ) tempbool1; | |
cf694132 | 3859 | { |
474c48f9 | 3860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3861 | wxWindow_SetAutoLayout(_arg0,_arg1); |
cf694132 | 3862 | |
474c48f9 | 3863 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3864 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3865 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3866 | _resultobj = Py_None; |
3867 | return _resultobj; | |
3868 | } | |
3869 | ||
9d8bd15f RD |
3870 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3871 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3872 | PyObject * _resultobj; | |
3873 | bool _result; | |
3874 | wxWindow * _arg0; | |
3875 | PyObject * _argo0 = 0; | |
3876 | char *_kwnames[] = { "self", NULL }; | |
3877 | ||
3878 | self = self; | |
3879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3880 | return NULL; | |
3881 | if (_argo0) { | |
3882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3885 | return NULL; | |
3886 | } | |
3887 | } | |
3888 | { | |
474c48f9 | 3889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3890 | _result = (bool )wxWindow_GetAutoLayout(_arg0); |
9d8bd15f | 3891 | |
474c48f9 | 3892 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3893 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
3894 | } _resultobj = Py_BuildValue("i",_result); |
3895 | return _resultobj; | |
3896 | } | |
3897 | ||
8ab979d7 | 3898 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
efc5f224 | 3899 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3900 | PyObject * _resultobj; |
3901 | wxWindow * _arg0; | |
3902 | wxColour * _arg1; | |
1d99702e | 3903 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
3904 | wxColour temp; |
3905 | PyObject * _obj1 = 0; | |
efc5f224 | 3906 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
3907 | |
3908 | self = self; | |
f6bcfd97 | 3909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 3910 | return NULL; |
1d99702e RD |
3911 | if (_argo0) { |
3912 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3913 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3914 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3915 | return NULL; | |
3916 | } | |
3917 | } | |
f6bcfd97 BP |
3918 | { |
3919 | _arg1 = &temp; | |
3920 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 3921 | return NULL; |
f6bcfd97 | 3922 | } |
cf694132 | 3923 | { |
474c48f9 | 3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3925 | wxWindow_SetBackgroundColour(_arg0,*_arg1); |
cf694132 | 3926 | |
474c48f9 | 3927 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3928 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3929 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3930 | _resultobj = Py_None; |
3931 | return _resultobj; | |
3932 | } | |
3933 | ||
3934 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
efc5f224 | 3935 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
3936 | PyObject * _resultobj; |
3937 | wxWindow * _arg0; | |
3938 | wxLayoutConstraints * _arg1; | |
1d99702e RD |
3939 | PyObject * _argo0 = 0; |
3940 | PyObject * _argo1 = 0; | |
efc5f224 | 3941 | char *_kwnames[] = { "self","constraints", NULL }; |
8ab979d7 RD |
3942 | |
3943 | self = self; | |
efc5f224 | 3944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 3945 | return NULL; |
1d99702e RD |
3946 | if (_argo0) { |
3947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
3949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3950 | return NULL; | |
3951 | } | |
3952 | } | |
1d99702e RD |
3953 | if (_argo1) { |
3954 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3955 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
8ab979d7 RD |
3956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3957 | return NULL; | |
3958 | } | |
3959 | } | |
cf694132 | 3960 | { |
474c48f9 | 3961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3962 | wxWindow_SetConstraints(_arg0,_arg1); |
cf694132 | 3963 | |
474c48f9 | 3964 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 3965 | if (PyErr_Occurred()) return NULL; |
cf694132 | 3966 | } Py_INCREF(Py_None); |
8ab979d7 RD |
3967 | _resultobj = Py_None; |
3968 | return _resultobj; | |
3969 | } | |
3970 | ||
2f90df85 RD |
3971 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3972 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3973 | PyObject * _resultobj; | |
3974 | wxWindow * _arg0; | |
3975 | wxLayoutConstraints * _arg1; | |
3976 | PyObject * _argo0 = 0; | |
3977 | PyObject * _argo1 = 0; | |
3978 | char *_kwnames[] = { "self","constraints", NULL }; | |
3979 | ||
3980 | self = self; | |
3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3982 | return NULL; | |
3983 | if (_argo0) { | |
3984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3987 | return NULL; | |
3988 | } | |
3989 | } | |
3990 | if (_argo1) { | |
3991 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3992 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3994 | return NULL; | |
3995 | } | |
3996 | } | |
3997 | { | |
474c48f9 | 3998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3999 | wxWindow_UnsetConstraints(_arg0,_arg1); |
2f90df85 | 4000 | |
474c48f9 | 4001 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4002 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4003 | } Py_INCREF(Py_None); |
4004 | _resultobj = Py_None; | |
4005 | return _resultobj; | |
4006 | } | |
4007 | ||
8ab979d7 | 4008 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
efc5f224 | 4009 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4010 | PyObject * _resultobj; |
4011 | wxWindow * _arg0; | |
1d99702e | 4012 | PyObject * _argo0 = 0; |
efc5f224 | 4013 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4014 | |
4015 | self = self; | |
efc5f224 | 4016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
8ab979d7 | 4017 | return NULL; |
1d99702e RD |
4018 | if (_argo0) { |
4019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
4022 | return NULL; | |
4023 | } | |
4024 | } | |
cf694132 | 4025 | { |
474c48f9 | 4026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4027 | wxWindow_SetFocus(_arg0); |
cf694132 | 4028 | |
474c48f9 | 4029 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4030 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4031 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4032 | _resultobj = Py_None; |
4033 | return _resultobj; | |
4034 | } | |
4035 | ||
2f90df85 RD |
4036 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
4037 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4038 | PyObject * _resultobj; | |
4039 | bool _result; | |
4040 | wxWindow * _arg0; | |
4041 | PyObject * _argo0 = 0; | |
4042 | char *_kwnames[] = { "self", NULL }; | |
4043 | ||
4044 | self = self; | |
4045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
4046 | return NULL; | |
4047 | if (_argo0) { | |
4048 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4049 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
4051 | return NULL; | |
4052 | } | |
4053 | } | |
4054 | { | |
474c48f9 | 4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4056 | _result = (bool )wxWindow_AcceptsFocus(_arg0); |
2f90df85 | 4057 | |
474c48f9 | 4058 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4059 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
4060 | } _resultobj = Py_BuildValue("i",_result); |
4061 | return _resultobj; | |
4062 | } | |
4063 | ||
8ab979d7 | 4064 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
efc5f224 | 4065 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4066 | PyObject * _resultobj; |
4067 | wxWindow * _arg0; | |
4068 | wxFont * _arg1; | |
1d99702e RD |
4069 | PyObject * _argo0 = 0; |
4070 | PyObject * _argo1 = 0; | |
efc5f224 | 4071 | char *_kwnames[] = { "self","font", NULL }; |
8ab979d7 RD |
4072 | |
4073 | self = self; | |
efc5f224 | 4074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4075 | return NULL; |
1d99702e RD |
4076 | if (_argo0) { |
4077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
4080 | return NULL; | |
4081 | } | |
4082 | } | |
1d99702e RD |
4083 | if (_argo1) { |
4084 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4085 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
8ab979d7 RD |
4086 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
4087 | return NULL; | |
4088 | } | |
4089 | } | |
cf694132 | 4090 | { |
474c48f9 | 4091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4092 | wxWindow_SetFont(_arg0,*_arg1); |
cf694132 | 4093 | |
474c48f9 | 4094 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4095 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4096 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4097 | _resultobj = Py_None; |
4098 | return _resultobj; | |
4099 | } | |
4100 | ||
4101 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
efc5f224 | 4102 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4103 | PyObject * _resultobj; |
4104 | wxWindow * _arg0; | |
4105 | wxColour * _arg1; | |
1d99702e | 4106 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4107 | wxColour temp; |
4108 | PyObject * _obj1 = 0; | |
efc5f224 | 4109 | char *_kwnames[] = { "self","colour", NULL }; |
8ab979d7 RD |
4110 | |
4111 | self = self; | |
f6bcfd97 | 4112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4113 | return NULL; |
1d99702e RD |
4114 | if (_argo0) { |
4115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
4118 | return NULL; | |
4119 | } | |
4120 | } | |
f6bcfd97 BP |
4121 | { |
4122 | _arg1 = &temp; | |
4123 | if (! wxColour_helper(_obj1, &_arg1)) | |
8ab979d7 | 4124 | return NULL; |
f6bcfd97 | 4125 | } |
cf694132 | 4126 | { |
474c48f9 | 4127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4128 | wxWindow_SetForegroundColour(_arg0,*_arg1); |
cf694132 | 4129 | |
474c48f9 | 4130 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4131 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4132 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4133 | _resultobj = Py_None; |
4134 | return _resultobj; | |
4135 | } | |
4136 | ||
4137 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
efc5f224 | 4138 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4139 | PyObject * _resultobj; |
4140 | wxWindow * _arg0; | |
4141 | int _arg1; | |
1d99702e | 4142 | PyObject * _argo0 = 0; |
efc5f224 | 4143 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
4144 | |
4145 | self = self; | |
efc5f224 | 4146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 4147 | return NULL; |
1d99702e RD |
4148 | if (_argo0) { |
4149 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4150 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4151 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
4152 | return NULL; | |
4153 | } | |
4154 | } | |
cf694132 | 4155 | { |
474c48f9 | 4156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4157 | wxWindow_SetId(_arg0,_arg1); |
cf694132 | 4158 | |
474c48f9 | 4159 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4160 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4161 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4162 | _resultobj = Py_None; |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
4166 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
efc5f224 | 4167 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4168 | PyObject * _resultobj; |
4169 | wxWindow * _arg0; | |
4170 | wxString * _arg1; | |
1d99702e | 4171 | PyObject * _argo0 = 0; |
8ab979d7 | 4172 | PyObject * _obj1 = 0; |
efc5f224 | 4173 | char *_kwnames[] = { "self","name", NULL }; |
8ab979d7 RD |
4174 | |
4175 | self = self; | |
efc5f224 | 4176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4177 | return NULL; |
1d99702e RD |
4178 | if (_argo0) { |
4179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
4182 | return NULL; | |
4183 | } | |
4184 | } | |
4185 | { | |
c8bc7bb8 RD |
4186 | _arg1 = wxString_in_helper(_obj1); |
4187 | if (_arg1 == NULL) | |
2cd2fac8 | 4188 | return NULL; |
8ab979d7 | 4189 | } |
cf694132 | 4190 | { |
474c48f9 | 4191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4192 | wxWindow_SetName(_arg0,*_arg1); |
cf694132 | 4193 | |
474c48f9 | 4194 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4195 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4196 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4197 | _resultobj = Py_None; |
4198 | { | |
4199 | if (_obj1) | |
4200 | delete _arg1; | |
4201 | } | |
4202 | return _resultobj; | |
4203 | } | |
4204 | ||
8ab979d7 | 4205 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
efc5f224 | 4206 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4207 | PyObject * _resultobj; |
4208 | wxWindow * _arg0; | |
4209 | int _arg1; | |
4210 | int _arg2; | |
4211 | int _arg3; | |
4212 | int _arg4; | |
eb715945 | 4213 | int _arg5 = (int ) TRUE; |
1d99702e | 4214 | PyObject * _argo0 = 0; |
efc5f224 | 4215 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
8ab979d7 RD |
4216 | |
4217 | self = self; | |
eb715945 | 4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4219 | return NULL; |
1d99702e RD |
4220 | if (_argo0) { |
4221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
4224 | return NULL; | |
4225 | } | |
4226 | } | |
cf694132 | 4227 | { |
474c48f9 | 4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4229 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4230 | |
474c48f9 | 4231 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4232 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4233 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4234 | _resultobj = Py_None; |
4235 | return _resultobj; | |
4236 | } | |
4237 | ||
4238 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
efc5f224 | 4239 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4240 | PyObject * _resultobj; |
4241 | wxWindow * _arg0; | |
4242 | int _arg1; | |
4243 | int _arg2; | |
1d99702e RD |
4244 | bool _arg3 = (bool ) TRUE; |
4245 | PyObject * _argo0 = 0; | |
4246 | int tempbool3 = (int) TRUE; | |
efc5f224 | 4247 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
8ab979d7 RD |
4248 | |
4249 | self = self; | |
efc5f224 | 4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
8ab979d7 | 4251 | return NULL; |
1d99702e RD |
4252 | if (_argo0) { |
4253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
4256 | return NULL; | |
4257 | } | |
4258 | } | |
4259 | _arg3 = (bool ) tempbool3; | |
cf694132 | 4260 | { |
474c48f9 | 4261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4262 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); |
cf694132 | 4263 | |
474c48f9 | 4264 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4265 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4266 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4267 | _resultobj = Py_None; |
4268 | return _resultobj; | |
4269 | } | |
4270 | ||
4271 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
efc5f224 | 4272 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4273 | PyObject * _resultobj; |
4274 | wxWindow * _arg0; | |
4275 | int _arg1; | |
4276 | int _arg2; | |
4277 | int _arg3; | |
4278 | int _arg4; | |
1d99702e RD |
4279 | int _arg5 = (int ) wxSIZE_AUTO; |
4280 | PyObject * _argo0 = 0; | |
efc5f224 | 4281 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
8ab979d7 RD |
4282 | |
4283 | self = self; | |
efc5f224 | 4284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
8ab979d7 | 4285 | return NULL; |
1d99702e RD |
4286 | if (_argo0) { |
4287 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4288 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4289 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
4290 | return NULL; | |
4291 | } | |
4292 | } | |
cf694132 | 4293 | { |
474c48f9 | 4294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4295 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); |
cf694132 | 4296 | |
474c48f9 | 4297 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4298 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4299 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4300 | _resultobj = Py_None; |
4301 | return _resultobj; | |
4302 | } | |
4303 | ||
4304 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
a1df7a95 | 4305 | self->SetSize(size); |
8ab979d7 | 4306 | } |
efc5f224 | 4307 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4308 | PyObject * _resultobj; |
4309 | wxWindow * _arg0; | |
4310 | wxSize * _arg1; | |
1d99702e | 4311 | PyObject * _argo0 = 0; |
2f90df85 RD |
4312 | wxSize temp; |
4313 | PyObject * _obj1 = 0; | |
efc5f224 | 4314 | char *_kwnames[] = { "self","size", NULL }; |
8ab979d7 RD |
4315 | |
4316 | self = self; | |
2f90df85 | 4317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4318 | return NULL; |
1d99702e RD |
4319 | if (_argo0) { |
4320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
4323 | return NULL; | |
4324 | } | |
4325 | } | |
2f90df85 RD |
4326 | { |
4327 | _arg1 = &temp; | |
4328 | if (! wxSize_helper(_obj1, &_arg1)) | |
8ab979d7 | 4329 | return NULL; |
2f90df85 | 4330 | } |
cf694132 | 4331 | { |
474c48f9 | 4332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4333 | wxWindow_SetSize(_arg0,*_arg1); |
cf694132 | 4334 | |
474c48f9 | 4335 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4336 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4337 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4338 | _resultobj = Py_None; |
4339 | return _resultobj; | |
4340 | } | |
4341 | ||
8cb49012 RD |
4342 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos,int flags) { |
4343 | self->Move(pos, flags); | |
8ab979d7 | 4344 | } |
efc5f224 | 4345 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4346 | PyObject * _resultobj; |
4347 | wxWindow * _arg0; | |
4348 | wxPoint * _arg1; | |
8cb49012 | 4349 | int _arg2 = (int ) wxSIZE_USE_EXISTING; |
1d99702e | 4350 | PyObject * _argo0 = 0; |
2f90df85 RD |
4351 | wxPoint temp; |
4352 | PyObject * _obj1 = 0; | |
8cb49012 | 4353 | char *_kwnames[] = { "self","pos","flags", NULL }; |
8ab979d7 RD |
4354 | |
4355 | self = self; | |
8cb49012 | 4356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1,&_arg2)) |
8ab979d7 | 4357 | return NULL; |
1d99702e RD |
4358 | if (_argo0) { |
4359 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4360 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4361 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
4362 | return NULL; | |
4363 | } | |
4364 | } | |
2f90df85 RD |
4365 | { |
4366 | _arg1 = &temp; | |
4367 | if (! wxPoint_helper(_obj1, &_arg1)) | |
8ab979d7 | 4368 | return NULL; |
2f90df85 | 4369 | } |
cf694132 | 4370 | { |
474c48f9 | 4371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4372 | wxWindow_SetPosition(_arg0,*_arg1,_arg2); |
cf694132 | 4373 | |
474c48f9 | 4374 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4375 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4376 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4377 | _resultobj = Py_None; |
4378 | return _resultobj; | |
4379 | } | |
4380 | ||
2cd2fac8 RD |
4381 | static void wxWindow_SetRect(wxWindow *self,const wxRect & rect,int sizeFlags) { |
4382 | self->SetSize(rect, sizeFlags); | |
4383 | } | |
4384 | static PyObject *_wrap_wxWindow_SetRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4385 | PyObject * _resultobj; | |
4386 | wxWindow * _arg0; | |
4387 | wxRect * _arg1; | |
4388 | int _arg2 = (int ) wxSIZE_AUTO; | |
4389 | PyObject * _argo0 = 0; | |
4390 | wxRect temp; | |
4391 | PyObject * _obj1 = 0; | |
4392 | char *_kwnames[] = { "self","rect","sizeFlags", NULL }; | |
4393 | ||
4394 | self = self; | |
4395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetRect",_kwnames,&_argo0,&_obj1,&_arg2)) | |
4396 | return NULL; | |
4397 | if (_argo0) { | |
4398 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4399 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4400 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetRect. Expected _wxWindow_p."); | |
4401 | return NULL; | |
4402 | } | |
4403 | } | |
4404 | { | |
4405 | _arg1 = &temp; | |
4406 | if (! wxRect_helper(_obj1, &_arg1)) | |
4407 | return NULL; | |
4408 | } | |
4409 | { | |
474c48f9 | 4410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4411 | wxWindow_SetRect(_arg0,*_arg1,_arg2); |
2cd2fac8 | 4412 | |
474c48f9 | 4413 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4414 | if (PyErr_Occurred()) return NULL; |
2cd2fac8 RD |
4415 | } Py_INCREF(Py_None); |
4416 | _resultobj = Py_None; | |
4417 | return _resultobj; | |
4418 | } | |
4419 | ||
8ab979d7 | 4420 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 4421 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4422 | PyObject * _resultobj; |
4423 | wxWindow * _arg0; | |
1d99702e RD |
4424 | int _arg1 = (int ) -1; |
4425 | int _arg2 = (int ) -1; | |
4426 | int _arg3 = (int ) -1; | |
4427 | int _arg4 = (int ) -1; | |
4428 | int _arg5 = (int ) -1; | |
4429 | int _arg6 = (int ) -1; | |
4430 | PyObject * _argo0 = 0; | |
efc5f224 | 4431 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
8ab979d7 RD |
4432 | |
4433 | self = self; | |
efc5f224 | 4434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
8ab979d7 | 4435 | return NULL; |
1d99702e RD |
4436 | if (_argo0) { |
4437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
4440 | return NULL; | |
4441 | } | |
4442 | } | |
cf694132 | 4443 | { |
474c48f9 | 4444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4445 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); |
cf694132 | 4446 | |
474c48f9 | 4447 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4448 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4449 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4450 | _resultobj = Py_None; |
4451 | return _resultobj; | |
4452 | } | |
4453 | ||
af309447 | 4454 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
efc5f224 | 4455 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4456 | PyObject * _resultobj; |
4457 | wxWindow * _arg0; | |
4458 | int _arg1; | |
4459 | int _arg2; | |
1d99702e | 4460 | PyObject * _argo0 = 0; |
efc5f224 | 4461 | char *_kwnames[] = { "self","width","height", NULL }; |
8ab979d7 RD |
4462 | |
4463 | self = self; | |
efc5f224 | 4464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
af309447 | 4465 | return NULL; |
1d99702e RD |
4466 | if (_argo0) { |
4467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
4469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
4470 | return NULL; | |
4471 | } | |
4472 | } | |
cf694132 | 4473 | { |
474c48f9 | 4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4475 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); |
cf694132 | 4476 | |
474c48f9 | 4477 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4478 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4479 | } Py_INCREF(Py_None); |
af309447 RD |
4480 | _resultobj = Py_None; |
4481 | return _resultobj; | |
4482 | } | |
4483 | ||
4484 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) | |
efc5f224 | 4485 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4486 | PyObject * _resultobj; |
4487 | wxWindow * _arg0; | |
4488 | wxSize * _arg1; | |
1d99702e | 4489 | PyObject * _argo0 = 0; |
2f90df85 RD |
4490 | wxSize temp; |
4491 | PyObject * _obj1 = 0; | |
efc5f224 | 4492 | char *_kwnames[] = { "self","size", NULL }; |
af309447 RD |
4493 | |
4494 | self = self; | |
2f90df85 | 4495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 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")) { | |
8ab979d7 RD |
4500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
4501 | return NULL; | |
4502 | } | |
4503 | } | |
2f90df85 RD |
4504 | { |
4505 | _arg1 = &temp; | |
4506 | if (! wxSize_helper(_obj1, &_arg1)) | |
af309447 | 4507 | return NULL; |
2f90df85 | 4508 | } |
cf694132 | 4509 | { |
474c48f9 | 4510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4511 | wxWindow_SetClientSize(_arg0,*_arg1); |
cf694132 | 4512 | |
474c48f9 | 4513 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4514 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4515 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4516 | _resultobj = Py_None; |
4517 | return _resultobj; | |
4518 | } | |
4519 | ||
4520 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) | |
efc5f224 | 4521 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4522 | PyObject * _resultobj; |
4523 | wxWindow * _arg0; | |
4524 | wxCursor * _arg1; | |
1d99702e RD |
4525 | PyObject * _argo0 = 0; |
4526 | PyObject * _argo1 = 0; | |
efc5f224 | 4527 | char *_kwnames[] = { "self","cursor", NULL }; |
8ab979d7 RD |
4528 | |
4529 | self = self; | |
efc5f224 | 4530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 4531 | return NULL; |
1d99702e RD |
4532 | if (_argo0) { |
4533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
4536 | return NULL; | |
4537 | } | |
4538 | } | |
1d99702e RD |
4539 | if (_argo1) { |
4540 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4541 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
8ab979d7 RD |
4542 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
4543 | return NULL; | |
4544 | } | |
4545 | } | |
cf694132 | 4546 | { |
474c48f9 | 4547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4548 | wxWindow_SetCursor(_arg0,*_arg1); |
cf694132 | 4549 | |
474c48f9 | 4550 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4551 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4552 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4553 | _resultobj = Py_None; |
4554 | return _resultobj; | |
4555 | } | |
4556 | ||
1afc06c2 RD |
4557 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
4558 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject * _resultobj; | |
4560 | wxWindow * _arg0; | |
4561 | wxEvtHandler * _arg1; | |
4562 | PyObject * _argo0 = 0; | |
4563 | PyObject * _argo1 = 0; | |
4564 | char *_kwnames[] = { "self","handler", NULL }; | |
4565 | ||
4566 | self = self; | |
4567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
4568 | return NULL; | |
4569 | if (_argo0) { | |
4570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
4573 | return NULL; | |
4574 | } | |
4575 | } | |
4576 | if (_argo1) { | |
4577 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4578 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
4580 | return NULL; | |
4581 | } | |
4582 | } | |
4583 | { | |
474c48f9 | 4584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4585 | wxWindow_SetEventHandler(_arg0,_arg1); |
1afc06c2 | 4586 | |
474c48f9 | 4587 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4588 | if (PyErr_Occurred()) return NULL; |
1afc06c2 RD |
4589 | } Py_INCREF(Py_None); |
4590 | _resultobj = Py_None; | |
4591 | return _resultobj; | |
4592 | } | |
4593 | ||
5e40f9dd RD |
4594 | #define wxWindow_SetExtraStyle(_swigobj,_swigarg0) (_swigobj->SetExtraStyle(_swigarg0)) |
4595 | static PyObject *_wrap_wxWindow_SetExtraStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4596 | PyObject * _resultobj; | |
4597 | wxWindow * _arg0; | |
4598 | long _arg1; | |
4599 | PyObject * _argo0 = 0; | |
4600 | char *_kwnames[] = { "self","exStyle", NULL }; | |
4601 | ||
4602 | self = self; | |
4603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_SetExtraStyle",_kwnames,&_argo0,&_arg1)) | |
4604 | return NULL; | |
4605 | if (_argo0) { | |
4606 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4607 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4608 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetExtraStyle. Expected _wxWindow_p."); | |
4609 | return NULL; | |
4610 | } | |
4611 | } | |
4612 | { | |
474c48f9 | 4613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4614 | wxWindow_SetExtraStyle(_arg0,_arg1); |
5e40f9dd | 4615 | |
474c48f9 | 4616 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4617 | if (PyErr_Occurred()) return NULL; |
5e40f9dd RD |
4618 | } Py_INCREF(Py_None); |
4619 | _resultobj = Py_None; | |
4620 | return _resultobj; | |
4621 | } | |
4622 | ||
8ab979d7 | 4623 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
efc5f224 | 4624 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4625 | PyObject * _resultobj; |
4626 | wxWindow * _arg0; | |
4627 | wxString * _arg1; | |
1d99702e | 4628 | PyObject * _argo0 = 0; |
8ab979d7 | 4629 | PyObject * _obj1 = 0; |
efc5f224 | 4630 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
4631 | |
4632 | self = self; | |
efc5f224 | 4633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 4634 | return NULL; |
1d99702e RD |
4635 | if (_argo0) { |
4636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
4639 | return NULL; | |
4640 | } | |
4641 | } | |
4642 | { | |
c8bc7bb8 RD |
4643 | _arg1 = wxString_in_helper(_obj1); |
4644 | if (_arg1 == NULL) | |
2cd2fac8 | 4645 | return NULL; |
8ab979d7 | 4646 | } |
cf694132 | 4647 | { |
474c48f9 | 4648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4649 | wxWindow_SetTitle(_arg0,*_arg1); |
cf694132 | 4650 | |
474c48f9 | 4651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4652 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4653 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4654 | _resultobj = Py_None; |
4655 | { | |
4656 | if (_obj1) | |
4657 | delete _arg1; | |
4658 | } | |
4659 | return _resultobj; | |
4660 | } | |
4661 | ||
4662 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
efc5f224 | 4663 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4664 | PyObject * _resultobj; |
4665 | bool _result; | |
4666 | wxWindow * _arg0; | |
3e212503 | 4667 | bool _arg1 = (bool ) TRUE; |
1d99702e | 4668 | PyObject * _argo0 = 0; |
3e212503 | 4669 | int tempbool1 = (int) TRUE; |
efc5f224 | 4670 | char *_kwnames[] = { "self","show", NULL }; |
8ab979d7 RD |
4671 | |
4672 | self = self; | |
3e212503 | 4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
8ab979d7 | 4674 | return NULL; |
1d99702e RD |
4675 | if (_argo0) { |
4676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
4679 | return NULL; | |
4680 | } | |
4681 | } | |
4682 | _arg1 = (bool ) tempbool1; | |
cf694132 | 4683 | { |
474c48f9 | 4684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4685 | _result = (bool )wxWindow_Show(_arg0,_arg1); |
cf694132 | 4686 | |
474c48f9 | 4687 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4688 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4689 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4690 | return _resultobj; |
4691 | } | |
4692 | ||
4693 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
efc5f224 | 4694 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4695 | PyObject * _resultobj; |
4696 | bool _result; | |
4697 | wxWindow * _arg0; | |
1d99702e | 4698 | PyObject * _argo0 = 0; |
efc5f224 | 4699 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4700 | |
4701 | self = self; | |
efc5f224 | 4702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
8ab979d7 | 4703 | return NULL; |
1d99702e RD |
4704 | if (_argo0) { |
4705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
4708 | return NULL; | |
4709 | } | |
4710 | } | |
cf694132 | 4711 | { |
474c48f9 | 4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4713 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); |
cf694132 | 4714 | |
474c48f9 | 4715 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4716 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4717 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4718 | return _resultobj; |
4719 | } | |
4720 | ||
4721 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
efc5f224 | 4722 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4723 | PyObject * _resultobj; |
4724 | bool _result; | |
4725 | wxWindow * _arg0; | |
1d99702e | 4726 | PyObject * _argo0 = 0; |
efc5f224 | 4727 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4728 | |
4729 | self = self; | |
efc5f224 | 4730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
8ab979d7 | 4731 | return NULL; |
1d99702e RD |
4732 | if (_argo0) { |
4733 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4734 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4735 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
4736 | return NULL; | |
4737 | } | |
4738 | } | |
cf694132 | 4739 | { |
474c48f9 | 4740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4741 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); |
cf694132 | 4742 | |
474c48f9 | 4743 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4744 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4745 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4746 | return _resultobj; |
4747 | } | |
4748 | ||
8cb49012 RD |
4749 | #define wxWindow_UpdateWindowUI(_swigobj) (_swigobj->UpdateWindowUI()) |
4750 | static PyObject *_wrap_wxWindow_UpdateWindowUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject * _resultobj; | |
4752 | wxWindow * _arg0; | |
4753 | PyObject * _argo0 = 0; | |
4754 | char *_kwnames[] = { "self", NULL }; | |
4755 | ||
4756 | self = self; | |
4757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_UpdateWindowUI",_kwnames,&_argo0)) | |
4758 | return NULL; | |
4759 | if (_argo0) { | |
4760 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4761 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4762 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UpdateWindowUI. Expected _wxWindow_p."); | |
4763 | return NULL; | |
4764 | } | |
4765 | } | |
4766 | { | |
4767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4768 | wxWindow_UpdateWindowUI(_arg0); |
8cb49012 RD |
4769 | |
4770 | wxPyEndAllowThreads(__tstate); | |
4771 | if (PyErr_Occurred()) return NULL; | |
4772 | } Py_INCREF(Py_None); | |
4773 | _resultobj = Py_None; | |
4774 | return _resultobj; | |
4775 | } | |
4776 | ||
8ab979d7 | 4777 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) |
efc5f224 | 4778 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4779 | PyObject * _resultobj; |
4780 | bool _result; | |
4781 | wxWindow * _arg0; | |
1d99702e | 4782 | PyObject * _argo0 = 0; |
efc5f224 | 4783 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
4784 | |
4785 | self = self; | |
efc5f224 | 4786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
8ab979d7 | 4787 | return NULL; |
1d99702e RD |
4788 | if (_argo0) { |
4789 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4790 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
4792 | return NULL; | |
4793 | } | |
4794 | } | |
cf694132 | 4795 | { |
474c48f9 | 4796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4797 | _result = (bool )wxWindow_Validate(_arg0); |
cf694132 | 4798 | |
474c48f9 | 4799 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4800 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4801 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
4802 | return _resultobj; |
4803 | } | |
4804 | ||
4805 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) | |
efc5f224 | 4806 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
4807 | PyObject * _resultobj; |
4808 | wxWindow * _arg0; | |
4809 | int _arg1; | |
4810 | int _arg2; | |
1d99702e | 4811 | PyObject * _argo0 = 0; |
efc5f224 | 4812 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
4813 | |
4814 | self = self; | |
efc5f224 | 4815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 4816 | return NULL; |
1d99702e RD |
4817 | if (_argo0) { |
4818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
4820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
4821 | return NULL; | |
4822 | } | |
4823 | } | |
cf694132 | 4824 | { |
474c48f9 | 4825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4826 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); |
cf694132 | 4827 | |
474c48f9 | 4828 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4829 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4830 | } Py_INCREF(Py_None); |
8ab979d7 RD |
4831 | _resultobj = Py_None; |
4832 | return _resultobj; | |
4833 | } | |
4834 | ||
b8b8dda7 | 4835 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
efc5f224 | 4836 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4837 | PyObject * _resultobj; |
4838 | wxPoint * _result; | |
4839 | wxWindow * _arg0; | |
4840 | wxPoint * _arg1; | |
1d99702e | 4841 | PyObject * _argo0 = 0; |
2f90df85 RD |
4842 | wxPoint temp; |
4843 | PyObject * _obj1 = 0; | |
efc5f224 | 4844 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4845 | char _ptemp[128]; |
4846 | ||
4847 | self = self; | |
2f90df85 | 4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4849 | return NULL; |
1d99702e RD |
4850 | if (_argo0) { |
4851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
4854 | return NULL; | |
4855 | } | |
4856 | } | |
2f90df85 RD |
4857 | { |
4858 | _arg1 = &temp; | |
4859 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4860 | return NULL; |
2f90df85 | 4861 | } |
cf694132 | 4862 | { |
474c48f9 | 4863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4864 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); |
cf694132 | 4865 | |
474c48f9 | 4866 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4867 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4868 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4869 | _resultobj = Py_BuildValue("s",_ptemp); |
4870 | return _resultobj; | |
4871 | } | |
4872 | ||
4873 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
efc5f224 | 4874 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4875 | PyObject * _resultobj; |
4876 | wxSize * _result; | |
4877 | wxWindow * _arg0; | |
4878 | wxSize * _arg1; | |
1d99702e | 4879 | PyObject * _argo0 = 0; |
2f90df85 RD |
4880 | wxSize temp; |
4881 | PyObject * _obj1 = 0; | |
efc5f224 | 4882 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4883 | char _ptemp[128]; |
4884 | ||
4885 | self = self; | |
2f90df85 | 4886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4887 | return NULL; |
1d99702e RD |
4888 | if (_argo0) { |
4889 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4890 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4891 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
4892 | return NULL; | |
4893 | } | |
4894 | } | |
2f90df85 RD |
4895 | { |
4896 | _arg1 = &temp; | |
4897 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4898 | return NULL; |
2f90df85 | 4899 | } |
cf694132 | 4900 | { |
474c48f9 | 4901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4902 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); |
cf694132 | 4903 | |
474c48f9 | 4904 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4905 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4906 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4907 | _resultobj = Py_BuildValue("s",_ptemp); |
4908 | return _resultobj; | |
4909 | } | |
4910 | ||
4911 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4912 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4913 | PyObject * _resultobj; |
4914 | wxPoint * _result; | |
4915 | wxWindow * _arg0; | |
4916 | wxPoint * _arg1; | |
1d99702e | 4917 | PyObject * _argo0 = 0; |
2f90df85 RD |
4918 | wxPoint temp; |
4919 | PyObject * _obj1 = 0; | |
efc5f224 | 4920 | char *_kwnames[] = { "self","pt", NULL }; |
b8b8dda7 RD |
4921 | char _ptemp[128]; |
4922 | ||
4923 | self = self; | |
2f90df85 | 4924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4925 | return NULL; |
1d99702e RD |
4926 | if (_argo0) { |
4927 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4928 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4929 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4930 | return NULL; | |
4931 | } | |
4932 | } | |
2f90df85 RD |
4933 | { |
4934 | _arg1 = &temp; | |
4935 | if (! wxPoint_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4936 | return NULL; |
2f90df85 | 4937 | } |
cf694132 | 4938 | { |
474c48f9 | 4939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4940 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); |
cf694132 | 4941 | |
474c48f9 | 4942 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4943 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4944 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
b8b8dda7 RD |
4945 | _resultobj = Py_BuildValue("s",_ptemp); |
4946 | return _resultobj; | |
4947 | } | |
4948 | ||
4949 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
efc5f224 | 4950 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
b8b8dda7 RD |
4951 | PyObject * _resultobj; |
4952 | wxSize * _result; | |
4953 | wxWindow * _arg0; | |
4954 | wxSize * _arg1; | |
1d99702e | 4955 | PyObject * _argo0 = 0; |
2f90df85 RD |
4956 | wxSize temp; |
4957 | PyObject * _obj1 = 0; | |
efc5f224 | 4958 | char *_kwnames[] = { "self","sz", NULL }; |
b8b8dda7 RD |
4959 | char _ptemp[128]; |
4960 | ||
4961 | self = self; | |
2f90df85 | 4962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
b8b8dda7 | 4963 | return NULL; |
1d99702e RD |
4964 | if (_argo0) { |
4965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
b8b8dda7 RD |
4967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4968 | return NULL; | |
4969 | } | |
4970 | } | |
2f90df85 RD |
4971 | { |
4972 | _arg1 = &temp; | |
4973 | if (! wxSize_helper(_obj1, &_arg1)) | |
b8b8dda7 | 4974 | return NULL; |
2f90df85 | 4975 | } |
cf694132 | 4976 | { |
474c48f9 | 4977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4978 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); |
cf694132 | 4979 | |
474c48f9 | 4980 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 4981 | if (PyErr_Occurred()) return NULL; |
cf694132 | 4982 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
b8b8dda7 RD |
4983 | _resultobj = Py_BuildValue("s",_ptemp); |
4984 | return _resultobj; | |
4985 | } | |
4986 | ||
af309447 | 4987 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
efc5f224 | 4988 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
4989 | PyObject * _resultobj; |
4990 | wxWindow * _arg0; | |
4991 | wxString * _arg1; | |
1d99702e | 4992 | PyObject * _argo0 = 0; |
af309447 | 4993 | PyObject * _obj1 = 0; |
efc5f224 | 4994 | char *_kwnames[] = { "self","tip", NULL }; |
af309447 RD |
4995 | |
4996 | self = self; | |
efc5f224 | 4997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
af309447 | 4998 | return NULL; |
1d99702e RD |
4999 | if (_argo0) { |
5000 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5001 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
5003 | return NULL; | |
5004 | } | |
5005 | } | |
5006 | { | |
c8bc7bb8 RD |
5007 | _arg1 = wxString_in_helper(_obj1); |
5008 | if (_arg1 == NULL) | |
2cd2fac8 | 5009 | return NULL; |
af309447 | 5010 | } |
cf694132 | 5011 | { |
474c48f9 | 5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5013 | wxWindow_SetToolTipString(_arg0,*_arg1); |
cf694132 | 5014 | |
474c48f9 | 5015 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5016 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5017 | } Py_INCREF(Py_None); |
af309447 RD |
5018 | _resultobj = Py_None; |
5019 | { | |
5020 | if (_obj1) | |
5021 | delete _arg1; | |
5022 | } | |
5023 | return _resultobj; | |
5024 | } | |
5025 | ||
5026 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
efc5f224 | 5027 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5028 | PyObject * _resultobj; |
5029 | wxWindow * _arg0; | |
5030 | wxToolTip * _arg1; | |
1d99702e RD |
5031 | PyObject * _argo0 = 0; |
5032 | PyObject * _argo1 = 0; | |
efc5f224 | 5033 | char *_kwnames[] = { "self","tooltip", NULL }; |
af309447 RD |
5034 | |
5035 | self = self; | |
efc5f224 | 5036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
af309447 | 5037 | return NULL; |
1d99702e RD |
5038 | if (_argo0) { |
5039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
5042 | return NULL; | |
5043 | } | |
5044 | } | |
1d99702e RD |
5045 | if (_argo1) { |
5046 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5047 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
af309447 RD |
5048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
5049 | return NULL; | |
5050 | } | |
5051 | } | |
cf694132 | 5052 | { |
474c48f9 | 5053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5054 | wxWindow_SetToolTip(_arg0,_arg1); |
cf694132 | 5055 | |
474c48f9 | 5056 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5057 | if (PyErr_Occurred()) return NULL; |
cf694132 | 5058 | } Py_INCREF(Py_None); |
af309447 RD |
5059 | _resultobj = Py_None; |
5060 | return _resultobj; | |
5061 | } | |
5062 | ||
5063 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
efc5f224 | 5064 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
af309447 RD |
5065 | PyObject * _resultobj; |
5066 | wxToolTip * _result; | |
5067 | wxWindow * _arg0; | |
1d99702e | 5068 | PyObject * _argo0 = 0; |
efc5f224 | 5069 | char *_kwnames[] = { "self", NULL }; |
af309447 RD |
5070 | |
5071 | self = self; | |
efc5f224 | 5072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
af309447 | 5073 | return NULL; |
1d99702e RD |
5074 | if (_argo0) { |
5075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
af309447 RD |
5077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
5078 | return NULL; | |
5079 | } | |
5080 | } | |
cf694132 | 5081 | { |
474c48f9 | 5082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5083 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); |
cf694132 | 5084 | |
474c48f9 | 5085 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5086 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5087 | }{ _resultobj = wxPyMake_wxObject(_result); } |
af309447 RD |
5088 | return _resultobj; |
5089 | } | |
5090 | ||
49df1f52 | 5091 | #define wxWindow_SetSizer(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSizer(_swigarg0,_swigarg1)) |
2f90df85 RD |
5092 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { |
5093 | PyObject * _resultobj; | |
5094 | wxWindow * _arg0; | |
5095 | wxSizer * _arg1; | |
49df1f52 | 5096 | bool _arg2 = (bool ) TRUE; |
2f90df85 RD |
5097 | PyObject * _argo0 = 0; |
5098 | PyObject * _argo1 = 0; | |
49df1f52 RD |
5099 | int tempbool2 = (int) TRUE; |
5100 | char *_kwnames[] = { "self","sizer","deleteOld", NULL }; | |
2f90df85 RD |
5101 | |
5102 | self = self; | |
49df1f52 | 5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1,&tempbool2)) |
2f90df85 RD |
5104 | return NULL; |
5105 | if (_argo0) { | |
5106 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5107 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5108 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
5109 | return NULL; | |
5110 | } | |
5111 | } | |
5112 | if (_argo1) { | |
5113 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5114 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5115 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
5116 | return NULL; | |
5117 | } | |
5118 | } | |
49df1f52 | 5119 | _arg2 = (bool ) tempbool2; |
2f90df85 | 5120 | { |
474c48f9 | 5121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
49df1f52 | 5122 | wxWindow_SetSizer(_arg0,_arg1,_arg2); |
2f90df85 | 5123 | |
474c48f9 | 5124 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5125 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5126 | } Py_INCREF(Py_None); |
5127 | _resultobj = Py_None; | |
5128 | return _resultobj; | |
5129 | } | |
5130 | ||
f6bcfd97 BP |
5131 | #define wxWindow_GetSizer(_swigobj) (_swigobj->GetSizer()) |
5132 | static PyObject *_wrap_wxWindow_GetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject * _resultobj; | |
5134 | wxSizer * _result; | |
5135 | wxWindow * _arg0; | |
5136 | PyObject * _argo0 = 0; | |
5137 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
5138 | |
5139 | self = self; | |
5140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizer",_kwnames,&_argo0)) | |
5141 | return NULL; | |
5142 | if (_argo0) { | |
5143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizer. Expected _wxWindow_p."); | |
5146 | return NULL; | |
5147 | } | |
5148 | } | |
5149 | { | |
474c48f9 | 5150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5151 | _result = (wxSizer *)wxWindow_GetSizer(_arg0); |
f6bcfd97 | 5152 | |
474c48f9 | 5153 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5154 | if (PyErr_Occurred()) return NULL; |
7a9b33db | 5155 | }{ _resultobj = wxPyMake_wxSizer(_result); } |
f6bcfd97 BP |
5156 | return _resultobj; |
5157 | } | |
5158 | ||
94082a71 RD |
5159 | #define wxWindow_SetContainingSizer(_swigobj,_swigarg0) (_swigobj->SetContainingSizer(_swigarg0)) |
5160 | static PyObject *_wrap_wxWindow_SetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5161 | PyObject * _resultobj; | |
5162 | wxWindow * _arg0; | |
5163 | wxSizer * _arg1; | |
5164 | PyObject * _argo0 = 0; | |
5165 | PyObject * _argo1 = 0; | |
5166 | char *_kwnames[] = { "self","sizer", NULL }; | |
5167 | ||
5168 | self = self; | |
5169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetContainingSizer",_kwnames,&_argo0,&_argo1)) | |
5170 | return NULL; | |
5171 | if (_argo0) { | |
5172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetContainingSizer. Expected _wxWindow_p."); | |
5175 | return NULL; | |
5176 | } | |
5177 | } | |
5178 | if (_argo1) { | |
5179 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5180 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
5181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetContainingSizer. Expected _wxSizer_p."); | |
5182 | return NULL; | |
5183 | } | |
5184 | } | |
5185 | { | |
5186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5187 | wxWindow_SetContainingSizer(_arg0,_arg1); |
94082a71 RD |
5188 | |
5189 | wxPyEndAllowThreads(__tstate); | |
5190 | if (PyErr_Occurred()) return NULL; | |
5191 | } Py_INCREF(Py_None); | |
5192 | _resultobj = Py_None; | |
5193 | return _resultobj; | |
5194 | } | |
5195 | ||
5196 | #define wxWindow_GetContainingSizer(_swigobj) (_swigobj->GetContainingSizer()) | |
5197 | static PyObject *_wrap_wxWindow_GetContainingSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject * _resultobj; | |
5199 | wxSizer * _result; | |
5200 | wxWindow * _arg0; | |
5201 | PyObject * _argo0 = 0; | |
5202 | char *_kwnames[] = { "self", NULL }; | |
5203 | ||
5204 | self = self; | |
5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetContainingSizer",_kwnames,&_argo0)) | |
5206 | return NULL; | |
5207 | if (_argo0) { | |
5208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetContainingSizer. Expected _wxWindow_p."); | |
5211 | return NULL; | |
5212 | } | |
5213 | } | |
5214 | { | |
5215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5216 | _result = (wxSizer *)wxWindow_GetContainingSizer(_arg0); |
94082a71 RD |
5217 | |
5218 | wxPyEndAllowThreads(__tstate); | |
5219 | if (PyErr_Occurred()) return NULL; | |
5220 | }{ _resultobj = wxPyMake_wxSizer(_result); } | |
5221 | return _resultobj; | |
5222 | } | |
5223 | ||
2f90df85 RD |
5224 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) |
5225 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5226 | PyObject * _resultobj; | |
5227 | wxValidator * _result; | |
5228 | wxWindow * _arg0; | |
5229 | PyObject * _argo0 = 0; | |
5230 | char *_kwnames[] = { "self", NULL }; | |
2f90df85 RD |
5231 | |
5232 | self = self; | |
5233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
5234 | return NULL; | |
5235 | if (_argo0) { | |
5236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
5239 | return NULL; | |
5240 | } | |
5241 | } | |
5242 | { | |
474c48f9 | 5243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5244 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); |
2f90df85 | 5245 | |
474c48f9 | 5246 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5247 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 5248 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2f90df85 RD |
5249 | return _resultobj; |
5250 | } | |
5251 | ||
5252 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
5253 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5254 | PyObject * _resultobj; | |
5255 | wxWindow * _arg0; | |
5256 | wxValidator * _arg1; | |
5257 | PyObject * _argo0 = 0; | |
5258 | PyObject * _argo1 = 0; | |
5259 | char *_kwnames[] = { "self","validator", NULL }; | |
5260 | ||
5261 | self = self; | |
5262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
5263 | return NULL; | |
5264 | if (_argo0) { | |
5265 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5266 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5267 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
5268 | return NULL; | |
5269 | } | |
5270 | } | |
5271 | if (_argo1) { | |
5272 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5273 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
5274 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
5275 | return NULL; | |
5276 | } | |
5277 | } | |
5278 | { | |
474c48f9 | 5279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5280 | wxWindow_SetValidator(_arg0,*_arg1); |
2f90df85 | 5281 | |
474c48f9 | 5282 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5283 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
5284 | } Py_INCREF(Py_None); |
5285 | _resultobj = Py_None; | |
5286 | return _resultobj; | |
5287 | } | |
5288 | ||
b1462dfa RD |
5289 | #define wxWindow_SetDropTarget(_swigobj,_swigarg0) (_swigobj->SetDropTarget(_swigarg0)) |
5290 | static PyObject *_wrap_wxWindow_SetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5291 | PyObject * _resultobj; | |
5292 | wxWindow * _arg0; | |
5293 | wxDropTarget * _arg1; | |
5294 | PyObject * _argo0 = 0; | |
5295 | PyObject * _argo1 = 0; | |
5296 | char *_kwnames[] = { "self","target", NULL }; | |
5297 | ||
5298 | self = self; | |
5299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDropTarget",_kwnames,&_argo0,&_argo1)) | |
5300 | return NULL; | |
5301 | if (_argo0) { | |
5302 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5303 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5304 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDropTarget. Expected _wxWindow_p."); | |
5305 | return NULL; | |
5306 | } | |
5307 | } | |
5308 | if (_argo1) { | |
5309 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5310 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDropTarget_p")) { | |
5311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDropTarget. Expected _wxDropTarget_p."); | |
5312 | return NULL; | |
5313 | } | |
5314 | } | |
5315 | { | |
474c48f9 | 5316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5317 | wxWindow_SetDropTarget(_arg0,_arg1); |
b1462dfa | 5318 | |
474c48f9 | 5319 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5320 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5321 | } Py_INCREF(Py_None); |
5322 | _resultobj = Py_None; | |
5323 | return _resultobj; | |
5324 | } | |
5325 | ||
5326 | #define wxWindow_GetDropTarget(_swigobj) (_swigobj->GetDropTarget()) | |
5327 | static PyObject *_wrap_wxWindow_GetDropTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5328 | PyObject * _resultobj; | |
5329 | wxDropTarget * _result; | |
5330 | wxWindow * _arg0; | |
5331 | PyObject * _argo0 = 0; | |
5332 | char *_kwnames[] = { "self", NULL }; | |
5333 | char _ptemp[128]; | |
5334 | ||
5335 | self = self; | |
5336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDropTarget",_kwnames,&_argo0)) | |
5337 | return NULL; | |
5338 | if (_argo0) { | |
5339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDropTarget. Expected _wxWindow_p."); | |
5342 | return NULL; | |
5343 | } | |
5344 | } | |
5345 | { | |
474c48f9 | 5346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5347 | _result = (wxDropTarget *)wxWindow_GetDropTarget(_arg0); |
b1462dfa | 5348 | |
474c48f9 | 5349 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5350 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
5351 | } if (_result) { |
5352 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDropTarget_p"); | |
5353 | _resultobj = Py_BuildValue("s",_ptemp); | |
5354 | } else { | |
5355 | Py_INCREF(Py_None); | |
5356 | _resultobj = Py_None; | |
5357 | } | |
5358 | return _resultobj; | |
5359 | } | |
5360 | ||
694759cf RD |
5361 | #define wxWindow_GetBestSize(_swigobj) (_swigobj->GetBestSize()) |
5362 | static PyObject *_wrap_wxWindow_GetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5363 | PyObject * _resultobj; | |
5364 | wxSize * _result; | |
5365 | wxWindow * _arg0; | |
5366 | PyObject * _argo0 = 0; | |
5367 | char *_kwnames[] = { "self", NULL }; | |
5368 | char _ptemp[128]; | |
5369 | ||
5370 | self = self; | |
5371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBestSize",_kwnames,&_argo0)) | |
5372 | return NULL; | |
5373 | if (_argo0) { | |
5374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBestSize. Expected _wxWindow_p."); | |
5377 | return NULL; | |
5378 | } | |
5379 | } | |
5380 | { | |
474c48f9 | 5381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5382 | _result = new wxSize (wxWindow_GetBestSize(_arg0)); |
694759cf | 5383 | |
474c48f9 | 5384 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5385 | if (PyErr_Occurred()) return NULL; |
694759cf RD |
5386 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
5387 | _resultobj = Py_BuildValue("s",_ptemp); | |
5388 | return _resultobj; | |
5389 | } | |
5390 | ||
49df1f52 RD |
5391 | #define wxWindow_GetMaxSize(_swigobj) (_swigobj->GetMaxSize()) |
5392 | static PyObject *_wrap_wxWindow_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5393 | PyObject * _resultobj; | |
5394 | wxSize * _result; | |
5395 | wxWindow * _arg0; | |
5396 | PyObject * _argo0 = 0; | |
5397 | char *_kwnames[] = { "self", NULL }; | |
5398 | char _ptemp[128]; | |
5399 | ||
5400 | self = self; | |
5401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetMaxSize",_kwnames,&_argo0)) | |
5402 | return NULL; | |
5403 | if (_argo0) { | |
5404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetMaxSize. Expected _wxWindow_p."); | |
5407 | return NULL; | |
5408 | } | |
5409 | } | |
5410 | { | |
5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5412 | _result = new wxSize (wxWindow_GetMaxSize(_arg0)); | |
5413 | ||
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) return NULL; | |
5416 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
5417 | _resultobj = Py_BuildValue("s",_ptemp); | |
5418 | return _resultobj; | |
5419 | } | |
5420 | ||
a1df7a95 RD |
5421 | #define wxWindow_SetCaret(_swigobj,_swigarg0) (_swigobj->SetCaret(_swigarg0)) |
5422 | static PyObject *_wrap_wxWindow_SetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5423 | PyObject * _resultobj; | |
5424 | wxWindow * _arg0; | |
5425 | wxCaret * _arg1; | |
5426 | PyObject * _argo0 = 0; | |
5427 | PyObject * _argo1 = 0; | |
5428 | char *_kwnames[] = { "self","caret", NULL }; | |
5429 | ||
5430 | self = self; | |
5431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCaret",_kwnames,&_argo0,&_argo1)) | |
5432 | return NULL; | |
5433 | if (_argo0) { | |
5434 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5435 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5436 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCaret. Expected _wxWindow_p."); | |
5437 | return NULL; | |
5438 | } | |
5439 | } | |
5440 | if (_argo1) { | |
5441 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5442 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCaret_p")) { | |
5443 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCaret. Expected _wxCaret_p."); | |
5444 | return NULL; | |
5445 | } | |
5446 | } | |
5447 | { | |
474c48f9 | 5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5449 | wxWindow_SetCaret(_arg0,_arg1); |
a1df7a95 | 5450 | |
474c48f9 | 5451 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5452 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5453 | } Py_INCREF(Py_None); |
5454 | _resultobj = Py_None; | |
5455 | return _resultobj; | |
5456 | } | |
5457 | ||
5458 | #define wxWindow_GetCaret(_swigobj) (_swigobj->GetCaret()) | |
5459 | static PyObject *_wrap_wxWindow_GetCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5460 | PyObject * _resultobj; | |
5461 | wxCaret * _result; | |
5462 | wxWindow * _arg0; | |
5463 | PyObject * _argo0 = 0; | |
5464 | char *_kwnames[] = { "self", NULL }; | |
5465 | char _ptemp[128]; | |
5466 | ||
5467 | self = self; | |
5468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCaret",_kwnames,&_argo0)) | |
5469 | return NULL; | |
5470 | if (_argo0) { | |
5471 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5472 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5473 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCaret. Expected _wxWindow_p."); | |
5474 | return NULL; | |
5475 | } | |
5476 | } | |
5477 | { | |
474c48f9 | 5478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5479 | _result = (wxCaret *)wxWindow_GetCaret(_arg0); |
a1df7a95 | 5480 | |
474c48f9 | 5481 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 5482 | if (PyErr_Occurred()) return NULL; |
a1df7a95 RD |
5483 | } if (_result) { |
5484 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
5485 | _resultobj = Py_BuildValue("s",_ptemp); | |
5486 | } else { | |
5487 | Py_INCREF(Py_None); | |
5488 | _resultobj = Py_None; | |
5489 | } | |
5490 | return _resultobj; | |
5491 | } | |
5492 | ||
10be44ac RD |
5493 | #define wxWindow_Freeze(_swigobj) (_swigobj->Freeze()) |
5494 | static PyObject *_wrap_wxWindow_Freeze(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject * _resultobj; | |
5496 | wxWindow * _arg0; | |
5497 | PyObject * _argo0 = 0; | |
5498 | char *_kwnames[] = { "self", NULL }; | |
5499 | ||
5500 | self = self; | |
5501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Freeze",_kwnames,&_argo0)) | |
5502 | return NULL; | |
5503 | if (_argo0) { | |
5504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Freeze. Expected _wxWindow_p."); | |
5507 | return NULL; | |
5508 | } | |
5509 | } | |
5510 | { | |
474c48f9 | 5511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5512 | wxWindow_Freeze(_arg0); |
10be44ac | 5513 | |
474c48f9 | 5514 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5515 | if (PyErr_Occurred()) return NULL; |
5516 | } Py_INCREF(Py_None); | |
5517 | _resultobj = Py_None; | |
5518 | return _resultobj; | |
5519 | } | |
5520 | ||
5521 | #define wxWindow_Thaw(_swigobj) (_swigobj->Thaw()) | |
5522 | static PyObject *_wrap_wxWindow_Thaw(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5523 | PyObject * _resultobj; | |
5524 | wxWindow * _arg0; | |
5525 | PyObject * _argo0 = 0; | |
5526 | char *_kwnames[] = { "self", NULL }; | |
5527 | ||
5528 | self = self; | |
5529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Thaw",_kwnames,&_argo0)) | |
5530 | return NULL; | |
5531 | if (_argo0) { | |
5532 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5533 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Thaw. Expected _wxWindow_p."); | |
5535 | return NULL; | |
5536 | } | |
5537 | } | |
5538 | { | |
474c48f9 | 5539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5540 | wxWindow_Thaw(_arg0); |
10be44ac | 5541 | |
474c48f9 | 5542 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
5543 | if (PyErr_Occurred()) return NULL; |
5544 | } Py_INCREF(Py_None); | |
5545 | _resultobj = Py_None; | |
5546 | return _resultobj; | |
5547 | } | |
5548 | ||
aa2a5b86 RD |
5549 | #define wxWindow_Update(_swigobj) (_swigobj->Update()) |
5550 | static PyObject *_wrap_wxWindow_Update(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5551 | PyObject * _resultobj; | |
5552 | wxWindow * _arg0; | |
5553 | PyObject * _argo0 = 0; | |
5554 | char *_kwnames[] = { "self", NULL }; | |
5555 | ||
5556 | self = self; | |
5557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Update",_kwnames,&_argo0)) | |
5558 | return NULL; | |
5559 | if (_argo0) { | |
5560 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5561 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5562 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Update. Expected _wxWindow_p."); | |
5563 | return NULL; | |
5564 | } | |
5565 | } | |
5566 | { | |
474c48f9 | 5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5568 | wxWindow_Update(_arg0); |
aa2a5b86 | 5569 | |
474c48f9 | 5570 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5571 | if (PyErr_Occurred()) return NULL; |
5572 | } Py_INCREF(Py_None); | |
5573 | _resultobj = Py_None; | |
5574 | return _resultobj; | |
5575 | } | |
5576 | ||
cd096152 RD |
5577 | #define wxWindow_GetHelpText(_swigobj) (_swigobj->GetHelpText()) |
5578 | static PyObject *_wrap_wxWindow_GetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5579 | PyObject * _resultobj; | |
5580 | wxString * _result; | |
5581 | wxWindow * _arg0; | |
5582 | PyObject * _argo0 = 0; | |
5583 | char *_kwnames[] = { "self", NULL }; | |
5584 | ||
5585 | self = self; | |
5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetHelpText",_kwnames,&_argo0)) | |
5587 | return NULL; | |
5588 | if (_argo0) { | |
5589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetHelpText. Expected _wxWindow_p."); | |
5592 | return NULL; | |
5593 | } | |
5594 | } | |
5595 | { | |
474c48f9 | 5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5597 | _result = new wxString (wxWindow_GetHelpText(_arg0)); |
cd096152 | 5598 | |
474c48f9 | 5599 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5600 | if (PyErr_Occurred()) return NULL; |
5601 | }{ | |
c8bc7bb8 RD |
5602 | #if wxUSE_UNICODE |
5603 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5604 | #else | |
cd096152 | 5605 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5606 | #endif |
cd096152 RD |
5607 | } |
5608 | { | |
5609 | delete _result; | |
5610 | } | |
5611 | return _resultobj; | |
5612 | } | |
5613 | ||
5614 | #define wxWindow_SetHelpText(_swigobj,_swigarg0) (_swigobj->SetHelpText(_swigarg0)) | |
5615 | static PyObject *_wrap_wxWindow_SetHelpText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5616 | PyObject * _resultobj; | |
5617 | wxWindow * _arg0; | |
5618 | wxString * _arg1; | |
5619 | PyObject * _argo0 = 0; | |
5620 | PyObject * _obj1 = 0; | |
5621 | char *_kwnames[] = { "self","helpText", NULL }; | |
5622 | ||
5623 | self = self; | |
5624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpText",_kwnames,&_argo0,&_obj1)) | |
5625 | return NULL; | |
5626 | if (_argo0) { | |
5627 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5628 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5629 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpText. Expected _wxWindow_p."); | |
5630 | return NULL; | |
5631 | } | |
5632 | } | |
5633 | { | |
c8bc7bb8 RD |
5634 | _arg1 = wxString_in_helper(_obj1); |
5635 | if (_arg1 == NULL) | |
cd096152 | 5636 | return NULL; |
cd096152 RD |
5637 | } |
5638 | { | |
474c48f9 | 5639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5640 | wxWindow_SetHelpText(_arg0,*_arg1); |
cd096152 | 5641 | |
474c48f9 | 5642 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5643 | if (PyErr_Occurred()) return NULL; |
5644 | } Py_INCREF(Py_None); | |
5645 | _resultobj = Py_None; | |
5646 | { | |
5647 | if (_obj1) | |
5648 | delete _arg1; | |
5649 | } | |
5650 | return _resultobj; | |
5651 | } | |
5652 | ||
8cb49012 RD |
5653 | #define wxWindow_SetHelpTextForId(_swigobj,_swigarg0) (_swigobj->SetHelpTextForId(_swigarg0)) |
5654 | static PyObject *_wrap_wxWindow_SetHelpTextForId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5655 | PyObject * _resultobj; | |
5656 | wxWindow * _arg0; | |
5657 | wxString * _arg1; | |
5658 | PyObject * _argo0 = 0; | |
5659 | PyObject * _obj1 = 0; | |
5660 | char *_kwnames[] = { "self","text", NULL }; | |
5661 | ||
5662 | self = self; | |
5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetHelpTextForId",_kwnames,&_argo0,&_obj1)) | |
5664 | return NULL; | |
5665 | if (_argo0) { | |
5666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetHelpTextForId. Expected _wxWindow_p."); | |
5669 | return NULL; | |
5670 | } | |
5671 | } | |
5672 | { | |
c8bc7bb8 RD |
5673 | _arg1 = wxString_in_helper(_obj1); |
5674 | if (_arg1 == NULL) | |
8cb49012 | 5675 | return NULL; |
8cb49012 RD |
5676 | } |
5677 | { | |
5678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 5679 | wxWindow_SetHelpTextForId(_arg0,*_arg1); |
8cb49012 RD |
5680 | |
5681 | wxPyEndAllowThreads(__tstate); | |
5682 | if (PyErr_Occurred()) return NULL; | |
5683 | } Py_INCREF(Py_None); | |
5684 | _resultobj = Py_None; | |
5685 | { | |
5686 | if (_obj1) | |
5687 | delete _arg1; | |
5688 | } | |
5689 | return _resultobj; | |
5690 | } | |
5691 | ||
cd096152 RD |
5692 | #define wxWindow_ScrollLines(_swigobj,_swigarg0) (_swigobj->ScrollLines(_swigarg0)) |
5693 | static PyObject *_wrap_wxWindow_ScrollLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5694 | PyObject * _resultobj; | |
5695 | bool _result; | |
5696 | wxWindow * _arg0; | |
5697 | int _arg1; | |
5698 | PyObject * _argo0 = 0; | |
5699 | char *_kwnames[] = { "self","lines", NULL }; | |
5700 | ||
5701 | self = self; | |
5702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollLines",_kwnames,&_argo0,&_arg1)) | |
5703 | return NULL; | |
5704 | if (_argo0) { | |
5705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollLines. Expected _wxWindow_p."); | |
5708 | return NULL; | |
5709 | } | |
5710 | } | |
5711 | { | |
474c48f9 | 5712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5713 | _result = (bool )wxWindow_ScrollLines(_arg0,_arg1); |
cd096152 | 5714 | |
474c48f9 | 5715 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5716 | if (PyErr_Occurred()) return NULL; |
5717 | } _resultobj = Py_BuildValue("i",_result); | |
5718 | return _resultobj; | |
5719 | } | |
5720 | ||
5721 | #define wxWindow_ScrollPages(_swigobj,_swigarg0) (_swigobj->ScrollPages(_swigarg0)) | |
5722 | static PyObject *_wrap_wxWindow_ScrollPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5723 | PyObject * _resultobj; | |
5724 | bool _result; | |
5725 | wxWindow * _arg0; | |
5726 | int _arg1; | |
5727 | PyObject * _argo0 = 0; | |
5728 | char *_kwnames[] = { "self","pages", NULL }; | |
5729 | ||
5730 | self = self; | |
5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_ScrollPages",_kwnames,&_argo0,&_arg1)) | |
5732 | return NULL; | |
5733 | if (_argo0) { | |
5734 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5735 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5736 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollPages. Expected _wxWindow_p."); | |
5737 | return NULL; | |
5738 | } | |
5739 | } | |
5740 | { | |
474c48f9 | 5741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5742 | _result = (bool )wxWindow_ScrollPages(_arg0,_arg1); |
cd096152 | 5743 | |
474c48f9 | 5744 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5745 | if (PyErr_Occurred()) return NULL; |
5746 | } _resultobj = Py_BuildValue("i",_result); | |
5747 | return _resultobj; | |
5748 | } | |
5749 | ||
5750 | #define wxWindow_LineUp(_swigobj) (_swigobj->LineUp()) | |
5751 | static PyObject *_wrap_wxWindow_LineUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5752 | PyObject * _resultobj; | |
5753 | bool _result; | |
5754 | wxWindow * _arg0; | |
5755 | PyObject * _argo0 = 0; | |
5756 | char *_kwnames[] = { "self", NULL }; | |
5757 | ||
5758 | self = self; | |
5759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineUp",_kwnames,&_argo0)) | |
5760 | return NULL; | |
5761 | if (_argo0) { | |
5762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineUp. Expected _wxWindow_p."); | |
5765 | return NULL; | |
5766 | } | |
5767 | } | |
5768 | { | |
474c48f9 | 5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5770 | _result = (bool )wxWindow_LineUp(_arg0); |
cd096152 | 5771 | |
474c48f9 | 5772 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5773 | if (PyErr_Occurred()) return NULL; |
5774 | } _resultobj = Py_BuildValue("i",_result); | |
5775 | return _resultobj; | |
5776 | } | |
5777 | ||
5778 | #define wxWindow_LineDown(_swigobj) (_swigobj->LineDown()) | |
5779 | static PyObject *_wrap_wxWindow_LineDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5780 | PyObject * _resultobj; | |
5781 | bool _result; | |
5782 | wxWindow * _arg0; | |
5783 | PyObject * _argo0 = 0; | |
5784 | char *_kwnames[] = { "self", NULL }; | |
5785 | ||
5786 | self = self; | |
5787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_LineDown",_kwnames,&_argo0)) | |
5788 | return NULL; | |
5789 | if (_argo0) { | |
5790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LineDown. Expected _wxWindow_p."); | |
5793 | return NULL; | |
5794 | } | |
5795 | } | |
5796 | { | |
474c48f9 | 5797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5798 | _result = (bool )wxWindow_LineDown(_arg0); |
cd096152 | 5799 | |
474c48f9 | 5800 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5801 | if (PyErr_Occurred()) return NULL; |
5802 | } _resultobj = Py_BuildValue("i",_result); | |
5803 | return _resultobj; | |
5804 | } | |
5805 | ||
5806 | #define wxWindow_PageUp(_swigobj) (_swigobj->PageUp()) | |
5807 | static PyObject *_wrap_wxWindow_PageUp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5808 | PyObject * _resultobj; | |
5809 | bool _result; | |
5810 | wxWindow * _arg0; | |
5811 | PyObject * _argo0 = 0; | |
5812 | char *_kwnames[] = { "self", NULL }; | |
5813 | ||
5814 | self = self; | |
5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageUp",_kwnames,&_argo0)) | |
5816 | return NULL; | |
5817 | if (_argo0) { | |
5818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageUp. Expected _wxWindow_p."); | |
5821 | return NULL; | |
5822 | } | |
5823 | } | |
5824 | { | |
474c48f9 | 5825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5826 | _result = (bool )wxWindow_PageUp(_arg0); |
cd096152 | 5827 | |
474c48f9 | 5828 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5829 | if (PyErr_Occurred()) return NULL; |
5830 | } _resultobj = Py_BuildValue("i",_result); | |
5831 | return _resultobj; | |
5832 | } | |
5833 | ||
5834 | #define wxWindow_PageDown(_swigobj) (_swigobj->PageDown()) | |
5835 | static PyObject *_wrap_wxWindow_PageDown(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5836 | PyObject * _resultobj; | |
5837 | bool _result; | |
5838 | wxWindow * _arg0; | |
5839 | PyObject * _argo0 = 0; | |
5840 | char *_kwnames[] = { "self", NULL }; | |
5841 | ||
5842 | self = self; | |
5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_PageDown",_kwnames,&_argo0)) | |
5844 | return NULL; | |
5845 | if (_argo0) { | |
5846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PageDown. Expected _wxWindow_p."); | |
5849 | return NULL; | |
5850 | } | |
5851 | } | |
5852 | { | |
474c48f9 | 5853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5854 | _result = (bool )wxWindow_PageDown(_arg0); |
cd096152 | 5855 | |
474c48f9 | 5856 | wxPyEndAllowThreads(__tstate); |
cd096152 RD |
5857 | if (PyErr_Occurred()) return NULL; |
5858 | } _resultobj = Py_BuildValue("i",_result); | |
5859 | return _resultobj; | |
5860 | } | |
5861 | ||
aa2a5b86 RD |
5862 | static PyObject *_wrap_wxWindow_FindFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
5863 | PyObject * _resultobj; | |
5864 | wxWindow * _result; | |
5865 | char *_kwnames[] = { NULL }; | |
5866 | ||
5867 | self = self; | |
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_FindFocus",_kwnames)) | |
5869 | return NULL; | |
5870 | { | |
474c48f9 | 5871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5872 | _result = (wxWindow *)wxWindow::FindFocus(); |
aa2a5b86 | 5873 | |
474c48f9 | 5874 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5875 | if (PyErr_Occurred()) return NULL; |
5876 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
5877 | return _resultobj; | |
5878 | } | |
5879 | ||
5880 | static PyObject *_wrap_wxWindow_NewControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5881 | PyObject * _resultobj; | |
5882 | int _result; | |
5883 | char *_kwnames[] = { NULL }; | |
5884 | ||
5885 | self = self; | |
5886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWindow_NewControlId",_kwnames)) | |
5887 | return NULL; | |
5888 | { | |
474c48f9 | 5889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5890 | _result = (int )wxWindow::NewControlId(); |
aa2a5b86 | 5891 | |
474c48f9 | 5892 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5893 | if (PyErr_Occurred()) return NULL; |
5894 | } _resultobj = Py_BuildValue("i",_result); | |
5895 | return _resultobj; | |
5896 | } | |
5897 | ||
5898 | static PyObject *_wrap_wxWindow_NextControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5899 | PyObject * _resultobj; | |
5900 | int _result; | |
5901 | int _arg0; | |
5902 | char *_kwnames[] = { "id", NULL }; | |
5903 | ||
5904 | self = self; | |
5905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_NextControlId",_kwnames,&_arg0)) | |
5906 | return NULL; | |
5907 | { | |
474c48f9 | 5908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5909 | _result = (int )wxWindow::NextControlId(_arg0); |
aa2a5b86 | 5910 | |
474c48f9 | 5911 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5912 | if (PyErr_Occurred()) return NULL; |
5913 | } _resultobj = Py_BuildValue("i",_result); | |
5914 | return _resultobj; | |
5915 | } | |
5916 | ||
5917 | static PyObject *_wrap_wxWindow_PrevControlId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5918 | PyObject * _resultobj; | |
5919 | int _result; | |
5920 | int _arg0; | |
5921 | char *_kwnames[] = { "id", NULL }; | |
5922 | ||
5923 | self = self; | |
5924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxWindow_PrevControlId",_kwnames,&_arg0)) | |
5925 | return NULL; | |
5926 | { | |
474c48f9 | 5927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5928 | _result = (int )wxWindow::PrevControlId(_arg0); |
aa2a5b86 | 5929 | |
474c48f9 | 5930 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
5931 | if (PyErr_Occurred()) return NULL; |
5932 | } _resultobj = Py_BuildValue("i",_result); | |
5933 | return _resultobj; | |
5934 | } | |
5935 | ||
32c988a3 RD |
5936 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
5937 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject * _resultobj; | |
5939 | wxWindow * _arg0; | |
5940 | wxAcceleratorTable * _arg1; | |
5941 | PyObject * _argo0 = 0; | |
5942 | PyObject * _argo1 = 0; | |
5943 | char *_kwnames[] = { "self","accel", NULL }; | |
5944 | ||
5945 | self = self; | |
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) | |
5947 | return NULL; | |
5948 | if (_argo0) { | |
5949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); | |
5952 | return NULL; | |
5953 | } | |
5954 | } | |
5955 | if (_argo1) { | |
5956 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5957 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
5958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); | |
5959 | return NULL; | |
5960 | } | |
5961 | } | |
5962 | { | |
474c48f9 | 5963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5964 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); |
32c988a3 | 5965 | |
474c48f9 | 5966 | wxPyEndAllowThreads(__tstate); |
32c988a3 RD |
5967 | if (PyErr_Occurred()) return NULL; |
5968 | } Py_INCREF(Py_None); | |
5969 | _resultobj = Py_None; | |
5970 | return _resultobj; | |
5971 | } | |
5972 | ||
65191ae8 RD |
5973 | #define wxWindow_GetAcceleratorTable(_swigobj) (_swigobj->GetAcceleratorTable()) |
5974 | static PyObject *_wrap_wxWindow_GetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5975 | PyObject * _resultobj; | |
5976 | wxAcceleratorTable * _result; | |
5977 | wxWindow * _arg0; | |
5978 | PyObject * _argo0 = 0; | |
5979 | char *_kwnames[] = { "self", NULL }; | |
5980 | char _ptemp[128]; | |
5981 | ||
5982 | self = self; | |
5983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAcceleratorTable",_kwnames,&_argo0)) | |
5984 | return NULL; | |
5985 | if (_argo0) { | |
5986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
5988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAcceleratorTable. Expected _wxWindow_p."); | |
5989 | return NULL; | |
5990 | } | |
5991 | } | |
5992 | { | |
474c48f9 | 5993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5994 | _result = (wxAcceleratorTable *)wxWindow_GetAcceleratorTable(_arg0); |
65191ae8 | 5995 | |
474c48f9 | 5996 | wxPyEndAllowThreads(__tstate); |
65191ae8 RD |
5997 | if (PyErr_Occurred()) return NULL; |
5998 | } if (_result) { | |
5999 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorTable_p"); | |
6000 | _resultobj = Py_BuildValue("s",_ptemp); | |
6001 | } else { | |
6002 | Py_INCREF(Py_None); | |
6003 | _resultobj = Py_None; | |
6004 | } | |
6005 | return _resultobj; | |
6006 | } | |
6007 | ||
1893b029 RD |
6008 | #define wxWindow_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
6009 | static PyObject *_wrap_wxWindow_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6010 | PyObject * _resultobj; | |
49df1f52 | 6011 | wxWindow * _result; |
1893b029 RD |
6012 | wxWindow * _arg0; |
6013 | PyObject * _argo0 = 0; | |
6014 | char *_kwnames[] = { "self", NULL }; | |
6015 | ||
6016 | self = self; | |
6017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetDefaultItem",_kwnames,&_argo0)) | |
6018 | return NULL; | |
6019 | if (_argo0) { | |
6020 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6021 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6022 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetDefaultItem. Expected _wxWindow_p."); | |
6023 | return NULL; | |
6024 | } | |
6025 | } | |
6026 | { | |
6027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6028 | _result = (wxWindow *)wxWindow_GetDefaultItem(_arg0); |
1893b029 RD |
6029 | |
6030 | wxPyEndAllowThreads(__tstate); | |
6031 | if (PyErr_Occurred()) return NULL; | |
6032 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
6033 | return _resultobj; | |
6034 | } | |
6035 | ||
6036 | #define wxWindow_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
6037 | static PyObject *_wrap_wxWindow_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6038 | PyObject * _resultobj; | |
49df1f52 | 6039 | wxWindow * _result; |
1893b029 | 6040 | wxWindow * _arg0; |
49df1f52 | 6041 | wxWindow * _arg1; |
1893b029 RD |
6042 | PyObject * _argo0 = 0; |
6043 | PyObject * _argo1 = 0; | |
6044 | char *_kwnames[] = { "self","btn", NULL }; | |
6045 | ||
6046 | self = self; | |
6047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetDefaultItem",_kwnames,&_argo0,&_argo1)) | |
6048 | return NULL; | |
6049 | if (_argo0) { | |
6050 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6051 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
6052 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
6053 | return NULL; | |
6054 | } | |
6055 | } | |
6056 | if (_argo1) { | |
6057 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
49df1f52 RD |
6058 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { |
6059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetDefaultItem. Expected _wxWindow_p."); | |
1893b029 RD |
6060 | return NULL; |
6061 | } | |
6062 | } | |
6063 | { | |
6064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
49df1f52 | 6065 | _result = (wxWindow *)wxWindow_SetDefaultItem(_arg0,_arg1); |
1893b029 RD |
6066 | |
6067 | wxPyEndAllowThreads(__tstate); | |
6068 | if (PyErr_Occurred()) return NULL; | |
49df1f52 | 6069 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1893b029 RD |
6070 | return _resultobj; |
6071 | } | |
6072 | ||
8ab979d7 RD |
6073 | static void *SwigwxPanelTowxWindow(void *ptr) { |
6074 | wxPanel *src; | |
6075 | wxWindow *dest; | |
6076 | src = (wxPanel *) ptr; | |
6077 | dest = (wxWindow *) src; | |
6078 | return (void *) dest; | |
6079 | } | |
6080 | ||
6081 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
6082 | wxPanel *src; | |
6083 | wxEvtHandler *dest; | |
6084 | src = (wxPanel *) ptr; | |
6085 | dest = (wxEvtHandler *) src; | |
6086 | return (void *) dest; | |
6087 | } | |
6088 | ||
9df61a29 RD |
6089 | static void *SwigwxPanelTowxObject(void *ptr) { |
6090 | wxPanel *src; | |
6091 | wxObject *dest; | |
6092 | src = (wxPanel *) ptr; | |
6093 | dest = (wxObject *) src; | |
6094 | return (void *) dest; | |
6095 | } | |
6096 | ||
8ab979d7 | 6097 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6098 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6099 | PyObject * _resultobj; |
6100 | wxPanel * _result; | |
6101 | wxWindow * _arg0; | |
6102 | wxWindowID _arg1; | |
b68dc582 RD |
6103 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6104 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6105 | long _arg4 = (long ) wxTAB_TRAVERSAL; |
9a74fcaf | 6106 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6107 | PyObject * _argo0 = 0; |
2f90df85 RD |
6108 | wxPoint temp; |
6109 | PyObject * _obj2 = 0; | |
6110 | wxSize temp0; | |
6111 | PyObject * _obj3 = 0; | |
9a74fcaf | 6112 | PyObject * _obj5 = 0; |
efc5f224 | 6113 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6114 | char _ptemp[128]; |
6115 | ||
6116 | self = self; | |
9a74fcaf | 6117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOlO:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6118 | return NULL; |
1d99702e RD |
6119 | if (_argo0) { |
6120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
6123 | return NULL; | |
6124 | } | |
6125 | } | |
2f90df85 RD |
6126 | if (_obj2) |
6127 | { | |
6128 | _arg2 = &temp; | |
6129 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6130 | return NULL; |
2f90df85 RD |
6131 | } |
6132 | if (_obj3) | |
6133 | { | |
6134 | _arg3 = &temp0; | |
6135 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6136 | return NULL; |
9a74fcaf RD |
6137 | } |
6138 | if (_obj5) | |
6139 | { | |
6140 | _arg5 = wxString_in_helper(_obj5); | |
6141 | if (_arg5 == NULL) | |
6142 | return NULL; | |
2f90df85 | 6143 | } |
cf694132 | 6144 | { |
474c48f9 | 6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6146 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6147 | |
474c48f9 | 6148 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6149 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6150 | } if (_result) { |
6151 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6152 | _resultobj = Py_BuildValue("s",_ptemp); | |
6153 | } else { | |
6154 | Py_INCREF(Py_None); | |
6155 | _resultobj = Py_None; | |
6156 | } | |
9a74fcaf RD |
6157 | { |
6158 | if (_obj5) | |
6159 | delete _arg5; | |
6160 | } | |
8ab979d7 RD |
6161 | return _resultobj; |
6162 | } | |
6163 | ||
aa2a5b86 RD |
6164 | #define new_wxPrePanel() (new wxPanel()) |
6165 | static PyObject *_wrap_new_wxPrePanel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6166 | PyObject * _resultobj; | |
6167 | wxPanel * _result; | |
6168 | char *_kwnames[] = { NULL }; | |
6169 | char _ptemp[128]; | |
6170 | ||
6171 | self = self; | |
6172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPrePanel",_kwnames)) | |
6173 | return NULL; | |
6174 | { | |
474c48f9 | 6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6176 | _result = (wxPanel *)new_wxPrePanel(); |
aa2a5b86 | 6177 | |
474c48f9 | 6178 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6179 | if (PyErr_Occurred()) return NULL; |
6180 | } if (_result) { | |
6181 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
6182 | _resultobj = Py_BuildValue("s",_ptemp); | |
6183 | } else { | |
6184 | Py_INCREF(Py_None); | |
6185 | _resultobj = Py_None; | |
6186 | } | |
6187 | return _resultobj; | |
6188 | } | |
6189 | ||
6190 | #define wxPanel_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6191 | static PyObject *_wrap_wxPanel_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6192 | PyObject * _resultobj; | |
6193 | bool _result; | |
6194 | wxPanel * _arg0; | |
6195 | wxWindow * _arg1; | |
6196 | wxWindowID _arg2; | |
6197 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6198 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6199 | long _arg5 = (long ) wxTAB_TRAVERSAL; | |
9a74fcaf | 6200 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
6201 | PyObject * _argo0 = 0; |
6202 | PyObject * _argo1 = 0; | |
6203 | wxPoint temp; | |
6204 | PyObject * _obj3 = 0; | |
6205 | wxSize temp0; | |
6206 | PyObject * _obj4 = 0; | |
9a74fcaf | 6207 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
6208 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6209 | ||
6210 | self = self; | |
9a74fcaf | 6211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|OOlO:wxPanel_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
6212 | return NULL; |
6213 | if (_argo0) { | |
6214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
6216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_Create. Expected _wxPanel_p."); | |
6217 | return NULL; | |
6218 | } | |
6219 | } | |
6220 | if (_argo1) { | |
6221 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6222 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_Create. Expected _wxWindow_p."); | |
6224 | return NULL; | |
6225 | } | |
6226 | } | |
6227 | if (_obj3) | |
6228 | { | |
6229 | _arg3 = &temp; | |
6230 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6231 | return NULL; | |
6232 | } | |
6233 | if (_obj4) | |
6234 | { | |
6235 | _arg4 = &temp0; | |
6236 | if (! wxSize_helper(_obj4, &_arg4)) | |
6237 | return NULL; | |
9a74fcaf RD |
6238 | } |
6239 | if (_obj6) | |
6240 | { | |
6241 | _arg6 = wxString_in_helper(_obj6); | |
6242 | if (_arg6 == NULL) | |
6243 | return NULL; | |
aa2a5b86 RD |
6244 | } |
6245 | { | |
474c48f9 | 6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6247 | _result = (bool )wxPanel_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 6248 | |
474c48f9 | 6249 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6250 | if (PyErr_Occurred()) return NULL; |
6251 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
6252 | { |
6253 | if (_obj6) | |
6254 | delete _arg6; | |
6255 | } | |
aa2a5b86 RD |
6256 | return _resultobj; |
6257 | } | |
6258 | ||
8ab979d7 | 6259 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) |
efc5f224 | 6260 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6261 | PyObject * _resultobj; |
6262 | wxPanel * _arg0; | |
1d99702e | 6263 | PyObject * _argo0 = 0; |
efc5f224 | 6264 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6265 | |
6266 | self = self; | |
efc5f224 | 6267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
8ab979d7 | 6268 | return NULL; |
1d99702e RD |
6269 | if (_argo0) { |
6270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
8ab979d7 RD |
6272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
6273 | return NULL; | |
6274 | } | |
6275 | } | |
cf694132 | 6276 | { |
474c48f9 | 6277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6278 | wxPanel_InitDialog(_arg0); |
cf694132 | 6279 | |
474c48f9 | 6280 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6281 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6282 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6283 | _resultobj = Py_None; |
6284 | return _resultobj; | |
6285 | } | |
6286 | ||
bb0054cd RD |
6287 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
6288 | wxScrolledWindow *src; | |
6289 | wxPanel *dest; | |
6290 | src = (wxScrolledWindow *) ptr; | |
6291 | dest = (wxPanel *) src; | |
6292 | return (void *) dest; | |
6293 | } | |
6294 | ||
8ab979d7 RD |
6295 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
6296 | wxScrolledWindow *src; | |
6297 | wxWindow *dest; | |
6298 | src = (wxScrolledWindow *) ptr; | |
6299 | dest = (wxWindow *) src; | |
6300 | return (void *) dest; | |
6301 | } | |
6302 | ||
6303 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
6304 | wxScrolledWindow *src; | |
6305 | wxEvtHandler *dest; | |
6306 | src = (wxScrolledWindow *) ptr; | |
6307 | dest = (wxEvtHandler *) src; | |
6308 | return (void *) dest; | |
6309 | } | |
6310 | ||
9df61a29 RD |
6311 | static void *SwigwxScrolledWindowTowxObject(void *ptr) { |
6312 | wxScrolledWindow *src; | |
6313 | wxObject *dest; | |
6314 | src = (wxScrolledWindow *) ptr; | |
6315 | dest = (wxObject *) src; | |
6316 | return (void *) dest; | |
6317 | } | |
6318 | ||
8ab979d7 | 6319 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
efc5f224 | 6320 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6321 | PyObject * _resultobj; |
6322 | wxScrolledWindow * _result; | |
6323 | wxWindow * _arg0; | |
1d99702e | 6324 | wxWindowID _arg1 = (wxWindowID ) -1; |
b68dc582 RD |
6325 | wxPoint * _arg2 = (wxPoint *) &wxDefaultPosition; |
6326 | wxSize * _arg3 = (wxSize *) &wxDefaultSize; | |
1d99702e | 6327 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; |
9a74fcaf | 6328 | wxString * _arg5 = (wxString *) &wxPyPanelNameStr; |
1d99702e | 6329 | PyObject * _argo0 = 0; |
2f90df85 RD |
6330 | wxPoint temp; |
6331 | PyObject * _obj2 = 0; | |
6332 | wxSize temp0; | |
6333 | PyObject * _obj3 = 0; | |
9a74fcaf | 6334 | PyObject * _obj5 = 0; |
efc5f224 | 6335 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
8ab979d7 RD |
6336 | char _ptemp[128]; |
6337 | ||
6338 | self = self; | |
9a74fcaf | 6339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOlO:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_obj5)) |
8ab979d7 | 6340 | return NULL; |
1d99702e RD |
6341 | if (_argo0) { |
6342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8ab979d7 RD |
6344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
6345 | return NULL; | |
6346 | } | |
6347 | } | |
2f90df85 RD |
6348 | if (_obj2) |
6349 | { | |
6350 | _arg2 = &temp; | |
6351 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8ab979d7 | 6352 | return NULL; |
2f90df85 RD |
6353 | } |
6354 | if (_obj3) | |
6355 | { | |
6356 | _arg3 = &temp0; | |
6357 | if (! wxSize_helper(_obj3, &_arg3)) | |
8ab979d7 | 6358 | return NULL; |
9a74fcaf RD |
6359 | } |
6360 | if (_obj5) | |
6361 | { | |
6362 | _arg5 = wxString_in_helper(_obj5); | |
6363 | if (_arg5 == NULL) | |
6364 | return NULL; | |
2f90df85 | 6365 | } |
cf694132 | 6366 | { |
474c48f9 | 6367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6368 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,*_arg5); |
cf694132 | 6369 | |
474c48f9 | 6370 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6371 | if (PyErr_Occurred()) return NULL; |
1d99702e RD |
6372 | } if (_result) { |
6373 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6374 | _resultobj = Py_BuildValue("s",_ptemp); | |
6375 | } else { | |
6376 | Py_INCREF(Py_None); | |
6377 | _resultobj = Py_None; | |
6378 | } | |
9a74fcaf RD |
6379 | { |
6380 | if (_obj5) | |
6381 | delete _arg5; | |
6382 | } | |
8ab979d7 RD |
6383 | return _resultobj; |
6384 | } | |
6385 | ||
aa2a5b86 RD |
6386 | #define new_wxPreScrolledWindow() (new wxScrolledWindow()) |
6387 | static PyObject *_wrap_new_wxPreScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject * _resultobj; | |
6389 | wxScrolledWindow * _result; | |
6390 | char *_kwnames[] = { NULL }; | |
6391 | char _ptemp[128]; | |
6392 | ||
6393 | self = self; | |
6394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreScrolledWindow",_kwnames)) | |
6395 | return NULL; | |
6396 | { | |
474c48f9 | 6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6398 | _result = (wxScrolledWindow *)new_wxPreScrolledWindow(); |
aa2a5b86 | 6399 | |
474c48f9 | 6400 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6401 | if (PyErr_Occurred()) return NULL; |
6402 | } if (_result) { | |
6403 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
6404 | _resultobj = Py_BuildValue("s",_ptemp); | |
6405 | } else { | |
6406 | Py_INCREF(Py_None); | |
6407 | _resultobj = Py_None; | |
6408 | } | |
6409 | return _resultobj; | |
6410 | } | |
6411 | ||
6412 | #define wxScrolledWindow_Create(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Create(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
6413 | static PyObject *_wrap_wxScrolledWindow_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6414 | PyObject * _resultobj; | |
6415 | bool _result; | |
6416 | wxScrolledWindow * _arg0; | |
6417 | wxWindow * _arg1; | |
6418 | wxWindowID _arg2 = (wxWindowID ) -1; | |
6419 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; | |
6420 | wxSize * _arg4 = (wxSize *) &wxDefaultSize; | |
6421 | long _arg5 = (long ) wxHSCROLL|wxVSCROLL; | |
9a74fcaf | 6422 | wxString * _arg6 = (wxString *) &wxPyPanelNameStr; |
aa2a5b86 RD |
6423 | PyObject * _argo0 = 0; |
6424 | PyObject * _argo1 = 0; | |
6425 | wxPoint temp; | |
6426 | PyObject * _obj3 = 0; | |
6427 | wxSize temp0; | |
6428 | PyObject * _obj4 = 0; | |
9a74fcaf | 6429 | PyObject * _obj6 = 0; |
aa2a5b86 RD |
6430 | char *_kwnames[] = { "self","parent","id","pos","size","style","name", NULL }; |
6431 | ||
6432 | self = self; | |
9a74fcaf | 6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|iOOlO:wxScrolledWindow_Create",_kwnames,&_argo0,&_argo1,&_arg2,&_obj3,&_obj4,&_arg5,&_obj6)) |
aa2a5b86 RD |
6434 | return NULL; |
6435 | if (_argo0) { | |
6436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Create. Expected _wxScrolledWindow_p."); | |
6439 | return NULL; | |
6440 | } | |
6441 | } | |
6442 | if (_argo1) { | |
6443 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6444 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_Create. Expected _wxWindow_p."); | |
6446 | return NULL; | |
6447 | } | |
6448 | } | |
6449 | if (_obj3) | |
6450 | { | |
6451 | _arg3 = &temp; | |
6452 | if (! wxPoint_helper(_obj3, &_arg3)) | |
6453 | return NULL; | |
6454 | } | |
6455 | if (_obj4) | |
6456 | { | |
6457 | _arg4 = &temp0; | |
6458 | if (! wxSize_helper(_obj4, &_arg4)) | |
6459 | return NULL; | |
9a74fcaf RD |
6460 | } |
6461 | if (_obj6) | |
6462 | { | |
6463 | _arg6 = wxString_in_helper(_obj6); | |
6464 | if (_arg6 == NULL) | |
6465 | return NULL; | |
aa2a5b86 RD |
6466 | } |
6467 | { | |
474c48f9 | 6468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9a74fcaf | 6469 | _result = (bool )wxScrolledWindow_Create(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5,*_arg6); |
aa2a5b86 | 6470 | |
474c48f9 | 6471 | wxPyEndAllowThreads(__tstate); |
aa2a5b86 RD |
6472 | if (PyErr_Occurred()) return NULL; |
6473 | } _resultobj = Py_BuildValue("i",_result); | |
9a74fcaf RD |
6474 | { |
6475 | if (_obj6) | |
6476 | delete _arg6; | |
6477 | } | |
aa2a5b86 RD |
6478 | return _resultobj; |
6479 | } | |
6480 | ||
8ab979d7 | 6481 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) |
efc5f224 | 6482 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6483 | PyObject * _resultobj; |
6484 | wxScrolledWindow * _arg0; | |
6485 | bool _arg1; | |
6486 | bool _arg2; | |
1d99702e | 6487 | PyObject * _argo0 = 0; |
8ab979d7 RD |
6488 | int tempbool1; |
6489 | int tempbool2; | |
efc5f224 | 6490 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
8ab979d7 RD |
6491 | |
6492 | self = self; | |
efc5f224 | 6493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
8ab979d7 | 6494 | return NULL; |
1d99702e RD |
6495 | if (_argo0) { |
6496 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6497 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6498 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
6499 | return NULL; | |
6500 | } | |
6501 | } | |
6502 | _arg1 = (bool ) tempbool1; | |
6503 | _arg2 = (bool ) tempbool2; | |
cf694132 | 6504 | { |
474c48f9 | 6505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6506 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); |
cf694132 | 6507 | |
474c48f9 | 6508 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6509 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6510 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6511 | _resultobj = Py_None; |
6512 | return _resultobj; | |
6513 | } | |
6514 | ||
b7e72427 RD |
6515 | #define wxScrolledWindow_GetScrollPageSize(_swigobj,_swigarg0) (_swigobj->GetScrollPageSize(_swigarg0)) |
6516 | static PyObject *_wrap_wxScrolledWindow_GetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6517 | PyObject * _resultobj; | |
6518 | int _result; | |
6519 | wxScrolledWindow * _arg0; | |
6520 | int _arg1; | |
6521 | PyObject * _argo0 = 0; | |
6522 | char *_kwnames[] = { "self","orient", NULL }; | |
6523 | ||
6524 | self = self; | |
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxScrolledWindow_GetScrollPageSize",_kwnames,&_argo0,&_arg1)) | |
6526 | return NULL; | |
6527 | if (_argo0) { | |
6528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6531 | return NULL; | |
6532 | } | |
6533 | } | |
6534 | { | |
474c48f9 | 6535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6536 | _result = (int )wxScrolledWindow_GetScrollPageSize(_arg0,_arg1); |
b7e72427 | 6537 | |
474c48f9 | 6538 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6539 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6540 | } _resultobj = Py_BuildValue("i",_result); |
6541 | return _resultobj; | |
6542 | } | |
6543 | ||
8ab979d7 | 6544 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) |
efc5f224 | 6545 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6546 | PyObject * _resultobj; |
6547 | wxScrolledWindow * _arg0; | |
6548 | int * _arg1; | |
6549 | int temp; | |
6550 | int * _arg2; | |
6551 | int temp0; | |
1d99702e | 6552 | PyObject * _argo0 = 0; |
efc5f224 | 6553 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6554 | |
6555 | self = self; | |
6556 | { | |
6557 | _arg1 = &temp; | |
6558 | } | |
6559 | { | |
6560 | _arg2 = &temp0; | |
6561 | } | |
efc5f224 | 6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
8ab979d7 | 6563 | return NULL; |
1d99702e RD |
6564 | if (_argo0) { |
6565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
6568 | return NULL; | |
6569 | } | |
6570 | } | |
cf694132 | 6571 | { |
474c48f9 | 6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6573 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); |
cf694132 | 6574 | |
474c48f9 | 6575 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6576 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6577 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6578 | _resultobj = Py_None; |
6579 | { | |
6580 | PyObject *o; | |
6581 | o = PyInt_FromLong((long) (*_arg1)); | |
6582 | _resultobj = t_output_helper(_resultobj, o); | |
6583 | } | |
6584 | { | |
6585 | PyObject *o; | |
6586 | o = PyInt_FromLong((long) (*_arg2)); | |
6587 | _resultobj = t_output_helper(_resultobj, o); | |
6588 | } | |
6589 | return _resultobj; | |
6590 | } | |
6591 | ||
b7e72427 RD |
6592 | #define wxScrolledWindow_GetTargetWindow(_swigobj) (_swigobj->GetTargetWindow()) |
6593 | static PyObject *_wrap_wxScrolledWindow_GetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6594 | PyObject * _resultobj; | |
6595 | wxWindow * _result; | |
6596 | wxScrolledWindow * _arg0; | |
6597 | PyObject * _argo0 = 0; | |
6598 | char *_kwnames[] = { "self", NULL }; | |
b7e72427 RD |
6599 | |
6600 | self = self; | |
6601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetTargetWindow",_kwnames,&_argo0)) | |
6602 | return NULL; | |
6603 | if (_argo0) { | |
6604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetTargetWindow. Expected _wxScrolledWindow_p."); | |
6607 | return NULL; | |
6608 | } | |
6609 | } | |
6610 | { | |
474c48f9 | 6611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6612 | _result = (wxWindow *)wxScrolledWindow_GetTargetWindow(_arg0); |
b7e72427 | 6613 | |
474c48f9 | 6614 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6615 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 6616 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b7e72427 RD |
6617 | return _resultobj; |
6618 | } | |
6619 | ||
8ab979d7 | 6620 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) |
efc5f224 | 6621 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6622 | PyObject * _resultobj; |
6623 | wxScrolledWindow * _arg0; | |
6624 | int * _arg1; | |
6625 | int temp; | |
6626 | int * _arg2; | |
6627 | int temp0; | |
1d99702e | 6628 | PyObject * _argo0 = 0; |
efc5f224 | 6629 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6630 | |
6631 | self = self; | |
6632 | { | |
6633 | _arg1 = &temp; | |
6634 | } | |
6635 | { | |
6636 | _arg2 = &temp0; | |
6637 | } | |
efc5f224 | 6638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
8ab979d7 | 6639 | return NULL; |
1d99702e RD |
6640 | if (_argo0) { |
6641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
6644 | return NULL; | |
6645 | } | |
6646 | } | |
cf694132 | 6647 | { |
474c48f9 | 6648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6649 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); |
cf694132 | 6650 | |
474c48f9 | 6651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6652 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6653 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6654 | _resultobj = Py_None; |
6655 | { | |
6656 | PyObject *o; | |
6657 | o = PyInt_FromLong((long) (*_arg1)); | |
6658 | _resultobj = t_output_helper(_resultobj, o); | |
6659 | } | |
6660 | { | |
6661 | PyObject *o; | |
6662 | o = PyInt_FromLong((long) (*_arg2)); | |
6663 | _resultobj = t_output_helper(_resultobj, o); | |
6664 | } | |
6665 | return _resultobj; | |
6666 | } | |
6667 | ||
6668 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
efc5f224 | 6669 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6670 | PyObject * _resultobj; |
6671 | bool _result; | |
6672 | wxScrolledWindow * _arg0; | |
1d99702e | 6673 | PyObject * _argo0 = 0; |
efc5f224 | 6674 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
6675 | |
6676 | self = self; | |
efc5f224 | 6677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
8ab979d7 | 6678 | return NULL; |
1d99702e RD |
6679 | if (_argo0) { |
6680 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6681 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6682 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
6683 | return NULL; | |
6684 | } | |
6685 | } | |
cf694132 | 6686 | { |
474c48f9 | 6687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6688 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); |
cf694132 | 6689 | |
474c48f9 | 6690 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6691 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6692 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
6693 | return _resultobj; |
6694 | } | |
6695 | ||
6696 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
efc5f224 | 6697 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6698 | PyObject * _resultobj; |
6699 | wxScrolledWindow * _arg0; | |
6700 | wxDC * _arg1; | |
1d99702e RD |
6701 | PyObject * _argo0 = 0; |
6702 | PyObject * _argo1 = 0; | |
efc5f224 | 6703 | char *_kwnames[] = { "self","dc", NULL }; |
8ab979d7 RD |
6704 | |
6705 | self = self; | |
efc5f224 | 6706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 6707 | return NULL; |
1d99702e RD |
6708 | if (_argo0) { |
6709 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6710 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6711 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
6712 | return NULL; | |
6713 | } | |
6714 | } | |
1d99702e RD |
6715 | if (_argo1) { |
6716 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6717 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
8ab979d7 RD |
6718 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
6719 | return NULL; | |
6720 | } | |
6721 | } | |
cf694132 | 6722 | { |
474c48f9 | 6723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6724 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); |
cf694132 | 6725 | |
474c48f9 | 6726 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6727 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6728 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6729 | _resultobj = Py_None; |
6730 | return _resultobj; | |
6731 | } | |
6732 | ||
6733 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
efc5f224 | 6734 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6735 | PyObject * _resultobj; |
6736 | wxScrolledWindow * _arg0; | |
6737 | int _arg1; | |
6738 | int _arg2; | |
1d99702e | 6739 | PyObject * _argo0 = 0; |
efc5f224 | 6740 | char *_kwnames[] = { "self","x","y", NULL }; |
8ab979d7 RD |
6741 | |
6742 | self = self; | |
efc5f224 | 6743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
8ab979d7 | 6744 | return NULL; |
1d99702e RD |
6745 | if (_argo0) { |
6746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
6749 | return NULL; | |
6750 | } | |
6751 | } | |
cf694132 | 6752 | { |
474c48f9 | 6753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6754 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); |
cf694132 | 6755 | |
474c48f9 | 6756 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6757 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6758 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6759 | _resultobj = Py_None; |
6760 | return _resultobj; | |
6761 | } | |
6762 | ||
f6bcfd97 | 6763 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) |
efc5f224 | 6764 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
6765 | PyObject * _resultobj; |
6766 | wxScrolledWindow * _arg0; | |
6767 | int _arg1; | |
6768 | int _arg2; | |
6769 | int _arg3; | |
6770 | int _arg4; | |
1d99702e RD |
6771 | int _arg5 = (int ) 0; |
6772 | int _arg6 = (int ) 0; | |
f6bcfd97 | 6773 | int _arg7 = (int ) FALSE; |
1d99702e | 6774 | PyObject * _argo0 = 0; |
f6bcfd97 | 6775 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos","noRefresh", NULL }; |
8ab979d7 RD |
6776 | |
6777 | self = self; | |
f6bcfd97 | 6778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|iii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6,&_arg7)) |
8ab979d7 | 6779 | return NULL; |
1d99702e RD |
6780 | if (_argo0) { |
6781 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6782 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
8ab979d7 RD |
6783 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
6784 | return NULL; | |
6785 | } | |
6786 | } | |
cf694132 | 6787 | { |
474c48f9 | 6788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6789 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7); |
cf694132 | 6790 | |
474c48f9 | 6791 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6792 | if (PyErr_Occurred()) return NULL; |
cf694132 | 6793 | } Py_INCREF(Py_None); |
8ab979d7 RD |
6794 | _resultobj = Py_None; |
6795 | return _resultobj; | |
6796 | } | |
6797 | ||
b7e72427 RD |
6798 | #define wxScrolledWindow_SetScrollPageSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScrollPageSize(_swigarg0,_swigarg1)) |
6799 | static PyObject *_wrap_wxScrolledWindow_SetScrollPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6800 | PyObject * _resultobj; | |
6801 | wxScrolledWindow * _arg0; | |
6802 | int _arg1; | |
6803 | int _arg2; | |
6804 | PyObject * _argo0 = 0; | |
6805 | char *_kwnames[] = { "self","orient","pageSize", NULL }; | |
6806 | ||
6807 | self = self; | |
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_SetScrollPageSize",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6809 | return NULL; | |
6810 | if (_argo0) { | |
6811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollPageSize. Expected _wxScrolledWindow_p."); | |
6814 | return NULL; | |
6815 | } | |
6816 | } | |
6817 | { | |
474c48f9 | 6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6819 | wxScrolledWindow_SetScrollPageSize(_arg0,_arg1,_arg2); |
b7e72427 | 6820 | |
474c48f9 | 6821 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6822 | if (PyErr_Occurred()) return NULL; |
b7e72427 RD |
6823 | } Py_INCREF(Py_None); |
6824 | _resultobj = Py_None; | |
6825 | return _resultobj; | |
6826 | } | |
6827 | ||
eb715945 RD |
6828 | #define wxScrolledWindow_SetTargetWindow(_swigobj,_swigarg0) (_swigobj->SetTargetWindow(_swigarg0)) |
6829 | static PyObject *_wrap_wxScrolledWindow_SetTargetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6830 | PyObject * _resultobj; | |
6831 | wxScrolledWindow * _arg0; | |
6832 | wxWindow * _arg1; | |
6833 | PyObject * _argo0 = 0; | |
6834 | PyObject * _argo1 = 0; | |
6835 | char *_kwnames[] = { "self","window", NULL }; | |
6836 | ||
6837 | self = self; | |
6838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_SetTargetWindow",_kwnames,&_argo0,&_argo1)) | |
6839 | return NULL; | |
6840 | if (_argo0) { | |
6841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetTargetWindow. Expected _wxScrolledWindow_p."); | |
6844 | return NULL; | |
6845 | } | |
6846 | } | |
6847 | if (_argo1) { | |
6848 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6849 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
6850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_SetTargetWindow. Expected _wxWindow_p."); | |
6851 | return NULL; | |
6852 | } | |
6853 | } | |
6854 | { | |
474c48f9 | 6855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6856 | wxScrolledWindow_SetTargetWindow(_arg0,_arg1); |
eb715945 | 6857 | |
474c48f9 | 6858 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6859 | if (PyErr_Occurred()) return NULL; |
eb715945 RD |
6860 | } Py_INCREF(Py_None); |
6861 | _resultobj = Py_None; | |
6862 | return _resultobj; | |
6863 | } | |
6864 | ||
4c9993c3 RD |
6865 | #define wxScrolledWindow_GetViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetViewStart(_swigarg0,_swigarg1)) |
6866 | static PyObject *_wrap_wxScrolledWindow_GetViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6867 | PyObject * _resultobj; | |
6868 | wxScrolledWindow * _arg0; | |
6869 | int * _arg1; | |
6870 | int temp; | |
6871 | int * _arg2; | |
6872 | int temp0; | |
6873 | PyObject * _argo0 = 0; | |
6874 | char *_kwnames[] = { "self", NULL }; | |
6875 | ||
6876 | self = self; | |
6877 | { | |
6878 | _arg1 = &temp; | |
6879 | } | |
6880 | { | |
6881 | _arg2 = &temp0; | |
6882 | } | |
6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetViewStart",_kwnames,&_argo0)) | |
6884 | return NULL; | |
6885 | if (_argo0) { | |
6886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetViewStart. Expected _wxScrolledWindow_p."); | |
6889 | return NULL; | |
6890 | } | |
6891 | } | |
6892 | { | |
474c48f9 | 6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6894 | wxScrolledWindow_GetViewStart(_arg0,_arg1,_arg2); |
4c9993c3 | 6895 | |
474c48f9 | 6896 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6897 | if (PyErr_Occurred()) return NULL; |
4c9993c3 RD |
6898 | } Py_INCREF(Py_None); |
6899 | _resultobj = Py_None; | |
6900 | { | |
6901 | PyObject *o; | |
6902 | o = PyInt_FromLong((long) (*_arg1)); | |
6903 | _resultobj = t_output_helper(_resultobj, o); | |
6904 | } | |
6905 | { | |
6906 | PyObject *o; | |
6907 | o = PyInt_FromLong((long) (*_arg2)); | |
6908 | _resultobj = t_output_helper(_resultobj, o); | |
6909 | } | |
6910 | return _resultobj; | |
6911 | } | |
6912 | ||
a884bee5 RD |
6913 | #define wxScrolledWindow_CalcScrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcScrolledPosition(_swigarg0)) |
6914 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6915 | PyObject * _resultobj; | |
6916 | wxPoint * _result; | |
6917 | wxScrolledWindow * _arg0; | |
6918 | wxPoint * _arg1; | |
6919 | PyObject * _argo0 = 0; | |
6920 | wxPoint temp; | |
6921 | PyObject * _obj1 = 0; | |
6922 | char *_kwnames[] = { "self","pt", NULL }; | |
6923 | char _ptemp[128]; | |
6924 | ||
6925 | self = self; | |
6926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcScrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
6927 | return NULL; | |
6928 | if (_argo0) { | |
6929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
6931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition1. Expected _wxScrolledWindow_p."); | |
6932 | return NULL; | |
6933 | } | |
6934 | } | |
6935 | { | |
6936 | _arg1 = &temp; | |
6937 | if (! wxPoint_helper(_obj1, &_arg1)) | |
6938 | return NULL; | |
6939 | } | |
6940 | { | |
6941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6942 | _result = new wxPoint (wxScrolledWindow_CalcScrolledPosition1(_arg0,*_arg1)); | |
6943 | ||
6944 | wxPyEndAllowThreads(__tstate); | |
6945 | if (PyErr_Occurred()) return NULL; | |
6946 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
6947 | _resultobj = Py_BuildValue("s",_ptemp); | |
6948 | return _resultobj; | |
6949 | } | |
6950 | ||
6951 | #define wxScrolledWindow_CalcScrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
6952 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
6953 | PyObject * _resultobj; |
6954 | wxScrolledWindow * _arg0; | |
6955 | int _arg1; | |
6956 | int _arg2; | |
6957 | int * _arg3; | |
6958 | int temp; | |
6959 | int * _arg4; | |
6960 | int temp0; | |
6961 | PyObject * _argo0 = 0; | |
6962 | char *_kwnames[] = { "self","x","y", NULL }; | |
6963 | ||
6964 | self = self; | |
6965 | { | |
6966 | _arg3 = &temp; | |
6967 | } | |
6968 | { | |
6969 | _arg4 = &temp0; | |
6970 | } | |
a884bee5 | 6971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
6972 | return NULL; |
6973 | if (_argo0) { | |
6974 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6975 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 6976 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
6977 | return NULL; |
6978 | } | |
6979 | } | |
6980 | { | |
474c48f9 | 6981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 6982 | wxScrolledWindow_CalcScrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 6983 | |
474c48f9 | 6984 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 6985 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
6986 | } Py_INCREF(Py_None); |
6987 | _resultobj = Py_None; | |
6988 | { | |
6989 | PyObject *o; | |
6990 | o = PyInt_FromLong((long) (*_arg3)); | |
6991 | _resultobj = t_output_helper(_resultobj, o); | |
6992 | } | |
6993 | { | |
6994 | PyObject *o; | |
6995 | o = PyInt_FromLong((long) (*_arg4)); | |
6996 | _resultobj = t_output_helper(_resultobj, o); | |
6997 | } | |
6998 | return _resultobj; | |
6999 | } | |
7000 | ||
a884bee5 RD |
7001 | #define wxScrolledWindow_CalcUnscrolledPosition1(_swigobj,_swigarg0) (_swigobj->CalcUnscrolledPosition(_swigarg0)) |
7002 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition1(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7003 | PyObject * _resultobj; | |
7004 | wxPoint * _result; | |
7005 | wxScrolledWindow * _arg0; | |
7006 | wxPoint * _arg1; | |
7007 | PyObject * _argo0 = 0; | |
7008 | wxPoint temp; | |
7009 | PyObject * _obj1 = 0; | |
7010 | char *_kwnames[] = { "self","pt", NULL }; | |
7011 | char _ptemp[128]; | |
7012 | ||
7013 | self = self; | |
7014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_CalcUnscrolledPosition1",_kwnames,&_argo0,&_obj1)) | |
7015 | return NULL; | |
7016 | if (_argo0) { | |
7017 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7018 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7019 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition1. Expected _wxScrolledWindow_p."); | |
7020 | return NULL; | |
7021 | } | |
7022 | } | |
7023 | { | |
7024 | _arg1 = &temp; | |
7025 | if (! wxPoint_helper(_obj1, &_arg1)) | |
7026 | return NULL; | |
7027 | } | |
7028 | { | |
7029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7030 | _result = new wxPoint (wxScrolledWindow_CalcUnscrolledPosition1(_arg0,*_arg1)); | |
7031 | ||
7032 | wxPyEndAllowThreads(__tstate); | |
7033 | if (PyErr_Occurred()) return NULL; | |
7034 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
7035 | _resultobj = Py_BuildValue("s",_ptemp); | |
7036 | return _resultobj; | |
7037 | } | |
7038 | ||
7039 | #define wxScrolledWindow_CalcUnscrolledPosition2(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7040 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9d8bd15f RD |
7041 | PyObject * _resultobj; |
7042 | wxScrolledWindow * _arg0; | |
7043 | int _arg1; | |
7044 | int _arg2; | |
7045 | int * _arg3; | |
7046 | int temp; | |
7047 | int * _arg4; | |
7048 | int temp0; | |
7049 | PyObject * _argo0 = 0; | |
7050 | char *_kwnames[] = { "self","x","y", NULL }; | |
7051 | ||
7052 | self = self; | |
7053 | { | |
7054 | _arg3 = &temp; | |
7055 | } | |
7056 | { | |
7057 | _arg4 = &temp0; | |
7058 | } | |
a884bee5 | 7059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition2",_kwnames,&_argo0,&_arg1,&_arg2)) |
9d8bd15f RD |
7060 | return NULL; |
7061 | if (_argo0) { | |
7062 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7063 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
a884bee5 | 7064 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition2. Expected _wxScrolledWindow_p."); |
9d8bd15f RD |
7065 | return NULL; |
7066 | } | |
7067 | } | |
7068 | { | |
474c48f9 | 7069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7070 | wxScrolledWindow_CalcUnscrolledPosition2(_arg0,_arg1,_arg2,_arg3,_arg4); |
9d8bd15f | 7071 | |
474c48f9 | 7072 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7073 | if (PyErr_Occurred()) return NULL; |
9d8bd15f RD |
7074 | } Py_INCREF(Py_None); |
7075 | _resultobj = Py_None; | |
7076 | { | |
7077 | PyObject *o; | |
7078 | o = PyInt_FromLong((long) (*_arg3)); | |
7079 | _resultobj = t_output_helper(_resultobj, o); | |
7080 | } | |
7081 | { | |
7082 | PyObject *o; | |
7083 | o = PyInt_FromLong((long) (*_arg4)); | |
7084 | _resultobj = t_output_helper(_resultobj, o); | |
7085 | } | |
7086 | return _resultobj; | |
7087 | } | |
7088 | ||
7a446686 RD |
7089 | #define wxScrolledWindow_SetScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetScale(_swigarg0,_swigarg1)) |
7090 | static PyObject *_wrap_wxScrolledWindow_SetScale(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7091 | PyObject * _resultobj; | |
7092 | wxScrolledWindow * _arg0; | |
7093 | double _arg1; | |
7094 | double _arg2; | |
7095 | PyObject * _argo0 = 0; | |
7096 | char *_kwnames[] = { "self","xs","ys", NULL }; | |
7097 | ||
7098 | self = self; | |
7099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxScrolledWindow_SetScale",_kwnames,&_argo0,&_arg1,&_arg2)) | |
7100 | return NULL; | |
7101 | if (_argo0) { | |
7102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScale. Expected _wxScrolledWindow_p."); | |
7105 | return NULL; | |
7106 | } | |
7107 | } | |
7108 | { | |
474c48f9 | 7109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7110 | wxScrolledWindow_SetScale(_arg0,_arg1,_arg2); |
7a446686 | 7111 | |
474c48f9 | 7112 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7113 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7114 | } Py_INCREF(Py_None); |
7115 | _resultobj = Py_None; | |
7116 | return _resultobj; | |
7117 | } | |
7118 | ||
7119 | #define wxScrolledWindow_GetScaleX(_swigobj) (_swigobj->GetScaleX()) | |
7120 | static PyObject *_wrap_wxScrolledWindow_GetScaleX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7121 | PyObject * _resultobj; | |
7122 | double _result; | |
7123 | wxScrolledWindow * _arg0; | |
7124 | PyObject * _argo0 = 0; | |
7125 | char *_kwnames[] = { "self", NULL }; | |
7126 | ||
7127 | self = self; | |
7128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleX",_kwnames,&_argo0)) | |
7129 | return NULL; | |
7130 | if (_argo0) { | |
7131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleX. Expected _wxScrolledWindow_p."); | |
7134 | return NULL; | |
7135 | } | |
7136 | } | |
7137 | { | |
474c48f9 | 7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 RD |
7139 | _result = (double )wxScrolledWindow_GetScaleX(_arg0); |
7140 | ||
7141 | wxPyEndAllowThreads(__tstate); | |
7142 | if (PyErr_Occurred()) return NULL; | |
7143 | } _resultobj = Py_BuildValue("d",_result); | |
7144 | return _resultobj; | |
7145 | } | |
7146 | ||
7147 | #define wxScrolledWindow_GetScaleY(_swigobj) (_swigobj->GetScaleY()) | |
7148 | static PyObject *_wrap_wxScrolledWindow_GetScaleY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7149 | PyObject * _resultobj; | |
7150 | double _result; | |
7151 | wxScrolledWindow * _arg0; | |
7152 | PyObject * _argo0 = 0; | |
7153 | char *_kwnames[] = { "self", NULL }; | |
7154 | ||
7155 | self = self; | |
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScaleY",_kwnames,&_argo0)) | |
7157 | return NULL; | |
7158 | if (_argo0) { | |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScaleY. Expected _wxScrolledWindow_p."); | |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
7165 | { | |
7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7167 | _result = (double )wxScrolledWindow_GetScaleY(_arg0); | |
7168 | ||
7169 | wxPyEndAllowThreads(__tstate); | |
7170 | if (PyErr_Occurred()) return NULL; | |
7171 | } _resultobj = Py_BuildValue("d",_result); | |
7172 | return _resultobj; | |
7173 | } | |
7174 | ||
7175 | #define wxScrolledWindow_AdjustScrollbars(_swigobj) (_swigobj->AdjustScrollbars()) | |
7176 | static PyObject *_wrap_wxScrolledWindow_AdjustScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject * _resultobj; | |
7178 | wxScrolledWindow * _arg0; | |
7179 | PyObject * _argo0 = 0; | |
7180 | char *_kwnames[] = { "self", NULL }; | |
7181 | ||
7182 | self = self; | |
7183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_AdjustScrollbars",_kwnames,&_argo0)) | |
7184 | return NULL; | |
7185 | if (_argo0) { | |
7186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_AdjustScrollbars. Expected _wxScrolledWindow_p."); | |
7189 | return NULL; | |
7190 | } | |
7191 | } | |
7192 | { | |
7193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7194 | wxScrolledWindow_AdjustScrollbars(_arg0); | |
7195 | ||
7196 | wxPyEndAllowThreads(__tstate); | |
7197 | if (PyErr_Occurred()) return NULL; | |
7198 | } Py_INCREF(Py_None); | |
7199 | _resultobj = Py_None; | |
7200 | return _resultobj; | |
7201 | } | |
7202 | ||
7203 | #define wxScrolledWindow_Layout(_swigobj) (_swigobj->Layout()) | |
7204 | static PyObject *_wrap_wxScrolledWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7205 | PyObject * _resultobj; | |
7206 | bool _result; | |
7207 | wxScrolledWindow * _arg0; | |
7208 | PyObject * _argo0 = 0; | |
7209 | char *_kwnames[] = { "self", NULL }; | |
7210 | ||
7211 | self = self; | |
7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_Layout",_kwnames,&_argo0)) | |
7213 | return NULL; | |
7214 | if (_argo0) { | |
7215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
7217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Layout. Expected _wxScrolledWindow_p."); | |
7218 | return NULL; | |
7219 | } | |
7220 | } | |
7221 | { | |
7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7223 | _result = (bool )wxScrolledWindow_Layout(_arg0); | |
7224 | ||
7225 | wxPyEndAllowThreads(__tstate); | |
7226 | if (PyErr_Occurred()) return NULL; | |
7227 | } _resultobj = Py_BuildValue("i",_result); | |
7228 | return _resultobj; | |
7229 | } | |
7230 | ||
7231 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { | |
7232 | wxMenu *src; | |
7233 | wxEvtHandler *dest; | |
7234 | src = (wxMenu *) ptr; | |
7235 | dest = (wxEvtHandler *) src; | |
7236 | return (void *) dest; | |
7237 | } | |
7238 | ||
7239 | static void *SwigwxMenuTowxObject(void *ptr) { | |
7240 | wxMenu *src; | |
7241 | wxObject *dest; | |
7242 | src = (wxMenu *) ptr; | |
7243 | dest = (wxObject *) src; | |
7244 | return (void *) dest; | |
7245 | } | |
7246 | ||
7247 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) | |
7248 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7249 | PyObject * _resultobj; | |
7250 | wxMenu * _result; | |
9a74fcaf | 7251 | wxString * _arg0 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7252 | long _arg1 = (long ) 0; |
7253 | PyObject * _obj0 = 0; | |
7254 | char *_kwnames[] = { "title","style", NULL }; | |
7255 | char _ptemp[128]; | |
7256 | ||
7257 | self = self; | |
7258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) | |
7259 | return NULL; | |
7260 | if (_obj0) | |
7261 | { | |
7262 | _arg0 = wxString_in_helper(_obj0); | |
7263 | if (_arg0 == NULL) | |
7264 | return NULL; | |
7265 | } | |
7266 | { | |
7267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7268 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); | |
7269 | ||
7270 | wxPyEndAllowThreads(__tstate); | |
7271 | if (PyErr_Occurred()) return NULL; | |
7272 | } if (_result) { | |
7273 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
7274 | _resultobj = Py_BuildValue("s",_ptemp); | |
7275 | } else { | |
7276 | Py_INCREF(Py_None); | |
7277 | _resultobj = Py_None; | |
7278 | } | |
7279 | { | |
7280 | if (_obj0) | |
7281 | delete _arg0; | |
7282 | } | |
7283 | return _resultobj; | |
7284 | } | |
7285 | ||
7286 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7287 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7288 | PyObject * _resultobj; | |
7289 | wxMenu * _arg0; | |
7290 | int _arg1; | |
7291 | wxString * _arg2; | |
9a74fcaf | 7292 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7293 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
7294 | PyObject * _argo0 = 0; |
7295 | PyObject * _obj2 = 0; | |
7296 | PyObject * _obj3 = 0; | |
7297 | char *_kwnames[] = { "self","id","item","helpString","kind", NULL }; | |
7298 | ||
7299 | self = self; | |
7300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) | |
7301 | return NULL; | |
7302 | if (_argo0) { | |
7303 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7304 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7305 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); | |
7306 | return NULL; | |
7307 | } | |
7308 | } | |
7309 | { | |
7310 | _arg2 = wxString_in_helper(_obj2); | |
7311 | if (_arg2 == NULL) | |
7312 | return NULL; | |
7313 | } | |
7314 | if (_obj3) | |
7315 | { | |
7316 | _arg3 = wxString_in_helper(_obj3); | |
7317 | if (_arg3 == NULL) | |
7318 | return NULL; | |
7319 | } | |
7320 | { | |
7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7322 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
7323 | ||
7324 | wxPyEndAllowThreads(__tstate); | |
7325 | if (PyErr_Occurred()) return NULL; | |
7326 | } Py_INCREF(Py_None); | |
7327 | _resultobj = Py_None; | |
7328 | { | |
7329 | if (_obj2) | |
7330 | delete _arg2; | |
7331 | } | |
7332 | { | |
7333 | if (_obj3) | |
7334 | delete _arg3; | |
7335 | } | |
7336 | return _resultobj; | |
7337 | } | |
7338 | ||
7339 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7340 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7341 | PyObject * _resultobj; | |
7342 | wxMenu * _arg0; | |
7343 | int _arg1; | |
7344 | wxString * _arg2; | |
7345 | wxMenu * _arg3; | |
9a74fcaf | 7346 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7347 | PyObject * _argo0 = 0; |
7348 | PyObject * _obj2 = 0; | |
7349 | PyObject * _argo3 = 0; | |
7350 | PyObject * _obj4 = 0; | |
7351 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; | |
7352 | ||
7353 | self = self; | |
7354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) | |
7355 | return NULL; | |
7356 | if (_argo0) { | |
7357 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7358 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7359 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7360 | return NULL; | |
7361 | } | |
7362 | } | |
7363 | { | |
7364 | _arg2 = wxString_in_helper(_obj2); | |
7365 | if (_arg2 == NULL) | |
7366 | return NULL; | |
7367 | } | |
7368 | if (_argo3) { | |
7369 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
7370 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
7371 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); | |
7372 | return NULL; | |
7373 | } | |
7374 | } | |
7375 | if (_obj4) | |
7376 | { | |
7377 | _arg4 = wxString_in_helper(_obj4); | |
7378 | if (_arg4 == NULL) | |
7379 | return NULL; | |
7380 | } | |
7381 | { | |
7382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7383 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
7384 | ||
7385 | wxPyEndAllowThreads(__tstate); | |
7386 | if (PyErr_Occurred()) return NULL; | |
7387 | } Py_INCREF(Py_None); | |
7388 | _resultobj = Py_None; | |
7389 | { | |
7390 | if (_obj2) | |
7391 | delete _arg2; | |
7392 | } | |
7393 | { | |
7394 | if (_obj4) | |
7395 | delete _arg4; | |
7396 | } | |
7397 | return _resultobj; | |
7398 | } | |
7399 | ||
7400 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) | |
7401 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7402 | PyObject * _resultobj; | |
7403 | wxMenu * _arg0; | |
7404 | wxMenuItem * _arg1; | |
7405 | PyObject * _argo0 = 0; | |
7406 | PyObject * _argo1 = 0; | |
7407 | char *_kwnames[] = { "self","item", NULL }; | |
7408 | ||
7409 | self = self; | |
7410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
7411 | return NULL; | |
7412 | if (_argo0) { | |
7413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
7416 | return NULL; | |
7417 | } | |
7418 | } | |
7419 | if (_argo1) { | |
7420 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7421 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
7422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
7423 | return NULL; | |
7424 | } | |
7425 | } | |
7426 | { | |
7427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7428 | wxMenu_AppendItem(_arg0,_arg1); | |
7429 | ||
7430 | wxPyEndAllowThreads(__tstate); | |
7431 | if (PyErr_Occurred()) return NULL; | |
7432 | } Py_INCREF(Py_None); | |
7433 | _resultobj = Py_None; | |
7434 | return _resultobj; | |
7435 | } | |
7436 | ||
7437 | #define wxMenu_AppendCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendCheckItem(_swigarg0,_swigarg1,_swigarg2)) | |
7438 | static PyObject *_wrap_wxMenu_AppendCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7439 | PyObject * _resultobj; | |
7440 | wxMenu * _arg0; | |
7441 | int _arg1; | |
7442 | wxString * _arg2; | |
9a74fcaf | 7443 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7444 | PyObject * _argo0 = 0; |
7445 | PyObject * _obj2 = 0; | |
7446 | PyObject * _obj3 = 0; | |
7447 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7448 | ||
7449 | self = self; | |
7450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7451 | return NULL; | |
7452 | if (_argo0) { | |
7453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendCheckItem. Expected _wxMenu_p."); | |
7456 | return NULL; | |
7457 | } | |
7458 | } | |
7459 | { | |
7460 | _arg2 = wxString_in_helper(_obj2); | |
7461 | if (_arg2 == NULL) | |
7462 | return NULL; | |
7463 | } | |
7464 | if (_obj3) | |
7465 | { | |
7466 | _arg3 = wxString_in_helper(_obj3); | |
7467 | if (_arg3 == NULL) | |
7468 | return NULL; | |
7469 | } | |
7470 | { | |
7471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7472 | wxMenu_AppendCheckItem(_arg0,_arg1,*_arg2,*_arg3); | |
7473 | ||
7474 | wxPyEndAllowThreads(__tstate); | |
7475 | if (PyErr_Occurred()) return NULL; | |
7476 | } Py_INCREF(Py_None); | |
7477 | _resultobj = Py_None; | |
7478 | { | |
7479 | if (_obj2) | |
7480 | delete _arg2; | |
7481 | } | |
7482 | { | |
7483 | if (_obj3) | |
7484 | delete _arg3; | |
7485 | } | |
7486 | return _resultobj; | |
7487 | } | |
7488 | ||
7489 | #define wxMenu_AppendRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->AppendRadioItem(_swigarg0,_swigarg1,_swigarg2)) | |
7490 | static PyObject *_wrap_wxMenu_AppendRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7491 | PyObject * _resultobj; | |
7492 | wxMenu * _arg0; | |
7493 | int _arg1; | |
7494 | wxString * _arg2; | |
9a74fcaf | 7495 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7496 | PyObject * _argo0 = 0; |
7497 | PyObject * _obj2 = 0; | |
7498 | PyObject * _obj3 = 0; | |
7499 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
7500 | ||
7501 | self = self; | |
7502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_AppendRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) | |
7503 | return NULL; | |
7504 | if (_argo0) { | |
7505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendRadioItem. Expected _wxMenu_p."); | |
7508 | return NULL; | |
7509 | } | |
7510 | } | |
7511 | { | |
7512 | _arg2 = wxString_in_helper(_obj2); | |
7513 | if (_arg2 == NULL) | |
7514 | return NULL; | |
7515 | } | |
7516 | if (_obj3) | |
7517 | { | |
7518 | _arg3 = wxString_in_helper(_obj3); | |
7519 | if (_arg3 == NULL) | |
7520 | return NULL; | |
7521 | } | |
7522 | { | |
7523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7524 | wxMenu_AppendRadioItem(_arg0,_arg1,*_arg2,*_arg3); | |
7525 | ||
7526 | wxPyEndAllowThreads(__tstate); | |
7527 | if (PyErr_Occurred()) return NULL; | |
7528 | } Py_INCREF(Py_None); | |
7529 | _resultobj = Py_None; | |
7530 | { | |
7531 | if (_obj2) | |
7532 | delete _arg2; | |
7533 | } | |
7534 | { | |
7535 | if (_obj3) | |
7536 | delete _arg3; | |
7537 | } | |
7538 | return _resultobj; | |
7539 | } | |
7540 | ||
7541 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) | |
7542 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7543 | PyObject * _resultobj; | |
7544 | wxMenu * _arg0; | |
7545 | PyObject * _argo0 = 0; | |
7546 | char *_kwnames[] = { "self", NULL }; | |
7547 | ||
7548 | self = self; | |
7549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) | |
7550 | return NULL; | |
7551 | if (_argo0) { | |
7552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); | |
7555 | return NULL; | |
7556 | } | |
7557 | } | |
7558 | { | |
7559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7560 | wxMenu_AppendSeparator(_arg0); | |
7561 | ||
7562 | wxPyEndAllowThreads(__tstate); | |
7563 | if (PyErr_Occurred()) return NULL; | |
7564 | } Py_INCREF(Py_None); | |
7565 | _resultobj = Py_None; | |
7566 | return _resultobj; | |
7567 | } | |
7568 | ||
7569 | #define wxMenu_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7570 | static PyObject *_wrap_wxMenu_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7571 | PyObject * _resultobj; | |
7572 | wxMenu * _arg0; | |
7573 | size_t _arg1; | |
7574 | int _arg2; | |
7575 | wxString * _arg3; | |
9a74fcaf | 7576 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
546bfbea | 7577 | wxItemKind _arg5 = (wxItemKind ) wxITEM_NORMAL; |
a884bee5 RD |
7578 | PyObject * _argo0 = 0; |
7579 | PyObject * _obj3 = 0; | |
7580 | PyObject * _obj4 = 0; | |
7581 | char *_kwnames[] = { "self","pos","id","text","help","kind", NULL }; | |
7582 | ||
7583 | self = self; | |
7584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|Oi:wxMenu_Insert",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4,&_arg5)) | |
7585 | return NULL; | |
7586 | if (_argo0) { | |
7587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Insert. Expected _wxMenu_p."); | |
7590 | return NULL; | |
7591 | } | |
7592 | } | |
7593 | { | |
7594 | _arg3 = wxString_in_helper(_obj3); | |
7595 | if (_arg3 == NULL) | |
7596 | return NULL; | |
7597 | } | |
7598 | if (_obj4) | |
7599 | { | |
7600 | _arg4 = wxString_in_helper(_obj4); | |
7601 | if (_arg4 == NULL) | |
7602 | return NULL; | |
7603 | } | |
7604 | { | |
7605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7606 | wxMenu_Insert(_arg0,_arg1,_arg2,*_arg3,*_arg4,_arg5); | |
7607 | ||
7608 | wxPyEndAllowThreads(__tstate); | |
7609 | if (PyErr_Occurred()) return NULL; | |
7610 | } Py_INCREF(Py_None); | |
7611 | _resultobj = Py_None; | |
7612 | { | |
7613 | if (_obj3) | |
7614 | delete _arg3; | |
7615 | } | |
7616 | { | |
7617 | if (_obj4) | |
7618 | delete _arg4; | |
7619 | } | |
7620 | return _resultobj; | |
7621 | } | |
7622 | ||
7623 | #define wxMenu_InsertSeparator(_swigobj,_swigarg0) (_swigobj->InsertSeparator(_swigarg0)) | |
7624 | static PyObject *_wrap_wxMenu_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7625 | PyObject * _resultobj; | |
7626 | wxMenu * _arg0; | |
7627 | size_t _arg1; | |
7628 | PyObject * _argo0 = 0; | |
7629 | char *_kwnames[] = { "self","pos", NULL }; | |
7630 | ||
7631 | self = self; | |
7632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_InsertSeparator",_kwnames,&_argo0,&_arg1)) | |
7633 | return NULL; | |
7634 | if (_argo0) { | |
7635 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7636 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7637 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertSeparator. Expected _wxMenu_p."); | |
7638 | return NULL; | |
7639 | } | |
7640 | } | |
7641 | { | |
7642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7643 | wxMenu_InsertSeparator(_arg0,_arg1); | |
7644 | ||
7645 | wxPyEndAllowThreads(__tstate); | |
7646 | if (PyErr_Occurred()) return NULL; | |
7647 | } Py_INCREF(Py_None); | |
7648 | _resultobj = Py_None; | |
7649 | return _resultobj; | |
7650 | } | |
7651 | ||
7652 | #define wxMenu_InsertCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertCheckItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7653 | static PyObject *_wrap_wxMenu_InsertCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7654 | PyObject * _resultobj; | |
7655 | wxMenu * _arg0; | |
7656 | size_t _arg1; | |
7657 | int _arg2; | |
7658 | wxString * _arg3; | |
9a74fcaf | 7659 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7660 | PyObject * _argo0 = 0; |
7661 | PyObject * _obj3 = 0; | |
7662 | PyObject * _obj4 = 0; | |
7663 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7664 | ||
7665 | self = self; | |
7666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertCheckItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7667 | return NULL; | |
7668 | if (_argo0) { | |
7669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertCheckItem. Expected _wxMenu_p."); | |
7672 | return NULL; | |
7673 | } | |
7674 | } | |
7675 | { | |
7676 | _arg3 = wxString_in_helper(_obj3); | |
7677 | if (_arg3 == NULL) | |
7678 | return NULL; | |
7679 | } | |
7680 | if (_obj4) | |
7681 | { | |
7682 | _arg4 = wxString_in_helper(_obj4); | |
7683 | if (_arg4 == NULL) | |
7684 | return NULL; | |
7685 | } | |
7686 | { | |
7687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7688 | wxMenu_InsertCheckItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7689 | ||
7690 | wxPyEndAllowThreads(__tstate); | |
7691 | if (PyErr_Occurred()) return NULL; | |
7692 | } Py_INCREF(Py_None); | |
7693 | _resultobj = Py_None; | |
7694 | { | |
7695 | if (_obj3) | |
7696 | delete _arg3; | |
7697 | } | |
7698 | { | |
7699 | if (_obj4) | |
7700 | delete _arg4; | |
7701 | } | |
7702 | return _resultobj; | |
7703 | } | |
7704 | ||
7705 | #define wxMenu_InsertRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->InsertRadioItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
7706 | static PyObject *_wrap_wxMenu_InsertRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7707 | PyObject * _resultobj; | |
7708 | wxMenu * _arg0; | |
7709 | size_t _arg1; | |
7710 | int _arg2; | |
7711 | wxString * _arg3; | |
9a74fcaf | 7712 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7713 | PyObject * _argo0 = 0; |
7714 | PyObject * _obj3 = 0; | |
7715 | PyObject * _obj4 = 0; | |
7716 | char *_kwnames[] = { "self","pos","id","text","help", NULL }; | |
7717 | ||
7718 | self = self; | |
7719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiO|O:wxMenu_InsertRadioItem",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_obj4)) | |
7720 | return NULL; | |
7721 | if (_argo0) { | |
7722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertRadioItem. Expected _wxMenu_p."); | |
7725 | return NULL; | |
7726 | } | |
7727 | } | |
7728 | { | |
7729 | _arg3 = wxString_in_helper(_obj3); | |
7730 | if (_arg3 == NULL) | |
7731 | return NULL; | |
7732 | } | |
7733 | if (_obj4) | |
7734 | { | |
7735 | _arg4 = wxString_in_helper(_obj4); | |
7736 | if (_arg4 == NULL) | |
7737 | return NULL; | |
7738 | } | |
7739 | { | |
7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7741 | wxMenu_InsertRadioItem(_arg0,_arg1,_arg2,*_arg3,*_arg4); | |
7742 | ||
7743 | wxPyEndAllowThreads(__tstate); | |
7744 | if (PyErr_Occurred()) return NULL; | |
7745 | } Py_INCREF(Py_None); | |
7746 | _resultobj = Py_None; | |
7747 | { | |
7748 | if (_obj3) | |
7749 | delete _arg3; | |
7750 | } | |
7751 | { | |
7752 | if (_obj4) | |
7753 | delete _arg4; | |
7754 | } | |
7755 | return _resultobj; | |
7756 | } | |
7757 | ||
7758 | #define wxMenu_InsertMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
7759 | static PyObject *_wrap_wxMenu_InsertMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7760 | PyObject * _resultobj; | |
7761 | wxMenu * _arg0; | |
7762 | size_t _arg1; | |
7763 | int _arg2; | |
7764 | wxString * _arg3; | |
7765 | wxMenu * _arg4; | |
9a74fcaf | 7766 | wxString * _arg5 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7767 | PyObject * _argo0 = 0; |
7768 | PyObject * _obj3 = 0; | |
7769 | PyObject * _argo4 = 0; | |
7770 | PyObject * _obj5 = 0; | |
7771 | char *_kwnames[] = { "self","pos","id","text","submenu","help", NULL }; | |
7772 | ||
7773 | self = self; | |
7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiOO|O:wxMenu_InsertMenu",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_argo4,&_obj5)) | |
7775 | return NULL; | |
7776 | if (_argo0) { | |
7777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7780 | return NULL; | |
7781 | } | |
7782 | } | |
7783 | { | |
7784 | _arg3 = wxString_in_helper(_obj3); | |
7785 | if (_arg3 == NULL) | |
7786 | return NULL; | |
7787 | } | |
7788 | if (_argo4) { | |
7789 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
7790 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxMenu_p")) { | |
7791 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxMenu_InsertMenu. Expected _wxMenu_p."); | |
7792 | return NULL; | |
7793 | } | |
7794 | } | |
7795 | if (_obj5) | |
7796 | { | |
7797 | _arg5 = wxString_in_helper(_obj5); | |
7798 | if (_arg5 == NULL) | |
7799 | return NULL; | |
7800 | } | |
7801 | { | |
7802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7803 | wxMenu_InsertMenu(_arg0,_arg1,_arg2,*_arg3,_arg4,*_arg5); | |
7a446686 | 7804 | |
474c48f9 | 7805 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7806 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
7807 | } Py_INCREF(Py_None); |
7808 | _resultobj = Py_None; | |
7809 | { | |
7810 | if (_obj3) | |
7811 | delete _arg3; | |
7812 | } | |
7813 | { | |
7814 | if (_obj5) | |
7815 | delete _arg5; | |
7816 | } | |
7a446686 RD |
7817 | return _resultobj; |
7818 | } | |
7819 | ||
a884bee5 RD |
7820 | #define wxMenu_InsertItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->Insert(_swigarg0,_swigarg1)) |
7821 | static PyObject *_wrap_wxMenu_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 7822 | PyObject * _resultobj; |
a884bee5 RD |
7823 | bool _result; |
7824 | wxMenu * _arg0; | |
7825 | size_t _arg1; | |
7826 | wxMenuItem * _arg2; | |
7a446686 | 7827 | PyObject * _argo0 = 0; |
a884bee5 RD |
7828 | PyObject * _argo2 = 0; |
7829 | char *_kwnames[] = { "self","pos","item", NULL }; | |
7a446686 RD |
7830 | |
7831 | self = self; | |
a884bee5 | 7832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_InsertItem",_kwnames,&_argo0,&_arg1,&_argo2)) |
7a446686 RD |
7833 | return NULL; |
7834 | if (_argo0) { | |
7835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
7836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_InsertItem. Expected _wxMenu_p."); | |
7838 | return NULL; | |
7839 | } | |
7840 | } | |
7841 | if (_argo2) { | |
7842 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
7843 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenuItem_p")) { | |
7844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenu_InsertItem. Expected _wxMenuItem_p."); | |
7a446686 RD |
7845 | return NULL; |
7846 | } | |
7847 | } | |
7848 | { | |
474c48f9 | 7849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7850 | _result = (bool )wxMenu_InsertItem(_arg0,_arg1,_arg2); |
7a446686 | 7851 | |
474c48f9 | 7852 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7853 | if (PyErr_Occurred()) return NULL; |
a884bee5 | 7854 | } _resultobj = Py_BuildValue("i",_result); |
7a446686 RD |
7855 | return _resultobj; |
7856 | } | |
7857 | ||
a884bee5 RD |
7858 | #define wxMenu_Prepend(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7859 | static PyObject *_wrap_wxMenu_Prepend(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7a446686 | 7860 | PyObject * _resultobj; |
a884bee5 RD |
7861 | wxMenu * _arg0; |
7862 | int _arg1; | |
7863 | wxString * _arg2; | |
9a74fcaf | 7864 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
546bfbea | 7865 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
7a446686 | 7866 | PyObject * _argo0 = 0; |
a884bee5 RD |
7867 | PyObject * _obj2 = 0; |
7868 | PyObject * _obj3 = 0; | |
7869 | char *_kwnames[] = { "self","id","text","help","kind", NULL }; | |
7a446686 RD |
7870 | |
7871 | self = self; | |
a884bee5 | 7872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Prepend",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
7a446686 RD |
7873 | return NULL; |
7874 | if (_argo0) { | |
7875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
7876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Prepend. Expected _wxMenu_p."); | |
7a446686 RD |
7878 | return NULL; |
7879 | } | |
7880 | } | |
a884bee5 RD |
7881 | { |
7882 | _arg2 = wxString_in_helper(_obj2); | |
7883 | if (_arg2 == NULL) | |
7884 | return NULL; | |
7885 | } | |
7886 | if (_obj3) | |
7887 | { | |
7888 | _arg3 = wxString_in_helper(_obj3); | |
7889 | if (_arg3 == NULL) | |
7890 | return NULL; | |
7891 | } | |
7a446686 | 7892 | { |
474c48f9 | 7893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7894 | wxMenu_Prepend(_arg0,_arg1,*_arg2,*_arg3,_arg4); |
7a446686 | 7895 | |
474c48f9 | 7896 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7897 | if (PyErr_Occurred()) return NULL; |
7a446686 RD |
7898 | } Py_INCREF(Py_None); |
7899 | _resultobj = Py_None; | |
a884bee5 RD |
7900 | { |
7901 | if (_obj2) | |
7902 | delete _arg2; | |
7903 | } | |
7904 | { | |
7905 | if (_obj3) | |
7906 | delete _arg3; | |
7907 | } | |
7a446686 RD |
7908 | return _resultobj; |
7909 | } | |
7910 | ||
a884bee5 RD |
7911 | #define wxMenu_PrependSeparator(_swigobj) (_swigobj->PrependSeparator()) |
7912 | static PyObject *_wrap_wxMenu_PrependSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
49df1f52 | 7913 | PyObject * _resultobj; |
a884bee5 | 7914 | wxMenu * _arg0; |
49df1f52 RD |
7915 | PyObject * _argo0 = 0; |
7916 | char *_kwnames[] = { "self", NULL }; | |
7917 | ||
7918 | self = self; | |
a884bee5 | 7919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_PrependSeparator",_kwnames,&_argo0)) |
49df1f52 RD |
7920 | return NULL; |
7921 | if (_argo0) { | |
7922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
a884bee5 RD |
7923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
7924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependSeparator. Expected _wxMenu_p."); | |
49df1f52 RD |
7925 | return NULL; |
7926 | } | |
7927 | } | |
7928 | { | |
7929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a884bee5 | 7930 | wxMenu_PrependSeparator(_arg0); |
49df1f52 RD |
7931 | |
7932 | wxPyEndAllowThreads(__tstate); | |
7933 | if (PyErr_Occurred()) return NULL; | |
a884bee5 RD |
7934 | } Py_INCREF(Py_None); |
7935 | _resultobj = Py_None; | |
49df1f52 RD |
7936 | return _resultobj; |
7937 | } | |
7938 | ||
a884bee5 RD |
7939 | #define wxMenu_PrependCheckItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependCheckItem(_swigarg0,_swigarg1,_swigarg2)) |
7940 | static PyObject *_wrap_wxMenu_PrependCheckItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 7941 | PyObject * _resultobj; |
a884bee5 RD |
7942 | wxMenu * _arg0; |
7943 | int _arg1; | |
7944 | wxString * _arg2; | |
9a74fcaf | 7945 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
a884bee5 RD |
7946 | PyObject * _argo0 = 0; |
7947 | PyObject * _obj2 = 0; | |
7948 | PyObject * _obj3 = 0; | |
7949 | char *_kwnames[] = { "self","id","text","help", NULL }; | |
8ab979d7 RD |
7950 | |
7951 | self = self; | |
a884bee5 | 7952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependCheckItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 7953 | return NULL; |
a884bee5 RD |
7954 | if (_argo0) { |
7955 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7956 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
7957 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependCheckItem. Expected _wxMenu_p."); | |
7958 | return NULL; | |
7959 | } | |
7960 | } | |
8ab979d7 | 7961 | { |
a884bee5 RD |
7962 | _arg2 = wxString_in_helper(_obj2); |
7963 | if (_arg2 == NULL) | |
7964 | return NULL; | |
7965 | } | |
7966 | if (_obj3) | |
7967 | { | |
7968 | _arg3 = wxString_in_helper(_obj3); | |
7969 | if (_arg3 == NULL) | |
2cd2fac8 | 7970 | return NULL; |
8ab979d7 | 7971 | } |
cf694132 | 7972 | { |
474c48f9 | 7973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 7974 | wxMenu_PrependCheckItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 7975 | |
474c48f9 | 7976 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 7977 | if (PyErr_Occurred()) return NULL; |
a884bee5 RD |
7978 | } Py_INCREF(Py_None); |
7979 | _resultobj = Py_None; | |
8ab979d7 | 7980 | { |
a884bee5 RD |
7981 | if (_obj2) |
7982 | delete _arg2; | |
7983 | } | |
7984 | { | |
7985 | if (_obj3) | |
7986 | delete _arg3; | |
8ab979d7 RD |
7987 | } |
7988 | return _resultobj; | |
7989 | } | |
7990 | ||
a884bee5 RD |
7991 | #define wxMenu_PrependRadioItem(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PrependRadioItem(_swigarg0,_swigarg1,_swigarg2)) |
7992 | static PyObject *_wrap_wxMenu_PrependRadioItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
7993 | PyObject * _resultobj; |
7994 | wxMenu * _arg0; | |
7995 | int _arg1; | |
7996 | wxString * _arg2; | |
9a74fcaf | 7997 | wxString * _arg3 = (wxString *) &wxPyEmptyString; |
1d99702e | 7998 | PyObject * _argo0 = 0; |
8ab979d7 RD |
7999 | PyObject * _obj2 = 0; |
8000 | PyObject * _obj3 = 0; | |
a884bee5 | 8001 | char *_kwnames[] = { "self","id","text","help", NULL }; |
8ab979d7 RD |
8002 | |
8003 | self = self; | |
a884bee5 | 8004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxMenu_PrependRadioItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3)) |
8ab979d7 | 8005 | return NULL; |
1d99702e RD |
8006 | if (_argo0) { |
8007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependRadioItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8010 | return NULL; |
8011 | } | |
8012 | } | |
8013 | { | |
c8bc7bb8 RD |
8014 | _arg2 = wxString_in_helper(_obj2); |
8015 | if (_arg2 == NULL) | |
8ab979d7 | 8016 | return NULL; |
8ab979d7 RD |
8017 | } |
8018 | if (_obj3) | |
8019 | { | |
c8bc7bb8 RD |
8020 | _arg3 = wxString_in_helper(_obj3); |
8021 | if (_arg3 == NULL) | |
8ab979d7 | 8022 | return NULL; |
8ab979d7 | 8023 | } |
cf694132 | 8024 | { |
474c48f9 | 8025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8026 | wxMenu_PrependRadioItem(_arg0,_arg1,*_arg2,*_arg3); |
cf694132 | 8027 | |
474c48f9 | 8028 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8029 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8030 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8031 | _resultobj = Py_None; |
8032 | { | |
8033 | if (_obj2) | |
8034 | delete _arg2; | |
8035 | } | |
8036 | { | |
8037 | if (_obj3) | |
8038 | delete _arg3; | |
8039 | } | |
8040 | return _resultobj; | |
8041 | } | |
8042 | ||
a884bee5 RD |
8043 | #define wxMenu_PrependMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Prepend(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8044 | static PyObject *_wrap_wxMenu_PrependMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8045 | PyObject * _resultobj; |
8046 | wxMenu * _arg0; | |
8047 | int _arg1; | |
8048 | wxString * _arg2; | |
8049 | wxMenu * _arg3; | |
9a74fcaf | 8050 | wxString * _arg4 = (wxString *) &wxPyEmptyString; |
1d99702e | 8051 | PyObject * _argo0 = 0; |
8ab979d7 | 8052 | PyObject * _obj2 = 0; |
1d99702e | 8053 | PyObject * _argo3 = 0; |
8ab979d7 | 8054 | PyObject * _obj4 = 0; |
a884bee5 | 8055 | char *_kwnames[] = { "self","id","text","submenu","help", NULL }; |
8ab979d7 RD |
8056 | |
8057 | self = self; | |
a884bee5 | 8058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_PrependMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
8ab979d7 | 8059 | return NULL; |
1d99702e RD |
8060 | if (_argo0) { |
8061 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8062 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8063 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8064 | return NULL; |
8065 | } | |
8066 | } | |
8067 | { | |
c8bc7bb8 RD |
8068 | _arg2 = wxString_in_helper(_obj2); |
8069 | if (_arg2 == NULL) | |
2cd2fac8 | 8070 | return NULL; |
8ab979d7 | 8071 | } |
1d99702e RD |
8072 | if (_argo3) { |
8073 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
8074 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
a884bee5 | 8075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_PrependMenu. Expected _wxMenu_p."); |
8ab979d7 RD |
8076 | return NULL; |
8077 | } | |
8078 | } | |
8079 | if (_obj4) | |
8080 | { | |
c8bc7bb8 RD |
8081 | _arg4 = wxString_in_helper(_obj4); |
8082 | if (_arg4 == NULL) | |
2cd2fac8 | 8083 | return NULL; |
8ab979d7 | 8084 | } |
cf694132 | 8085 | { |
474c48f9 | 8086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8087 | wxMenu_PrependMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); |
cf694132 | 8088 | |
474c48f9 | 8089 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8090 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8091 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8092 | _resultobj = Py_None; |
8093 | { | |
8094 | if (_obj2) | |
8095 | delete _arg2; | |
8096 | } | |
8097 | { | |
8098 | if (_obj4) | |
8099 | delete _arg4; | |
8100 | } | |
8101 | return _resultobj; | |
8102 | } | |
8103 | ||
a884bee5 RD |
8104 | #define wxMenu_PrependItem(_swigobj,_swigarg0) (_swigobj->Prepend(_swigarg0)) |
8105 | static PyObject *_wrap_wxMenu_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
af309447 RD |
8106 | PyObject * _resultobj; |
8107 | wxMenu * _arg0; | |
8108 | wxMenuItem * _arg1; | |
1d99702e RD |
8109 | PyObject * _argo0 = 0; |
8110 | PyObject * _argo1 = 0; | |
efc5f224 | 8111 | char *_kwnames[] = { "self","item", NULL }; |
af309447 RD |
8112 | |
8113 | self = self; | |
a884bee5 | 8114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_PrependItem",_kwnames,&_argo0,&_argo1)) |
af309447 | 8115 | return NULL; |
1d99702e RD |
8116 | if (_argo0) { |
8117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
a884bee5 | 8119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_PrependItem. Expected _wxMenu_p."); |
af309447 RD |
8120 | return NULL; |
8121 | } | |
8122 | } | |
1d99702e RD |
8123 | if (_argo1) { |
8124 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8125 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
a884bee5 | 8126 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_PrependItem. Expected _wxMenuItem_p."); |
8ab979d7 RD |
8127 | return NULL; |
8128 | } | |
8129 | } | |
cf694132 | 8130 | { |
474c48f9 | 8131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
a884bee5 | 8132 | wxMenu_PrependItem(_arg0,_arg1); |
cf694132 | 8133 | |
474c48f9 | 8134 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8135 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8136 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8137 | _resultobj = Py_None; |
8138 | return _resultobj; | |
8139 | } | |
8140 | ||
8141 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
efc5f224 | 8142 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8143 | PyObject * _resultobj; |
8144 | wxMenu * _arg0; | |
1d99702e | 8145 | PyObject * _argo0 = 0; |
efc5f224 | 8146 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8147 | |
8148 | self = self; | |
efc5f224 | 8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
8ab979d7 | 8150 | return NULL; |
1d99702e RD |
8151 | if (_argo0) { |
8152 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8153 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8154 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
8155 | return NULL; | |
8156 | } | |
8157 | } | |
cf694132 | 8158 | { |
474c48f9 | 8159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8160 | wxMenu_Break(_arg0); |
cf694132 | 8161 | |
474c48f9 | 8162 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8163 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8164 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8165 | _resultobj = Py_None; |
8166 | return _resultobj; | |
8167 | } | |
8168 | ||
8169 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
efc5f224 | 8170 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8171 | PyObject * _resultobj; |
8172 | wxMenu * _arg0; | |
8173 | int _arg1; | |
8174 | bool _arg2; | |
1d99702e | 8175 | PyObject * _argo0 = 0; |
8ab979d7 | 8176 | int tempbool2; |
efc5f224 | 8177 | char *_kwnames[] = { "self","id","flag", NULL }; |
8ab979d7 RD |
8178 | |
8179 | self = self; | |
efc5f224 | 8180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8181 | return NULL; |
1d99702e RD |
8182 | if (_argo0) { |
8183 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8184 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8185 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
8186 | return NULL; | |
8187 | } | |
8188 | } | |
8189 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8190 | { |
474c48f9 | 8191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8192 | wxMenu_Check(_arg0,_arg1,_arg2); |
cf694132 | 8193 | |
474c48f9 | 8194 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8195 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8196 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8197 | _resultobj = Py_None; |
8198 | return _resultobj; | |
8199 | } | |
8200 | ||
b1462dfa RD |
8201 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
8202 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8203 | PyObject * _resultobj; | |
8204 | bool _result; | |
8205 | wxMenu * _arg0; | |
8206 | int _arg1; | |
8207 | PyObject * _argo0 = 0; | |
8208 | char *_kwnames[] = { "self","id", NULL }; | |
8209 | ||
8210 | self = self; | |
8211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) | |
8212 | return NULL; | |
8213 | if (_argo0) { | |
8214 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8215 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); | |
8217 | return NULL; | |
8218 | } | |
8219 | } | |
8220 | { | |
474c48f9 | 8221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8222 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); |
b1462dfa | 8223 | |
474c48f9 | 8224 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8225 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8226 | } _resultobj = Py_BuildValue("i",_result); |
8227 | return _resultobj; | |
8228 | } | |
8229 | ||
8ab979d7 | 8230 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) |
efc5f224 | 8231 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8232 | PyObject * _resultobj; |
8233 | wxMenu * _arg0; | |
8234 | int _arg1; | |
8235 | bool _arg2; | |
1d99702e | 8236 | PyObject * _argo0 = 0; |
8ab979d7 | 8237 | int tempbool2; |
efc5f224 | 8238 | char *_kwnames[] = { "self","id","enable", NULL }; |
8ab979d7 RD |
8239 | |
8240 | self = self; | |
efc5f224 | 8241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
8ab979d7 | 8242 | return NULL; |
1d99702e RD |
8243 | if (_argo0) { |
8244 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8245 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8246 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
8247 | return NULL; | |
8248 | } | |
8249 | } | |
8250 | _arg2 = (bool ) tempbool2; | |
cf694132 | 8251 | { |
474c48f9 | 8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8253 | wxMenu_Enable(_arg0,_arg1,_arg2); |
cf694132 | 8254 | |
474c48f9 | 8255 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8256 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8257 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8258 | _resultobj = Py_None; |
8259 | return _resultobj; | |
8260 | } | |
8261 | ||
b1462dfa RD |
8262 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
8263 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8264 | PyObject * _resultobj; | |
8265 | bool _result; | |
8266 | wxMenu * _arg0; | |
8267 | int _arg1; | |
8268 | PyObject * _argo0 = 0; | |
8269 | char *_kwnames[] = { "self","id", NULL }; | |
8270 | ||
8271 | self = self; | |
8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) | |
8273 | return NULL; | |
8274 | if (_argo0) { | |
8275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); | |
8278 | return NULL; | |
8279 | } | |
8280 | } | |
8281 | { | |
474c48f9 | 8282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8283 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); |
b1462dfa | 8284 | |
474c48f9 | 8285 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8286 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8287 | } _resultobj = Py_BuildValue("i",_result); |
8288 | return _resultobj; | |
8289 | } | |
8290 | ||
8ab979d7 | 8291 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
efc5f224 | 8292 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8293 | PyObject * _resultobj; |
8294 | int _result; | |
8295 | wxMenu * _arg0; | |
8296 | wxString * _arg1; | |
1d99702e | 8297 | PyObject * _argo0 = 0; |
8ab979d7 | 8298 | PyObject * _obj1 = 0; |
efc5f224 | 8299 | char *_kwnames[] = { "self","itemString", NULL }; |
8ab979d7 RD |
8300 | |
8301 | self = self; | |
efc5f224 | 8302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8303 | return NULL; |
1d99702e RD |
8304 | if (_argo0) { |
8305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
8308 | return NULL; | |
8309 | } | |
8310 | } | |
8311 | { | |
c8bc7bb8 RD |
8312 | _arg1 = wxString_in_helper(_obj1); |
8313 | if (_arg1 == NULL) | |
2cd2fac8 | 8314 | return NULL; |
8ab979d7 | 8315 | } |
cf694132 | 8316 | { |
474c48f9 | 8317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8318 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); |
cf694132 | 8319 | |
474c48f9 | 8320 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8321 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8322 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8323 | { |
8324 | if (_obj1) | |
8325 | delete _arg1; | |
8326 | } | |
8327 | return _resultobj; | |
8328 | } | |
8329 | ||
b1462dfa RD |
8330 | #define wxMenu_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) |
8331 | static PyObject *_wrap_wxMenu_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8332 | PyObject * _resultobj; | |
8333 | wxMenuItem * _result; | |
8334 | wxMenu * _arg0; | |
8335 | int _arg1; | |
8336 | PyObject * _argo0 = 0; | |
8337 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
8338 | |
8339 | self = self; | |
8340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemById",_kwnames,&_argo0,&_arg1)) | |
8341 | return NULL; | |
8342 | if (_argo0) { | |
8343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemById. Expected _wxMenu_p."); | |
8346 | return NULL; | |
8347 | } | |
8348 | } | |
8349 | { | |
474c48f9 | 8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8351 | _result = (wxMenuItem *)wxMenu_FindItemById(_arg0,_arg1); |
b1462dfa | 8352 | |
474c48f9 | 8353 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8354 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8355 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
8356 | return _resultobj; |
8357 | } | |
8358 | ||
8ab979d7 | 8359 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
efc5f224 | 8360 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8361 | PyObject * _resultobj; |
8362 | wxString * _result; | |
8363 | wxMenu * _arg0; | |
1d99702e | 8364 | PyObject * _argo0 = 0; |
efc5f224 | 8365 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8366 | |
8367 | self = self; | |
efc5f224 | 8368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
8ab979d7 | 8369 | return NULL; |
1d99702e RD |
8370 | if (_argo0) { |
8371 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8372 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8373 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
8374 | return NULL; | |
8375 | } | |
8376 | } | |
8ab979d7 | 8377 | { |
474c48f9 | 8378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8379 | _result = new wxString (wxMenu_GetTitle(_arg0)); |
cf694132 | 8380 | |
474c48f9 | 8381 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8382 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8383 | }{ |
c8bc7bb8 RD |
8384 | #if wxUSE_UNICODE |
8385 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8386 | #else | |
eec92d76 | 8387 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8388 | #endif |
8ab979d7 RD |
8389 | } |
8390 | { | |
8391 | delete _result; | |
8392 | } | |
8393 | return _resultobj; | |
8394 | } | |
8395 | ||
8396 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
efc5f224 | 8397 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8398 | PyObject * _resultobj; |
8399 | wxMenu * _arg0; | |
8400 | wxString * _arg1; | |
1d99702e | 8401 | PyObject * _argo0 = 0; |
8ab979d7 | 8402 | PyObject * _obj1 = 0; |
efc5f224 | 8403 | char *_kwnames[] = { "self","title", NULL }; |
8ab979d7 RD |
8404 | |
8405 | self = self; | |
efc5f224 | 8406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 8407 | return NULL; |
1d99702e RD |
8408 | if (_argo0) { |
8409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
8412 | return NULL; | |
8413 | } | |
8414 | } | |
8415 | { | |
c8bc7bb8 RD |
8416 | _arg1 = wxString_in_helper(_obj1); |
8417 | if (_arg1 == NULL) | |
2cd2fac8 | 8418 | return NULL; |
8ab979d7 | 8419 | } |
cf694132 | 8420 | { |
474c48f9 | 8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8422 | wxMenu_SetTitle(_arg0,*_arg1); |
cf694132 | 8423 | |
474c48f9 | 8424 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8425 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8426 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8427 | _resultobj = Py_None; |
8428 | { | |
8429 | if (_obj1) | |
8430 | delete _arg1; | |
8431 | } | |
8432 | return _resultobj; | |
8433 | } | |
8434 | ||
b1462dfa RD |
8435 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
8436 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8437 | PyObject * _resultobj; |
b1462dfa | 8438 | wxString * _result; |
8ab979d7 RD |
8439 | wxMenu * _arg0; |
8440 | int _arg1; | |
1d99702e | 8441 | PyObject * _argo0 = 0; |
efc5f224 | 8442 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8443 | |
8444 | self = self; | |
b1462dfa | 8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8446 | return NULL; |
1d99702e RD |
8447 | if (_argo0) { |
8448 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8449 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8450 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8451 | return NULL; |
8452 | } | |
8453 | } | |
cf694132 | 8454 | { |
474c48f9 | 8455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8456 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); |
cf694132 | 8457 | |
474c48f9 | 8458 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8459 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8460 | }{ |
c8bc7bb8 RD |
8461 | #if wxUSE_UNICODE |
8462 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8463 | #else | |
eec92d76 | 8464 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8465 | #endif |
b1462dfa RD |
8466 | } |
8467 | { | |
8468 | delete _result; | |
8469 | } | |
8ab979d7 RD |
8470 | return _resultobj; |
8471 | } | |
8472 | ||
b1462dfa RD |
8473 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
8474 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8475 | PyObject * _resultobj; |
8ab979d7 RD |
8476 | wxMenu * _arg0; |
8477 | int _arg1; | |
b1462dfa | 8478 | wxString * _arg2; |
1d99702e | 8479 | PyObject * _argo0 = 0; |
b1462dfa RD |
8480 | PyObject * _obj2 = 0; |
8481 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
8482 | |
8483 | self = self; | |
b1462dfa | 8484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8485 | return NULL; |
1d99702e RD |
8486 | if (_argo0) { |
8487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
8ab979d7 RD |
8490 | return NULL; |
8491 | } | |
8492 | } | |
b1462dfa | 8493 | { |
c8bc7bb8 RD |
8494 | _arg2 = wxString_in_helper(_obj2); |
8495 | if (_arg2 == NULL) | |
2cd2fac8 | 8496 | return NULL; |
b1462dfa | 8497 | } |
8ab979d7 | 8498 | { |
474c48f9 | 8499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8500 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 8501 | |
474c48f9 | 8502 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8503 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8504 | } Py_INCREF(Py_None); |
8505 | _resultobj = Py_None; | |
8ab979d7 | 8506 | { |
b1462dfa RD |
8507 | if (_obj2) |
8508 | delete _arg2; | |
8ab979d7 RD |
8509 | } |
8510 | return _resultobj; | |
8511 | } | |
8512 | ||
b1462dfa RD |
8513 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) |
8514 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8515 | PyObject * _resultobj; |
8516 | wxString * _result; | |
8517 | wxMenu * _arg0; | |
8518 | int _arg1; | |
1d99702e | 8519 | PyObject * _argo0 = 0; |
efc5f224 | 8520 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8521 | |
8522 | self = self; | |
b1462dfa | 8523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8524 | return NULL; |
1d99702e RD |
8525 | if (_argo0) { |
8526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
8ab979d7 RD |
8529 | return NULL; |
8530 | } | |
8531 | } | |
8ab979d7 | 8532 | { |
474c48f9 | 8533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8534 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); |
cf694132 | 8535 | |
474c48f9 | 8536 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8537 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8538 | }{ |
c8bc7bb8 RD |
8539 | #if wxUSE_UNICODE |
8540 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8541 | #else | |
eec92d76 | 8542 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8543 | #endif |
8ab979d7 RD |
8544 | } |
8545 | { | |
8546 | delete _result; | |
8547 | } | |
8548 | return _resultobj; | |
8549 | } | |
8550 | ||
8551 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
efc5f224 | 8552 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 RD |
8553 | PyObject * _resultobj; |
8554 | wxMenu * _arg0; | |
8555 | int _arg1; | |
8556 | wxString * _arg2; | |
1d99702e | 8557 | PyObject * _argo0 = 0; |
8ab979d7 | 8558 | PyObject * _obj2 = 0; |
efc5f224 | 8559 | char *_kwnames[] = { "self","id","helpString", NULL }; |
8ab979d7 RD |
8560 | |
8561 | self = self; | |
efc5f224 | 8562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 8563 | return NULL; |
1d99702e RD |
8564 | if (_argo0) { |
8565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8ab979d7 RD |
8567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
8568 | return NULL; | |
8569 | } | |
8570 | } | |
8571 | { | |
c8bc7bb8 RD |
8572 | _arg2 = wxString_in_helper(_obj2); |
8573 | if (_arg2 == NULL) | |
2cd2fac8 | 8574 | return NULL; |
8ab979d7 | 8575 | } |
cf694132 | 8576 | { |
474c48f9 | 8577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8578 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); |
cf694132 | 8579 | |
474c48f9 | 8580 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8581 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8582 | } Py_INCREF(Py_None); |
8ab979d7 RD |
8583 | _resultobj = Py_None; |
8584 | { | |
8585 | if (_obj2) | |
8586 | delete _arg2; | |
8587 | } | |
8588 | return _resultobj; | |
8589 | } | |
8590 | ||
b1462dfa RD |
8591 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
8592 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8593 | PyObject * _resultobj; |
8ab979d7 | 8594 | wxMenu * _arg0; |
b1462dfa | 8595 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
1d99702e | 8596 | PyObject * _argo0 = 0; |
b1462dfa RD |
8597 | PyObject * _argo1 = 0; |
8598 | char *_kwnames[] = { "self","source", NULL }; | |
8ab979d7 RD |
8599 | |
8600 | self = self; | |
b1462dfa | 8601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8602 | return NULL; |
1d99702e RD |
8603 | if (_argo0) { |
8604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa RD |
8606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
8607 | return NULL; | |
8608 | } | |
8609 | } | |
8610 | if (_argo1) { | |
8611 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8612 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); | |
8ab979d7 RD |
8614 | return NULL; |
8615 | } | |
8616 | } | |
cf694132 | 8617 | { |
474c48f9 | 8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8619 | wxMenu_UpdateUI(_arg0,_arg1); |
cf694132 | 8620 | |
474c48f9 | 8621 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8622 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8623 | } Py_INCREF(Py_None); |
8624 | _resultobj = Py_None; | |
8ab979d7 RD |
8625 | return _resultobj; |
8626 | } | |
8627 | ||
b1462dfa RD |
8628 | #define wxMenu_Delete(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8629 | static PyObject *_wrap_wxMenu_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
8630 | PyObject * _resultobj; |
8631 | bool _result; | |
8632 | wxMenu * _arg0; | |
8633 | int _arg1; | |
1d99702e | 8634 | PyObject * _argo0 = 0; |
efc5f224 | 8635 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8636 | |
8637 | self = self; | |
b1462dfa | 8638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Delete",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8639 | return NULL; |
1d99702e RD |
8640 | if (_argo0) { |
8641 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8642 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8643 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Delete. Expected _wxMenu_p."); |
8ab979d7 RD |
8644 | return NULL; |
8645 | } | |
8646 | } | |
cf694132 | 8647 | { |
474c48f9 | 8648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8649 | _result = (bool )wxMenu_Delete(_arg0,_arg1); |
cf694132 | 8650 | |
474c48f9 | 8651 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8652 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8653 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8654 | return _resultobj; |
8655 | } | |
8656 | ||
b1462dfa RD |
8657 | #define wxMenu_DeleteItem(_swigobj,_swigarg0) (_swigobj->Delete(_swigarg0)) |
8658 | static PyObject *_wrap_wxMenu_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8659 | PyObject * _resultobj; |
b1462dfa | 8660 | bool _result; |
8ab979d7 | 8661 | wxMenu * _arg0; |
b1462dfa | 8662 | wxMenuItem * _arg1; |
1d99702e | 8663 | PyObject * _argo0 = 0; |
b1462dfa RD |
8664 | PyObject * _argo1 = 0; |
8665 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8666 | |
8667 | self = self; | |
b1462dfa | 8668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DeleteItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8669 | return NULL; |
1d99702e RD |
8670 | if (_argo0) { |
8671 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8672 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DeleteItem. Expected _wxMenu_p."); |
8ab979d7 RD |
8674 | return NULL; |
8675 | } | |
8676 | } | |
b1462dfa RD |
8677 | if (_argo1) { |
8678 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8679 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DeleteItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8681 | return NULL; |
b1462dfa | 8682 | } |
8ab979d7 | 8683 | } |
cf694132 | 8684 | { |
474c48f9 | 8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8686 | _result = (bool )wxMenu_DeleteItem(_arg0,_arg1); |
cf694132 | 8687 | |
474c48f9 | 8688 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8689 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8690 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8691 | return _resultobj; |
8692 | } | |
8693 | ||
b1462dfa RD |
8694 | #define wxMenu_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8695 | static PyObject *_wrap_wxMenu_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
efc5f224 | 8696 | PyObject * _resultobj; |
b1462dfa | 8697 | wxMenuItem * _result; |
efc5f224 | 8698 | wxMenu * _arg0; |
b1462dfa | 8699 | int _arg1; |
efc5f224 | 8700 | PyObject * _argo0 = 0; |
b1462dfa | 8701 | char *_kwnames[] = { "self","id", NULL }; |
efc5f224 RD |
8702 | |
8703 | self = self; | |
b1462dfa | 8704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_Remove",_kwnames,&_argo0,&_arg1)) |
efc5f224 RD |
8705 | return NULL; |
8706 | if (_argo0) { | |
8707 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8708 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
b1462dfa | 8709 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Remove. Expected _wxMenu_p."); |
efc5f224 RD |
8710 | return NULL; |
8711 | } | |
8712 | } | |
8713 | { | |
474c48f9 | 8714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8715 | _result = (wxMenuItem *)wxMenu_Remove(_arg0,_arg1); |
efc5f224 | 8716 | |
474c48f9 | 8717 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8718 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8719 | }{ _resultobj = wxPyMake_wxObject(_result); } |
efc5f224 RD |
8720 | return _resultobj; |
8721 | } | |
8722 | ||
b1462dfa RD |
8723 | #define wxMenu_RemoveItem(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) |
8724 | static PyObject *_wrap_wxMenu_RemoveItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8725 | PyObject * _resultobj; |
b1462dfa RD |
8726 | wxMenuItem * _result; |
8727 | wxMenu * _arg0; | |
8728 | wxMenuItem * _arg1; | |
8729 | PyObject * _argo0 = 0; | |
8730 | PyObject * _argo1 = 0; | |
8731 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8732 | |
8733 | self = self; | |
b1462dfa RD |
8734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_RemoveItem",_kwnames,&_argo0,&_argo1)) |
8735 | return NULL; | |
8736 | if (_argo0) { | |
8737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_RemoveItem. Expected _wxMenu_p."); | |
8740 | return NULL; | |
8741 | } | |
8742 | } | |
8743 | if (_argo1) { | |
8744 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8745 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_RemoveItem. Expected _wxMenuItem_p."); | |
8ab979d7 | 8747 | return NULL; |
b1462dfa RD |
8748 | } |
8749 | } | |
cf694132 | 8750 | { |
474c48f9 | 8751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8752 | _result = (wxMenuItem *)wxMenu_RemoveItem(_arg0,_arg1); |
cf694132 | 8753 | |
474c48f9 | 8754 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8755 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8756 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8757 | return _resultobj; |
8758 | } | |
8759 | ||
eb715945 | 8760 | static void wxMenu_Destroy(wxMenu *self) { delete self; } |
b1462dfa | 8761 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8ab979d7 | 8762 | PyObject * _resultobj; |
b1462dfa | 8763 | wxMenu * _arg0; |
1d99702e | 8764 | PyObject * _argo0 = 0; |
b1462dfa | 8765 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8766 | |
8767 | self = self; | |
b1462dfa | 8768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) |
8ab979d7 | 8769 | return NULL; |
1d99702e RD |
8770 | if (_argo0) { |
8771 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8772 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8773 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
8ab979d7 RD |
8774 | return NULL; |
8775 | } | |
8776 | } | |
cf694132 | 8777 | { |
474c48f9 | 8778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8779 | wxMenu_Destroy(_arg0); |
cf694132 | 8780 | |
474c48f9 | 8781 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8782 | if (PyErr_Occurred()) return NULL; |
cf694132 | 8783 | } Py_INCREF(Py_None); |
8ab979d7 | 8784 | _resultobj = Py_None; |
8ab979d7 RD |
8785 | return _resultobj; |
8786 | } | |
8787 | ||
b1462dfa RD |
8788 | #define wxMenu_DestroyId(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8789 | static PyObject *_wrap_wxMenu_DestroyId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8790 | PyObject * _resultobj; |
b1462dfa RD |
8791 | bool _result; |
8792 | wxMenu * _arg0; | |
8ab979d7 | 8793 | int _arg1; |
1d99702e | 8794 | PyObject * _argo0 = 0; |
b1462dfa | 8795 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
8796 | |
8797 | self = self; | |
b1462dfa | 8798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_DestroyId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 8799 | return NULL; |
1d99702e RD |
8800 | if (_argo0) { |
8801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyId. Expected _wxMenu_p."); | |
8ab979d7 RD |
8804 | return NULL; |
8805 | } | |
8806 | } | |
cf694132 | 8807 | { |
474c48f9 | 8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8809 | _result = (bool )wxMenu_DestroyId(_arg0,_arg1); |
cf694132 | 8810 | |
474c48f9 | 8811 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8812 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8813 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8814 | return _resultobj; |
8815 | } | |
8816 | ||
b1462dfa RD |
8817 | #define wxMenu_DestroyItem(_swigobj,_swigarg0) (_swigobj->Destroy(_swigarg0)) |
8818 | static PyObject *_wrap_wxMenu_DestroyItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8819 | PyObject * _resultobj; |
b1462dfa RD |
8820 | bool _result; |
8821 | wxMenu * _arg0; | |
8822 | wxMenuItem * _arg1; | |
1d99702e | 8823 | PyObject * _argo0 = 0; |
b1462dfa RD |
8824 | PyObject * _argo1 = 0; |
8825 | char *_kwnames[] = { "self","item", NULL }; | |
8ab979d7 RD |
8826 | |
8827 | self = self; | |
b1462dfa | 8828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_DestroyItem",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8829 | return NULL; |
1d99702e RD |
8830 | if (_argo0) { |
8831 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8832 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8833 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_DestroyItem. Expected _wxMenu_p."); | |
8834 | return NULL; | |
8835 | } | |
8836 | } | |
8837 | if (_argo1) { | |
8838 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8839 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
8840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_DestroyItem. Expected _wxMenuItem_p."); | |
8ab979d7 RD |
8841 | return NULL; |
8842 | } | |
8843 | } | |
cf694132 | 8844 | { |
474c48f9 | 8845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8846 | _result = (bool )wxMenu_DestroyItem(_arg0,_arg1); |
cf694132 | 8847 | |
474c48f9 | 8848 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8849 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 8850 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8851 | return _resultobj; |
8852 | } | |
8853 | ||
b1462dfa RD |
8854 | #define wxMenu_GetMenuItemCount(_swigobj) (_swigobj->GetMenuItemCount()) |
8855 | static PyObject *_wrap_wxMenu_GetMenuItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8856 | PyObject * _resultobj; |
b1462dfa RD |
8857 | size_t _result; |
8858 | wxMenu * _arg0; | |
1d99702e | 8859 | PyObject * _argo0 = 0; |
b1462dfa | 8860 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8861 | |
8862 | self = self; | |
b1462dfa | 8863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItemCount",_kwnames,&_argo0)) |
8ab979d7 | 8864 | return NULL; |
1d99702e RD |
8865 | if (_argo0) { |
8866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItemCount. Expected _wxMenu_p."); | |
8ab979d7 RD |
8869 | return NULL; |
8870 | } | |
8871 | } | |
cf694132 | 8872 | { |
474c48f9 | 8873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8874 | _result = (size_t )wxMenu_GetMenuItemCount(_arg0); |
cf694132 | 8875 | |
474c48f9 | 8876 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8877 | if (PyErr_Occurred()) return NULL; |
2abc0a0f | 8878 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
8879 | return _resultobj; |
8880 | } | |
8881 | ||
b1462dfa RD |
8882 | static PyObject * wxMenu_GetMenuItems(wxMenu *self) { |
8883 | wxMenuItemList& list = self->GetMenuItems(); | |
8884 | return wxPy_ConvertList(&list, "wxMenuItem"); | |
8885 | } | |
8886 | static PyObject *_wrap_wxMenu_GetMenuItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8887 | PyObject * _resultobj; |
b1462dfa RD |
8888 | PyObject * _result; |
8889 | wxMenu * _arg0; | |
1d99702e | 8890 | PyObject * _argo0 = 0; |
b1462dfa | 8891 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8892 | |
8893 | self = self; | |
b1462dfa | 8894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetMenuItems",_kwnames,&_argo0)) |
8ab979d7 | 8895 | return NULL; |
1d99702e RD |
8896 | if (_argo0) { |
8897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetMenuItems. Expected _wxMenu_p."); | |
8ab979d7 RD |
8900 | return NULL; |
8901 | } | |
8902 | } | |
cf694132 | 8903 | { |
474c48f9 | 8904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8905 | _result = (PyObject *)wxMenu_GetMenuItems(_arg0); |
cf694132 | 8906 | |
474c48f9 | 8907 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8908 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8909 | }{ |
8910 | _resultobj = _result; | |
8911 | } | |
8ab979d7 RD |
8912 | return _resultobj; |
8913 | } | |
8914 | ||
b1462dfa RD |
8915 | #define wxMenu_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
8916 | static PyObject *_wrap_wxMenu_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8917 | PyObject * _resultobj; |
b1462dfa RD |
8918 | wxMenu * _arg0; |
8919 | wxEvtHandler * _arg1; | |
1d99702e | 8920 | PyObject * _argo0 = 0; |
b1462dfa RD |
8921 | PyObject * _argo1 = 0; |
8922 | char *_kwnames[] = { "self","handler", NULL }; | |
8ab979d7 RD |
8923 | |
8924 | self = self; | |
b1462dfa | 8925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetEventHandler",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 8926 | return NULL; |
1d99702e RD |
8927 | if (_argo0) { |
8928 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8929 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8930 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8931 | return NULL; |
8932 | } | |
8933 | } | |
b1462dfa RD |
8934 | if (_argo1) { |
8935 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8936 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetEventHandler. Expected _wxEvtHandler_p."); | |
8ab979d7 | 8938 | return NULL; |
b1462dfa | 8939 | } |
8ab979d7 | 8940 | } |
cf694132 | 8941 | { |
474c48f9 | 8942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8943 | wxMenu_SetEventHandler(_arg0,_arg1); |
cf694132 | 8944 | |
474c48f9 | 8945 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8946 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
8947 | } Py_INCREF(Py_None); |
8948 | _resultobj = Py_None; | |
8ab979d7 RD |
8949 | return _resultobj; |
8950 | } | |
8951 | ||
b1462dfa RD |
8952 | #define wxMenu_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
8953 | static PyObject *_wrap_wxMenu_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 8954 | PyObject * _resultobj; |
b1462dfa RD |
8955 | wxEvtHandler * _result; |
8956 | wxMenu * _arg0; | |
1d99702e | 8957 | PyObject * _argo0 = 0; |
b1462dfa | 8958 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
8959 | |
8960 | self = self; | |
b1462dfa | 8961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetEventHandler",_kwnames,&_argo0)) |
8ab979d7 | 8962 | return NULL; |
1d99702e RD |
8963 | if (_argo0) { |
8964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetEventHandler. Expected _wxMenu_p."); | |
8ab979d7 RD |
8967 | return NULL; |
8968 | } | |
8969 | } | |
cf694132 | 8970 | { |
474c48f9 | 8971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8972 | _result = (wxEvtHandler *)wxMenu_GetEventHandler(_arg0); |
cf694132 | 8973 | |
474c48f9 | 8974 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 8975 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 8976 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
8977 | return _resultobj; |
8978 | } | |
8979 | ||
b1462dfa RD |
8980 | #define wxMenu_SetInvokingWindow(_swigobj,_swigarg0) (_swigobj->SetInvokingWindow(_swigarg0)) |
8981 | static PyObject *_wrap_wxMenu_SetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2f90df85 | 8982 | PyObject * _resultobj; |
b1462dfa RD |
8983 | wxMenu * _arg0; |
8984 | wxWindow * _arg1; | |
2f90df85 | 8985 | PyObject * _argo0 = 0; |
b1462dfa RD |
8986 | PyObject * _argo1 = 0; |
8987 | char *_kwnames[] = { "self","win", NULL }; | |
2f90df85 RD |
8988 | |
8989 | self = self; | |
b1462dfa | 8990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetInvokingWindow",_kwnames,&_argo0,&_argo1)) |
2f90df85 RD |
8991 | return NULL; |
8992 | if (_argo0) { | |
8993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
8994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
8995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetInvokingWindow. Expected _wxMenu_p."); | |
2f90df85 RD |
8996 | return NULL; |
8997 | } | |
8998 | } | |
b1462dfa RD |
8999 | if (_argo1) { |
9000 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9001 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
9002 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetInvokingWindow. Expected _wxWindow_p."); | |
2f90df85 | 9003 | return NULL; |
b1462dfa | 9004 | } |
2f90df85 | 9005 | } |
2f90df85 | 9006 | { |
474c48f9 | 9007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9008 | wxMenu_SetInvokingWindow(_arg0,_arg1); |
2f90df85 | 9009 | |
474c48f9 | 9010 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9011 | if (PyErr_Occurred()) return NULL; |
2f90df85 RD |
9012 | } Py_INCREF(Py_None); |
9013 | _resultobj = Py_None; | |
2f90df85 RD |
9014 | return _resultobj; |
9015 | } | |
9016 | ||
b1462dfa RD |
9017 | #define wxMenu_GetInvokingWindow(_swigobj) (_swigobj->GetInvokingWindow()) |
9018 | static PyObject *_wrap_wxMenu_GetInvokingWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9019 | PyObject * _resultobj; |
b1462dfa RD |
9020 | wxWindow * _result; |
9021 | wxMenu * _arg0; | |
1d99702e | 9022 | PyObject * _argo0 = 0; |
b1462dfa | 9023 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9024 | |
9025 | self = self; | |
b1462dfa | 9026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetInvokingWindow",_kwnames,&_argo0)) |
8ab979d7 | 9027 | return NULL; |
1d99702e RD |
9028 | if (_argo0) { |
9029 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9030 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9031 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetInvokingWindow. Expected _wxMenu_p."); | |
8ab979d7 RD |
9032 | return NULL; |
9033 | } | |
9034 | } | |
cf694132 | 9035 | { |
474c48f9 | 9036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9037 | _result = (wxWindow *)wxMenu_GetInvokingWindow(_arg0); |
cf694132 | 9038 | |
474c48f9 | 9039 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9040 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9041 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
9042 | return _resultobj; |
9043 | } | |
9044 | ||
b1462dfa RD |
9045 | #define wxMenu_GetStyle(_swigobj) (_swigobj->GetStyle()) |
9046 | static PyObject *_wrap_wxMenu_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9047 | PyObject * _resultobj; |
b1462dfa RD |
9048 | long _result; |
9049 | wxMenu * _arg0; | |
1d99702e | 9050 | PyObject * _argo0 = 0; |
b1462dfa | 9051 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9052 | |
9053 | self = self; | |
b1462dfa | 9054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetStyle",_kwnames,&_argo0)) |
8ab979d7 | 9055 | return NULL; |
1d99702e RD |
9056 | if (_argo0) { |
9057 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9058 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9059 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetStyle. Expected _wxMenu_p."); | |
8ab979d7 RD |
9060 | return NULL; |
9061 | } | |
9062 | } | |
8ab979d7 | 9063 | { |
474c48f9 | 9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9065 | _result = (long )wxMenu_GetStyle(_arg0); |
cf694132 | 9066 | |
474c48f9 | 9067 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9068 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9069 | } _resultobj = Py_BuildValue("l",_result); |
8ab979d7 RD |
9070 | return _resultobj; |
9071 | } | |
9072 | ||
b1462dfa RD |
9073 | #define wxMenu_IsAttached(_swigobj) (_swigobj->IsAttached()) |
9074 | static PyObject *_wrap_wxMenu_IsAttached(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9075 | PyObject * _resultobj; |
b1462dfa RD |
9076 | bool _result; |
9077 | wxMenu * _arg0; | |
1d99702e | 9078 | PyObject * _argo0 = 0; |
b1462dfa | 9079 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9080 | |
9081 | self = self; | |
b1462dfa | 9082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_IsAttached",_kwnames,&_argo0)) |
8ab979d7 | 9083 | return NULL; |
1d99702e RD |
9084 | if (_argo0) { |
9085 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9086 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsAttached. Expected _wxMenu_p."); | |
8ab979d7 RD |
9088 | return NULL; |
9089 | } | |
9090 | } | |
8ab979d7 | 9091 | { |
474c48f9 | 9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9093 | _result = (bool )wxMenu_IsAttached(_arg0); |
cf694132 | 9094 | |
474c48f9 | 9095 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9096 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9097 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9098 | return _resultobj; |
9099 | } | |
9100 | ||
b1462dfa RD |
9101 | #define wxMenu_SetParent(_swigobj,_swigarg0) (_swigobj->SetParent(_swigarg0)) |
9102 | static PyObject *_wrap_wxMenu_SetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9103 | PyObject * _resultobj; |
b1462dfa RD |
9104 | wxMenu * _arg0; |
9105 | wxMenu * _arg1; | |
1d99702e | 9106 | PyObject * _argo0 = 0; |
b1462dfa RD |
9107 | PyObject * _argo1 = 0; |
9108 | char *_kwnames[] = { "self","parent", NULL }; | |
8ab979d7 RD |
9109 | |
9110 | self = self; | |
b1462dfa | 9111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetParent",_kwnames,&_argo0,&_argo1)) |
8ab979d7 | 9112 | return NULL; |
1d99702e RD |
9113 | if (_argo0) { |
9114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9117 | return NULL; |
9118 | } | |
9119 | } | |
b1462dfa RD |
9120 | if (_argo1) { |
9121 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9122 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9123 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_SetParent. Expected _wxMenu_p."); | |
8ab979d7 | 9124 | return NULL; |
b1462dfa | 9125 | } |
8ab979d7 | 9126 | } |
cf694132 | 9127 | { |
474c48f9 | 9128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9129 | wxMenu_SetParent(_arg0,_arg1); |
cf694132 | 9130 | |
474c48f9 | 9131 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9132 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9133 | } Py_INCREF(Py_None); |
8ab979d7 | 9134 | _resultobj = Py_None; |
8ab979d7 RD |
9135 | return _resultobj; |
9136 | } | |
9137 | ||
b1462dfa RD |
9138 | #define wxMenu_GetParent(_swigobj) (_swigobj->GetParent()) |
9139 | static PyObject *_wrap_wxMenu_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9140 | PyObject * _resultobj; |
b1462dfa RD |
9141 | wxMenu * _result; |
9142 | wxMenu * _arg0; | |
1d99702e | 9143 | PyObject * _argo0 = 0; |
b1462dfa | 9144 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9145 | |
9146 | self = self; | |
b1462dfa | 9147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetParent",_kwnames,&_argo0)) |
8ab979d7 | 9148 | return NULL; |
1d99702e RD |
9149 | if (_argo0) { |
9150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetParent. Expected _wxMenu_p."); | |
8ab979d7 RD |
9153 | return NULL; |
9154 | } | |
9155 | } | |
8ab979d7 | 9156 | { |
474c48f9 | 9157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9158 | _result = (wxMenu *)wxMenu_GetParent(_arg0); |
cf694132 | 9159 | |
474c48f9 | 9160 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9161 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9162 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9163 | return _resultobj; |
8ab979d7 | 9164 | } |
b1462dfa RD |
9165 | |
9166 | static void *SwigwxMenuBarTowxWindow(void *ptr) { | |
9167 | wxMenuBar *src; | |
9168 | wxWindow *dest; | |
9169 | src = (wxMenuBar *) ptr; | |
9170 | dest = (wxWindow *) src; | |
9171 | return (void *) dest; | |
9172 | } | |
9173 | ||
9174 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { | |
9175 | wxMenuBar *src; | |
9176 | wxEvtHandler *dest; | |
9177 | src = (wxMenuBar *) ptr; | |
9178 | dest = (wxEvtHandler *) src; | |
9179 | return (void *) dest; | |
8ab979d7 | 9180 | } |
b1462dfa | 9181 | |
9df61a29 RD |
9182 | static void *SwigwxMenuBarTowxObject(void *ptr) { |
9183 | wxMenuBar *src; | |
9184 | wxObject *dest; | |
9185 | src = (wxMenuBar *) ptr; | |
9186 | dest = (wxObject *) src; | |
9187 | return (void *) dest; | |
9188 | } | |
9189 | ||
c368d904 | 9190 | #define new_wxMenuBar(_swigarg0) (new wxMenuBar(_swigarg0)) |
b1462dfa RD |
9191 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9192 | PyObject * _resultobj; | |
9193 | wxMenuBar * _result; | |
c368d904 RD |
9194 | long _arg0 = (long ) 0; |
9195 | char *_kwnames[] = { "style", NULL }; | |
b1462dfa RD |
9196 | char _ptemp[128]; |
9197 | ||
9198 | self = self; | |
c368d904 | 9199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:new_wxMenuBar",_kwnames,&_arg0)) |
b1462dfa RD |
9200 | return NULL; |
9201 | { | |
474c48f9 | 9202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9203 | _result = (wxMenuBar *)new_wxMenuBar(_arg0); |
b1462dfa | 9204 | |
474c48f9 | 9205 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9206 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9207 | } if (_result) { |
9208 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
9209 | _resultobj = Py_BuildValue("s",_ptemp); | |
9210 | } else { | |
9211 | Py_INCREF(Py_None); | |
9212 | _resultobj = Py_None; | |
9213 | } | |
8ab979d7 RD |
9214 | return _resultobj; |
9215 | } | |
9216 | ||
b1462dfa RD |
9217 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) |
9218 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9219 | PyObject * _resultobj; |
b1462dfa | 9220 | bool _result; |
8ab979d7 | 9221 | wxMenuBar * _arg0; |
b1462dfa | 9222 | wxMenu * _arg1; |
8ab979d7 | 9223 | wxString * _arg2; |
1d99702e | 9224 | PyObject * _argo0 = 0; |
b1462dfa | 9225 | PyObject * _argo1 = 0; |
8ab979d7 | 9226 | PyObject * _obj2 = 0; |
b1462dfa | 9227 | char *_kwnames[] = { "self","menu","title", NULL }; |
8ab979d7 RD |
9228 | |
9229 | self = self; | |
b1462dfa | 9230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
8ab979d7 | 9231 | return NULL; |
1d99702e RD |
9232 | if (_argo0) { |
9233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
9236 | return NULL; | |
9237 | } | |
9238 | } | |
9239 | if (_argo1) { | |
9240 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9241 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9242 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); | |
8ab979d7 RD |
9243 | return NULL; |
9244 | } | |
9245 | } | |
9246 | { | |
c8bc7bb8 RD |
9247 | _arg2 = wxString_in_helper(_obj2); |
9248 | if (_arg2 == NULL) | |
2cd2fac8 | 9249 | return NULL; |
8ab979d7 | 9250 | } |
cf694132 | 9251 | { |
474c48f9 | 9252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9253 | _result = (bool )wxMenuBar_Append(_arg0,_arg1,*_arg2); |
cf694132 | 9254 | |
474c48f9 | 9255 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9256 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9257 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9258 | { |
9259 | if (_obj2) | |
9260 | delete _arg2; | |
9261 | } | |
9262 | return _resultobj; | |
9263 | } | |
9264 | ||
b1462dfa RD |
9265 | #define wxMenuBar_Insert(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Insert(_swigarg0,_swigarg1,_swigarg2)) |
9266 | static PyObject *_wrap_wxMenuBar_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9267 | PyObject * _resultobj; |
b1462dfa | 9268 | bool _result; |
8ab979d7 | 9269 | wxMenuBar * _arg0; |
b1462dfa RD |
9270 | size_t _arg1; |
9271 | wxMenu * _arg2; | |
9272 | wxString * _arg3; | |
1d99702e | 9273 | PyObject * _argo0 = 0; |
b1462dfa RD |
9274 | PyObject * _argo2 = 0; |
9275 | PyObject * _obj3 = 0; | |
9276 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
8ab979d7 RD |
9277 | |
9278 | self = self; | |
b1462dfa | 9279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Insert",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) |
8ab979d7 | 9280 | return NULL; |
1d99702e RD |
9281 | if (_argo0) { |
9282 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9283 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa RD |
9284 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Insert. Expected _wxMenuBar_p."); |
9285 | return NULL; | |
9286 | } | |
9287 | } | |
9288 | if (_argo2) { | |
9289 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9290 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9291 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Insert. Expected _wxMenu_p."); | |
8ab979d7 RD |
9292 | return NULL; |
9293 | } | |
9294 | } | |
b1462dfa | 9295 | { |
c8bc7bb8 RD |
9296 | _arg3 = wxString_in_helper(_obj3); |
9297 | if (_arg3 == NULL) | |
2cd2fac8 | 9298 | return NULL; |
b1462dfa | 9299 | } |
cf694132 | 9300 | { |
474c48f9 | 9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9302 | _result = (bool )wxMenuBar_Insert(_arg0,_arg1,_arg2,*_arg3); |
cf694132 | 9303 | |
474c48f9 | 9304 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9305 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9306 | } _resultobj = Py_BuildValue("i",_result); |
b1462dfa RD |
9307 | { |
9308 | if (_obj3) | |
9309 | delete _arg3; | |
9310 | } | |
8ab979d7 RD |
9311 | return _resultobj; |
9312 | } | |
9313 | ||
b1462dfa RD |
9314 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
9315 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9316 | PyObject * _resultobj; |
b1462dfa | 9317 | size_t _result; |
8ab979d7 | 9318 | wxMenuBar * _arg0; |
1d99702e | 9319 | PyObject * _argo0 = 0; |
b1462dfa | 9320 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
9321 | |
9322 | self = self; | |
b1462dfa | 9323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
8ab979d7 | 9324 | return NULL; |
1d99702e RD |
9325 | if (_argo0) { |
9326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
8ab979d7 RD |
9329 | return NULL; |
9330 | } | |
9331 | } | |
cf694132 | 9332 | { |
474c48f9 | 9333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9334 | _result = (size_t )wxMenuBar_GetMenuCount(_arg0); |
cf694132 | 9335 | |
474c48f9 | 9336 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9337 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9338 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9339 | return _resultobj; |
9340 | } | |
9341 | ||
b1462dfa RD |
9342 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) |
9343 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
06c0fba4 | 9344 | PyObject * _resultobj; |
b1462dfa | 9345 | wxMenu * _result; |
06c0fba4 | 9346 | wxMenuBar * _arg0; |
b1462dfa | 9347 | size_t _arg1; |
06c0fba4 | 9348 | PyObject * _argo0 = 0; |
b1462dfa | 9349 | char *_kwnames[] = { "self","pos", NULL }; |
06c0fba4 RD |
9350 | |
9351 | self = self; | |
b1462dfa | 9352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
06c0fba4 RD |
9353 | return NULL; |
9354 | if (_argo0) { | |
9355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
b1462dfa | 9357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
06c0fba4 RD |
9358 | return NULL; |
9359 | } | |
9360 | } | |
9361 | { | |
474c48f9 | 9362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9363 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); |
06c0fba4 | 9364 | |
474c48f9 | 9365 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9366 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9367 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
9368 | return _resultobj; |
9369 | } | |
9370 | ||
2abc0a0f RD |
9371 | #define wxMenuBar_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2)) |
9372 | static PyObject *_wrap_wxMenuBar_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9373 | PyObject * _resultobj; | |
9374 | wxMenu * _result; | |
9375 | wxMenuBar * _arg0; | |
9376 | size_t _arg1; | |
9377 | wxMenu * _arg2; | |
9378 | wxString * _arg3; | |
9379 | PyObject * _argo0 = 0; | |
9380 | PyObject * _argo2 = 0; | |
9381 | PyObject * _obj3 = 0; | |
9382 | char *_kwnames[] = { "self","pos","menu","title", NULL }; | |
2abc0a0f RD |
9383 | |
9384 | self = self; | |
9385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO:wxMenuBar_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_obj3)) | |
9386 | return NULL; | |
9387 | if (_argo0) { | |
9388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Replace. Expected _wxMenuBar_p."); | |
9391 | return NULL; | |
9392 | } | |
9393 | } | |
9394 | if (_argo2) { | |
9395 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
9396 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxMenu_p")) { | |
9397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxMenuBar_Replace. Expected _wxMenu_p."); | |
9398 | return NULL; | |
9399 | } | |
9400 | } | |
9401 | { | |
c8bc7bb8 RD |
9402 | _arg3 = wxString_in_helper(_obj3); |
9403 | if (_arg3 == NULL) | |
2cd2fac8 | 9404 | return NULL; |
2abc0a0f RD |
9405 | } |
9406 | { | |
474c48f9 | 9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9408 | _result = (wxMenu *)wxMenuBar_Replace(_arg0,_arg1,_arg2,*_arg3); |
2abc0a0f | 9409 | |
474c48f9 | 9410 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9411 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9412 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9413 | { |
9414 | if (_obj3) | |
9415 | delete _arg3; | |
9416 | } | |
9417 | return _resultobj; | |
9418 | } | |
9419 | ||
9420 | #define wxMenuBar_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0)) | |
9421 | static PyObject *_wrap_wxMenuBar_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9422 | PyObject * _resultobj; | |
9423 | wxMenu * _result; | |
9424 | wxMenuBar * _arg0; | |
9425 | size_t _arg1; | |
9426 | PyObject * _argo0 = 0; | |
9427 | char *_kwnames[] = { "self","pos", NULL }; | |
2abc0a0f RD |
9428 | |
9429 | self = self; | |
9430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Remove",_kwnames,&_argo0,&_arg1)) | |
9431 | return NULL; | |
9432 | if (_argo0) { | |
9433 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9434 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9435 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Remove. Expected _wxMenuBar_p."); | |
9436 | return NULL; | |
9437 | } | |
9438 | } | |
9439 | { | |
474c48f9 | 9440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9441 | _result = (wxMenu *)wxMenuBar_Remove(_arg0,_arg1); |
2abc0a0f | 9442 | |
474c48f9 | 9443 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9444 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9445 | }{ _resultobj = wxPyMake_wxObject(_result); } |
2abc0a0f RD |
9446 | return _resultobj; |
9447 | } | |
9448 | ||
b1462dfa RD |
9449 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) |
9450 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 9451 | PyObject * _resultobj; |
b1462dfa RD |
9452 | wxMenuBar * _arg0; |
9453 | size_t _arg1; | |
9454 | bool _arg2; | |
9455 | PyObject * _argo0 = 0; | |
9456 | int tempbool2; | |
9457 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
9458 | ||
9459 | self = self; | |
9460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9461 | return NULL; | |
9462 | if (_argo0) { | |
9463 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9464 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9465 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
9466 | return NULL; | |
9467 | } | |
9468 | } | |
9469 | _arg2 = (bool ) tempbool2; | |
9470 | { | |
474c48f9 | 9471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9472 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); |
b1462dfa | 9473 | |
474c48f9 | 9474 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9475 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9476 | } Py_INCREF(Py_None); |
9477 | _resultobj = Py_None; | |
9478 | return _resultobj; | |
9479 | } | |
9480 | ||
9481 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
9482 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9483 | PyObject * _resultobj; | |
9484 | wxMenuBar * _arg0; | |
9485 | size_t _arg1; | |
9486 | wxString * _arg2; | |
1d99702e | 9487 | PyObject * _argo0 = 0; |
cf694132 | 9488 | PyObject * _obj2 = 0; |
b1462dfa | 9489 | char *_kwnames[] = { "self","pos","label", NULL }; |
cf694132 RD |
9490 | |
9491 | self = self; | |
b1462dfa | 9492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) |
cf694132 | 9493 | return NULL; |
1d99702e RD |
9494 | if (_argo0) { |
9495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
cf694132 RD |
9498 | return NULL; |
9499 | } | |
9500 | } | |
cf694132 | 9501 | { |
c8bc7bb8 RD |
9502 | _arg2 = wxString_in_helper(_obj2); |
9503 | if (_arg2 == NULL) | |
2cd2fac8 | 9504 | return NULL; |
cf694132 | 9505 | } |
cf694132 | 9506 | { |
474c48f9 | 9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9508 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); |
b1462dfa | 9509 | |
474c48f9 | 9510 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9511 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9512 | } Py_INCREF(Py_None); |
9513 | _resultobj = Py_None; | |
9514 | { | |
9515 | if (_obj2) | |
9516 | delete _arg2; | |
9517 | } | |
9518 | return _resultobj; | |
9519 | } | |
9520 | ||
9521 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
9522 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9523 | PyObject * _resultobj; | |
9524 | wxString * _result; | |
9525 | wxMenuBar * _arg0; | |
9526 | size_t _arg1; | |
9527 | PyObject * _argo0 = 0; | |
9528 | char *_kwnames[] = { "self","pos", NULL }; | |
9529 | ||
9530 | self = self; | |
9531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
9532 | return NULL; | |
9533 | if (_argo0) { | |
9534 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9535 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9536 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
9537 | return NULL; | |
9538 | } | |
9539 | } | |
9540 | { | |
474c48f9 | 9541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9542 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); |
b1462dfa | 9543 | |
474c48f9 | 9544 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9545 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9546 | }{ |
c8bc7bb8 RD |
9547 | #if wxUSE_UNICODE |
9548 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9549 | #else | |
eec92d76 | 9550 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9551 | #endif |
b1462dfa RD |
9552 | } |
9553 | { | |
9554 | delete _result; | |
9555 | } | |
9556 | return _resultobj; | |
9557 | } | |
9558 | ||
10be44ac RD |
9559 | #define wxMenuBar_FindMenu(_swigobj,_swigarg0) (_swigobj->FindMenu(_swigarg0)) |
9560 | static PyObject *_wrap_wxMenuBar_FindMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9561 | PyObject * _resultobj; | |
9562 | int _result; | |
9563 | wxMenuBar * _arg0; | |
9564 | wxString * _arg1; | |
9565 | PyObject * _argo0 = 0; | |
9566 | PyObject * _obj1 = 0; | |
9567 | char *_kwnames[] = { "self","title", NULL }; | |
9568 | ||
9569 | self = self; | |
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuBar_FindMenu",_kwnames,&_argo0,&_obj1)) | |
9571 | return NULL; | |
9572 | if (_argo0) { | |
9573 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9574 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9575 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenu. Expected _wxMenuBar_p."); | |
9576 | return NULL; | |
9577 | } | |
9578 | } | |
9579 | { | |
c8bc7bb8 RD |
9580 | _arg1 = wxString_in_helper(_obj1); |
9581 | if (_arg1 == NULL) | |
10be44ac | 9582 | return NULL; |
10be44ac RD |
9583 | } |
9584 | { | |
474c48f9 | 9585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9586 | _result = (int )wxMenuBar_FindMenu(_arg0,*_arg1); |
10be44ac | 9587 | |
474c48f9 | 9588 | wxPyEndAllowThreads(__tstate); |
10be44ac RD |
9589 | if (PyErr_Occurred()) return NULL; |
9590 | } _resultobj = Py_BuildValue("i",_result); | |
9591 | { | |
9592 | if (_obj1) | |
9593 | delete _arg1; | |
9594 | } | |
9595 | return _resultobj; | |
9596 | } | |
9597 | ||
b1462dfa RD |
9598 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) |
9599 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9600 | PyObject * _resultobj; | |
9601 | int _result; | |
9602 | wxMenuBar * _arg0; | |
9603 | wxString * _arg1; | |
9604 | wxString * _arg2; | |
9605 | PyObject * _argo0 = 0; | |
9606 | PyObject * _obj1 = 0; | |
9607 | PyObject * _obj2 = 0; | |
9608 | char *_kwnames[] = { "self","menuString","itemString", NULL }; | |
9609 | ||
9610 | self = self; | |
9611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9612 | return NULL; | |
9613 | if (_argo0) { | |
9614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); | |
9617 | return NULL; | |
9618 | } | |
9619 | } | |
9620 | { | |
c8bc7bb8 RD |
9621 | _arg1 = wxString_in_helper(_obj1); |
9622 | if (_arg1 == NULL) | |
2cd2fac8 | 9623 | return NULL; |
cf694132 | 9624 | } |
b1462dfa | 9625 | { |
c8bc7bb8 RD |
9626 | _arg2 = wxString_in_helper(_obj2); |
9627 | if (_arg2 == NULL) | |
b1462dfa | 9628 | return NULL; |
b1462dfa RD |
9629 | } |
9630 | { | |
474c48f9 | 9631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9632 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); |
b1462dfa | 9633 | |
474c48f9 | 9634 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9635 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9636 | } _resultobj = Py_BuildValue("i",_result); |
9637 | { | |
9638 | if (_obj1) | |
9639 | delete _arg1; | |
9640 | } | |
9641 | { | |
9642 | if (_obj2) | |
9643 | delete _arg2; | |
9644 | } | |
9645 | return _resultobj; | |
9646 | } | |
9647 | ||
9648 | #define wxMenuBar_FindItemById(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
9649 | static PyObject *_wrap_wxMenuBar_FindItemById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9650 | PyObject * _resultobj; | |
9651 | wxMenuItem * _result; | |
9652 | wxMenuBar * _arg0; | |
9653 | int _arg1; | |
9654 | PyObject * _argo0 = 0; | |
9655 | char *_kwnames[] = { "self","id", NULL }; | |
b1462dfa RD |
9656 | |
9657 | self = self; | |
9658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemById",_kwnames,&_argo0,&_arg1)) | |
9659 | return NULL; | |
9660 | if (_argo0) { | |
9661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemById. Expected _wxMenuBar_p."); | |
cf694132 RD |
9664 | return NULL; |
9665 | } | |
9666 | } | |
9667 | { | |
474c48f9 | 9668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9669 | _result = (wxMenuItem *)wxMenuBar_FindItemById(_arg0,_arg1); |
cf694132 | 9670 | |
474c48f9 | 9671 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9672 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 9673 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa | 9674 | return _resultobj; |
cf694132 | 9675 | } |
b1462dfa RD |
9676 | |
9677 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
9678 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9679 | PyObject * _resultobj; | |
9680 | wxMenuBar * _arg0; | |
9681 | int _arg1; | |
9682 | bool _arg2; | |
9683 | PyObject * _argo0 = 0; | |
9684 | int tempbool2; | |
9685 | char *_kwnames[] = { "self","id","enable", NULL }; | |
9686 | ||
9687 | self = self; | |
9688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9689 | return NULL; | |
9690 | if (_argo0) { | |
9691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); | |
9694 | return NULL; | |
9695 | } | |
9696 | } | |
9697 | _arg2 = (bool ) tempbool2; | |
cf694132 | 9698 | { |
474c48f9 | 9699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9700 | wxMenuBar_Enable(_arg0,_arg1,_arg2); |
b1462dfa | 9701 | |
474c48f9 | 9702 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9703 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9704 | } Py_INCREF(Py_None); |
9705 | _resultobj = Py_None; | |
9706 | return _resultobj; | |
cf694132 | 9707 | } |
b1462dfa RD |
9708 | |
9709 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
9710 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9711 | PyObject * _resultobj; | |
9712 | wxMenuBar * _arg0; | |
9713 | int _arg1; | |
9714 | bool _arg2; | |
9715 | PyObject * _argo0 = 0; | |
9716 | int tempbool2; | |
9717 | char *_kwnames[] = { "self","id","check", NULL }; | |
9718 | ||
9719 | self = self; | |
9720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
9721 | return NULL; | |
9722 | if (_argo0) { | |
9723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); | |
9726 | return NULL; | |
9727 | } | |
9728 | } | |
9729 | _arg2 = (bool ) tempbool2; | |
9730 | { | |
474c48f9 | 9731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9732 | wxMenuBar_Check(_arg0,_arg1,_arg2); |
b1462dfa | 9733 | |
474c48f9 | 9734 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9735 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9736 | } Py_INCREF(Py_None); |
9737 | _resultobj = Py_None; | |
cf694132 RD |
9738 | return _resultobj; |
9739 | } | |
9740 | ||
b1462dfa RD |
9741 | #define wxMenuBar_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) |
9742 | static PyObject *_wrap_wxMenuBar_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9743 | PyObject * _resultobj; |
9744 | bool _result; | |
b1462dfa RD |
9745 | wxMenuBar * _arg0; |
9746 | int _arg1; | |
1d99702e | 9747 | PyObject * _argo0 = 0; |
b1462dfa | 9748 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9749 | |
9750 | self = self; | |
b1462dfa | 9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsChecked",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9752 | return NULL; |
1d99702e RD |
9753 | if (_argo0) { |
9754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsChecked. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9757 | return NULL; |
9758 | } | |
9759 | } | |
cf694132 | 9760 | { |
474c48f9 | 9761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9762 | _result = (bool )wxMenuBar_IsChecked(_arg0,_arg1); |
cf694132 | 9763 | |
474c48f9 | 9764 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9765 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9766 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9767 | return _resultobj; |
9768 | } | |
9769 | ||
b1462dfa RD |
9770 | #define wxMenuBar_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) |
9771 | static PyObject *_wrap_wxMenuBar_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
9772 | PyObject * _resultobj; |
9773 | bool _result; | |
b1462dfa RD |
9774 | wxMenuBar * _arg0; |
9775 | int _arg1; | |
1d99702e | 9776 | PyObject * _argo0 = 0; |
b1462dfa | 9777 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9778 | |
9779 | self = self; | |
b1462dfa | 9780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_IsEnabled",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9781 | return NULL; |
1d99702e RD |
9782 | if (_argo0) { |
9783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_IsEnabled. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9786 | return NULL; |
9787 | } | |
9788 | } | |
cf694132 | 9789 | { |
474c48f9 | 9790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9791 | _result = (bool )wxMenuBar_IsEnabled(_arg0,_arg1); |
cf694132 | 9792 | |
474c48f9 | 9793 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9794 | if (PyErr_Occurred()) return NULL; |
cf694132 | 9795 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
9796 | return _resultobj; |
9797 | } | |
9798 | ||
b1462dfa RD |
9799 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
9800 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9801 | PyObject * _resultobj; |
b1462dfa RD |
9802 | wxMenuBar * _arg0; |
9803 | int _arg1; | |
9804 | wxString * _arg2; | |
1d99702e | 9805 | PyObject * _argo0 = 0; |
b1462dfa RD |
9806 | PyObject * _obj2 = 0; |
9807 | char *_kwnames[] = { "self","id","label", NULL }; | |
8ab979d7 RD |
9808 | |
9809 | self = self; | |
b1462dfa | 9810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
8ab979d7 | 9811 | return NULL; |
1d99702e RD |
9812 | if (_argo0) { |
9813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9816 | return NULL; |
9817 | } | |
9818 | } | |
b1462dfa | 9819 | { |
c8bc7bb8 RD |
9820 | _arg2 = wxString_in_helper(_obj2); |
9821 | if (_arg2 == NULL) | |
b1462dfa | 9822 | return NULL; |
b1462dfa | 9823 | } |
cf694132 | 9824 | { |
474c48f9 | 9825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9826 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); |
cf694132 | 9827 | |
474c48f9 | 9828 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9829 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9830 | } Py_INCREF(Py_None); |
9831 | _resultobj = Py_None; | |
9832 | { | |
9833 | if (_obj2) | |
9834 | delete _arg2; | |
9835 | } | |
8ab979d7 RD |
9836 | return _resultobj; |
9837 | } | |
9838 | ||
b1462dfa RD |
9839 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) |
9840 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9841 | PyObject * _resultobj; |
b1462dfa RD |
9842 | wxString * _result; |
9843 | wxMenuBar * _arg0; | |
9844 | int _arg1; | |
1d99702e | 9845 | PyObject * _argo0 = 0; |
b1462dfa | 9846 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
9847 | |
9848 | self = self; | |
b1462dfa | 9849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 9850 | return NULL; |
1d99702e RD |
9851 | if (_argo0) { |
9852 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9853 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { |
9854 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
9855 | return NULL; | |
9856 | } | |
9857 | } | |
9858 | { | |
474c48f9 | 9859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9860 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); |
b1462dfa | 9861 | |
474c48f9 | 9862 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9863 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9864 | }{ |
c8bc7bb8 RD |
9865 | #if wxUSE_UNICODE |
9866 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9867 | #else | |
eec92d76 | 9868 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9869 | #endif |
b1462dfa RD |
9870 | } |
9871 | { | |
9872 | delete _result; | |
9873 | } | |
9874 | return _resultobj; | |
9875 | } | |
9876 | ||
9877 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
9878 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9879 | PyObject * _resultobj; | |
9880 | wxMenuBar * _arg0; | |
9881 | int _arg1; | |
9882 | wxString * _arg2; | |
9883 | PyObject * _argo0 = 0; | |
9884 | PyObject * _obj2 = 0; | |
9885 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
9886 | ||
9887 | self = self; | |
9888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9889 | return NULL; | |
9890 | if (_argo0) { | |
9891 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9892 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9893 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
9894 | return NULL; | |
9895 | } | |
9896 | } | |
9897 | { | |
c8bc7bb8 RD |
9898 | _arg2 = wxString_in_helper(_obj2); |
9899 | if (_arg2 == NULL) | |
b1462dfa | 9900 | return NULL; |
b1462dfa RD |
9901 | } |
9902 | { | |
474c48f9 | 9903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9904 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); |
b1462dfa | 9905 | |
474c48f9 | 9906 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9907 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
9908 | } Py_INCREF(Py_None); |
9909 | _resultobj = Py_None; | |
9910 | { | |
9911 | if (_obj2) | |
9912 | delete _arg2; | |
9913 | } | |
9914 | return _resultobj; | |
9915 | } | |
9916 | ||
9917 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
9918 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9919 | PyObject * _resultobj; | |
9920 | wxString * _result; | |
9921 | wxMenuBar * _arg0; | |
9922 | int _arg1; | |
9923 | PyObject * _argo0 = 0; | |
9924 | char *_kwnames[] = { "self","id", NULL }; | |
9925 | ||
9926 | self = self; | |
9927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
9928 | return NULL; | |
9929 | if (_argo0) { | |
9930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
9932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
8ab979d7 RD |
9933 | return NULL; |
9934 | } | |
9935 | } | |
cf694132 | 9936 | { |
474c48f9 | 9937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9938 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); |
cf694132 | 9939 | |
474c48f9 | 9940 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 9941 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 9942 | }{ |
c8bc7bb8 RD |
9943 | #if wxUSE_UNICODE |
9944 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9945 | #else | |
eec92d76 | 9946 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9947 | #endif |
b1462dfa RD |
9948 | } |
9949 | { | |
9950 | delete _result; | |
9951 | } | |
8ab979d7 RD |
9952 | return _resultobj; |
9953 | } | |
9954 | ||
9df61a29 RD |
9955 | static void *SwigwxMenuItemTowxObject(void *ptr) { |
9956 | wxMenuItem *src; | |
9957 | wxObject *dest; | |
9958 | src = (wxMenuItem *) ptr; | |
9959 | dest = (wxObject *) src; | |
9960 | return (void *) dest; | |
9961 | } | |
9962 | ||
b1462dfa RD |
9963 | #define new_wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxMenuItem(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
9964 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 9965 | PyObject * _resultobj; |
b1462dfa RD |
9966 | wxMenuItem * _result; |
9967 | wxMenu * _arg0 = (wxMenu *) NULL; | |
4c9993c3 | 9968 | int _arg1 = (int ) wxID_SEPARATOR; |
9a74fcaf RD |
9969 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
9970 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
546bfbea | 9971 | wxItemKind _arg4 = (wxItemKind ) wxITEM_NORMAL; |
b1462dfa | 9972 | wxMenu * _arg5 = (wxMenu *) NULL; |
1d99702e | 9973 | PyObject * _argo0 = 0; |
b1462dfa RD |
9974 | PyObject * _obj2 = 0; |
9975 | PyObject * _obj3 = 0; | |
b1462dfa | 9976 | PyObject * _argo5 = 0; |
a884bee5 | 9977 | char *_kwnames[] = { "parentMenu","id","text","help","kind","subMenu", NULL }; |
b1462dfa | 9978 | char _ptemp[128]; |
8ab979d7 RD |
9979 | |
9980 | self = self; | |
a884bee5 | 9981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiOOiO:new_wxMenuItem",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_argo5)) |
8ab979d7 | 9982 | return NULL; |
1d99702e RD |
9983 | if (_argo0) { |
9984 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
b1462dfa RD |
9985 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { |
9986 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMenuItem. Expected _wxMenu_p."); | |
9987 | return NULL; | |
9988 | } | |
9989 | } | |
9990 | if (_obj2) | |
9991 | { | |
c8bc7bb8 RD |
9992 | _arg2 = wxString_in_helper(_obj2); |
9993 | if (_arg2 == NULL) | |
b1462dfa | 9994 | return NULL; |
b1462dfa RD |
9995 | } |
9996 | if (_obj3) | |
9997 | { | |
c8bc7bb8 RD |
9998 | _arg3 = wxString_in_helper(_obj3); |
9999 | if (_arg3 == NULL) | |
b1462dfa | 10000 | return NULL; |
b1462dfa | 10001 | } |
b1462dfa RD |
10002 | if (_argo5) { |
10003 | if (_argo5 == Py_None) { _arg5 = NULL; } | |
10004 | else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxMenu_p")) { | |
10005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of new_wxMenuItem. Expected _wxMenu_p."); | |
8ab979d7 RD |
10006 | return NULL; |
10007 | } | |
10008 | } | |
cf694132 | 10009 | { |
474c48f9 | 10010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10011 | _result = (wxMenuItem *)new_wxMenuItem(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); |
cf694132 | 10012 | |
474c48f9 | 10013 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10014 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10015 | } if (_result) { |
10016 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
10017 | _resultobj = Py_BuildValue("s",_ptemp); | |
10018 | } else { | |
10019 | Py_INCREF(Py_None); | |
10020 | _resultobj = Py_None; | |
10021 | } | |
10022 | { | |
10023 | if (_obj2) | |
10024 | delete _arg2; | |
10025 | } | |
10026 | { | |
10027 | if (_obj3) | |
10028 | delete _arg3; | |
10029 | } | |
8ab979d7 RD |
10030 | return _resultobj; |
10031 | } | |
10032 | ||
b1462dfa RD |
10033 | #define wxMenuItem_GetMenu(_swigobj) (_swigobj->GetMenu()) |
10034 | static PyObject *_wrap_wxMenuItem_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10035 | PyObject * _resultobj; |
b1462dfa | 10036 | wxMenu * _result; |
8ab979d7 | 10037 | wxMenuItem * _arg0; |
1d99702e | 10038 | PyObject * _argo0 = 0; |
efc5f224 | 10039 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10040 | |
10041 | self = self; | |
b1462dfa | 10042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetMenu",_kwnames,&_argo0)) |
8ab979d7 | 10043 | return NULL; |
1d99702e RD |
10044 | if (_argo0) { |
10045 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10046 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10047 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetMenu. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10048 | return NULL; |
10049 | } | |
10050 | } | |
cf694132 | 10051 | { |
474c48f9 | 10052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10053 | _result = (wxMenu *)wxMenuItem_GetMenu(_arg0); |
cf694132 | 10054 | |
474c48f9 | 10055 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10056 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10057 | }{ _resultobj = wxPyMake_wxObject(_result); } |
8ab979d7 RD |
10058 | return _resultobj; |
10059 | } | |
10060 | ||
2abc0a0f RD |
10061 | #define wxMenuItem_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) |
10062 | static PyObject *_wrap_wxMenuItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10063 | PyObject * _resultobj; |
10064 | wxMenuItem * _arg0; | |
2abc0a0f | 10065 | int _arg1; |
1d99702e | 10066 | PyObject * _argo0 = 0; |
2abc0a0f | 10067 | char *_kwnames[] = { "self","id", NULL }; |
8ab979d7 RD |
10068 | |
10069 | self = self; | |
2abc0a0f | 10070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetId",_kwnames,&_argo0,&_arg1)) |
8ab979d7 | 10071 | return NULL; |
1d99702e RD |
10072 | if (_argo0) { |
10073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
2abc0a0f | 10075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10076 | return NULL; |
10077 | } | |
10078 | } | |
cf694132 | 10079 | { |
474c48f9 | 10080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10081 | wxMenuItem_SetId(_arg0,_arg1); |
cf694132 | 10082 | |
474c48f9 | 10083 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10084 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10085 | } Py_INCREF(Py_None); |
8ab979d7 | 10086 | _resultobj = Py_None; |
8ab979d7 RD |
10087 | return _resultobj; |
10088 | } | |
10089 | ||
b1462dfa RD |
10090 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) |
10091 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10092 | PyObject * _resultobj; |
b1462dfa | 10093 | int _result; |
8ab979d7 | 10094 | wxMenuItem * _arg0; |
1d99702e | 10095 | PyObject * _argo0 = 0; |
efc5f224 | 10096 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10097 | |
10098 | self = self; | |
b1462dfa | 10099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
8ab979d7 | 10100 | return NULL; |
1d99702e RD |
10101 | if (_argo0) { |
10102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10105 | return NULL; |
10106 | } | |
10107 | } | |
8ab979d7 | 10108 | { |
474c48f9 | 10109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10110 | _result = (int )wxMenuItem_GetId(_arg0); |
cf694132 | 10111 | |
474c48f9 | 10112 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10113 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10114 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10115 | return _resultobj; |
10116 | } | |
10117 | ||
b1462dfa RD |
10118 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) |
10119 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10120 | PyObject * _resultobj; |
b1462dfa | 10121 | bool _result; |
8ab979d7 | 10122 | wxMenuItem * _arg0; |
1d99702e | 10123 | PyObject * _argo0 = 0; |
efc5f224 | 10124 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10125 | |
10126 | self = self; | |
b1462dfa | 10127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
8ab979d7 | 10128 | return NULL; |
1d99702e RD |
10129 | if (_argo0) { |
10130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10133 | return NULL; |
10134 | } | |
10135 | } | |
8ab979d7 | 10136 | { |
474c48f9 | 10137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10138 | _result = (bool )wxMenuItem_IsSeparator(_arg0); |
cf694132 | 10139 | |
474c48f9 | 10140 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10141 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10142 | } _resultobj = Py_BuildValue("i",_result); |
8ab979d7 RD |
10143 | return _resultobj; |
10144 | } | |
10145 | ||
b1462dfa RD |
10146 | #define wxMenuItem_SetText(_swigobj,_swigarg0) (_swigobj->SetText(_swigarg0)) |
10147 | static PyObject *_wrap_wxMenuItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 RD |
10148 | PyObject * _resultobj; |
10149 | wxMenuItem * _arg0; | |
10150 | wxString * _arg1; | |
1d99702e | 10151 | PyObject * _argo0 = 0; |
8ab979d7 | 10152 | PyObject * _obj1 = 0; |
b1462dfa | 10153 | char *_kwnames[] = { "self","str", NULL }; |
8ab979d7 RD |
10154 | |
10155 | self = self; | |
b1462dfa | 10156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetText",_kwnames,&_argo0,&_obj1)) |
8ab979d7 | 10157 | return NULL; |
1d99702e RD |
10158 | if (_argo0) { |
10159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetText. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10162 | return NULL; |
10163 | } | |
10164 | } | |
10165 | { | |
c8bc7bb8 RD |
10166 | _arg1 = wxString_in_helper(_obj1); |
10167 | if (_arg1 == NULL) | |
2cd2fac8 | 10168 | return NULL; |
8ab979d7 | 10169 | } |
cf694132 | 10170 | { |
474c48f9 | 10171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10172 | wxMenuItem_SetText(_arg0,*_arg1); |
cf694132 | 10173 | |
474c48f9 | 10174 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10175 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10176 | } Py_INCREF(Py_None); |
8ab979d7 RD |
10177 | _resultobj = Py_None; |
10178 | { | |
10179 | if (_obj1) | |
10180 | delete _arg1; | |
10181 | } | |
10182 | return _resultobj; | |
10183 | } | |
10184 | ||
b1462dfa RD |
10185 | #define wxMenuItem_GetLabel(_swigobj) (_swigobj->GetLabel()) |
10186 | static PyObject *_wrap_wxMenuItem_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8ab979d7 | 10187 | PyObject * _resultobj; |
b1462dfa | 10188 | wxString * _result; |
8ab979d7 | 10189 | wxMenuItem * _arg0; |
1d99702e | 10190 | PyObject * _argo0 = 0; |
b1462dfa | 10191 | char *_kwnames[] = { "self", NULL }; |
8ab979d7 RD |
10192 | |
10193 | self = self; | |
b1462dfa | 10194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabel",_kwnames,&_argo0)) |
8ab979d7 | 10195 | return NULL; |
1d99702e RD |
10196 | if (_argo0) { |
10197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetLabel. Expected _wxMenuItem_p."); |
8ab979d7 RD |
10200 | return NULL; |
10201 | } | |
10202 | } | |
cf694132 | 10203 | { |
474c48f9 | 10204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10205 | _result = new wxString (wxMenuItem_GetLabel(_arg0)); |
cf694132 | 10206 | |
474c48f9 | 10207 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10208 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10209 | }{ |
c8bc7bb8 RD |
10210 | #if wxUSE_UNICODE |
10211 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10212 | #else | |
eec92d76 | 10213 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10214 | #endif |
8ab979d7 | 10215 | } |
cf694132 | 10216 | { |
b1462dfa RD |
10217 | delete _result; |
10218 | } | |
cf694132 RD |
10219 | return _resultobj; |
10220 | } | |
10221 | ||
b1462dfa RD |
10222 | #define wxMenuItem_GetText(_swigobj) (_swigobj->GetText()) |
10223 | static PyObject *_wrap_wxMenuItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10224 | PyObject * _resultobj; |
b1462dfa | 10225 | wxString * _result; |
cf694132 | 10226 | wxMenuItem * _arg0; |
1d99702e | 10227 | PyObject * _argo0 = 0; |
efc5f224 | 10228 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10229 | |
10230 | self = self; | |
b1462dfa | 10231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetText",_kwnames,&_argo0)) |
cf694132 | 10232 | return NULL; |
1d99702e RD |
10233 | if (_argo0) { |
10234 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10235 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10236 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetText. Expected _wxMenuItem_p."); |
cf694132 RD |
10237 | return NULL; |
10238 | } | |
10239 | } | |
10240 | { | |
474c48f9 | 10241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10242 | const wxString & _result_ref = wxMenuItem_GetText(_arg0); |
b1462dfa | 10243 | _result = (wxString *) &_result_ref; |
cf694132 | 10244 | |
474c48f9 | 10245 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10246 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10247 | }{ |
c8bc7bb8 RD |
10248 | #if wxUSE_UNICODE |
10249 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10250 | #else | |
eec92d76 | 10251 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10252 | #endif |
cf694132 | 10253 | } |
cf694132 RD |
10254 | return _resultobj; |
10255 | } | |
10256 | ||
a884bee5 RD |
10257 | #define wxMenuItem_GetKind(_swigobj) (_swigobj->GetKind()) |
10258 | static PyObject *_wrap_wxMenuItem_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10259 | PyObject * _resultobj; | |
10260 | wxItemKind _result; | |
10261 | wxMenuItem * _arg0; | |
10262 | PyObject * _argo0 = 0; | |
10263 | char *_kwnames[] = { "self", NULL }; | |
10264 | ||
10265 | self = self; | |
10266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetKind",_kwnames,&_argo0)) | |
10267 | return NULL; | |
10268 | if (_argo0) { | |
10269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetKind. Expected _wxMenuItem_p."); | |
10272 | return NULL; | |
10273 | } | |
10274 | } | |
10275 | { | |
10276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10277 | _result = (wxItemKind )wxMenuItem_GetKind(_arg0); | |
10278 | ||
10279 | wxPyEndAllowThreads(__tstate); | |
10280 | if (PyErr_Occurred()) return NULL; | |
10281 | } _resultobj = Py_BuildValue("i",_result); | |
10282 | return _resultobj; | |
10283 | } | |
10284 | ||
b1462dfa RD |
10285 | #define wxMenuItem_SetCheckable(_swigobj,_swigarg0) (_swigobj->SetCheckable(_swigarg0)) |
10286 | static PyObject *_wrap_wxMenuItem_SetCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10287 | PyObject * _resultobj; |
cf694132 | 10288 | wxMenuItem * _arg0; |
b1462dfa | 10289 | bool _arg1; |
1d99702e | 10290 | PyObject * _argo0 = 0; |
b1462dfa RD |
10291 | int tempbool1; |
10292 | char *_kwnames[] = { "self","checkable", NULL }; | |
cf694132 RD |
10293 | |
10294 | self = self; | |
b1462dfa | 10295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuItem_SetCheckable",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10296 | return NULL; |
1d99702e RD |
10297 | if (_argo0) { |
10298 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10299 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10300 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10301 | return NULL; |
10302 | } | |
10303 | } | |
b1462dfa | 10304 | _arg1 = (bool ) tempbool1; |
cf694132 | 10305 | { |
474c48f9 | 10306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10307 | wxMenuItem_SetCheckable(_arg0,_arg1); |
cf694132 | 10308 | |
474c48f9 | 10309 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10310 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10311 | } Py_INCREF(Py_None); |
10312 | _resultobj = Py_None; | |
cf694132 RD |
10313 | return _resultobj; |
10314 | } | |
10315 | ||
b1462dfa RD |
10316 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) |
10317 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10318 | PyObject * _resultobj; |
b1462dfa | 10319 | bool _result; |
cf694132 | 10320 | wxMenuItem * _arg0; |
1d99702e | 10321 | PyObject * _argo0 = 0; |
efc5f224 | 10322 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10323 | |
10324 | self = self; | |
b1462dfa | 10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
cf694132 | 10326 | return NULL; |
1d99702e RD |
10327 | if (_argo0) { |
10328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
cf694132 RD |
10331 | return NULL; |
10332 | } | |
10333 | } | |
10334 | { | |
474c48f9 | 10335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10336 | _result = (bool )wxMenuItem_IsCheckable(_arg0); |
cf694132 | 10337 | |
474c48f9 | 10338 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10339 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10340 | } _resultobj = Py_BuildValue("i",_result); |
10341 | return _resultobj; | |
10342 | } | |
10343 | ||
b1462dfa RD |
10344 | #define wxMenuItem_IsSubMenu(_swigobj) (_swigobj->IsSubMenu()) |
10345 | static PyObject *_wrap_wxMenuItem_IsSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10346 | PyObject * _resultobj; |
b1462dfa | 10347 | bool _result; |
cf694132 | 10348 | wxMenuItem * _arg0; |
1d99702e | 10349 | PyObject * _argo0 = 0; |
efc5f224 | 10350 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10351 | |
10352 | self = self; | |
b1462dfa | 10353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSubMenu",_kwnames,&_argo0)) |
cf694132 | 10354 | return NULL; |
1d99702e RD |
10355 | if (_argo0) { |
10356 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10357 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10358 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10359 | return NULL; |
10360 | } | |
10361 | } | |
10362 | { | |
474c48f9 | 10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10364 | _result = (bool )wxMenuItem_IsSubMenu(_arg0); |
cf694132 | 10365 | |
474c48f9 | 10366 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10367 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10368 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10369 | return _resultobj; |
10370 | } | |
10371 | ||
b1462dfa RD |
10372 | #define wxMenuItem_SetSubMenu(_swigobj,_swigarg0) (_swigobj->SetSubMenu(_swigarg0)) |
10373 | static PyObject *_wrap_wxMenuItem_SetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10374 | PyObject * _resultobj; |
10375 | wxMenuItem * _arg0; | |
b1462dfa | 10376 | wxMenu * _arg1; |
1d99702e RD |
10377 | PyObject * _argo0 = 0; |
10378 | PyObject * _argo1 = 0; | |
b1462dfa | 10379 | char *_kwnames[] = { "self","menu", NULL }; |
cf694132 RD |
10380 | |
10381 | self = self; | |
b1462dfa | 10382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetSubMenu",_kwnames,&_argo0,&_argo1)) |
cf694132 | 10383 | return NULL; |
1d99702e RD |
10384 | if (_argo0) { |
10385 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10386 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10387 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10388 | return NULL; |
10389 | } | |
10390 | } | |
1d99702e RD |
10391 | if (_argo1) { |
10392 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10393 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { |
10394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetSubMenu. Expected _wxMenu_p."); | |
cf694132 RD |
10395 | return NULL; |
10396 | } | |
10397 | } | |
10398 | { | |
474c48f9 | 10399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10400 | wxMenuItem_SetSubMenu(_arg0,_arg1); |
cf694132 | 10401 | |
474c48f9 | 10402 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10403 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10404 | } Py_INCREF(Py_None); |
10405 | _resultobj = Py_None; | |
10406 | return _resultobj; | |
10407 | } | |
10408 | ||
b1462dfa RD |
10409 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) |
10410 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10411 | PyObject * _resultobj; |
b1462dfa | 10412 | wxMenu * _result; |
cf694132 | 10413 | wxMenuItem * _arg0; |
1d99702e | 10414 | PyObject * _argo0 = 0; |
b1462dfa | 10415 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10416 | |
10417 | self = self; | |
b1462dfa | 10418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
cf694132 | 10419 | return NULL; |
1d99702e RD |
10420 | if (_argo0) { |
10421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
cf694132 RD |
10424 | return NULL; |
10425 | } | |
10426 | } | |
b1462dfa | 10427 | { |
474c48f9 | 10428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10429 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); |
b1462dfa | 10430 | |
474c48f9 | 10431 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10432 | if (PyErr_Occurred()) return NULL; |
9df61a29 | 10433 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
10434 | return _resultobj; |
10435 | } | |
10436 | ||
10437 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
10438 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10439 | PyObject * _resultobj; | |
10440 | wxMenuItem * _arg0; | |
10441 | bool _arg1 = (bool ) TRUE; | |
10442 | PyObject * _argo0 = 0; | |
10443 | int tempbool1 = (int) TRUE; | |
10444 | char *_kwnames[] = { "self","enable", NULL }; | |
10445 | ||
10446 | self = self; | |
10447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) | |
10448 | return NULL; | |
10449 | if (_argo0) { | |
10450 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10451 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
10452 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); | |
cf694132 RD |
10453 | return NULL; |
10454 | } | |
10455 | } | |
b1462dfa | 10456 | _arg1 = (bool ) tempbool1; |
cf694132 | 10457 | { |
474c48f9 | 10458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10459 | wxMenuItem_Enable(_arg0,_arg1); |
cf694132 | 10460 | |
474c48f9 | 10461 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10462 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10463 | } Py_INCREF(Py_None); |
10464 | _resultobj = Py_None; | |
10465 | return _resultobj; | |
10466 | } | |
10467 | ||
b1462dfa RD |
10468 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) |
10469 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 | 10470 | PyObject * _resultobj; |
b1462dfa | 10471 | bool _result; |
cf694132 | 10472 | wxMenuItem * _arg0; |
1d99702e | 10473 | PyObject * _argo0 = 0; |
b1462dfa | 10474 | char *_kwnames[] = { "self", NULL }; |
cf694132 RD |
10475 | |
10476 | self = self; | |
b1462dfa | 10477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
cf694132 | 10478 | return NULL; |
1d99702e RD |
10479 | if (_argo0) { |
10480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
cf694132 RD |
10483 | return NULL; |
10484 | } | |
10485 | } | |
10486 | { | |
474c48f9 | 10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10488 | _result = (bool )wxMenuItem_IsEnabled(_arg0); |
cf694132 | 10489 | |
474c48f9 | 10490 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10491 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10492 | } _resultobj = Py_BuildValue("i",_result); |
cf694132 RD |
10493 | return _resultobj; |
10494 | } | |
10495 | ||
b1462dfa RD |
10496 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) |
10497 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10498 | PyObject * _resultobj; |
10499 | wxMenuItem * _arg0; | |
b1462dfa | 10500 | bool _arg1 = (bool ) TRUE; |
1d99702e | 10501 | PyObject * _argo0 = 0; |
b1462dfa RD |
10502 | int tempbool1 = (int) TRUE; |
10503 | char *_kwnames[] = { "self","check", NULL }; | |
cf694132 RD |
10504 | |
10505 | self = self; | |
b1462dfa | 10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
cf694132 | 10507 | return NULL; |
1d99702e RD |
10508 | if (_argo0) { |
10509 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10510 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10511 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
cf694132 RD |
10512 | return NULL; |
10513 | } | |
10514 | } | |
b1462dfa | 10515 | _arg1 = (bool ) tempbool1; |
cf694132 | 10516 | { |
474c48f9 | 10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10518 | wxMenuItem_Check(_arg0,_arg1); |
cf694132 | 10519 | |
474c48f9 | 10520 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10521 | if (PyErr_Occurred()) return NULL; |
cf694132 RD |
10522 | } Py_INCREF(Py_None); |
10523 | _resultobj = Py_None; | |
10524 | return _resultobj; | |
10525 | } | |
10526 | ||
b1462dfa RD |
10527 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) |
10528 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10529 | PyObject * _resultobj; |
b1462dfa | 10530 | bool _result; |
2abc0a0f | 10531 | wxMenuItem * _arg0; |
2abc0a0f | 10532 | PyObject * _argo0 = 0; |
b1462dfa | 10533 | char *_kwnames[] = { "self", NULL }; |
2abc0a0f RD |
10534 | |
10535 | self = self; | |
b1462dfa | 10536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
2abc0a0f RD |
10537 | return NULL; |
10538 | if (_argo0) { | |
10539 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10540 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10541 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10542 | return NULL; |
10543 | } | |
10544 | } | |
2abc0a0f | 10545 | { |
474c48f9 | 10546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10547 | _result = (bool )wxMenuItem_IsChecked(_arg0); |
2abc0a0f | 10548 | |
474c48f9 | 10549 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10550 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10551 | } _resultobj = Py_BuildValue("i",_result); |
2abc0a0f RD |
10552 | return _resultobj; |
10553 | } | |
10554 | ||
b1462dfa RD |
10555 | #define wxMenuItem_Toggle(_swigobj) (_swigobj->Toggle()) |
10556 | static PyObject *_wrap_wxMenuItem_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10557 | PyObject * _resultobj; |
2abc0a0f RD |
10558 | wxMenuItem * _arg0; |
10559 | PyObject * _argo0 = 0; | |
10560 | char *_kwnames[] = { "self", NULL }; | |
10561 | ||
10562 | self = self; | |
b1462dfa | 10563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_Toggle",_kwnames,&_argo0)) |
2abc0a0f RD |
10564 | return NULL; |
10565 | if (_argo0) { | |
10566 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10567 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10568 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Toggle. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10569 | return NULL; |
10570 | } | |
10571 | } | |
10572 | { | |
474c48f9 | 10573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10574 | wxMenuItem_Toggle(_arg0); |
2abc0a0f | 10575 | |
474c48f9 | 10576 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10577 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10578 | } Py_INCREF(Py_None); |
10579 | _resultobj = Py_None; | |
2abc0a0f RD |
10580 | return _resultobj; |
10581 | } | |
10582 | ||
b1462dfa RD |
10583 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) |
10584 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
cf694132 RD |
10585 | PyObject * _resultobj; |
10586 | wxMenuItem * _arg0; | |
b1462dfa | 10587 | wxString * _arg1; |
1d99702e | 10588 | PyObject * _argo0 = 0; |
b1462dfa RD |
10589 | PyObject * _obj1 = 0; |
10590 | char *_kwnames[] = { "self","str", NULL }; | |
cf694132 RD |
10591 | |
10592 | self = self; | |
b1462dfa | 10593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
cf694132 | 10594 | return NULL; |
1d99702e RD |
10595 | if (_argo0) { |
10596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
cf694132 RD |
10599 | return NULL; |
10600 | } | |
10601 | } | |
b1462dfa | 10602 | { |
c8bc7bb8 RD |
10603 | _arg1 = wxString_in_helper(_obj1); |
10604 | if (_arg1 == NULL) | |
2cd2fac8 | 10605 | return NULL; |
b1462dfa | 10606 | } |
cf694132 | 10607 | { |
474c48f9 | 10608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10609 | wxMenuItem_SetHelp(_arg0,*_arg1); |
cf694132 | 10610 | |
474c48f9 | 10611 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10612 | if (PyErr_Occurred()) return NULL; |
cf694132 | 10613 | } Py_INCREF(Py_None); |
8ab979d7 | 10614 | _resultobj = Py_None; |
b1462dfa RD |
10615 | { |
10616 | if (_obj1) | |
10617 | delete _arg1; | |
10618 | } | |
8ab979d7 RD |
10619 | return _resultobj; |
10620 | } | |
10621 | ||
b1462dfa RD |
10622 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
10623 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
be4d9c1f | 10624 | PyObject * _resultobj; |
b1462dfa | 10625 | wxString * _result; |
be4d9c1f | 10626 | wxMenuItem * _arg0; |
1d99702e | 10627 | PyObject * _argo0 = 0; |
efc5f224 | 10628 | char *_kwnames[] = { "self", NULL }; |
be4d9c1f RD |
10629 | |
10630 | self = self; | |
b1462dfa | 10631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
be4d9c1f | 10632 | return NULL; |
1d99702e RD |
10633 | if (_argo0) { |
10634 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10635 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10636 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
be4d9c1f RD |
10637 | return NULL; |
10638 | } | |
10639 | } | |
cf694132 | 10640 | { |
474c48f9 | 10641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10642 | const wxString & _result_ref = wxMenuItem_GetHelp(_arg0); |
b1462dfa | 10643 | _result = (wxString *) &_result_ref; |
cf694132 | 10644 | |
474c48f9 | 10645 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10646 | if (PyErr_Occurred()) return NULL; |
b1462dfa | 10647 | }{ |
c8bc7bb8 RD |
10648 | #if wxUSE_UNICODE |
10649 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10650 | #else | |
eec92d76 | 10651 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10652 | #endif |
b1462dfa | 10653 | } |
be4d9c1f RD |
10654 | return _resultobj; |
10655 | } | |
10656 | ||
b1462dfa RD |
10657 | #define wxMenuItem_GetAccel(_swigobj) (_swigobj->GetAccel()) |
10658 | static PyObject *_wrap_wxMenuItem_GetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 10659 | PyObject * _resultobj; |
b1462dfa | 10660 | wxAcceleratorEntry * _result; |
2abc0a0f | 10661 | wxMenuItem * _arg0; |
2abc0a0f | 10662 | PyObject * _argo0 = 0; |
b1462dfa RD |
10663 | char *_kwnames[] = { "self", NULL }; |
10664 | char _ptemp[128]; | |
2abc0a0f RD |
10665 | |
10666 | self = self; | |
b1462dfa | 10667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetAccel",_kwnames,&_argo0)) |
2abc0a0f RD |
10668 | return NULL; |
10669 | if (_argo0) { | |
10670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10673 | return NULL; |
10674 | } | |
10675 | } | |
2abc0a0f | 10676 | { |
474c48f9 | 10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10678 | _result = (wxAcceleratorEntry *)wxMenuItem_GetAccel(_arg0); |
2abc0a0f | 10679 | |
474c48f9 | 10680 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10681 | if (PyErr_Occurred()) return NULL; |
b1462dfa RD |
10682 | } if (_result) { |
10683 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxAcceleratorEntry_p"); | |
10684 | _resultobj = Py_BuildValue("s",_ptemp); | |
10685 | } else { | |
10686 | Py_INCREF(Py_None); | |
10687 | _resultobj = Py_None; | |
10688 | } | |
2abc0a0f RD |
10689 | return _resultobj; |
10690 | } | |
10691 | ||
b1462dfa RD |
10692 | #define wxMenuItem_SetAccel(_swigobj,_swigarg0) (_swigobj->SetAccel(_swigarg0)) |
10693 | static PyObject *_wrap_wxMenuItem_SetAccel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f RD |
10694 | PyObject * _resultobj; |
10695 | wxMenuItem * _arg0; | |
b1462dfa | 10696 | wxAcceleratorEntry * _arg1; |
2abc0a0f RD |
10697 | PyObject * _argo0 = 0; |
10698 | PyObject * _argo1 = 0; | |
b1462dfa | 10699 | char *_kwnames[] = { "self","accel", NULL }; |
2abc0a0f RD |
10700 | |
10701 | self = self; | |
b1462dfa | 10702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetAccel",_kwnames,&_argo0,&_argo1)) |
2abc0a0f RD |
10703 | return NULL; |
10704 | if (_argo0) { | |
10705 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10706 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
b1462dfa | 10707 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetAccel. Expected _wxMenuItem_p."); |
2abc0a0f RD |
10708 | return NULL; |
10709 | } | |
10710 | } | |
10711 | if (_argo1) { | |
10712 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
b1462dfa RD |
10713 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorEntry_p")) { |
10714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuItem_SetAccel. Expected _wxAcceleratorEntry_p."); | |
2abc0a0f RD |
10715 | return NULL; |
10716 | } | |
10717 | } | |
10718 | { | |
474c48f9 | 10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10720 | wxMenuItem_SetAccel(_arg0,_arg1); |
2abc0a0f | 10721 | |
474c48f9 | 10722 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10723 | if (PyErr_Occurred()) return NULL; |
2abc0a0f RD |
10724 | } Py_INCREF(Py_None); |
10725 | _resultobj = Py_None; | |
10726 | return _resultobj; | |
10727 | } | |
10728 | ||
9c4165ad RD |
10729 | static PyObject *_wrap_wxMenuItem_GetLabelFromText(PyObject *self, PyObject *args, PyObject *kwargs) { |
10730 | PyObject * _resultobj; | |
10731 | wxString * _result; | |
10732 | wxString * _arg0; | |
10733 | PyObject * _obj0 = 0; | |
10734 | char *_kwnames[] = { "text", NULL }; | |
10735 | ||
10736 | self = self; | |
10737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetLabelFromText",_kwnames,&_obj0)) | |
10738 | return NULL; | |
10739 | { | |
c8bc7bb8 RD |
10740 | _arg0 = wxString_in_helper(_obj0); |
10741 | if (_arg0 == NULL) | |
9c4165ad | 10742 | return NULL; |
9c4165ad RD |
10743 | } |
10744 | { | |
474c48f9 | 10745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10746 | _result = new wxString (wxMenuItem::GetLabelFromText(*_arg0)); |
9c4165ad | 10747 | |
474c48f9 | 10748 | wxPyEndAllowThreads(__tstate); |
4dfaa61e | 10749 | if (PyErr_Occurred()) return NULL; |
9c4165ad | 10750 | }{ |
c8bc7bb8 RD |
10751 | #if wxUSE_UNICODE |
10752 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
10753 | #else | |
9c4165ad | 10754 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10755 | #endif |
9c4165ad RD |
10756 | } |
10757 | { | |
10758 | if (_obj0) | |
10759 | delete _arg0; | |
10760 | } | |
10761 | { | |
10762 | delete _result; | |
10763 | } | |
10764 | return _resultobj; | |
10765 | } | |
10766 | ||
8ab979d7 | 10767 | static PyMethodDef windowscMethods[] = { |
9c4165ad | 10768 | { "wxMenuItem_GetLabelFromText", (PyCFunction) _wrap_wxMenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10769 | { "wxMenuItem_SetAccel", (PyCFunction) _wrap_wxMenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS }, |
10770 | { "wxMenuItem_GetAccel", (PyCFunction) _wrap_wxMenuItem_GetAccel, METH_VARARGS | METH_KEYWORDS }, | |
10771 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10772 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
10773 | { "wxMenuItem_Toggle", (PyCFunction) _wrap_wxMenuItem_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
10774 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10775 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10776 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10777 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10778 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10779 | { "wxMenuItem_SetSubMenu", (PyCFunction) _wrap_wxMenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f | 10780 | { "wxMenuItem_IsSubMenu", (PyCFunction) _wrap_wxMenuItem_IsSubMenu, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10781 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10782 | { "wxMenuItem_SetCheckable", (PyCFunction) _wrap_wxMenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 | 10783 | { "wxMenuItem_GetKind", (PyCFunction) _wrap_wxMenuItem_GetKind, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10784 | { "wxMenuItem_GetText", (PyCFunction) _wrap_wxMenuItem_GetText, METH_VARARGS | METH_KEYWORDS }, |
10785 | { "wxMenuItem_GetLabel", (PyCFunction) _wrap_wxMenuItem_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
10786 | { "wxMenuItem_SetText", (PyCFunction) _wrap_wxMenuItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10787 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10788 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, |
10789 | { "wxMenuItem_SetId", (PyCFunction) _wrap_wxMenuItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10790 | { "wxMenuItem_GetMenu", (PyCFunction) _wrap_wxMenuItem_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10791 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10792 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10793 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
10794 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10795 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
2abc0a0f RD |
10796 | { "wxMenuBar_IsEnabled", (PyCFunction) _wrap_wxMenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10797 | { "wxMenuBar_IsChecked", (PyCFunction) _wrap_wxMenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10798 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10799 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, |
10800 | { "wxMenuBar_FindItemById", (PyCFunction) _wrap_wxMenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS }, | |
10801 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
10be44ac | 10802 | { "wxMenuBar_FindMenu", (PyCFunction) _wrap_wxMenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10803 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
10804 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
10805 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
10806 | { "wxMenuBar_Remove", (PyCFunction) _wrap_wxMenuBar_Remove, METH_VARARGS | METH_KEYWORDS }, | |
10807 | { "wxMenuBar_Replace", (PyCFunction) _wrap_wxMenuBar_Replace, METH_VARARGS | METH_KEYWORDS }, | |
10808 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, | |
10809 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
10810 | { "wxMenuBar_Insert", (PyCFunction) _wrap_wxMenuBar_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10811 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, |
10812 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10813 | { "wxMenu_GetParent", (PyCFunction) _wrap_wxMenu_GetParent, METH_VARARGS | METH_KEYWORDS }, |
10814 | { "wxMenu_SetParent", (PyCFunction) _wrap_wxMenu_SetParent, METH_VARARGS | METH_KEYWORDS }, | |
10815 | { "wxMenu_IsAttached", (PyCFunction) _wrap_wxMenu_IsAttached, METH_VARARGS | METH_KEYWORDS }, | |
10816 | { "wxMenu_GetStyle", (PyCFunction) _wrap_wxMenu_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
10817 | { "wxMenu_GetInvokingWindow", (PyCFunction) _wrap_wxMenu_GetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10818 | { "wxMenu_SetInvokingWindow", (PyCFunction) _wrap_wxMenu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS }, | |
10819 | { "wxMenu_GetEventHandler", (PyCFunction) _wrap_wxMenu_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10820 | { "wxMenu_SetEventHandler", (PyCFunction) _wrap_wxMenu_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
10821 | { "wxMenu_GetMenuItems", (PyCFunction) _wrap_wxMenu_GetMenuItems, METH_VARARGS | METH_KEYWORDS }, | |
10822 | { "wxMenu_GetMenuItemCount", (PyCFunction) _wrap_wxMenu_GetMenuItemCount, METH_VARARGS | METH_KEYWORDS }, | |
10823 | { "wxMenu_DestroyItem", (PyCFunction) _wrap_wxMenu_DestroyItem, METH_VARARGS | METH_KEYWORDS }, | |
10824 | { "wxMenu_DestroyId", (PyCFunction) _wrap_wxMenu_DestroyId, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10825 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10826 | { "wxMenu_RemoveItem", (PyCFunction) _wrap_wxMenu_RemoveItem, METH_VARARGS | METH_KEYWORDS }, |
10827 | { "wxMenu_Remove", (PyCFunction) _wrap_wxMenu_Remove, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10828 | { "wxMenu_DeleteItem", (PyCFunction) _wrap_wxMenu_DeleteItem, METH_VARARGS | METH_KEYWORDS }, |
10829 | { "wxMenu_Delete", (PyCFunction) _wrap_wxMenu_Delete, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10830 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10831 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10832 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10833 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, |
10834 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10835 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, |
10836 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa | 10837 | { "wxMenu_FindItemById", (PyCFunction) _wrap_wxMenu_FindItemById, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10838 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10839 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10840 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10841 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10842 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, |
10843 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
10844 | { "wxMenu_PrependItem", (PyCFunction) _wrap_wxMenu_PrependItem, METH_VARARGS | METH_KEYWORDS }, |
10845 | { "wxMenu_PrependMenu", (PyCFunction) _wrap_wxMenu_PrependMenu, METH_VARARGS | METH_KEYWORDS }, | |
10846 | { "wxMenu_PrependRadioItem", (PyCFunction) _wrap_wxMenu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
10847 | { "wxMenu_PrependCheckItem", (PyCFunction) _wrap_wxMenu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
10848 | { "wxMenu_PrependSeparator", (PyCFunction) _wrap_wxMenu_PrependSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10849 | { "wxMenu_Prepend", (PyCFunction) _wrap_wxMenu_Prepend, METH_VARARGS | METH_KEYWORDS }, | |
10850 | { "wxMenu_InsertItem", (PyCFunction) _wrap_wxMenu_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
10851 | { "wxMenu_InsertMenu", (PyCFunction) _wrap_wxMenu_InsertMenu, METH_VARARGS | METH_KEYWORDS }, | |
10852 | { "wxMenu_InsertRadioItem", (PyCFunction) _wrap_wxMenu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS }, | |
10853 | { "wxMenu_InsertCheckItem", (PyCFunction) _wrap_wxMenu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
10854 | { "wxMenu_InsertSeparator", (PyCFunction) _wrap_wxMenu_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
10855 | { "wxMenu_Insert", (PyCFunction) _wrap_wxMenu_Insert, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10856 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, |
a884bee5 RD |
10857 | { "wxMenu_AppendRadioItem", (PyCFunction) _wrap_wxMenu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS }, |
10858 | { "wxMenu_AppendCheckItem", (PyCFunction) _wrap_wxMenu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10859 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
10860 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, | |
10861 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
10862 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
49df1f52 | 10863 | { "wxScrolledWindow_Layout", (PyCFunction) _wrap_wxScrolledWindow_Layout, METH_VARARGS | METH_KEYWORDS }, |
7a446686 RD |
10864 | { "wxScrolledWindow_AdjustScrollbars", (PyCFunction) _wrap_wxScrolledWindow_AdjustScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10865 | { "wxScrolledWindow_GetScaleY", (PyCFunction) _wrap_wxScrolledWindow_GetScaleY, METH_VARARGS | METH_KEYWORDS }, | |
10866 | { "wxScrolledWindow_GetScaleX", (PyCFunction) _wrap_wxScrolledWindow_GetScaleX, METH_VARARGS | METH_KEYWORDS }, | |
10867 | { "wxScrolledWindow_SetScale", (PyCFunction) _wrap_wxScrolledWindow_SetScale, METH_VARARGS | METH_KEYWORDS }, | |
a884bee5 RD |
10868 | { "wxScrolledWindow_CalcUnscrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition2, METH_VARARGS | METH_KEYWORDS }, |
10869 | { "wxScrolledWindow_CalcUnscrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
10870 | { "wxScrolledWindow_CalcScrolledPosition2", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition2, METH_VARARGS | METH_KEYWORDS }, | |
10871 | { "wxScrolledWindow_CalcScrolledPosition1", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition1, METH_VARARGS | METH_KEYWORDS }, | |
4c9993c3 | 10872 | { "wxScrolledWindow_GetViewStart", (PyCFunction) _wrap_wxScrolledWindow_GetViewStart, METH_VARARGS | METH_KEYWORDS }, |
eb715945 | 10873 | { "wxScrolledWindow_SetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_SetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10874 | { "wxScrolledWindow_SetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_SetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10875 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, |
10876 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
10877 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
10878 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
10879 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10880 | { "wxScrolledWindow_GetTargetWindow", (PyCFunction) _wrap_wxScrolledWindow_GetTargetWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10881 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, |
b7e72427 | 10882 | { "wxScrolledWindow_GetScrollPageSize", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPageSize, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10883 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10884 | { "wxScrolledWindow_Create", (PyCFunction) _wrap_wxScrolledWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
10885 | { "new_wxPreScrolledWindow", (PyCFunction) _wrap_new_wxPreScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10886 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10887 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10888 | { "wxPanel_Create", (PyCFunction) _wrap_wxPanel_Create, METH_VARARGS | METH_KEYWORDS }, |
10889 | { "new_wxPrePanel", (PyCFunction) _wrap_new_wxPrePanel, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 10890 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, |
1893b029 RD |
10891 | { "wxWindow_SetDefaultItem", (PyCFunction) _wrap_wxWindow_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, |
10892 | { "wxWindow_GetDefaultItem", (PyCFunction) _wrap_wxWindow_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
65191ae8 | 10893 | { "wxWindow_GetAcceleratorTable", (PyCFunction) _wrap_wxWindow_GetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
32c988a3 | 10894 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 RD |
10895 | { "wxWindow_PrevControlId", (PyCFunction) _wrap_wxWindow_PrevControlId, METH_VARARGS | METH_KEYWORDS }, |
10896 | { "wxWindow_NextControlId", (PyCFunction) _wrap_wxWindow_NextControlId, METH_VARARGS | METH_KEYWORDS }, | |
10897 | { "wxWindow_NewControlId", (PyCFunction) _wrap_wxWindow_NewControlId, METH_VARARGS | METH_KEYWORDS }, | |
10898 | { "wxWindow_FindFocus", (PyCFunction) _wrap_wxWindow_FindFocus, METH_VARARGS | METH_KEYWORDS }, | |
cd096152 RD |
10899 | { "wxWindow_PageDown", (PyCFunction) _wrap_wxWindow_PageDown, METH_VARARGS | METH_KEYWORDS }, |
10900 | { "wxWindow_PageUp", (PyCFunction) _wrap_wxWindow_PageUp, METH_VARARGS | METH_KEYWORDS }, | |
10901 | { "wxWindow_LineDown", (PyCFunction) _wrap_wxWindow_LineDown, METH_VARARGS | METH_KEYWORDS }, | |
10902 | { "wxWindow_LineUp", (PyCFunction) _wrap_wxWindow_LineUp, METH_VARARGS | METH_KEYWORDS }, | |
10903 | { "wxWindow_ScrollPages", (PyCFunction) _wrap_wxWindow_ScrollPages, METH_VARARGS | METH_KEYWORDS }, | |
10904 | { "wxWindow_ScrollLines", (PyCFunction) _wrap_wxWindow_ScrollLines, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 10905 | { "wxWindow_SetHelpTextForId", (PyCFunction) _wrap_wxWindow_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS }, |
cd096152 RD |
10906 | { "wxWindow_SetHelpText", (PyCFunction) _wrap_wxWindow_SetHelpText, METH_VARARGS | METH_KEYWORDS }, |
10907 | { "wxWindow_GetHelpText", (PyCFunction) _wrap_wxWindow_GetHelpText, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 | 10908 | { "wxWindow_Update", (PyCFunction) _wrap_wxWindow_Update, METH_VARARGS | METH_KEYWORDS }, |
10be44ac RD |
10909 | { "wxWindow_Thaw", (PyCFunction) _wrap_wxWindow_Thaw, METH_VARARGS | METH_KEYWORDS }, |
10910 | { "wxWindow_Freeze", (PyCFunction) _wrap_wxWindow_Freeze, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10911 | { "wxWindow_GetCaret", (PyCFunction) _wrap_wxWindow_GetCaret, METH_VARARGS | METH_KEYWORDS }, |
10912 | { "wxWindow_SetCaret", (PyCFunction) _wrap_wxWindow_SetCaret, METH_VARARGS | METH_KEYWORDS }, | |
49df1f52 | 10913 | { "wxWindow_GetMaxSize", (PyCFunction) _wrap_wxWindow_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, |
694759cf | 10914 | { "wxWindow_GetBestSize", (PyCFunction) _wrap_wxWindow_GetBestSize, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10915 | { "wxWindow_GetDropTarget", (PyCFunction) _wrap_wxWindow_GetDropTarget, METH_VARARGS | METH_KEYWORDS }, |
10916 | { "wxWindow_SetDropTarget", (PyCFunction) _wrap_wxWindow_SetDropTarget, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
10917 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
10918 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
94082a71 RD |
10919 | { "wxWindow_GetContainingSizer", (PyCFunction) _wrap_wxWindow_GetContainingSizer, METH_VARARGS | METH_KEYWORDS }, |
10920 | { "wxWindow_SetContainingSizer", (PyCFunction) _wrap_wxWindow_SetContainingSizer, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 10921 | { "wxWindow_GetSizer", (PyCFunction) _wrap_wxWindow_GetSizer, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10922 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10923 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
10924 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
10925 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
10926 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10927 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
10928 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10929 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10930 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10931 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
10932 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
10933 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 10934 | { "wxWindow_UpdateWindowUI", (PyCFunction) _wrap_wxWindow_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10935 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, |
10936 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
10937 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10938 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
5e40f9dd | 10939 | { "wxWindow_SetExtraStyle", (PyCFunction) _wrap_wxWindow_SetExtraStyle, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 | 10940 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10941 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
10942 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
10943 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
10944 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
2cd2fac8 | 10945 | { "wxWindow_SetRect", (PyCFunction) _wrap_wxWindow_SetRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10946 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, |
10947 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
10948 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
10949 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
10950 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
10951 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
10952 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
10953 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
10954 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 | 10955 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10956 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 10957 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10958 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
10959 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
9d8bd15f | 10960 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10961 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10962 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, |
10963 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
10964 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
10965 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
b7e72427 | 10966 | { "wxWindow_RemoveChild", (PyCFunction) _wrap_wxWindow_RemoveChild, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10967 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, |
aa2a5b86 | 10968 | { "wxWindow_RefreshRect", (PyCFunction) _wrap_wxWindow_RefreshRect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
10969 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, |
10970 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
10971 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
10972 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
5d413391 | 10973 | { "wxWindow_RemoveEventHandler", (PyCFunction) _wrap_wxWindow_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS }, |
1afc06c2 RD |
10974 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
10975 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10976 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
10977 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10978 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
10979 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
10980 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
10981 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
10982 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
10983 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
10984 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
1b55cabf RD |
10985 | { "wxWindow_IsExposedRect", (PyCFunction) _wrap_wxWindow_IsExposedRect, METH_VARARGS | METH_KEYWORDS }, |
10986 | { "wxWindow_IsExposedPoint", (PyCFunction) _wrap_wxWindow_IsExposedPoint, METH_VARARGS | METH_KEYWORDS }, | |
10987 | { "wxWindow_IsExposed", (PyCFunction) _wrap_wxWindow_IsExposed, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10988 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, |
10989 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
8cb49012 | 10990 | { "wxWindow_HitTest", (PyCFunction) _wrap_wxWindow_HitTest, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 10991 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 10992 | { "wxWindow_HasScrollbar", (PyCFunction) _wrap_wxWindow_HasScrollbar, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10993 | { "wxWindow_SetWindowStyle", (PyCFunction) _wrap_wxWindow_SetWindowStyle, METH_VARARGS | METH_KEYWORDS }, |
10994 | { "wxWindow_SetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10995 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, |
10996 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
10997 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
10998 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
10999 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
11000 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11001 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11002 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
11003 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
11004 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
11005 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
11006 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11007 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11008 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
11009 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
11010 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11011 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
11012 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f | 11013 | { "wxWindow_GetHandle", (PyCFunction) _wrap_wxWindow_GetHandle, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11014 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, |
11015 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
11016 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
1afc06c2 | 11017 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11018 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 RD |
11019 | { "wxWindow_GetClientRect", (PyCFunction) _wrap_wxWindow_GetClientRect, METH_VARARGS | METH_KEYWORDS }, |
11020 | { "wxWindow_GetClientAreaOrigin", (PyCFunction) _wrap_wxWindow_GetClientAreaOrigin, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11021 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, |
11022 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11023 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
11024 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
d426c97e | 11025 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
8cb49012 | 11026 | { "wxWindow_GetBorder", (PyCFunction) _wrap_wxWindow_GetBorder, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11027 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
11028 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
11029 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
11030 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
11031 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
4dfaa61e | 11032 | { "wxWindow_IsBeingDeleted", (PyCFunction) _wrap_wxWindow_IsBeingDeleted, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 RD |
11033 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, |
11034 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
11035 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
11036 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
11037 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
9d6da64a | 11038 | { "wxWindow_Clear", (PyCFunction) _wrap_wxWindow_Clear, METH_VARARGS | METH_KEYWORDS }, |
3ca6a5f0 BP |
11039 | { "wxWindow_CenterOnScreen", (PyCFunction) _wrap_wxWindow_CenterOnScreen, METH_VARARGS | METH_KEYWORDS }, |
11040 | { "wxWindow_CentreOnScreen", (PyCFunction) _wrap_wxWindow_CentreOnScreen, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11041 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, |
11042 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
11043 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
11044 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
11045 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
aa2a5b86 RD |
11046 | { "wxWindow_Create", (PyCFunction) _wrap_wxWindow_Create, METH_VARARGS | METH_KEYWORDS }, |
11047 | { "new_wxPreWindow", (PyCFunction) _wrap_new_wxPreWindow, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 | 11048 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, |
0220cbc1 | 11049 | { "wxPyValidator__setCallbackInfo", (PyCFunction) _wrap_wxPyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 | 11050 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, |
9df61a29 RD |
11051 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
11052 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
2f90df85 RD |
11053 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, |
11054 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11055 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
11056 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
0220cbc1 | 11057 | { "wxEvtHandler__setOORInfo", (PyCFunction) _wrap_wxEvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS }, |
6999b0d8 | 11058 | { "wxEvtHandler_Disconnect", (PyCFunction) _wrap_wxEvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11059 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
2f90df85 RD |
11060 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
11061 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11062 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
11063 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
11064 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11065 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11066 | { "wxEvtHandler_AddPendingEvent", (PyCFunction) _wrap_wxEvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS }, |
efc5f224 | 11067 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11068 | { "new_wxEvtHandler", (PyCFunction) _wrap_new_wxEvtHandler, METH_VARARGS | METH_KEYWORDS }, |
8ab979d7 RD |
11069 | { NULL, NULL } |
11070 | }; | |
1d99702e RD |
11071 | #ifdef __cplusplus |
11072 | } | |
11073 | #endif | |
11074 | /* | |
11075 | * This table is used by the pointer type-checker | |
11076 | */ | |
11077 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
1d99702e | 11078 | { "_signed_long","_long",0}, |
b1462dfa | 11079 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11080 | { "_wxPrintQuality","_int",0}, |
11081 | { "_wxPrintQuality","_signed_int",0}, | |
11082 | { "_wxPrintQuality","_unsigned_int",0}, | |
11083 | { "_wxPrintQuality","_wxWindowID",0}, | |
11084 | { "_wxPrintQuality","_uint",0}, | |
11085 | { "_wxPrintQuality","_EBool",0}, | |
11086 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11087 | { "_wxPrintQuality","_time_t",0}, |
1d99702e | 11088 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11089 | { "_long","_unsigned_long",0}, |
11090 | { "_long","_signed_long",0}, | |
b1462dfa | 11091 | { "_size_t","_wxCoord",0}, |
1d99702e | 11092 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11093 | { "_size_t","_time_t",0}, |
1d99702e RD |
11094 | { "_size_t","_unsigned_int",0}, |
11095 | { "_size_t","_int",0}, | |
11096 | { "_size_t","_wxWindowID",0}, | |
11097 | { "_size_t","_uint",0}, | |
1d99702e | 11098 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, |
b1462dfa | 11099 | { "_uint","_wxCoord",0}, |
1d99702e | 11100 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11101 | { "_uint","_time_t",0}, |
1d99702e RD |
11102 | { "_uint","_size_t",0}, |
11103 | { "_uint","_unsigned_int",0}, | |
11104 | { "_uint","_int",0}, | |
11105 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11106 | { "_wxChar","_char",0}, |
f6bcfd97 | 11107 | { "_char","_wxChar",0}, |
059a841c | 11108 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11109 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11110 | { "_EBool","_wxPrintQuality",0}, |
11111 | { "_EBool","_signed_int",0}, | |
11112 | { "_EBool","_int",0}, | |
11113 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11114 | { "_unsigned_long","_long",0}, |
059a841c | 11115 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11116 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11117 | { "_signed_int","_wxPrintQuality",0}, |
11118 | { "_signed_int","_EBool",0}, | |
11119 | { "_signed_int","_wxWindowID",0}, | |
11120 | { "_signed_int","_int",0}, | |
1d99702e RD |
11121 | { "_WXTYPE","_short",0}, |
11122 | { "_WXTYPE","_signed_short",0}, | |
11123 | { "_WXTYPE","_unsigned_short",0}, | |
1d99702e RD |
11124 | { "_unsigned_short","_WXTYPE",0}, |
11125 | { "_unsigned_short","_short",0}, | |
9df61a29 | 11126 | { "_wxObject","_wxMenuItem",SwigwxMenuItemTowxObject}, |
9df61a29 | 11127 | { "_wxObject","_wxMenuBar",SwigwxMenuBarTowxObject}, |
9df61a29 | 11128 | { "_wxObject","_wxMenu",SwigwxMenuTowxObject}, |
9df61a29 | 11129 | { "_wxObject","_wxScrolledWindow",SwigwxScrolledWindowTowxObject}, |
9df61a29 | 11130 | { "_wxObject","_wxPanel",SwigwxPanelTowxObject}, |
9df61a29 | 11131 | { "_wxObject","_wxWindow",SwigwxWindowTowxObject}, |
9df61a29 | 11132 | { "_wxObject","_wxPyValidator",SwigwxPyValidatorTowxObject}, |
9df61a29 | 11133 | { "_wxObject","_wxValidator",SwigwxValidatorTowxObject}, |
9df61a29 | 11134 | { "_wxObject","_wxEvtHandler",SwigwxEvtHandlerTowxObject}, |
1d99702e RD |
11135 | { "_signed_short","_WXTYPE",0}, |
11136 | { "_signed_short","_short",0}, | |
1d99702e | 11137 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11138 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11139 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11140 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11141 | { "_unsigned_int","_size_t",0}, |
11142 | { "_unsigned_int","_uint",0}, | |
11143 | { "_unsigned_int","_wxWindowID",0}, | |
11144 | { "_unsigned_int","_int",0}, | |
1d99702e RD |
11145 | { "_short","_WXTYPE",0}, |
11146 | { "_short","_unsigned_short",0}, | |
11147 | { "_short","_signed_short",0}, | |
b1462dfa | 11148 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11149 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11150 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11151 | { "_wxWindowID","_size_t",0}, |
11152 | { "_wxWindowID","_EBool",0}, | |
11153 | { "_wxWindowID","_uint",0}, | |
11154 | { "_wxWindowID","_int",0}, | |
11155 | { "_wxWindowID","_signed_int",0}, | |
11156 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11157 | { "_int","_wxCoord",0}, |
1d99702e | 11158 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11159 | { "_int","_time_t",0}, |
1d99702e RD |
11160 | { "_int","_size_t",0}, |
11161 | { "_int","_EBool",0}, | |
11162 | { "_int","_uint",0}, | |
11163 | { "_int","_wxWindowID",0}, | |
11164 | { "_int","_unsigned_int",0}, | |
11165 | { "_int","_signed_int",0}, | |
c368d904 RD |
11166 | { "_time_t","_wxCoord",0}, |
11167 | { "_time_t","_wxPrintQuality",0}, | |
11168 | { "_time_t","_unsigned_int",0}, | |
11169 | { "_time_t","_int",0}, | |
11170 | { "_time_t","_wxWindowID",0}, | |
11171 | { "_time_t","_uint",0}, | |
11172 | { "_time_t","_size_t",0}, | |
2f90df85 | 11173 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
b1462dfa RD |
11174 | { "_wxCoord","_int",0}, |
11175 | { "_wxCoord","_signed_int",0}, | |
11176 | { "_wxCoord","_unsigned_int",0}, | |
11177 | { "_wxCoord","_wxWindowID",0}, | |
11178 | { "_wxCoord","_uint",0}, | |
11179 | { "_wxCoord","_EBool",0}, | |
11180 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11181 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11182 | { "_wxCoord","_wxPrintQuality",0}, |
1d99702e | 11183 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, |
1d99702e | 11184 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, |
1d99702e | 11185 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, |
1d99702e | 11186 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, |
1d99702e | 11187 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, |
2f90df85 | 11188 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
2f90df85 | 11189 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, |
b1462dfa | 11190 | { "_wxWindow","_wxMenuBar",SwigwxMenuBarTowxWindow}, |
1d99702e | 11191 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, |
1d99702e | 11192 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, |
1d99702e RD |
11193 | {0,0,0}}; |
11194 | ||
8ab979d7 RD |
11195 | static PyObject *SWIG_globals; |
11196 | #ifdef __cplusplus | |
11197 | extern "C" | |
11198 | #endif | |
1d99702e | 11199 | SWIGEXPORT(void) initwindowsc() { |
8ab979d7 RD |
11200 | PyObject *m, *d; |
11201 | SWIG_globals = SWIG_newvarlink(); | |
11202 | m = Py_InitModule("windowsc", windowscMethods); | |
11203 | d = PyModule_GetDict(m); | |
1d99702e RD |
11204 | { |
11205 | int i; | |
11206 | for (i = 0; _swig_mapping[i].n1; i++) | |
11207 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11208 | } | |
8ab979d7 | 11209 | } |