]>
Commit | Line | Data |
---|---|---|
70551f47 RD |
1 | /* |
2 | * FILE : gtk/windows.cpp | |
3 | * | |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
9cce9de1 | 6 | * Version 1.1 (Build 810) |
70551f47 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) | |
2d091820 | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
70551f47 RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
2d091820 | 30 | # define SWIGEXPORT(a) a _export |
70551f47 | 31 | # else |
2d091820 | 32 | # define SWIGEXPORT(a) a |
70551f47 RD |
33 | # endif |
34 | # endif | |
35 | #else | |
2d091820 | 36 | # define SWIGEXPORT(a) a |
70551f47 RD |
37 | #endif |
38 | ||
39 | #ifdef __cplusplus | |
40 | extern "C" { | |
41 | #endif | |
42 | #include "Python.h" | |
43 | extern void SWIG_MakePtr(char *, void *, char *); | |
44 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
45 | extern char *SWIG_GetPtr(char *, void **, char *); | |
2d091820 | 46 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
70551f47 RD |
47 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
48 | extern PyObject *SWIG_newvarlink(void); | |
49 | #ifdef __cplusplus | |
50 | } | |
51 | #endif | |
70551f47 RD |
52 | #define SWIG_init initwindowsc |
53 | ||
54 | #define SWIG_name "windowsc" | |
55 | ||
56 | #include "helpers.h" | |
70551f47 | 57 | #include <wx/menuitem.h> |
70551f47 RD |
58 | |
59 | static PyObject* l_output_helper(PyObject* target, PyObject* o) { | |
60 | PyObject* o2; | |
61 | PyObject* o3; | |
62 | if (!target) { | |
63 | target = o; | |
64 | } else if (target == Py_None) { | |
65 | Py_DECREF(Py_None); | |
66 | target = o; | |
67 | } else { | |
68 | if (!PyList_Check(target)) { | |
69 | o2 = target; | |
70 | target = PyList_New(0); | |
71 | PyList_Append(target, o2); | |
72 | Py_XDECREF(o2); | |
73 | } | |
74 | PyList_Append(target,o); | |
75 | Py_XDECREF(o); | |
76 | } | |
77 | return target; | |
78 | } | |
79 | ||
80 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
81 | PyObject* o2; | |
82 | PyObject* o3; | |
83 | ||
84 | if (!target) { | |
85 | target = o; | |
86 | } else if (target == Py_None) { | |
87 | Py_DECREF(Py_None); | |
88 | target = o; | |
89 | } else { | |
90 | if (!PyTuple_Check(target)) { | |
91 | o2 = target; | |
92 | target = PyTuple_New(1); | |
93 | PyTuple_SetItem(target, 0, o2); | |
94 | } | |
95 | o3 = PyTuple_New(1); | |
96 | PyTuple_SetItem(o3, 0, o); | |
97 | ||
98 | o2 = target; | |
99 | target = PySequence_Concat(o2, o3); | |
100 | Py_DECREF(o2); | |
101 | Py_DECREF(o3); | |
102 | } | |
103 | return target; | |
104 | } | |
105 | ||
37f6a977 | 106 | static char* wxStringErrorMsg = "string type is required for parameter"; |
70551f47 | 107 | |
37f6a977 RD |
108 | bool wxValidator_IsSilent() { |
109 | return wxValidator::IsSilent(); | |
110 | } | |
70551f47 | 111 | |
37f6a977 RD |
112 | void wxValidator_SetBellOnError(int doIt = TRUE) { |
113 | wxValidator::SetBellOnError(doIt); | |
114 | } | |
115 | ||
116 | class wxPyValidator : public wxValidator { | |
117 | DECLARE_DYNAMIC_CLASS(wxPyValidator); | |
118 | public: | |
119 | wxPyValidator() { | |
120 | } | |
121 | // wxPyValidator(const wxPyValidator& other); | |
122 | ||
123 | ~wxPyValidator() { | |
124 | } | |
125 | ||
126 | wxObject* wxPyValidator::Clone() const { | |
127 | wxPyValidator* ptr = NULL; | |
128 | wxPyValidator* self = (wxPyValidator*)this; | |
129 | ||
130 | bool doSave = wxPyRestoreThread(); | |
131 | if (self->m_myInst.findCallback("Clone")) { | |
132 | PyObject* ro; | |
133 | ro = self->m_myInst.callCallbackObj(Py_BuildValue("()")); | |
134 | SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p"); | |
135 | } | |
136 | // This is very dangerous!!! But is the only way I could find | |
137 | // to squash a memory leak. Currently it is okay, but if the | |
138 | // validator architecture in wxWindows ever changes, problems | |
139 | // could arise. | |
140 | delete self; | |
141 | ||
142 | wxPySaveThread(doSave); | |
143 | return ptr; | |
144 | } | |
145 | ||
146 | ||
147 | DEC_PYCALLBACK_BOOL_WXWIN(Validate); | |
148 | DEC_PYCALLBACK_BOOL_(TransferToWindow); | |
149 | DEC_PYCALLBACK_BOOL_(TransferFromWindow); | |
150 | ||
151 | PYPRIVATE; | |
152 | // PyObject* m_data; | |
153 | }; | |
154 | ||
155 | IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate); | |
156 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow); | |
157 | IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow); | |
158 | ||
159 | IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator); | |
70551f47 | 160 | |
2d091820 RD |
161 | #ifdef __cplusplus |
162 | extern "C" { | |
163 | #endif | |
37f6a977 RD |
164 | static PyObject *_wrap_wxValidator_IsSilent(PyObject *self, PyObject *args, PyObject *kwargs) { |
165 | PyObject * _resultobj; | |
166 | bool _result; | |
167 | char *_kwnames[] = { NULL }; | |
168 | ||
169 | self = self; | |
170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxValidator_IsSilent",_kwnames)) | |
171 | return NULL; | |
172 | { | |
173 | wxPy_BEGIN_ALLOW_THREADS; | |
174 | _result = (bool )wxValidator_IsSilent(); | |
175 | ||
176 | wxPy_END_ALLOW_THREADS; | |
177 | } _resultobj = Py_BuildValue("i",_result); | |
178 | return _resultobj; | |
179 | } | |
180 | ||
181 | static PyObject *_wrap_wxValidator_SetBellOnError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
182 | PyObject * _resultobj; | |
183 | int _arg0 = (int ) TRUE; | |
184 | char *_kwnames[] = { "doIt", NULL }; | |
185 | ||
186 | self = self; | |
187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxValidator_SetBellOnError",_kwnames,&_arg0)) | |
188 | return NULL; | |
189 | { | |
190 | wxPy_BEGIN_ALLOW_THREADS; | |
191 | wxValidator_SetBellOnError(_arg0); | |
192 | ||
193 | wxPy_END_ALLOW_THREADS; | |
194 | } Py_INCREF(Py_None); | |
195 | _resultobj = Py_None; | |
196 | return _resultobj; | |
197 | } | |
198 | ||
ab9bc19b | 199 | #define wxEvtHandler_ProcessEvent(_swigobj,_swigarg0) (_swigobj->ProcessEvent(_swigarg0)) |
107e4716 | 200 | static PyObject *_wrap_wxEvtHandler_ProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
201 | PyObject * _resultobj; |
202 | bool _result; | |
203 | wxEvtHandler * _arg0; | |
204 | wxEvent * _arg1; | |
2d091820 RD |
205 | PyObject * _argo0 = 0; |
206 | PyObject * _argo1 = 0; | |
107e4716 | 207 | char *_kwnames[] = { "self","event", NULL }; |
ab9bc19b RD |
208 | |
209 | self = self; | |
107e4716 | 210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_ProcessEvent",_kwnames,&_argo0,&_argo1)) |
ab9bc19b | 211 | return NULL; |
2d091820 RD |
212 | if (_argo0) { |
213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
ab9bc19b RD |
215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_ProcessEvent. Expected _wxEvtHandler_p."); |
216 | return NULL; | |
217 | } | |
218 | } | |
2d091820 RD |
219 | if (_argo1) { |
220 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
221 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
ab9bc19b RD |
222 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_ProcessEvent. Expected _wxEvent_p."); |
223 | return NULL; | |
224 | } | |
225 | } | |
226 | { | |
227 | wxPy_BEGIN_ALLOW_THREADS; | |
228 | _result = (bool )wxEvtHandler_ProcessEvent(_arg0,*_arg1); | |
229 | ||
230 | wxPy_END_ALLOW_THREADS; | |
231 | } _resultobj = Py_BuildValue("i",_result); | |
232 | return _resultobj; | |
233 | } | |
234 | ||
37f6a977 RD |
235 | #define wxEvtHandler_GetEvtHandlerEnabled(_swigobj) (_swigobj->GetEvtHandlerEnabled()) |
236 | static PyObject *_wrap_wxEvtHandler_GetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
237 | PyObject * _resultobj; | |
238 | bool _result; | |
239 | wxEvtHandler * _arg0; | |
240 | PyObject * _argo0 = 0; | |
241 | char *_kwnames[] = { "self", NULL }; | |
242 | ||
243 | self = self; | |
244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetEvtHandlerEnabled",_kwnames,&_argo0)) | |
245 | return NULL; | |
246 | if (_argo0) { | |
247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
250 | return NULL; | |
251 | } | |
252 | } | |
253 | { | |
254 | wxPy_BEGIN_ALLOW_THREADS; | |
255 | _result = (bool )wxEvtHandler_GetEvtHandlerEnabled(_arg0); | |
256 | ||
257 | wxPy_END_ALLOW_THREADS; | |
258 | } _resultobj = Py_BuildValue("i",_result); | |
259 | return _resultobj; | |
260 | } | |
261 | ||
262 | #define wxEvtHandler_SetEvtHandlerEnabled(_swigobj,_swigarg0) (_swigobj->SetEvtHandlerEnabled(_swigarg0)) | |
263 | static PyObject *_wrap_wxEvtHandler_SetEvtHandlerEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
264 | PyObject * _resultobj; | |
265 | wxEvtHandler * _arg0; | |
266 | bool _arg1; | |
267 | PyObject * _argo0 = 0; | |
268 | int tempbool1; | |
269 | char *_kwnames[] = { "self","enabled", NULL }; | |
270 | ||
271 | self = self; | |
272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxEvtHandler_SetEvtHandlerEnabled",_kwnames,&_argo0,&tempbool1)) | |
273 | return NULL; | |
274 | if (_argo0) { | |
275 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
276 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
277 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetEvtHandlerEnabled. Expected _wxEvtHandler_p."); | |
278 | return NULL; | |
279 | } | |
280 | } | |
281 | _arg1 = (bool ) tempbool1; | |
282 | { | |
283 | wxPy_BEGIN_ALLOW_THREADS; | |
284 | wxEvtHandler_SetEvtHandlerEnabled(_arg0,_arg1); | |
285 | ||
286 | wxPy_END_ALLOW_THREADS; | |
287 | } Py_INCREF(Py_None); | |
288 | _resultobj = Py_None; | |
289 | return _resultobj; | |
290 | } | |
291 | ||
292 | #define wxEvtHandler_GetNextHandler(_swigobj) (_swigobj->GetNextHandler()) | |
293 | static PyObject *_wrap_wxEvtHandler_GetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
294 | PyObject * _resultobj; | |
295 | wxEvtHandler * _result; | |
296 | wxEvtHandler * _arg0; | |
297 | PyObject * _argo0 = 0; | |
298 | char *_kwnames[] = { "self", NULL }; | |
299 | char _ptemp[128]; | |
300 | ||
301 | self = self; | |
302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetNextHandler",_kwnames,&_argo0)) | |
303 | return NULL; | |
304 | if (_argo0) { | |
305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetNextHandler. Expected _wxEvtHandler_p."); | |
308 | return NULL; | |
309 | } | |
310 | } | |
311 | { | |
312 | wxPy_BEGIN_ALLOW_THREADS; | |
313 | _result = (wxEvtHandler *)wxEvtHandler_GetNextHandler(_arg0); | |
314 | ||
315 | wxPy_END_ALLOW_THREADS; | |
316 | } if (_result) { | |
317 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
318 | _resultobj = Py_BuildValue("s",_ptemp); | |
319 | } else { | |
320 | Py_INCREF(Py_None); | |
321 | _resultobj = Py_None; | |
322 | } | |
323 | return _resultobj; | |
324 | } | |
325 | ||
326 | #define wxEvtHandler_GetPreviousHandler(_swigobj) (_swigobj->GetPreviousHandler()) | |
327 | static PyObject *_wrap_wxEvtHandler_GetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
328 | PyObject * _resultobj; | |
329 | wxEvtHandler * _result; | |
330 | wxEvtHandler * _arg0; | |
331 | PyObject * _argo0 = 0; | |
332 | char *_kwnames[] = { "self", NULL }; | |
333 | char _ptemp[128]; | |
334 | ||
335 | self = self; | |
336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEvtHandler_GetPreviousHandler",_kwnames,&_argo0)) | |
337 | return NULL; | |
338 | if (_argo0) { | |
339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_GetPreviousHandler. Expected _wxEvtHandler_p."); | |
342 | return NULL; | |
343 | } | |
344 | } | |
345 | { | |
346 | wxPy_BEGIN_ALLOW_THREADS; | |
347 | _result = (wxEvtHandler *)wxEvtHandler_GetPreviousHandler(_arg0); | |
348 | ||
349 | wxPy_END_ALLOW_THREADS; | |
350 | } if (_result) { | |
351 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
352 | _resultobj = Py_BuildValue("s",_ptemp); | |
353 | } else { | |
354 | Py_INCREF(Py_None); | |
355 | _resultobj = Py_None; | |
356 | } | |
357 | return _resultobj; | |
358 | } | |
359 | ||
360 | #define wxEvtHandler_SetNextHandler(_swigobj,_swigarg0) (_swigobj->SetNextHandler(_swigarg0)) | |
361 | static PyObject *_wrap_wxEvtHandler_SetNextHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
362 | PyObject * _resultobj; | |
363 | wxEvtHandler * _arg0; | |
364 | wxEvtHandler * _arg1; | |
365 | PyObject * _argo0 = 0; | |
366 | PyObject * _argo1 = 0; | |
367 | char *_kwnames[] = { "self","handler", NULL }; | |
368 | ||
369 | self = self; | |
370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetNextHandler",_kwnames,&_argo0,&_argo1)) | |
371 | return NULL; | |
372 | if (_argo0) { | |
373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
376 | return NULL; | |
377 | } | |
378 | } | |
379 | if (_argo1) { | |
380 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
381 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
382 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetNextHandler. Expected _wxEvtHandler_p."); | |
383 | return NULL; | |
384 | } | |
385 | } | |
386 | { | |
387 | wxPy_BEGIN_ALLOW_THREADS; | |
388 | wxEvtHandler_SetNextHandler(_arg0,_arg1); | |
389 | ||
390 | wxPy_END_ALLOW_THREADS; | |
391 | } Py_INCREF(Py_None); | |
392 | _resultobj = Py_None; | |
393 | return _resultobj; | |
394 | } | |
395 | ||
396 | #define wxEvtHandler_SetPreviousHandler(_swigobj,_swigarg0) (_swigobj->SetPreviousHandler(_swigarg0)) | |
397 | static PyObject *_wrap_wxEvtHandler_SetPreviousHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
398 | PyObject * _resultobj; | |
399 | wxEvtHandler * _arg0; | |
400 | wxEvtHandler * _arg1; | |
401 | PyObject * _argo0 = 0; | |
402 | PyObject * _argo1 = 0; | |
403 | char *_kwnames[] = { "self","handler", NULL }; | |
404 | ||
405 | self = self; | |
406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEvtHandler_SetPreviousHandler",_kwnames,&_argo0,&_argo1)) | |
407 | return NULL; | |
408 | if (_argo0) { | |
409 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
410 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
411 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
412 | return NULL; | |
413 | } | |
414 | } | |
415 | if (_argo1) { | |
416 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
417 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
418 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEvtHandler_SetPreviousHandler. Expected _wxEvtHandler_p."); | |
419 | return NULL; | |
420 | } | |
421 | } | |
422 | { | |
423 | wxPy_BEGIN_ALLOW_THREADS; | |
424 | wxEvtHandler_SetPreviousHandler(_arg0,_arg1); | |
425 | ||
426 | wxPy_END_ALLOW_THREADS; | |
427 | } Py_INCREF(Py_None); | |
428 | _resultobj = Py_None; | |
429 | return _resultobj; | |
430 | } | |
431 | ||
70551f47 RD |
432 | static void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject * func) { |
433 | if (PyCallable_Check(func)) { | |
434 | self->Connect(id, lastId, eventType, | |
435 | (wxObjectEventFunction) &wxPyCallback::EventThunker, | |
436 | new wxPyCallback(func)); | |
437 | } | |
438 | } | |
107e4716 | 439 | static PyObject *_wrap_wxEvtHandler_Connect(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
440 | PyObject * _resultobj; |
441 | wxEvtHandler * _arg0; | |
442 | int _arg1; | |
443 | int _arg2; | |
444 | int _arg3; | |
445 | PyObject * _arg4; | |
2d091820 | 446 | PyObject * _argo0 = 0; |
70551f47 | 447 | PyObject * _obj4 = 0; |
107e4716 | 448 | char *_kwnames[] = { "self","id","lastId","eventType","func", NULL }; |
70551f47 RD |
449 | |
450 | self = self; | |
107e4716 | 451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiiiO:wxEvtHandler_Connect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_obj4)) |
70551f47 | 452 | return NULL; |
2d091820 RD |
453 | if (_argo0) { |
454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
70551f47 RD |
456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEvtHandler_Connect. Expected _wxEvtHandler_p."); |
457 | return NULL; | |
458 | } | |
459 | } | |
460 | { | |
461 | _arg4 = _obj4; | |
462 | } | |
ab9bc19b RD |
463 | { |
464 | wxPy_BEGIN_ALLOW_THREADS; | |
465 | wxEvtHandler_Connect(_arg0,_arg1,_arg2,_arg3,_arg4); | |
466 | ||
467 | wxPy_END_ALLOW_THREADS; | |
468 | } Py_INCREF(Py_None); | |
70551f47 RD |
469 | _resultobj = Py_None; |
470 | return _resultobj; | |
471 | } | |
472 | ||
37f6a977 RD |
473 | static void *SwigwxValidatorTowxEvtHandler(void *ptr) { |
474 | wxValidator *src; | |
475 | wxEvtHandler *dest; | |
476 | src = (wxValidator *) ptr; | |
477 | dest = (wxEvtHandler *) src; | |
478 | return (void *) dest; | |
479 | } | |
480 | ||
481 | #define new_wxValidator() (new wxValidator()) | |
482 | static PyObject *_wrap_new_wxValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
483 | PyObject * _resultobj; | |
484 | wxValidator * _result; | |
485 | char *_kwnames[] = { NULL }; | |
486 | char _ptemp[128]; | |
487 | ||
488 | self = self; | |
489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxValidator",_kwnames)) | |
490 | return NULL; | |
491 | { | |
492 | wxPy_BEGIN_ALLOW_THREADS; | |
493 | _result = (wxValidator *)new_wxValidator(); | |
494 | ||
495 | wxPy_END_ALLOW_THREADS; | |
496 | } if (_result) { | |
497 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
498 | _resultobj = Py_BuildValue("s",_ptemp); | |
499 | } else { | |
500 | Py_INCREF(Py_None); | |
501 | _resultobj = Py_None; | |
502 | } | |
503 | return _resultobj; | |
504 | } | |
505 | ||
506 | #define wxValidator_Clone(_swigobj) (_swigobj->Clone()) | |
507 | static PyObject *_wrap_wxValidator_Clone(PyObject *self, PyObject *args, PyObject *kwargs) { | |
508 | PyObject * _resultobj; | |
509 | wxValidator * _result; | |
510 | wxValidator * _arg0; | |
511 | PyObject * _argo0 = 0; | |
512 | char *_kwnames[] = { "self", NULL }; | |
513 | char _ptemp[128]; | |
514 | ||
515 | self = self; | |
516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_Clone",_kwnames,&_argo0)) | |
517 | return NULL; | |
518 | if (_argo0) { | |
519 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
520 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
521 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_Clone. Expected _wxValidator_p."); | |
522 | return NULL; | |
523 | } | |
524 | } | |
525 | { | |
526 | wxPy_BEGIN_ALLOW_THREADS; | |
527 | _result = (wxValidator *)wxValidator_Clone(_arg0); | |
528 | ||
529 | wxPy_END_ALLOW_THREADS; | |
530 | } if (_result) { | |
531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
532 | _resultobj = Py_BuildValue("s",_ptemp); | |
533 | } else { | |
534 | Py_INCREF(Py_None); | |
535 | _resultobj = Py_None; | |
536 | } | |
537 | return _resultobj; | |
538 | } | |
539 | ||
540 | #define wxValidator_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
541 | static PyObject *_wrap_wxValidator_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
542 | PyObject * _resultobj; | |
543 | wxWindow * _result; | |
544 | wxValidator * _arg0; | |
545 | PyObject * _argo0 = 0; | |
546 | char *_kwnames[] = { "self", NULL }; | |
547 | char _ptemp[128]; | |
548 | ||
549 | self = self; | |
550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxValidator_GetWindow",_kwnames,&_argo0)) | |
551 | return NULL; | |
552 | if (_argo0) { | |
553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_GetWindow. Expected _wxValidator_p."); | |
556 | return NULL; | |
557 | } | |
558 | } | |
559 | { | |
560 | wxPy_BEGIN_ALLOW_THREADS; | |
561 | _result = (wxWindow *)wxValidator_GetWindow(_arg0); | |
562 | ||
563 | wxPy_END_ALLOW_THREADS; | |
564 | } if (_result) { | |
565 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
566 | _resultobj = Py_BuildValue("s",_ptemp); | |
567 | } else { | |
568 | Py_INCREF(Py_None); | |
569 | _resultobj = Py_None; | |
570 | } | |
571 | return _resultobj; | |
572 | } | |
573 | ||
574 | #define wxValidator_SetWindow(_swigobj,_swigarg0) (_swigobj->SetWindow(_swigarg0)) | |
575 | static PyObject *_wrap_wxValidator_SetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
576 | PyObject * _resultobj; | |
577 | wxValidator * _arg0; | |
578 | wxWindow * _arg1; | |
579 | PyObject * _argo0 = 0; | |
580 | PyObject * _argo1 = 0; | |
581 | char *_kwnames[] = { "self","window", NULL }; | |
582 | ||
583 | self = self; | |
584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxValidator_SetWindow",_kwnames,&_argo0,&_argo1)) | |
585 | return NULL; | |
586 | if (_argo0) { | |
587 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
588 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxValidator_p")) { | |
589 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxValidator_SetWindow. Expected _wxValidator_p."); | |
590 | return NULL; | |
591 | } | |
592 | } | |
593 | if (_argo1) { | |
594 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
595 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxValidator_SetWindow. Expected _wxWindow_p."); | |
597 | return NULL; | |
598 | } | |
599 | } | |
600 | { | |
601 | wxPy_BEGIN_ALLOW_THREADS; | |
602 | wxValidator_SetWindow(_arg0,_arg1); | |
603 | ||
604 | wxPy_END_ALLOW_THREADS; | |
605 | } Py_INCREF(Py_None); | |
606 | _resultobj = Py_None; | |
607 | return _resultobj; | |
608 | } | |
609 | ||
610 | static void *SwigwxPyValidatorTowxValidator(void *ptr) { | |
611 | wxPyValidator *src; | |
612 | wxValidator *dest; | |
613 | src = (wxPyValidator *) ptr; | |
614 | dest = (wxValidator *) src; | |
615 | return (void *) dest; | |
616 | } | |
617 | ||
618 | static void *SwigwxPyValidatorTowxEvtHandler(void *ptr) { | |
619 | wxPyValidator *src; | |
620 | wxEvtHandler *dest; | |
621 | src = (wxPyValidator *) ptr; | |
622 | dest = (wxEvtHandler *) src; | |
623 | return (void *) dest; | |
624 | } | |
625 | ||
626 | #define new_wxPyValidator() (new wxPyValidator()) | |
627 | static PyObject *_wrap_new_wxPyValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
628 | PyObject * _resultobj; | |
629 | wxPyValidator * _result; | |
630 | char *_kwnames[] = { NULL }; | |
631 | char _ptemp[128]; | |
632 | ||
633 | self = self; | |
634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyValidator",_kwnames)) | |
635 | return NULL; | |
636 | { | |
637 | wxPy_BEGIN_ALLOW_THREADS; | |
638 | _result = (wxPyValidator *)new_wxPyValidator(); | |
639 | ||
640 | wxPy_END_ALLOW_THREADS; | |
641 | } if (_result) { | |
642 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyValidator_p"); | |
643 | _resultobj = Py_BuildValue("s",_ptemp); | |
644 | } else { | |
645 | Py_INCREF(Py_None); | |
646 | _resultobj = Py_None; | |
647 | } | |
648 | return _resultobj; | |
649 | } | |
650 | ||
651 | static void wxPyValidator_Destroy(wxPyValidator *self) { delete self; } | |
652 | static PyObject *_wrap_wxPyValidator_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
653 | PyObject * _resultobj; | |
654 | wxPyValidator * _arg0; | |
655 | PyObject * _argo0 = 0; | |
656 | char *_kwnames[] = { "self", NULL }; | |
657 | ||
658 | self = self; | |
659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyValidator_Destroy",_kwnames,&_argo0)) | |
660 | return NULL; | |
661 | if (_argo0) { | |
662 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
663 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
664 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator_Destroy. Expected _wxPyValidator_p."); | |
665 | return NULL; | |
666 | } | |
667 | } | |
668 | { | |
669 | wxPy_BEGIN_ALLOW_THREADS; | |
670 | wxPyValidator_Destroy(_arg0); | |
671 | ||
672 | wxPy_END_ALLOW_THREADS; | |
673 | } Py_INCREF(Py_None); | |
674 | _resultobj = Py_None; | |
675 | return _resultobj; | |
676 | } | |
677 | ||
678 | #define wxPyValidator__setSelf(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setSelf(_swigarg0,_swigarg1)) | |
679 | static PyObject *_wrap_wxPyValidator__setSelf(PyObject *self, PyObject *args, PyObject *kwargs) { | |
680 | PyObject * _resultobj; | |
681 | wxPyValidator * _arg0; | |
682 | PyObject * _arg1; | |
683 | int _arg2 = (int ) TRUE; | |
684 | PyObject * _argo0 = 0; | |
685 | PyObject * _obj1 = 0; | |
686 | char *_kwnames[] = { "self","self","incref", NULL }; | |
687 | ||
688 | self = self; | |
689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyValidator__setSelf",_kwnames,&_argo0,&_obj1,&_arg2)) | |
690 | return NULL; | |
691 | if (_argo0) { | |
692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyValidator_p")) { | |
694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyValidator__setSelf. Expected _wxPyValidator_p."); | |
695 | return NULL; | |
696 | } | |
697 | } | |
698 | { | |
699 | _arg1 = _obj1; | |
700 | } | |
701 | { | |
702 | wxPy_BEGIN_ALLOW_THREADS; | |
703 | wxPyValidator__setSelf(_arg0,_arg1,_arg2); | |
704 | ||
705 | wxPy_END_ALLOW_THREADS; | |
706 | } Py_INCREF(Py_None); | |
707 | _resultobj = Py_None; | |
708 | return _resultobj; | |
709 | } | |
710 | ||
70551f47 RD |
711 | static void *SwigwxWindowTowxEvtHandler(void *ptr) { |
712 | wxWindow *src; | |
713 | wxEvtHandler *dest; | |
714 | src = (wxWindow *) ptr; | |
715 | dest = (wxEvtHandler *) src; | |
716 | return (void *) dest; | |
717 | } | |
718 | ||
719 | #define new_wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 720 | static PyObject *_wrap_new_wxWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
721 | PyObject * _resultobj; |
722 | wxWindow * _result; | |
723 | wxWindow * _arg0; | |
724 | wxWindowID _arg1; | |
2d091820 RD |
725 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
726 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
727 | long _arg4 = (long ) 0; | |
728 | char * _arg5 = (char *) "panel"; | |
729 | PyObject * _argo0 = 0; | |
37f6a977 RD |
730 | wxPoint temp; |
731 | PyObject * _obj2 = 0; | |
732 | wxSize temp0; | |
733 | PyObject * _obj3 = 0; | |
107e4716 | 734 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
70551f47 RD |
735 | char _ptemp[128]; |
736 | ||
737 | self = self; | |
37f6a977 | 738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
70551f47 | 739 | return NULL; |
2d091820 RD |
740 | if (_argo0) { |
741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindow. Expected _wxWindow_p."); |
744 | return NULL; | |
745 | } | |
746 | } | |
37f6a977 RD |
747 | if (_obj2) |
748 | { | |
749 | _arg2 = &temp; | |
750 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 751 | return NULL; |
37f6a977 RD |
752 | } |
753 | if (_obj3) | |
754 | { | |
755 | _arg3 = &temp0; | |
756 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 757 | return NULL; |
37f6a977 | 758 | } |
ab9bc19b RD |
759 | { |
760 | wxPy_BEGIN_ALLOW_THREADS; | |
761 | _result = (wxWindow *)new_wxWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
762 | ||
763 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
764 | } if (_result) { |
765 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
766 | _resultobj = Py_BuildValue("s",_ptemp); | |
767 | } else { | |
768 | Py_INCREF(Py_None); | |
769 | _resultobj = Py_None; | |
770 | } | |
70551f47 RD |
771 | return _resultobj; |
772 | } | |
773 | ||
774 | #define wxWindow_CaptureMouse(_swigobj) (_swigobj->CaptureMouse()) | |
107e4716 | 775 | static PyObject *_wrap_wxWindow_CaptureMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
776 | PyObject * _resultobj; |
777 | wxWindow * _arg0; | |
2d091820 | 778 | PyObject * _argo0 = 0; |
107e4716 | 779 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
780 | |
781 | self = self; | |
107e4716 | 782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_CaptureMouse",_kwnames,&_argo0)) |
70551f47 | 783 | return NULL; |
2d091820 RD |
784 | if (_argo0) { |
785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CaptureMouse. Expected _wxWindow_p."); |
788 | return NULL; | |
789 | } | |
790 | } | |
ab9bc19b RD |
791 | { |
792 | wxPy_BEGIN_ALLOW_THREADS; | |
793 | wxWindow_CaptureMouse(_arg0); | |
794 | ||
795 | wxPy_END_ALLOW_THREADS; | |
796 | } Py_INCREF(Py_None); | |
70551f47 RD |
797 | _resultobj = Py_None; |
798 | return _resultobj; | |
799 | } | |
800 | ||
801 | #define wxWindow_Center(_swigobj,_swigarg0) (_swigobj->Center(_swigarg0)) | |
107e4716 | 802 | static PyObject *_wrap_wxWindow_Center(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
803 | PyObject * _resultobj; |
804 | wxWindow * _arg0; | |
2d091820 RD |
805 | int _arg1 = (int ) wxBOTH; |
806 | PyObject * _argo0 = 0; | |
107e4716 | 807 | char *_kwnames[] = { "self","direction", NULL }; |
70551f47 RD |
808 | |
809 | self = self; | |
107e4716 | 810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Center",_kwnames,&_argo0,&_arg1)) |
70551f47 | 811 | return NULL; |
2d091820 RD |
812 | if (_argo0) { |
813 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
814 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
815 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Center. Expected _wxWindow_p."); |
816 | return NULL; | |
817 | } | |
818 | } | |
ab9bc19b RD |
819 | { |
820 | wxPy_BEGIN_ALLOW_THREADS; | |
821 | wxWindow_Center(_arg0,_arg1); | |
822 | ||
823 | wxPy_END_ALLOW_THREADS; | |
824 | } Py_INCREF(Py_None); | |
70551f47 RD |
825 | _resultobj = Py_None; |
826 | return _resultobj; | |
827 | } | |
828 | ||
829 | #define wxWindow_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
107e4716 | 830 | static PyObject *_wrap_wxWindow_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
831 | PyObject * _resultobj; |
832 | wxWindow * _arg0; | |
2d091820 RD |
833 | int _arg1 = (int ) wxBOTH; |
834 | PyObject * _argo0 = 0; | |
107e4716 | 835 | char *_kwnames[] = { "self","direction", NULL }; |
70551f47 RD |
836 | |
837 | self = self; | |
107e4716 | 838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Centre",_kwnames,&_argo0,&_arg1)) |
70551f47 | 839 | return NULL; |
2d091820 RD |
840 | if (_argo0) { |
841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Centre. Expected _wxWindow_p."); |
844 | return NULL; | |
845 | } | |
846 | } | |
ab9bc19b RD |
847 | { |
848 | wxPy_BEGIN_ALLOW_THREADS; | |
849 | wxWindow_Centre(_arg0,_arg1); | |
850 | ||
851 | wxPy_END_ALLOW_THREADS; | |
852 | } Py_INCREF(Py_None); | |
70551f47 RD |
853 | _resultobj = Py_None; |
854 | return _resultobj; | |
855 | } | |
856 | ||
d24a34bb | 857 | #define wxWindow_CentreOnParent(_swigobj,_swigarg0) (_swigobj->CentreOnParent(_swigarg0)) |
107e4716 | 858 | static PyObject *_wrap_wxWindow_CentreOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
859 | PyObject * _resultobj; |
860 | wxWindow * _arg0; | |
2d091820 RD |
861 | int _arg1 = (int ) wxBOTH; |
862 | PyObject * _argo0 = 0; | |
107e4716 | 863 | char *_kwnames[] = { "self","direction", NULL }; |
d24a34bb RD |
864 | |
865 | self = self; | |
107e4716 | 866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CentreOnParent",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 867 | return NULL; |
2d091820 RD |
868 | if (_argo0) { |
869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CentreOnParent. Expected _wxWindow_p."); |
872 | return NULL; | |
873 | } | |
874 | } | |
875 | { | |
876 | wxPy_BEGIN_ALLOW_THREADS; | |
877 | wxWindow_CentreOnParent(_arg0,_arg1); | |
878 | ||
879 | wxPy_END_ALLOW_THREADS; | |
880 | } Py_INCREF(Py_None); | |
881 | _resultobj = Py_None; | |
882 | return _resultobj; | |
883 | } | |
884 | ||
885 | #define wxWindow_CenterOnParent(_swigobj,_swigarg0) (_swigobj->CenterOnParent(_swigarg0)) | |
107e4716 | 886 | static PyObject *_wrap_wxWindow_CenterOnParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
887 | PyObject * _resultobj; |
888 | wxWindow * _arg0; | |
2d091820 RD |
889 | int _arg1 = (int ) wxBOTH; |
890 | PyObject * _argo0 = 0; | |
107e4716 | 891 | char *_kwnames[] = { "self","direction", NULL }; |
d24a34bb RD |
892 | |
893 | self = self; | |
107e4716 | 894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_CenterOnParent",_kwnames,&_argo0,&_arg1)) |
d24a34bb | 895 | return NULL; |
2d091820 RD |
896 | if (_argo0) { |
897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_CenterOnParent. Expected _wxWindow_p."); |
900 | return NULL; | |
901 | } | |
902 | } | |
903 | { | |
904 | wxPy_BEGIN_ALLOW_THREADS; | |
905 | wxWindow_CenterOnParent(_arg0,_arg1); | |
906 | ||
907 | wxPy_END_ALLOW_THREADS; | |
908 | } Py_INCREF(Py_None); | |
909 | _resultobj = Py_None; | |
910 | return _resultobj; | |
911 | } | |
912 | ||
21f8d7ea | 913 | #define wxWindow_ClientToScreenXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ClientToScreen(_swigarg0,_swigarg1)) |
107e4716 | 914 | static PyObject *_wrap_wxWindow_ClientToScreenXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
915 | PyObject * _resultobj; |
916 | wxWindow * _arg0; | |
917 | int * _arg1; | |
918 | int * _arg2; | |
2d091820 | 919 | PyObject * _argo0 = 0; |
70551f47 RD |
920 | int temp; |
921 | PyObject * _obj1 = 0; | |
922 | int temp0; | |
923 | PyObject * _obj2 = 0; | |
107e4716 | 924 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
925 | |
926 | self = self; | |
107e4716 | 927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ClientToScreenXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
70551f47 | 928 | return NULL; |
2d091820 RD |
929 | if (_argo0) { |
930 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
931 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea | 932 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreenXY. Expected _wxWindow_p."); |
70551f47 RD |
933 | return NULL; |
934 | } | |
935 | } | |
936 | { | |
937 | temp = (int) PyInt_AsLong(_obj1); | |
938 | _arg1 = &temp; | |
939 | } | |
940 | { | |
941 | temp0 = (int) PyInt_AsLong(_obj2); | |
942 | _arg2 = &temp0; | |
943 | } | |
ab9bc19b RD |
944 | { |
945 | wxPy_BEGIN_ALLOW_THREADS; | |
946 | wxWindow_ClientToScreenXY(_arg0,_arg1,_arg2); | |
947 | ||
948 | wxPy_END_ALLOW_THREADS; | |
949 | } Py_INCREF(Py_None); | |
70551f47 RD |
950 | _resultobj = Py_None; |
951 | { | |
952 | PyObject *o; | |
953 | o = PyInt_FromLong((long) (*_arg1)); | |
954 | _resultobj = t_output_helper(_resultobj, o); | |
955 | } | |
956 | { | |
957 | PyObject *o; | |
958 | o = PyInt_FromLong((long) (*_arg2)); | |
959 | _resultobj = t_output_helper(_resultobj, o); | |
960 | } | |
961 | return _resultobj; | |
962 | } | |
963 | ||
d24a34bb | 964 | #define wxWindow_ClientToScreen(_swigobj,_swigarg0) (_swigobj->ClientToScreen(_swigarg0)) |
107e4716 | 965 | static PyObject *_wrap_wxWindow_ClientToScreen(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
966 | PyObject * _resultobj; |
967 | wxPoint * _result; | |
968 | wxWindow * _arg0; | |
969 | wxPoint * _arg1; | |
2d091820 | 970 | PyObject * _argo0 = 0; |
37f6a977 RD |
971 | wxPoint temp; |
972 | PyObject * _obj1 = 0; | |
107e4716 | 973 | char *_kwnames[] = { "self","pt", NULL }; |
d24a34bb RD |
974 | char _ptemp[128]; |
975 | ||
976 | self = self; | |
37f6a977 | 977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ClientToScreen",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 978 | return NULL; |
2d091820 RD |
979 | if (_argo0) { |
980 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
981 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
982 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ClientToScreen. Expected _wxWindow_p."); |
983 | return NULL; | |
984 | } | |
985 | } | |
37f6a977 RD |
986 | { |
987 | _arg1 = &temp; | |
988 | if (! wxPoint_helper(_obj1, &_arg1)) | |
d24a34bb | 989 | return NULL; |
37f6a977 | 990 | } |
d24a34bb RD |
991 | { |
992 | wxPy_BEGIN_ALLOW_THREADS; | |
993 | _result = new wxPoint (wxWindow_ClientToScreen(_arg0,*_arg1)); | |
994 | ||
995 | wxPy_END_ALLOW_THREADS; | |
996 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
997 | _resultobj = Py_BuildValue("s",_ptemp); | |
998 | return _resultobj; | |
999 | } | |
1000 | ||
70551f47 | 1001 | #define wxWindow_Close(_swigobj,_swigarg0) (_swigobj->Close(_swigarg0)) |
107e4716 | 1002 | static PyObject *_wrap_wxWindow_Close(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1003 | PyObject * _resultobj; |
1004 | bool _result; | |
1005 | wxWindow * _arg0; | |
2d091820 RD |
1006 | int _arg1 = (int ) FALSE; |
1007 | PyObject * _argo0 = 0; | |
107e4716 | 1008 | char *_kwnames[] = { "self","force", NULL }; |
70551f47 RD |
1009 | |
1010 | self = self; | |
107e4716 | 1011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_Close",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1012 | return NULL; |
2d091820 RD |
1013 | if (_argo0) { |
1014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Close. Expected _wxWindow_p."); |
1017 | return NULL; | |
1018 | } | |
1019 | } | |
ab9bc19b RD |
1020 | { |
1021 | wxPy_BEGIN_ALLOW_THREADS; | |
1022 | _result = (bool )wxWindow_Close(_arg0,_arg1); | |
1023 | ||
1024 | wxPy_END_ALLOW_THREADS; | |
1025 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1026 | return _resultobj; |
1027 | } | |
1028 | ||
1029 | #define wxWindow_Destroy(_swigobj) (_swigobj->Destroy()) | |
107e4716 | 1030 | static PyObject *_wrap_wxWindow_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1031 | PyObject * _resultobj; |
1032 | bool _result; | |
1033 | wxWindow * _arg0; | |
2d091820 | 1034 | PyObject * _argo0 = 0; |
107e4716 | 1035 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1036 | |
1037 | self = self; | |
107e4716 | 1038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Destroy",_kwnames,&_argo0)) |
70551f47 | 1039 | return NULL; |
2d091820 RD |
1040 | if (_argo0) { |
1041 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1042 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1043 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Destroy. Expected _wxWindow_p."); |
1044 | return NULL; | |
1045 | } | |
1046 | } | |
ab9bc19b RD |
1047 | { |
1048 | wxPy_BEGIN_ALLOW_THREADS; | |
1049 | _result = (bool )wxWindow_Destroy(_arg0); | |
1050 | ||
1051 | wxPy_END_ALLOW_THREADS; | |
1052 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1053 | return _resultobj; |
1054 | } | |
1055 | ||
1056 | #define wxWindow_DestroyChildren(_swigobj) (_swigobj->DestroyChildren()) | |
107e4716 | 1057 | static PyObject *_wrap_wxWindow_DestroyChildren(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1058 | PyObject * _resultobj; |
1059 | wxWindow * _arg0; | |
2d091820 | 1060 | PyObject * _argo0 = 0; |
107e4716 | 1061 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1062 | |
1063 | self = self; | |
107e4716 | 1064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_DestroyChildren",_kwnames,&_argo0)) |
70551f47 | 1065 | return NULL; |
2d091820 RD |
1066 | if (_argo0) { |
1067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_DestroyChildren. Expected _wxWindow_p."); |
1070 | return NULL; | |
1071 | } | |
1072 | } | |
ab9bc19b RD |
1073 | { |
1074 | wxPy_BEGIN_ALLOW_THREADS; | |
1075 | wxWindow_DestroyChildren(_arg0); | |
1076 | ||
1077 | wxPy_END_ALLOW_THREADS; | |
1078 | } Py_INCREF(Py_None); | |
70551f47 RD |
1079 | _resultobj = Py_None; |
1080 | return _resultobj; | |
1081 | } | |
1082 | ||
1083 | #define wxWindow_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
107e4716 | 1084 | static PyObject *_wrap_wxWindow_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1085 | PyObject * _resultobj; |
1086 | wxWindow * _arg0; | |
1087 | bool _arg1; | |
2d091820 | 1088 | PyObject * _argo0 = 0; |
70551f47 | 1089 | int tempbool1; |
107e4716 | 1090 | char *_kwnames[] = { "self","enable", NULL }; |
70551f47 RD |
1091 | |
1092 | self = self; | |
107e4716 | 1093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Enable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 1094 | return NULL; |
2d091820 RD |
1095 | if (_argo0) { |
1096 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1097 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1098 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Enable. Expected _wxWindow_p."); |
1099 | return NULL; | |
1100 | } | |
1101 | } | |
1102 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
1103 | { |
1104 | wxPy_BEGIN_ALLOW_THREADS; | |
1105 | wxWindow_Enable(_arg0,_arg1); | |
1106 | ||
1107 | wxPy_END_ALLOW_THREADS; | |
1108 | } Py_INCREF(Py_None); | |
70551f47 RD |
1109 | _resultobj = Py_None; |
1110 | return _resultobj; | |
1111 | } | |
1112 | ||
21f8d7ea | 1113 | #define wxWindow_FindWindowById(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) |
107e4716 | 1114 | static PyObject *_wrap_wxWindow_FindWindowById(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1115 | PyObject * _resultobj; |
1116 | wxWindow * _result; | |
1117 | wxWindow * _arg0; | |
1118 | long _arg1; | |
2d091820 | 1119 | PyObject * _argo0 = 0; |
107e4716 | 1120 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
1121 | char _ptemp[128]; |
1122 | ||
1123 | self = self; | |
107e4716 | 1124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxWindow_FindWindowById",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1125 | return NULL; |
2d091820 RD |
1126 | if (_argo0) { |
1127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea | 1129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowById. Expected _wxWindow_p."); |
70551f47 RD |
1130 | return NULL; |
1131 | } | |
1132 | } | |
ab9bc19b RD |
1133 | { |
1134 | wxPy_BEGIN_ALLOW_THREADS; | |
1135 | _result = (wxWindow *)wxWindow_FindWindowById(_arg0,_arg1); | |
1136 | ||
1137 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1138 | } if (_result) { |
1139 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1140 | _resultobj = Py_BuildValue("s",_ptemp); | |
1141 | } else { | |
1142 | Py_INCREF(Py_None); | |
1143 | _resultobj = Py_None; | |
1144 | } | |
70551f47 RD |
1145 | return _resultobj; |
1146 | } | |
1147 | ||
1148 | #define wxWindow_FindWindowByName(_swigobj,_swigarg0) (_swigobj->FindWindow(_swigarg0)) | |
107e4716 | 1149 | static PyObject *_wrap_wxWindow_FindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1150 | PyObject * _resultobj; |
1151 | wxWindow * _result; | |
1152 | wxWindow * _arg0; | |
1153 | wxString * _arg1; | |
2d091820 | 1154 | PyObject * _argo0 = 0; |
70551f47 | 1155 | PyObject * _obj1 = 0; |
107e4716 | 1156 | char *_kwnames[] = { "self","name", NULL }; |
70551f47 RD |
1157 | char _ptemp[128]; |
1158 | ||
1159 | self = self; | |
107e4716 | 1160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_FindWindowByName",_kwnames,&_argo0,&_obj1)) |
70551f47 | 1161 | return NULL; |
2d091820 RD |
1162 | if (_argo0) { |
1163 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1164 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1165 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_FindWindowByName. Expected _wxWindow_p."); |
1166 | return NULL; | |
1167 | } | |
1168 | } | |
1169 | { | |
1170 | if (!PyString_Check(_obj1)) { | |
1171 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1172 | return NULL; | |
1173 | } | |
ab9bc19b | 1174 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 1175 | } |
ab9bc19b RD |
1176 | { |
1177 | wxPy_BEGIN_ALLOW_THREADS; | |
1178 | _result = (wxWindow *)wxWindow_FindWindowByName(_arg0,*_arg1); | |
1179 | ||
1180 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1181 | } if (_result) { |
1182 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1183 | _resultobj = Py_BuildValue("s",_ptemp); | |
1184 | } else { | |
1185 | Py_INCREF(Py_None); | |
1186 | _resultobj = Py_None; | |
1187 | } | |
70551f47 RD |
1188 | { |
1189 | if (_obj1) | |
1190 | delete _arg1; | |
1191 | } | |
1192 | return _resultobj; | |
1193 | } | |
1194 | ||
1195 | #define wxWindow_Fit(_swigobj) (_swigobj->Fit()) | |
107e4716 | 1196 | static PyObject *_wrap_wxWindow_Fit(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1197 | PyObject * _resultobj; |
1198 | wxWindow * _arg0; | |
2d091820 | 1199 | PyObject * _argo0 = 0; |
107e4716 | 1200 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1201 | |
1202 | self = self; | |
107e4716 | 1203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Fit",_kwnames,&_argo0)) |
70551f47 | 1204 | return NULL; |
2d091820 RD |
1205 | if (_argo0) { |
1206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Fit. Expected _wxWindow_p."); |
1209 | return NULL; | |
1210 | } | |
1211 | } | |
ab9bc19b RD |
1212 | { |
1213 | wxPy_BEGIN_ALLOW_THREADS; | |
1214 | wxWindow_Fit(_arg0); | |
1215 | ||
1216 | wxPy_END_ALLOW_THREADS; | |
1217 | } Py_INCREF(Py_None); | |
70551f47 RD |
1218 | _resultobj = Py_None; |
1219 | return _resultobj; | |
1220 | } | |
1221 | ||
1222 | #define wxWindow_GetBackgroundColour(_swigobj) (_swigobj->GetBackgroundColour()) | |
107e4716 | 1223 | static PyObject *_wrap_wxWindow_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1224 | PyObject * _resultobj; |
1225 | wxColour * _result; | |
1226 | wxWindow * _arg0; | |
2d091820 | 1227 | PyObject * _argo0 = 0; |
107e4716 | 1228 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1229 | char _ptemp[128]; |
1230 | ||
1231 | self = self; | |
107e4716 | 1232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetBackgroundColour",_kwnames,&_argo0)) |
70551f47 | 1233 | return NULL; |
2d091820 RD |
1234 | if (_argo0) { |
1235 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1236 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1237 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetBackgroundColour. Expected _wxWindow_p."); |
1238 | return NULL; | |
1239 | } | |
1240 | } | |
ab9bc19b RD |
1241 | { |
1242 | wxPy_BEGIN_ALLOW_THREADS; | |
1243 | _result = new wxColour (wxWindow_GetBackgroundColour(_arg0)); | |
1244 | ||
1245 | wxPy_END_ALLOW_THREADS; | |
1246 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
70551f47 RD |
1247 | _resultobj = Py_BuildValue("s",_ptemp); |
1248 | return _resultobj; | |
1249 | } | |
1250 | ||
9cce9de1 RD |
1251 | static PyObject * wxWindow_GetChildren(wxWindow *self) { |
1252 | wxWindowList& list = self->GetChildren(); | |
1253 | return wxPy_ConvertList(&list, "wxWindow"); | |
1254 | } | |
1255 | static PyObject *_wrap_wxWindow_GetChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1256 | PyObject * _resultobj; | |
1257 | PyObject * _result; | |
1258 | wxWindow * _arg0; | |
1259 | PyObject * _argo0 = 0; | |
1260 | char *_kwnames[] = { "self", NULL }; | |
1261 | ||
1262 | self = self; | |
1263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetChildren",_kwnames,&_argo0)) | |
1264 | return NULL; | |
1265 | if (_argo0) { | |
1266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetChildren. Expected _wxWindow_p."); | |
1269 | return NULL; | |
1270 | } | |
1271 | } | |
1272 | { | |
1273 | wxPy_BEGIN_ALLOW_THREADS; | |
1274 | _result = (PyObject *)wxWindow_GetChildren(_arg0); | |
1275 | ||
1276 | wxPy_END_ALLOW_THREADS; | |
1277 | }{ | |
1278 | _resultobj = _result; | |
1279 | } | |
1280 | return _resultobj; | |
1281 | } | |
1282 | ||
70551f47 | 1283 | #define wxWindow_GetCharHeight(_swigobj) (_swigobj->GetCharHeight()) |
107e4716 | 1284 | static PyObject *_wrap_wxWindow_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1285 | PyObject * _resultobj; |
1286 | int _result; | |
1287 | wxWindow * _arg0; | |
2d091820 | 1288 | PyObject * _argo0 = 0; |
107e4716 | 1289 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1290 | |
1291 | self = self; | |
107e4716 | 1292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharHeight",_kwnames,&_argo0)) |
70551f47 | 1293 | return NULL; |
2d091820 RD |
1294 | if (_argo0) { |
1295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharHeight. Expected _wxWindow_p."); |
1298 | return NULL; | |
1299 | } | |
1300 | } | |
ab9bc19b RD |
1301 | { |
1302 | wxPy_BEGIN_ALLOW_THREADS; | |
1303 | _result = (int )wxWindow_GetCharHeight(_arg0); | |
1304 | ||
1305 | wxPy_END_ALLOW_THREADS; | |
1306 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1307 | return _resultobj; |
1308 | } | |
1309 | ||
1310 | #define wxWindow_GetCharWidth(_swigobj) (_swigobj->GetCharWidth()) | |
107e4716 | 1311 | static PyObject *_wrap_wxWindow_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1312 | PyObject * _resultobj; |
1313 | int _result; | |
1314 | wxWindow * _arg0; | |
2d091820 | 1315 | PyObject * _argo0 = 0; |
107e4716 | 1316 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1317 | |
1318 | self = self; | |
107e4716 | 1319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetCharWidth",_kwnames,&_argo0)) |
70551f47 | 1320 | return NULL; |
2d091820 RD |
1321 | if (_argo0) { |
1322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetCharWidth. Expected _wxWindow_p."); |
1325 | return NULL; | |
1326 | } | |
1327 | } | |
ab9bc19b RD |
1328 | { |
1329 | wxPy_BEGIN_ALLOW_THREADS; | |
1330 | _result = (int )wxWindow_GetCharWidth(_arg0); | |
1331 | ||
1332 | wxPy_END_ALLOW_THREADS; | |
1333 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1334 | return _resultobj; |
1335 | } | |
1336 | ||
105e45b9 | 1337 | #define wxWindow_GetClientSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetClientSize(_swigarg0,_swigarg1)) |
107e4716 | 1338 | static PyObject *_wrap_wxWindow_GetClientSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1339 | PyObject * _resultobj; |
1340 | wxWindow * _arg0; | |
1341 | int * _arg1; | |
1342 | int temp; | |
1343 | int * _arg2; | |
1344 | int temp0; | |
2d091820 | 1345 | PyObject * _argo0 = 0; |
107e4716 | 1346 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1347 | |
1348 | self = self; | |
1349 | { | |
1350 | _arg1 = &temp; | |
1351 | } | |
1352 | { | |
1353 | _arg2 = &temp0; | |
1354 | } | |
107e4716 | 1355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSizeTuple",_kwnames,&_argo0)) |
70551f47 | 1356 | return NULL; |
2d091820 RD |
1357 | if (_argo0) { |
1358 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1359 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 | 1360 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSizeTuple. Expected _wxWindow_p."); |
70551f47 RD |
1361 | return NULL; |
1362 | } | |
1363 | } | |
ab9bc19b RD |
1364 | { |
1365 | wxPy_BEGIN_ALLOW_THREADS; | |
1366 | wxWindow_GetClientSizeTuple(_arg0,_arg1,_arg2); | |
1367 | ||
1368 | wxPy_END_ALLOW_THREADS; | |
1369 | } Py_INCREF(Py_None); | |
70551f47 RD |
1370 | _resultobj = Py_None; |
1371 | { | |
1372 | PyObject *o; | |
1373 | o = PyInt_FromLong((long) (*_arg1)); | |
1374 | _resultobj = t_output_helper(_resultobj, o); | |
1375 | } | |
1376 | { | |
1377 | PyObject *o; | |
1378 | o = PyInt_FromLong((long) (*_arg2)); | |
1379 | _resultobj = t_output_helper(_resultobj, o); | |
1380 | } | |
1381 | return _resultobj; | |
1382 | } | |
1383 | ||
c95e68d8 | 1384 | #define wxWindow_GetClientSize(_swigobj) (_swigobj->GetClientSize()) |
107e4716 | 1385 | static PyObject *_wrap_wxWindow_GetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
1386 | PyObject * _resultobj; |
1387 | wxSize * _result; | |
1388 | wxWindow * _arg0; | |
2d091820 | 1389 | PyObject * _argo0 = 0; |
107e4716 | 1390 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
1391 | char _ptemp[128]; |
1392 | ||
1393 | self = self; | |
107e4716 | 1394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetClientSize",_kwnames,&_argo0)) |
105e45b9 | 1395 | return NULL; |
2d091820 RD |
1396 | if (_argo0) { |
1397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
1399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetClientSize. Expected _wxWindow_p."); |
1400 | return NULL; | |
1401 | } | |
1402 | } | |
ab9bc19b RD |
1403 | { |
1404 | wxPy_BEGIN_ALLOW_THREADS; | |
1405 | _result = new wxSize (wxWindow_GetClientSize(_arg0)); | |
1406 | ||
1407 | wxPy_END_ALLOW_THREADS; | |
1408 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
105e45b9 RD |
1409 | _resultobj = Py_BuildValue("s",_ptemp); |
1410 | return _resultobj; | |
1411 | } | |
1412 | ||
70551f47 | 1413 | #define wxWindow_GetConstraints(_swigobj) (_swigobj->GetConstraints()) |
107e4716 | 1414 | static PyObject *_wrap_wxWindow_GetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1415 | PyObject * _resultobj; |
1416 | wxLayoutConstraints * _result; | |
1417 | wxWindow * _arg0; | |
2d091820 | 1418 | PyObject * _argo0 = 0; |
107e4716 | 1419 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1420 | char _ptemp[128]; |
1421 | ||
1422 | self = self; | |
107e4716 | 1423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetConstraints",_kwnames,&_argo0)) |
70551f47 | 1424 | return NULL; |
2d091820 RD |
1425 | if (_argo0) { |
1426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetConstraints. Expected _wxWindow_p."); |
1429 | return NULL; | |
1430 | } | |
1431 | } | |
ab9bc19b RD |
1432 | { |
1433 | wxPy_BEGIN_ALLOW_THREADS; | |
1434 | _result = (wxLayoutConstraints *)wxWindow_GetConstraints(_arg0); | |
1435 | ||
1436 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1437 | } if (_result) { |
1438 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLayoutConstraints_p"); | |
1439 | _resultobj = Py_BuildValue("s",_ptemp); | |
1440 | } else { | |
1441 | Py_INCREF(Py_None); | |
1442 | _resultobj = Py_None; | |
1443 | } | |
70551f47 RD |
1444 | return _resultobj; |
1445 | } | |
1446 | ||
9cce9de1 RD |
1447 | #define wxWindow_GetEventHandler(_swigobj) (_swigobj->GetEventHandler()) |
1448 | static PyObject *_wrap_wxWindow_GetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1449 | PyObject * _resultobj; | |
1450 | wxEvtHandler * _result; | |
1451 | wxWindow * _arg0; | |
1452 | PyObject * _argo0 = 0; | |
1453 | char *_kwnames[] = { "self", NULL }; | |
1454 | char _ptemp[128]; | |
1455 | ||
1456 | self = self; | |
1457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetEventHandler",_kwnames,&_argo0)) | |
1458 | return NULL; | |
1459 | if (_argo0) { | |
1460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetEventHandler. Expected _wxWindow_p."); | |
1463 | return NULL; | |
1464 | } | |
1465 | } | |
1466 | { | |
1467 | wxPy_BEGIN_ALLOW_THREADS; | |
1468 | _result = (wxEvtHandler *)wxWindow_GetEventHandler(_arg0); | |
1469 | ||
1470 | wxPy_END_ALLOW_THREADS; | |
1471 | } if (_result) { | |
1472 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
1473 | _resultobj = Py_BuildValue("s",_ptemp); | |
1474 | } else { | |
1475 | Py_INCREF(Py_None); | |
1476 | _resultobj = Py_None; | |
1477 | } | |
1478 | return _resultobj; | |
1479 | } | |
1480 | ||
70551f47 | 1481 | #define wxWindow_GetFont(_swigobj) (_swigobj->GetFont()) |
107e4716 | 1482 | static PyObject *_wrap_wxWindow_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1483 | PyObject * _resultobj; |
1484 | wxFont * _result; | |
1485 | wxWindow * _arg0; | |
2d091820 | 1486 | PyObject * _argo0 = 0; |
107e4716 | 1487 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1488 | char _ptemp[128]; |
1489 | ||
1490 | self = self; | |
107e4716 | 1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetFont",_kwnames,&_argo0)) |
70551f47 | 1492 | return NULL; |
2d091820 RD |
1493 | if (_argo0) { |
1494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFont. Expected _wxWindow_p."); |
1497 | return NULL; | |
1498 | } | |
1499 | } | |
ab9bc19b RD |
1500 | { |
1501 | wxPy_BEGIN_ALLOW_THREADS; | |
1502 | wxFont & _result_ref = wxWindow_GetFont(_arg0); | |
c95e68d8 | 1503 | _result = (wxFont *) &_result_ref; |
ab9bc19b RD |
1504 | |
1505 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1506 | } if (_result) { |
1507 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p"); | |
1508 | _resultobj = Py_BuildValue("s",_ptemp); | |
1509 | } else { | |
1510 | Py_INCREF(Py_None); | |
1511 | _resultobj = Py_None; | |
1512 | } | |
70551f47 RD |
1513 | return _resultobj; |
1514 | } | |
1515 | ||
1516 | #define wxWindow_GetForegroundColour(_swigobj) (_swigobj->GetForegroundColour()) | |
107e4716 | 1517 | static PyObject *_wrap_wxWindow_GetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1518 | PyObject * _resultobj; |
1519 | wxColour * _result; | |
1520 | wxWindow * _arg0; | |
2d091820 | 1521 | PyObject * _argo0 = 0; |
107e4716 | 1522 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1523 | char _ptemp[128]; |
1524 | ||
1525 | self = self; | |
107e4716 | 1526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetForegroundColour",_kwnames,&_argo0)) |
70551f47 | 1527 | return NULL; |
2d091820 RD |
1528 | if (_argo0) { |
1529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetForegroundColour. Expected _wxWindow_p."); |
1532 | return NULL; | |
1533 | } | |
1534 | } | |
ab9bc19b RD |
1535 | { |
1536 | wxPy_BEGIN_ALLOW_THREADS; | |
1537 | _result = new wxColour (wxWindow_GetForegroundColour(_arg0)); | |
1538 | ||
1539 | wxPy_END_ALLOW_THREADS; | |
1540 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
70551f47 RD |
1541 | _resultobj = Py_BuildValue("s",_ptemp); |
1542 | return _resultobj; | |
1543 | } | |
1544 | ||
1545 | #define wxWindow_GetGrandParent(_swigobj) (_swigobj->GetGrandParent()) | |
107e4716 | 1546 | static PyObject *_wrap_wxWindow_GetGrandParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1547 | PyObject * _resultobj; |
1548 | wxWindow * _result; | |
1549 | wxWindow * _arg0; | |
2d091820 | 1550 | PyObject * _argo0 = 0; |
107e4716 | 1551 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1552 | char _ptemp[128]; |
1553 | ||
1554 | self = self; | |
107e4716 | 1555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetGrandParent",_kwnames,&_argo0)) |
70551f47 | 1556 | return NULL; |
2d091820 RD |
1557 | if (_argo0) { |
1558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetGrandParent. Expected _wxWindow_p."); |
1561 | return NULL; | |
1562 | } | |
1563 | } | |
ab9bc19b RD |
1564 | { |
1565 | wxPy_BEGIN_ALLOW_THREADS; | |
1566 | _result = (wxWindow *)wxWindow_GetGrandParent(_arg0); | |
1567 | ||
1568 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1569 | } if (_result) { |
1570 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1571 | _resultobj = Py_BuildValue("s",_ptemp); | |
1572 | } else { | |
1573 | Py_INCREF(Py_None); | |
1574 | _resultobj = Py_None; | |
1575 | } | |
70551f47 RD |
1576 | return _resultobj; |
1577 | } | |
1578 | ||
1579 | #define wxWindow_GetId(_swigobj) (_swigobj->GetId()) | |
107e4716 | 1580 | static PyObject *_wrap_wxWindow_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1581 | PyObject * _resultobj; |
1582 | int _result; | |
1583 | wxWindow * _arg0; | |
2d091820 | 1584 | PyObject * _argo0 = 0; |
107e4716 | 1585 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1586 | |
1587 | self = self; | |
107e4716 | 1588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetId",_kwnames,&_argo0)) |
70551f47 | 1589 | return NULL; |
2d091820 RD |
1590 | if (_argo0) { |
1591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetId. Expected _wxWindow_p."); |
1594 | return NULL; | |
1595 | } | |
1596 | } | |
ab9bc19b RD |
1597 | { |
1598 | wxPy_BEGIN_ALLOW_THREADS; | |
1599 | _result = (int )wxWindow_GetId(_arg0); | |
1600 | ||
1601 | wxPy_END_ALLOW_THREADS; | |
1602 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1603 | return _resultobj; |
1604 | } | |
1605 | ||
70551f47 | 1606 | #define wxWindow_GetLabel(_swigobj) (_swigobj->GetLabel()) |
107e4716 | 1607 | static PyObject *_wrap_wxWindow_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1608 | PyObject * _resultobj; |
1609 | wxString * _result; | |
1610 | wxWindow * _arg0; | |
2d091820 | 1611 | PyObject * _argo0 = 0; |
107e4716 | 1612 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1613 | |
1614 | self = self; | |
107e4716 | 1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetLabel",_kwnames,&_argo0)) |
70551f47 | 1616 | return NULL; |
2d091820 RD |
1617 | if (_argo0) { |
1618 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1619 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetLabel. Expected _wxWindow_p."); |
1621 | return NULL; | |
1622 | } | |
1623 | } | |
70551f47 | 1624 | { |
ab9bc19b RD |
1625 | wxPy_BEGIN_ALLOW_THREADS; |
1626 | _result = new wxString (wxWindow_GetLabel(_arg0)); | |
1627 | ||
1628 | wxPy_END_ALLOW_THREADS; | |
1629 | }{ | |
70551f47 RD |
1630 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
1631 | } | |
1632 | { | |
1633 | delete _result; | |
1634 | } | |
1635 | return _resultobj; | |
1636 | } | |
1637 | ||
d24a34bb | 1638 | #define wxWindow_SetLabel(_swigobj,_swigarg0) (_swigobj->SetLabel(_swigarg0)) |
107e4716 | 1639 | static PyObject *_wrap_wxWindow_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
1640 | PyObject * _resultobj; |
1641 | wxWindow * _arg0; | |
1642 | wxString * _arg1; | |
2d091820 | 1643 | PyObject * _argo0 = 0; |
d24a34bb | 1644 | PyObject * _obj1 = 0; |
107e4716 | 1645 | char *_kwnames[] = { "self","label", NULL }; |
d24a34bb RD |
1646 | |
1647 | self = self; | |
107e4716 | 1648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetLabel",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 1649 | return NULL; |
2d091820 RD |
1650 | if (_argo0) { |
1651 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1652 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
1653 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetLabel. Expected _wxWindow_p."); |
1654 | return NULL; | |
1655 | } | |
1656 | } | |
1657 | { | |
1658 | if (!PyString_Check(_obj1)) { | |
1659 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1660 | return NULL; | |
1661 | } | |
1662 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); | |
1663 | } | |
1664 | { | |
1665 | wxPy_BEGIN_ALLOW_THREADS; | |
1666 | wxWindow_SetLabel(_arg0,*_arg1); | |
1667 | ||
1668 | wxPy_END_ALLOW_THREADS; | |
1669 | } Py_INCREF(Py_None); | |
1670 | _resultobj = Py_None; | |
1671 | { | |
1672 | if (_obj1) | |
1673 | delete _arg1; | |
1674 | } | |
1675 | return _resultobj; | |
1676 | } | |
1677 | ||
70551f47 | 1678 | #define wxWindow_GetName(_swigobj) (_swigobj->GetName()) |
107e4716 | 1679 | static PyObject *_wrap_wxWindow_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1680 | PyObject * _resultobj; |
1681 | wxString * _result; | |
1682 | wxWindow * _arg0; | |
2d091820 | 1683 | PyObject * _argo0 = 0; |
107e4716 | 1684 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1685 | |
1686 | self = self; | |
107e4716 | 1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetName",_kwnames,&_argo0)) |
70551f47 | 1688 | return NULL; |
2d091820 RD |
1689 | if (_argo0) { |
1690 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1691 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1692 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetName. Expected _wxWindow_p."); |
1693 | return NULL; | |
1694 | } | |
1695 | } | |
70551f47 | 1696 | { |
ab9bc19b RD |
1697 | wxPy_BEGIN_ALLOW_THREADS; |
1698 | _result = new wxString (wxWindow_GetName(_arg0)); | |
1699 | ||
1700 | wxPy_END_ALLOW_THREADS; | |
1701 | }{ | |
70551f47 RD |
1702 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
1703 | } | |
1704 | { | |
1705 | delete _result; | |
1706 | } | |
1707 | return _resultobj; | |
1708 | } | |
1709 | ||
1710 | #define wxWindow_GetParent(_swigobj) (_swigobj->GetParent()) | |
107e4716 | 1711 | static PyObject *_wrap_wxWindow_GetParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1712 | PyObject * _resultobj; |
1713 | wxWindow * _result; | |
1714 | wxWindow * _arg0; | |
2d091820 | 1715 | PyObject * _argo0 = 0; |
107e4716 | 1716 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1717 | char _ptemp[128]; |
1718 | ||
1719 | self = self; | |
107e4716 | 1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetParent",_kwnames,&_argo0)) |
70551f47 | 1721 | return NULL; |
2d091820 RD |
1722 | if (_argo0) { |
1723 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1724 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1725 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetParent. Expected _wxWindow_p."); |
1726 | return NULL; | |
1727 | } | |
1728 | } | |
ab9bc19b RD |
1729 | { |
1730 | wxPy_BEGIN_ALLOW_THREADS; | |
1731 | _result = (wxWindow *)wxWindow_GetParent(_arg0); | |
1732 | ||
1733 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
1734 | } if (_result) { |
1735 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindow_p"); | |
1736 | _resultobj = Py_BuildValue("s",_ptemp); | |
1737 | } else { | |
1738 | Py_INCREF(Py_None); | |
1739 | _resultobj = Py_None; | |
1740 | } | |
70551f47 RD |
1741 | return _resultobj; |
1742 | } | |
1743 | ||
105e45b9 | 1744 | #define wxWindow_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) |
107e4716 | 1745 | static PyObject *_wrap_wxWindow_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
1746 | PyObject * _resultobj; |
1747 | wxWindow * _arg0; | |
1748 | int * _arg1; | |
1749 | int temp; | |
1750 | int * _arg2; | |
1751 | int temp0; | |
2d091820 | 1752 | PyObject * _argo0 = 0; |
107e4716 | 1753 | char *_kwnames[] = { "self", NULL }; |
105e45b9 RD |
1754 | |
1755 | self = self; | |
1756 | { | |
1757 | _arg1 = &temp; | |
1758 | } | |
1759 | { | |
1760 | _arg2 = &temp0; | |
1761 | } | |
107e4716 | 1762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPositionTuple",_kwnames,&_argo0)) |
105e45b9 | 1763 | return NULL; |
2d091820 RD |
1764 | if (_argo0) { |
1765 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1766 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
1767 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPositionTuple. Expected _wxWindow_p."); |
1768 | return NULL; | |
1769 | } | |
1770 | } | |
ab9bc19b RD |
1771 | { |
1772 | wxPy_BEGIN_ALLOW_THREADS; | |
1773 | wxWindow_GetPositionTuple(_arg0,_arg1,_arg2); | |
1774 | ||
1775 | wxPy_END_ALLOW_THREADS; | |
1776 | } Py_INCREF(Py_None); | |
105e45b9 RD |
1777 | _resultobj = Py_None; |
1778 | { | |
1779 | PyObject *o; | |
1780 | o = PyInt_FromLong((long) (*_arg1)); | |
1781 | _resultobj = t_output_helper(_resultobj, o); | |
1782 | } | |
1783 | { | |
1784 | PyObject *o; | |
1785 | o = PyInt_FromLong((long) (*_arg2)); | |
1786 | _resultobj = t_output_helper(_resultobj, o); | |
1787 | } | |
1788 | return _resultobj; | |
1789 | } | |
1790 | ||
c95e68d8 | 1791 | #define wxWindow_GetPosition(_swigobj) (_swigobj->GetPosition()) |
107e4716 | 1792 | static PyObject *_wrap_wxWindow_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1793 | PyObject * _resultobj; |
1794 | wxPoint * _result; | |
1795 | wxWindow * _arg0; | |
2d091820 | 1796 | PyObject * _argo0 = 0; |
107e4716 | 1797 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1798 | char _ptemp[128]; |
1799 | ||
1800 | self = self; | |
107e4716 | 1801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetPosition",_kwnames,&_argo0)) |
c95e68d8 | 1802 | return NULL; |
2d091820 RD |
1803 | if (_argo0) { |
1804 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1805 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
1806 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetPosition. Expected _wxWindow_p."); |
1807 | return NULL; | |
1808 | } | |
1809 | } | |
ab9bc19b RD |
1810 | { |
1811 | wxPy_BEGIN_ALLOW_THREADS; | |
1812 | _result = new wxPoint (wxWindow_GetPosition(_arg0)); | |
1813 | ||
1814 | wxPy_END_ALLOW_THREADS; | |
1815 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
c95e68d8 RD |
1816 | _resultobj = Py_BuildValue("s",_ptemp); |
1817 | return _resultobj; | |
1818 | } | |
1819 | ||
1820 | #define wxWindow_GetRect(_swigobj) (_swigobj->GetRect()) | |
107e4716 | 1821 | static PyObject *_wrap_wxWindow_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1822 | PyObject * _resultobj; |
1823 | wxRect * _result; | |
1824 | wxWindow * _arg0; | |
2d091820 | 1825 | PyObject * _argo0 = 0; |
107e4716 | 1826 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1827 | char _ptemp[128]; |
1828 | ||
1829 | self = self; | |
107e4716 | 1830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetRect",_kwnames,&_argo0)) |
c95e68d8 | 1831 | return NULL; |
2d091820 RD |
1832 | if (_argo0) { |
1833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
1835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetRect. Expected _wxWindow_p."); |
1836 | return NULL; | |
1837 | } | |
1838 | } | |
ab9bc19b RD |
1839 | { |
1840 | wxPy_BEGIN_ALLOW_THREADS; | |
1841 | _result = new wxRect (wxWindow_GetRect(_arg0)); | |
1842 | ||
1843 | wxPy_END_ALLOW_THREADS; | |
1844 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); | |
c95e68d8 RD |
1845 | _resultobj = Py_BuildValue("s",_ptemp); |
1846 | return _resultobj; | |
1847 | } | |
1848 | ||
70551f47 | 1849 | #define wxWindow_GetScrollThumb(_swigobj,_swigarg0) (_swigobj->GetScrollThumb(_swigarg0)) |
107e4716 | 1850 | static PyObject *_wrap_wxWindow_GetScrollThumb(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1851 | PyObject * _resultobj; |
1852 | int _result; | |
1853 | wxWindow * _arg0; | |
1854 | int _arg1; | |
2d091820 | 1855 | PyObject * _argo0 = 0; |
107e4716 | 1856 | char *_kwnames[] = { "self","orientation", NULL }; |
70551f47 RD |
1857 | |
1858 | self = self; | |
107e4716 | 1859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollThumb",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1860 | return NULL; |
2d091820 RD |
1861 | if (_argo0) { |
1862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollThumb. Expected _wxWindow_p."); |
1865 | return NULL; | |
1866 | } | |
1867 | } | |
ab9bc19b RD |
1868 | { |
1869 | wxPy_BEGIN_ALLOW_THREADS; | |
1870 | _result = (int )wxWindow_GetScrollThumb(_arg0,_arg1); | |
1871 | ||
1872 | wxPy_END_ALLOW_THREADS; | |
1873 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1874 | return _resultobj; |
1875 | } | |
1876 | ||
1877 | #define wxWindow_GetScrollPos(_swigobj,_swigarg0) (_swigobj->GetScrollPos(_swigarg0)) | |
107e4716 | 1878 | static PyObject *_wrap_wxWindow_GetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1879 | PyObject * _resultobj; |
1880 | int _result; | |
1881 | wxWindow * _arg0; | |
1882 | int _arg1; | |
2d091820 | 1883 | PyObject * _argo0 = 0; |
107e4716 | 1884 | char *_kwnames[] = { "self","orientation", NULL }; |
70551f47 RD |
1885 | |
1886 | self = self; | |
107e4716 | 1887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollPos",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1888 | return NULL; |
2d091820 RD |
1889 | if (_argo0) { |
1890 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1891 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1892 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollPos. Expected _wxWindow_p."); |
1893 | return NULL; | |
1894 | } | |
1895 | } | |
ab9bc19b RD |
1896 | { |
1897 | wxPy_BEGIN_ALLOW_THREADS; | |
1898 | _result = (int )wxWindow_GetScrollPos(_arg0,_arg1); | |
1899 | ||
1900 | wxPy_END_ALLOW_THREADS; | |
1901 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1902 | return _resultobj; |
1903 | } | |
1904 | ||
1905 | #define wxWindow_GetScrollRange(_swigobj,_swigarg0) (_swigobj->GetScrollRange(_swigarg0)) | |
107e4716 | 1906 | static PyObject *_wrap_wxWindow_GetScrollRange(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1907 | PyObject * _resultobj; |
1908 | int _result; | |
1909 | wxWindow * _arg0; | |
1910 | int _arg1; | |
2d091820 | 1911 | PyObject * _argo0 = 0; |
107e4716 | 1912 | char *_kwnames[] = { "self","orientation", NULL }; |
70551f47 RD |
1913 | |
1914 | self = self; | |
107e4716 | 1915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_GetScrollRange",_kwnames,&_argo0,&_arg1)) |
70551f47 | 1916 | return NULL; |
2d091820 RD |
1917 | if (_argo0) { |
1918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
1920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetScrollRange. Expected _wxWindow_p."); |
1921 | return NULL; | |
1922 | } | |
1923 | } | |
ab9bc19b RD |
1924 | { |
1925 | wxPy_BEGIN_ALLOW_THREADS; | |
1926 | _result = (int )wxWindow_GetScrollRange(_arg0,_arg1); | |
1927 | ||
1928 | wxPy_END_ALLOW_THREADS; | |
1929 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
1930 | return _resultobj; |
1931 | } | |
1932 | ||
105e45b9 | 1933 | #define wxWindow_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) |
107e4716 | 1934 | static PyObject *_wrap_wxWindow_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
1935 | PyObject * _resultobj; |
1936 | wxWindow * _arg0; | |
1937 | int * _arg1; | |
1938 | int temp; | |
1939 | int * _arg2; | |
1940 | int temp0; | |
2d091820 | 1941 | PyObject * _argo0 = 0; |
107e4716 | 1942 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
1943 | |
1944 | self = self; | |
1945 | { | |
1946 | _arg1 = &temp; | |
1947 | } | |
1948 | { | |
1949 | _arg2 = &temp0; | |
1950 | } | |
107e4716 | 1951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSizeTuple",_kwnames,&_argo0)) |
70551f47 | 1952 | return NULL; |
2d091820 RD |
1953 | if (_argo0) { |
1954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 | 1956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSizeTuple. Expected _wxWindow_p."); |
70551f47 RD |
1957 | return NULL; |
1958 | } | |
1959 | } | |
ab9bc19b RD |
1960 | { |
1961 | wxPy_BEGIN_ALLOW_THREADS; | |
1962 | wxWindow_GetSizeTuple(_arg0,_arg1,_arg2); | |
1963 | ||
1964 | wxPy_END_ALLOW_THREADS; | |
1965 | } Py_INCREF(Py_None); | |
70551f47 RD |
1966 | _resultobj = Py_None; |
1967 | { | |
1968 | PyObject *o; | |
1969 | o = PyInt_FromLong((long) (*_arg1)); | |
1970 | _resultobj = t_output_helper(_resultobj, o); | |
1971 | } | |
1972 | { | |
1973 | PyObject *o; | |
1974 | o = PyInt_FromLong((long) (*_arg2)); | |
1975 | _resultobj = t_output_helper(_resultobj, o); | |
1976 | } | |
1977 | return _resultobj; | |
1978 | } | |
1979 | ||
c95e68d8 | 1980 | #define wxWindow_GetSize(_swigobj) (_swigobj->GetSize()) |
107e4716 | 1981 | static PyObject *_wrap_wxWindow_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
1982 | PyObject * _resultobj; |
1983 | wxSize * _result; | |
1984 | wxWindow * _arg0; | |
2d091820 | 1985 | PyObject * _argo0 = 0; |
107e4716 | 1986 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
1987 | char _ptemp[128]; |
1988 | ||
1989 | self = self; | |
107e4716 | 1990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetSize",_kwnames,&_argo0)) |
c95e68d8 | 1991 | return NULL; |
2d091820 RD |
1992 | if (_argo0) { |
1993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
1995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetSize. Expected _wxWindow_p."); |
1996 | return NULL; | |
1997 | } | |
1998 | } | |
ab9bc19b RD |
1999 | { |
2000 | wxPy_BEGIN_ALLOW_THREADS; | |
2001 | _result = new wxSize (wxWindow_GetSize(_arg0)); | |
2002 | ||
2003 | wxPy_END_ALLOW_THREADS; | |
2004 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
c95e68d8 RD |
2005 | _resultobj = Py_BuildValue("s",_ptemp); |
2006 | return _resultobj; | |
2007 | } | |
2008 | ||
70551f47 | 2009 | #define wxWindow_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 2010 | static PyObject *_wrap_wxWindow_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2011 | PyObject * _resultobj; |
2012 | wxWindow * _arg0; | |
2013 | wxString * _arg1; | |
2014 | int * _arg2; | |
2015 | int temp; | |
2016 | int * _arg3; | |
2017 | int temp0; | |
2d091820 | 2018 | PyObject * _argo0 = 0; |
70551f47 | 2019 | PyObject * _obj1 = 0; |
107e4716 | 2020 | char *_kwnames[] = { "self","string", NULL }; |
70551f47 RD |
2021 | |
2022 | self = self; | |
2023 | { | |
2024 | _arg2 = &temp; | |
2025 | } | |
2026 | { | |
2027 | _arg3 = &temp0; | |
2028 | } | |
107e4716 | 2029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_GetTextExtent",_kwnames,&_argo0,&_obj1)) |
70551f47 | 2030 | return NULL; |
2d091820 RD |
2031 | if (_argo0) { |
2032 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2033 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2034 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTextExtent. Expected _wxWindow_p."); |
2035 | return NULL; | |
2036 | } | |
2037 | } | |
2038 | { | |
2039 | if (!PyString_Check(_obj1)) { | |
2040 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2041 | return NULL; | |
2042 | } | |
ab9bc19b | 2043 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 2044 | } |
ab9bc19b RD |
2045 | { |
2046 | wxPy_BEGIN_ALLOW_THREADS; | |
2047 | wxWindow_GetTextExtent(_arg0,*_arg1,_arg2,_arg3); | |
2048 | ||
2049 | wxPy_END_ALLOW_THREADS; | |
2050 | } Py_INCREF(Py_None); | |
70551f47 RD |
2051 | _resultobj = Py_None; |
2052 | { | |
2053 | PyObject *o; | |
2054 | o = PyInt_FromLong((long) (*_arg2)); | |
2055 | _resultobj = t_output_helper(_resultobj, o); | |
2056 | } | |
2057 | { | |
2058 | PyObject *o; | |
2059 | o = PyInt_FromLong((long) (*_arg3)); | |
2060 | _resultobj = t_output_helper(_resultobj, o); | |
2061 | } | |
2062 | { | |
2063 | if (_obj1) | |
2064 | delete _arg1; | |
2065 | } | |
2066 | return _resultobj; | |
2067 | } | |
2068 | ||
21f8d7ea | 2069 | #define wxWindow_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) |
107e4716 | 2070 | static PyObject *_wrap_wxWindow_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
2071 | PyObject * _resultobj; |
2072 | wxWindow * _arg0; | |
2073 | wxString * _arg1; | |
2074 | int * _arg2; | |
2075 | int temp; | |
2076 | int * _arg3; | |
2077 | int temp0; | |
2078 | int * _arg4; | |
2079 | int temp1; | |
2080 | int * _arg5; | |
2081 | int temp2; | |
2d091820 RD |
2082 | wxFont * _arg6 = (wxFont *) NULL; |
2083 | PyObject * _argo0 = 0; | |
21f8d7ea | 2084 | PyObject * _obj1 = 0; |
2d091820 | 2085 | PyObject * _argo6 = 0; |
107e4716 | 2086 | char *_kwnames[] = { "self","string","font", NULL }; |
21f8d7ea RD |
2087 | |
2088 | self = self; | |
2089 | { | |
2090 | _arg2 = &temp; | |
2091 | } | |
2092 | { | |
2093 | _arg3 = &temp0; | |
2094 | } | |
2095 | { | |
2096 | _arg4 = &temp1; | |
2097 | } | |
2098 | { | |
2099 | _arg5 = &temp2; | |
2100 | } | |
107e4716 | 2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxWindow_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6)) |
21f8d7ea | 2102 | return NULL; |
2d091820 RD |
2103 | if (_argo0) { |
2104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea RD |
2106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetFullTextExtent. Expected _wxWindow_p."); |
2107 | return NULL; | |
2108 | } | |
2109 | } | |
2110 | { | |
2111 | if (!PyString_Check(_obj1)) { | |
2112 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2113 | return NULL; | |
2114 | } | |
ab9bc19b | 2115 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
21f8d7ea | 2116 | } |
2d091820 RD |
2117 | if (_argo6) { |
2118 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
2119 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) { | |
21f8d7ea RD |
2120 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxWindow_GetFullTextExtent. Expected _wxFont_p."); |
2121 | return NULL; | |
2122 | } | |
2123 | } | |
ab9bc19b RD |
2124 | { |
2125 | wxPy_BEGIN_ALLOW_THREADS; | |
2126 | wxWindow_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
2127 | ||
2128 | wxPy_END_ALLOW_THREADS; | |
2129 | } Py_INCREF(Py_None); | |
21f8d7ea RD |
2130 | _resultobj = Py_None; |
2131 | { | |
2132 | PyObject *o; | |
2133 | o = PyInt_FromLong((long) (*_arg2)); | |
2134 | _resultobj = t_output_helper(_resultobj, o); | |
2135 | } | |
2136 | { | |
2137 | PyObject *o; | |
2138 | o = PyInt_FromLong((long) (*_arg3)); | |
2139 | _resultobj = t_output_helper(_resultobj, o); | |
2140 | } | |
2141 | { | |
2142 | PyObject *o; | |
2143 | o = PyInt_FromLong((long) (*_arg4)); | |
2144 | _resultobj = t_output_helper(_resultobj, o); | |
2145 | } | |
2146 | { | |
2147 | PyObject *o; | |
2148 | o = PyInt_FromLong((long) (*_arg5)); | |
2149 | _resultobj = t_output_helper(_resultobj, o); | |
2150 | } | |
2151 | { | |
2152 | if (_obj1) | |
2153 | delete _arg1; | |
2154 | } | |
2155 | return _resultobj; | |
2156 | } | |
2157 | ||
70551f47 | 2158 | #define wxWindow_GetTitle(_swigobj) (_swigobj->GetTitle()) |
107e4716 | 2159 | static PyObject *_wrap_wxWindow_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2160 | PyObject * _resultobj; |
2161 | wxString * _result; | |
2162 | wxWindow * _arg0; | |
2d091820 | 2163 | PyObject * _argo0 = 0; |
107e4716 | 2164 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2165 | |
2166 | self = self; | |
107e4716 | 2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetTitle",_kwnames,&_argo0)) |
70551f47 | 2168 | return NULL; |
2d091820 RD |
2169 | if (_argo0) { |
2170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetTitle. Expected _wxWindow_p."); |
2173 | return NULL; | |
2174 | } | |
2175 | } | |
70551f47 | 2176 | { |
ab9bc19b RD |
2177 | wxPy_BEGIN_ALLOW_THREADS; |
2178 | _result = new wxString (wxWindow_GetTitle(_arg0)); | |
2179 | ||
2180 | wxPy_END_ALLOW_THREADS; | |
2181 | }{ | |
70551f47 RD |
2182 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
2183 | } | |
2184 | { | |
2185 | delete _result; | |
2186 | } | |
2187 | return _resultobj; | |
2188 | } | |
2189 | ||
8bf5d46e | 2190 | #define wxWindow_GetUpdateRegion(_swigobj) (_swigobj->GetUpdateRegion()) |
107e4716 | 2191 | static PyObject *_wrap_wxWindow_GetUpdateRegion(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2192 | PyObject * _resultobj; |
2193 | wxRegion * _result; | |
2194 | wxWindow * _arg0; | |
2d091820 | 2195 | PyObject * _argo0 = 0; |
107e4716 | 2196 | char *_kwnames[] = { "self", NULL }; |
8bf5d46e RD |
2197 | char _ptemp[128]; |
2198 | ||
2199 | self = self; | |
107e4716 | 2200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetUpdateRegion",_kwnames,&_argo0)) |
8bf5d46e | 2201 | return NULL; |
2d091820 RD |
2202 | if (_argo0) { |
2203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetUpdateRegion. Expected _wxWindow_p."); |
2206 | return NULL; | |
2207 | } | |
2208 | } | |
2209 | { | |
2210 | wxPy_BEGIN_ALLOW_THREADS; | |
2211 | _result = new wxRegion (wxWindow_GetUpdateRegion(_arg0)); | |
2212 | ||
2213 | wxPy_END_ALLOW_THREADS; | |
2214 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRegion_p"); | |
2215 | _resultobj = Py_BuildValue("s",_ptemp); | |
2216 | return _resultobj; | |
2217 | } | |
2218 | ||
70551f47 | 2219 | #define wxWindow_GetWindowStyleFlag(_swigobj) (_swigobj->GetWindowStyleFlag()) |
107e4716 | 2220 | static PyObject *_wrap_wxWindow_GetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2221 | PyObject * _resultobj; |
2222 | long _result; | |
2223 | wxWindow * _arg0; | |
2d091820 | 2224 | PyObject * _argo0 = 0; |
107e4716 | 2225 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2226 | |
2227 | self = self; | |
107e4716 | 2228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetWindowStyleFlag",_kwnames,&_argo0)) |
70551f47 | 2229 | return NULL; |
2d091820 RD |
2230 | if (_argo0) { |
2231 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2232 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2233 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetWindowStyleFlag. Expected _wxWindow_p."); |
2234 | return NULL; | |
2235 | } | |
2236 | } | |
ab9bc19b RD |
2237 | { |
2238 | wxPy_BEGIN_ALLOW_THREADS; | |
2239 | _result = (long )wxWindow_GetWindowStyleFlag(_arg0); | |
2240 | ||
2241 | wxPy_END_ALLOW_THREADS; | |
2242 | } _resultobj = Py_BuildValue("l",_result); | |
70551f47 RD |
2243 | return _resultobj; |
2244 | } | |
2245 | ||
d24a34bb | 2246 | #define wxWindow_Hide(_swigobj) (_swigobj->Hide()) |
107e4716 | 2247 | static PyObject *_wrap_wxWindow_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2248 | PyObject * _resultobj; |
2249 | bool _result; | |
2250 | wxWindow * _arg0; | |
2d091820 | 2251 | PyObject * _argo0 = 0; |
107e4716 | 2252 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2253 | |
2254 | self = self; | |
107e4716 | 2255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Hide",_kwnames,&_argo0)) |
d24a34bb | 2256 | return NULL; |
2d091820 RD |
2257 | if (_argo0) { |
2258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
2260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Hide. Expected _wxWindow_p."); |
2261 | return NULL; | |
2262 | } | |
2263 | } | |
2264 | { | |
2265 | wxPy_BEGIN_ALLOW_THREADS; | |
2266 | _result = (bool )wxWindow_Hide(_arg0); | |
2267 | ||
2268 | wxPy_END_ALLOW_THREADS; | |
2269 | } _resultobj = Py_BuildValue("i",_result); | |
2270 | return _resultobj; | |
2271 | } | |
2272 | ||
70551f47 | 2273 | #define wxWindow_InitDialog(_swigobj) (_swigobj->InitDialog()) |
107e4716 | 2274 | static PyObject *_wrap_wxWindow_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2275 | PyObject * _resultobj; |
2276 | wxWindow * _arg0; | |
2d091820 | 2277 | PyObject * _argo0 = 0; |
107e4716 | 2278 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2279 | |
2280 | self = self; | |
107e4716 | 2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_InitDialog",_kwnames,&_argo0)) |
70551f47 | 2282 | return NULL; |
2d091820 RD |
2283 | if (_argo0) { |
2284 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2285 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2286 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_InitDialog. Expected _wxWindow_p."); |
2287 | return NULL; | |
2288 | } | |
2289 | } | |
ab9bc19b RD |
2290 | { |
2291 | wxPy_BEGIN_ALLOW_THREADS; | |
2292 | wxWindow_InitDialog(_arg0); | |
2293 | ||
2294 | wxPy_END_ALLOW_THREADS; | |
2295 | } Py_INCREF(Py_None); | |
70551f47 RD |
2296 | _resultobj = Py_None; |
2297 | return _resultobj; | |
2298 | } | |
2299 | ||
2300 | #define wxWindow_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
107e4716 | 2301 | static PyObject *_wrap_wxWindow_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2302 | PyObject * _resultobj; |
2303 | bool _result; | |
2304 | wxWindow * _arg0; | |
2d091820 | 2305 | PyObject * _argo0 = 0; |
107e4716 | 2306 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2307 | |
2308 | self = self; | |
107e4716 | 2309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsEnabled",_kwnames,&_argo0)) |
70551f47 | 2310 | return NULL; |
2d091820 RD |
2311 | if (_argo0) { |
2312 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2313 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2314 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsEnabled. Expected _wxWindow_p."); |
2315 | return NULL; | |
2316 | } | |
2317 | } | |
ab9bc19b RD |
2318 | { |
2319 | wxPy_BEGIN_ALLOW_THREADS; | |
2320 | _result = (bool )wxWindow_IsEnabled(_arg0); | |
2321 | ||
2322 | wxPy_END_ALLOW_THREADS; | |
2323 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2324 | return _resultobj; |
2325 | } | |
2326 | ||
2327 | #define wxWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
107e4716 | 2328 | static PyObject *_wrap_wxWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2329 | PyObject * _resultobj; |
2330 | bool _result; | |
2331 | wxWindow * _arg0; | |
2d091820 | 2332 | PyObject * _argo0 = 0; |
107e4716 | 2333 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2334 | |
2335 | self = self; | |
107e4716 | 2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsRetained",_kwnames,&_argo0)) |
70551f47 | 2337 | return NULL; |
2d091820 RD |
2338 | if (_argo0) { |
2339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsRetained. Expected _wxWindow_p."); |
2342 | return NULL; | |
2343 | } | |
2344 | } | |
ab9bc19b RD |
2345 | { |
2346 | wxPy_BEGIN_ALLOW_THREADS; | |
2347 | _result = (bool )wxWindow_IsRetained(_arg0); | |
2348 | ||
2349 | wxPy_END_ALLOW_THREADS; | |
2350 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2351 | return _resultobj; |
2352 | } | |
2353 | ||
2354 | #define wxWindow_IsShown(_swigobj) (_swigobj->IsShown()) | |
107e4716 | 2355 | static PyObject *_wrap_wxWindow_IsShown(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2356 | PyObject * _resultobj; |
2357 | bool _result; | |
2358 | wxWindow * _arg0; | |
2d091820 | 2359 | PyObject * _argo0 = 0; |
107e4716 | 2360 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2361 | |
2362 | self = self; | |
107e4716 | 2363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsShown",_kwnames,&_argo0)) |
70551f47 | 2364 | return NULL; |
2d091820 RD |
2365 | if (_argo0) { |
2366 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2367 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2368 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsShown. Expected _wxWindow_p."); |
2369 | return NULL; | |
2370 | } | |
2371 | } | |
ab9bc19b RD |
2372 | { |
2373 | wxPy_BEGIN_ALLOW_THREADS; | |
2374 | _result = (bool )wxWindow_IsShown(_arg0); | |
2375 | ||
2376 | wxPy_END_ALLOW_THREADS; | |
2377 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2378 | return _resultobj; |
2379 | } | |
2380 | ||
d24a34bb | 2381 | #define wxWindow_IsTopLevel(_swigobj) (_swigobj->IsTopLevel()) |
107e4716 | 2382 | static PyObject *_wrap_wxWindow_IsTopLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2383 | PyObject * _resultobj; |
2384 | bool _result; | |
2385 | wxWindow * _arg0; | |
2d091820 | 2386 | PyObject * _argo0 = 0; |
107e4716 | 2387 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
2388 | |
2389 | self = self; | |
107e4716 | 2390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_IsTopLevel",_kwnames,&_argo0)) |
d24a34bb | 2391 | return NULL; |
2d091820 RD |
2392 | if (_argo0) { |
2393 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2394 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
2395 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_IsTopLevel. Expected _wxWindow_p."); |
2396 | return NULL; | |
2397 | } | |
2398 | } | |
2399 | { | |
2400 | wxPy_BEGIN_ALLOW_THREADS; | |
2401 | _result = (bool )wxWindow_IsTopLevel(_arg0); | |
2402 | ||
2403 | wxPy_END_ALLOW_THREADS; | |
2404 | } _resultobj = Py_BuildValue("i",_result); | |
2405 | return _resultobj; | |
2406 | } | |
2407 | ||
70551f47 | 2408 | #define wxWindow_Layout(_swigobj) (_swigobj->Layout()) |
107e4716 | 2409 | static PyObject *_wrap_wxWindow_Layout(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2410 | PyObject * _resultobj; |
2411 | wxWindow * _arg0; | |
2d091820 | 2412 | PyObject * _argo0 = 0; |
107e4716 | 2413 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2414 | |
2415 | self = self; | |
107e4716 | 2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Layout",_kwnames,&_argo0)) |
70551f47 | 2417 | return NULL; |
2d091820 RD |
2418 | if (_argo0) { |
2419 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2420 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2421 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Layout. Expected _wxWindow_p."); |
2422 | return NULL; | |
2423 | } | |
2424 | } | |
ab9bc19b RD |
2425 | { |
2426 | wxPy_BEGIN_ALLOW_THREADS; | |
2427 | wxWindow_Layout(_arg0); | |
2428 | ||
2429 | wxPy_END_ALLOW_THREADS; | |
2430 | } Py_INCREF(Py_None); | |
70551f47 RD |
2431 | _resultobj = Py_None; |
2432 | return _resultobj; | |
2433 | } | |
2434 | ||
2435 | #define wxWindow_LoadFromResource(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->LoadFromResource(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 2436 | static PyObject *_wrap_wxWindow_LoadFromResource(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2437 | PyObject * _resultobj; |
2438 | bool _result; | |
2439 | wxWindow * _arg0; | |
2440 | wxWindow * _arg1; | |
2441 | wxString * _arg2; | |
2d091820 RD |
2442 | wxResourceTable * _arg3 = (wxResourceTable *) NULL; |
2443 | PyObject * _argo0 = 0; | |
2444 | PyObject * _argo1 = 0; | |
70551f47 | 2445 | PyObject * _obj2 = 0; |
2d091820 | 2446 | PyObject * _argo3 = 0; |
107e4716 | 2447 | char *_kwnames[] = { "self","parent","resourceName","resourceTable", NULL }; |
70551f47 RD |
2448 | |
2449 | self = self; | |
107e4716 | 2450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|O:wxWindow_LoadFromResource",_kwnames,&_argo0,&_argo1,&_obj2,&_argo3)) |
70551f47 | 2451 | return NULL; |
2d091820 RD |
2452 | if (_argo0) { |
2453 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2454 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2455 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2456 | return NULL; | |
2457 | } | |
2458 | } | |
2d091820 RD |
2459 | if (_argo1) { |
2460 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2461 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
70551f47 RD |
2462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_LoadFromResource. Expected _wxWindow_p."); |
2463 | return NULL; | |
2464 | } | |
2465 | } | |
2466 | { | |
2467 | if (!PyString_Check(_obj2)) { | |
2468 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2469 | return NULL; | |
2470 | } | |
ab9bc19b | 2471 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 | 2472 | } |
2d091820 RD |
2473 | if (_argo3) { |
2474 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
2475 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxResourceTable_p")) { | |
70551f47 RD |
2476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxWindow_LoadFromResource. Expected _wxResourceTable_p."); |
2477 | return NULL; | |
2478 | } | |
2479 | } | |
ab9bc19b RD |
2480 | { |
2481 | wxPy_BEGIN_ALLOW_THREADS; | |
2482 | _result = (bool )wxWindow_LoadFromResource(_arg0,_arg1,*_arg2,_arg3); | |
2483 | ||
2484 | wxPy_END_ALLOW_THREADS; | |
2485 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2486 | { |
2487 | if (_obj2) | |
2488 | delete _arg2; | |
2489 | } | |
2490 | return _resultobj; | |
2491 | } | |
2492 | ||
2493 | #define wxWindow_Lower(_swigobj) (_swigobj->Lower()) | |
107e4716 | 2494 | static PyObject *_wrap_wxWindow_Lower(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2495 | PyObject * _resultobj; |
2496 | wxWindow * _arg0; | |
2d091820 | 2497 | PyObject * _argo0 = 0; |
107e4716 | 2498 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2499 | |
2500 | self = self; | |
107e4716 | 2501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Lower",_kwnames,&_argo0)) |
70551f47 | 2502 | return NULL; |
2d091820 RD |
2503 | if (_argo0) { |
2504 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2505 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2506 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Lower. Expected _wxWindow_p."); |
2507 | return NULL; | |
2508 | } | |
2509 | } | |
ab9bc19b RD |
2510 | { |
2511 | wxPy_BEGIN_ALLOW_THREADS; | |
2512 | wxWindow_Lower(_arg0); | |
2513 | ||
2514 | wxPy_END_ALLOW_THREADS; | |
2515 | } Py_INCREF(Py_None); | |
70551f47 RD |
2516 | _resultobj = Py_None; |
2517 | return _resultobj; | |
2518 | } | |
2519 | ||
2520 | #define wxWindow_MakeModal(_swigobj,_swigarg0) (_swigobj->MakeModal(_swigarg0)) | |
107e4716 | 2521 | static PyObject *_wrap_wxWindow_MakeModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2522 | PyObject * _resultobj; |
2523 | wxWindow * _arg0; | |
2524 | bool _arg1; | |
2d091820 | 2525 | PyObject * _argo0 = 0; |
70551f47 | 2526 | int tempbool1; |
107e4716 | 2527 | char *_kwnames[] = { "self","flag", NULL }; |
70551f47 RD |
2528 | |
2529 | self = self; | |
107e4716 | 2530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_MakeModal",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 2531 | return NULL; |
2d091820 RD |
2532 | if (_argo0) { |
2533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MakeModal. Expected _wxWindow_p."); |
2536 | return NULL; | |
2537 | } | |
2538 | } | |
2539 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
2540 | { |
2541 | wxPy_BEGIN_ALLOW_THREADS; | |
2542 | wxWindow_MakeModal(_arg0,_arg1); | |
2543 | ||
2544 | wxPy_END_ALLOW_THREADS; | |
2545 | } Py_INCREF(Py_None); | |
70551f47 RD |
2546 | _resultobj = Py_None; |
2547 | return _resultobj; | |
2548 | } | |
2549 | ||
21f8d7ea | 2550 | #define wxWindow_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) |
107e4716 | 2551 | static PyObject *_wrap_wxWindow_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2552 | PyObject * _resultobj; |
2553 | wxWindow * _arg0; | |
2554 | int _arg1; | |
2555 | int _arg2; | |
2d091820 | 2556 | PyObject * _argo0 = 0; |
107e4716 | 2557 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
2558 | |
2559 | self = self; | |
107e4716 | 2560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 2561 | return NULL; |
2d091820 RD |
2562 | if (_argo0) { |
2563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea | 2565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_MoveXY. Expected _wxWindow_p."); |
70551f47 RD |
2566 | return NULL; |
2567 | } | |
2568 | } | |
ab9bc19b RD |
2569 | { |
2570 | wxPy_BEGIN_ALLOW_THREADS; | |
2571 | wxWindow_MoveXY(_arg0,_arg1,_arg2); | |
2572 | ||
2573 | wxPy_END_ALLOW_THREADS; | |
2574 | } Py_INCREF(Py_None); | |
70551f47 RD |
2575 | _resultobj = Py_None; |
2576 | return _resultobj; | |
2577 | } | |
2578 | ||
afc48cd0 | 2579 | #define wxWindow_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) |
107e4716 | 2580 | static PyObject *_wrap_wxWindow_Move(PyObject *self, PyObject *args, PyObject *kwargs) { |
afc48cd0 RD |
2581 | PyObject * _resultobj; |
2582 | wxWindow * _arg0; | |
2583 | wxPoint * _arg1; | |
2d091820 | 2584 | PyObject * _argo0 = 0; |
37f6a977 RD |
2585 | wxPoint temp; |
2586 | PyObject * _obj1 = 0; | |
107e4716 | 2587 | char *_kwnames[] = { "self","point", NULL }; |
afc48cd0 RD |
2588 | |
2589 | self = self; | |
37f6a977 | 2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Move",_kwnames,&_argo0,&_obj1)) |
afc48cd0 | 2591 | return NULL; |
2d091820 RD |
2592 | if (_argo0) { |
2593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
afc48cd0 RD |
2595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Move. Expected _wxWindow_p."); |
2596 | return NULL; | |
2597 | } | |
2598 | } | |
37f6a977 RD |
2599 | { |
2600 | _arg1 = &temp; | |
2601 | if (! wxPoint_helper(_obj1, &_arg1)) | |
afc48cd0 | 2602 | return NULL; |
37f6a977 | 2603 | } |
ab9bc19b RD |
2604 | { |
2605 | wxPy_BEGIN_ALLOW_THREADS; | |
2606 | wxWindow_Move(_arg0,*_arg1); | |
2607 | ||
2608 | wxPy_END_ALLOW_THREADS; | |
2609 | } Py_INCREF(Py_None); | |
afc48cd0 RD |
2610 | _resultobj = Py_None; |
2611 | return _resultobj; | |
2612 | } | |
2613 | ||
9cce9de1 RD |
2614 | #define wxWindow_PopEventHandler(_swigobj,_swigarg0) (_swigobj->PopEventHandler(_swigarg0)) |
2615 | static PyObject *_wrap_wxWindow_PopEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2616 | PyObject * _resultobj; | |
2617 | wxEvtHandler * _result; | |
2618 | wxWindow * _arg0; | |
2619 | bool _arg1 = (bool ) FALSE; | |
2620 | PyObject * _argo0 = 0; | |
2621 | int tempbool1 = (int) FALSE; | |
2622 | char *_kwnames[] = { "self","deleteHandler", NULL }; | |
2623 | char _ptemp[128]; | |
2624 | ||
2625 | self = self; | |
2626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxWindow_PopEventHandler",_kwnames,&_argo0,&tempbool1)) | |
2627 | return NULL; | |
2628 | if (_argo0) { | |
2629 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2630 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopEventHandler. Expected _wxWindow_p."); | |
2632 | return NULL; | |
2633 | } | |
2634 | } | |
2635 | _arg1 = (bool ) tempbool1; | |
2636 | { | |
2637 | wxPy_BEGIN_ALLOW_THREADS; | |
2638 | _result = (wxEvtHandler *)wxWindow_PopEventHandler(_arg0,_arg1); | |
2639 | ||
2640 | wxPy_END_ALLOW_THREADS; | |
2641 | } if (_result) { | |
2642 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEvtHandler_p"); | |
2643 | _resultobj = Py_BuildValue("s",_ptemp); | |
2644 | } else { | |
2645 | Py_INCREF(Py_None); | |
2646 | _resultobj = Py_None; | |
2647 | } | |
2648 | return _resultobj; | |
2649 | } | |
2650 | ||
2651 | #define wxWindow_PushEventHandler(_swigobj,_swigarg0) (_swigobj->PushEventHandler(_swigarg0)) | |
2652 | static PyObject *_wrap_wxWindow_PushEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2653 | PyObject * _resultobj; | |
2654 | wxWindow * _arg0; | |
2655 | wxEvtHandler * _arg1; | |
2656 | PyObject * _argo0 = 0; | |
2657 | PyObject * _argo1 = 0; | |
2658 | char *_kwnames[] = { "self","handler", NULL }; | |
2659 | ||
2660 | self = self; | |
2661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_PushEventHandler",_kwnames,&_argo0,&_argo1)) | |
2662 | return NULL; | |
2663 | if (_argo0) { | |
2664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PushEventHandler. Expected _wxWindow_p."); | |
2667 | return NULL; | |
2668 | } | |
2669 | } | |
2670 | if (_argo1) { | |
2671 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2672 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
2673 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PushEventHandler. Expected _wxEvtHandler_p."); | |
2674 | return NULL; | |
2675 | } | |
2676 | } | |
2677 | { | |
2678 | wxPy_BEGIN_ALLOW_THREADS; | |
2679 | wxWindow_PushEventHandler(_arg0,_arg1); | |
2680 | ||
2681 | wxPy_END_ALLOW_THREADS; | |
2682 | } Py_INCREF(Py_None); | |
2683 | _resultobj = Py_None; | |
2684 | return _resultobj; | |
2685 | } | |
2686 | ||
8bf5d46e | 2687 | #define wxWindow_PopupMenuXY(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->PopupMenu(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 2688 | static PyObject *_wrap_wxWindow_PopupMenuXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2689 | PyObject * _resultobj; |
2690 | bool _result; | |
2691 | wxWindow * _arg0; | |
2692 | wxMenu * _arg1; | |
2693 | int _arg2; | |
2694 | int _arg3; | |
2d091820 RD |
2695 | PyObject * _argo0 = 0; |
2696 | PyObject * _argo1 = 0; | |
107e4716 | 2697 | char *_kwnames[] = { "self","menu","x","y", NULL }; |
70551f47 RD |
2698 | |
2699 | self = self; | |
107e4716 | 2700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxWindow_PopupMenuXY",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3)) |
8bf5d46e | 2701 | return NULL; |
2d091820 RD |
2702 | if (_argo0) { |
2703 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2704 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
8bf5d46e RD |
2705 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenuXY. Expected _wxWindow_p."); |
2706 | return NULL; | |
2707 | } | |
2708 | } | |
2d091820 RD |
2709 | if (_argo1) { |
2710 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2711 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
8bf5d46e RD |
2712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenuXY. Expected _wxMenu_p."); |
2713 | return NULL; | |
2714 | } | |
2715 | } | |
2716 | { | |
2717 | wxPy_BEGIN_ALLOW_THREADS; | |
2718 | _result = (bool )wxWindow_PopupMenuXY(_arg0,_arg1,_arg2,_arg3); | |
2719 | ||
2720 | wxPy_END_ALLOW_THREADS; | |
2721 | } _resultobj = Py_BuildValue("i",_result); | |
2722 | return _resultobj; | |
2723 | } | |
2724 | ||
2725 | #define wxWindow_PopupMenu(_swigobj,_swigarg0,_swigarg1) (_swigobj->PopupMenu(_swigarg0,_swigarg1)) | |
107e4716 | 2726 | static PyObject *_wrap_wxWindow_PopupMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
8bf5d46e RD |
2727 | PyObject * _resultobj; |
2728 | bool _result; | |
2729 | wxWindow * _arg0; | |
2730 | wxMenu * _arg1; | |
2731 | wxPoint * _arg2; | |
2d091820 RD |
2732 | PyObject * _argo0 = 0; |
2733 | PyObject * _argo1 = 0; | |
37f6a977 RD |
2734 | wxPoint temp; |
2735 | PyObject * _obj2 = 0; | |
107e4716 | 2736 | char *_kwnames[] = { "self","menu","pos", NULL }; |
8bf5d46e RD |
2737 | |
2738 | self = self; | |
37f6a977 | 2739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_PopupMenu",_kwnames,&_argo0,&_argo1,&_obj2)) |
70551f47 | 2740 | return NULL; |
2d091820 RD |
2741 | if (_argo0) { |
2742 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2743 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2744 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_PopupMenu. Expected _wxWindow_p."); |
2745 | return NULL; | |
2746 | } | |
2747 | } | |
2d091820 RD |
2748 | if (_argo1) { |
2749 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2750 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
70551f47 RD |
2751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_PopupMenu. Expected _wxMenu_p."); |
2752 | return NULL; | |
2753 | } | |
2754 | } | |
37f6a977 RD |
2755 | { |
2756 | _arg2 = &temp; | |
2757 | if (! wxPoint_helper(_obj2, &_arg2)) | |
8bf5d46e | 2758 | return NULL; |
37f6a977 | 2759 | } |
ab9bc19b RD |
2760 | { |
2761 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 2762 | _result = (bool )wxWindow_PopupMenu(_arg0,_arg1,*_arg2); |
ab9bc19b RD |
2763 | |
2764 | wxPy_END_ALLOW_THREADS; | |
2765 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
2766 | return _resultobj; |
2767 | } | |
2768 | ||
2769 | #define wxWindow_Raise(_swigobj) (_swigobj->Raise()) | |
107e4716 | 2770 | static PyObject *_wrap_wxWindow_Raise(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2771 | PyObject * _resultobj; |
2772 | wxWindow * _arg0; | |
2d091820 | 2773 | PyObject * _argo0 = 0; |
107e4716 | 2774 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2775 | |
2776 | self = self; | |
107e4716 | 2777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Raise",_kwnames,&_argo0)) |
70551f47 | 2778 | return NULL; |
2d091820 RD |
2779 | if (_argo0) { |
2780 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2781 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2782 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Raise. Expected _wxWindow_p."); |
2783 | return NULL; | |
2784 | } | |
2785 | } | |
ab9bc19b RD |
2786 | { |
2787 | wxPy_BEGIN_ALLOW_THREADS; | |
2788 | wxWindow_Raise(_arg0); | |
2789 | ||
2790 | wxPy_END_ALLOW_THREADS; | |
2791 | } Py_INCREF(Py_None); | |
70551f47 RD |
2792 | _resultobj = Py_None; |
2793 | return _resultobj; | |
2794 | } | |
2795 | ||
2796 | #define wxWindow_Refresh(_swigobj,_swigarg0,_swigarg1) (_swigobj->Refresh(_swigarg0,_swigarg1)) | |
107e4716 | 2797 | static PyObject *_wrap_wxWindow_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2798 | PyObject * _resultobj; |
2799 | wxWindow * _arg0; | |
2d091820 RD |
2800 | bool _arg1 = (bool ) TRUE; |
2801 | wxRect * _arg2 = (wxRect *) NULL; | |
2802 | PyObject * _argo0 = 0; | |
2803 | int tempbool1 = (int) TRUE; | |
37f6a977 RD |
2804 | wxRect temp; |
2805 | PyObject * _obj2 = 0; | |
107e4716 | 2806 | char *_kwnames[] = { "self","eraseBackground","rect", NULL }; |
70551f47 RD |
2807 | |
2808 | self = self; | |
37f6a977 | 2809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxWindow_Refresh",_kwnames,&_argo0,&tempbool1,&_obj2)) |
70551f47 | 2810 | return NULL; |
2d091820 RD |
2811 | if (_argo0) { |
2812 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2813 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Refresh. Expected _wxWindow_p."); |
2815 | return NULL; | |
2816 | } | |
2817 | } | |
2818 | _arg1 = (bool ) tempbool1; | |
37f6a977 RD |
2819 | if (_obj2) |
2820 | { | |
2821 | _arg2 = &temp; | |
2822 | if (! wxRect_helper(_obj2, &_arg2)) | |
70551f47 | 2823 | return NULL; |
37f6a977 | 2824 | } |
ab9bc19b RD |
2825 | { |
2826 | wxPy_BEGIN_ALLOW_THREADS; | |
2827 | wxWindow_Refresh(_arg0,_arg1,_arg2); | |
2828 | ||
2829 | wxPy_END_ALLOW_THREADS; | |
2830 | } Py_INCREF(Py_None); | |
70551f47 RD |
2831 | _resultobj = Py_None; |
2832 | return _resultobj; | |
2833 | } | |
2834 | ||
2835 | #define wxWindow_ReleaseMouse(_swigobj) (_swigobj->ReleaseMouse()) | |
107e4716 | 2836 | static PyObject *_wrap_wxWindow_ReleaseMouse(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2837 | PyObject * _resultobj; |
2838 | wxWindow * _arg0; | |
2d091820 | 2839 | PyObject * _argo0 = 0; |
107e4716 | 2840 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
2841 | |
2842 | self = self; | |
107e4716 | 2843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_ReleaseMouse",_kwnames,&_argo0)) |
70551f47 | 2844 | return NULL; |
2d091820 RD |
2845 | if (_argo0) { |
2846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
2848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ReleaseMouse. Expected _wxWindow_p."); |
2849 | return NULL; | |
2850 | } | |
2851 | } | |
ab9bc19b RD |
2852 | { |
2853 | wxPy_BEGIN_ALLOW_THREADS; | |
2854 | wxWindow_ReleaseMouse(_arg0); | |
2855 | ||
2856 | wxPy_END_ALLOW_THREADS; | |
2857 | } Py_INCREF(Py_None); | |
70551f47 RD |
2858 | _resultobj = Py_None; |
2859 | return _resultobj; | |
2860 | } | |
2861 | ||
d24a34bb | 2862 | #define wxWindow_Reparent(_swigobj,_swigarg0) (_swigobj->Reparent(_swigarg0)) |
107e4716 | 2863 | static PyObject *_wrap_wxWindow_Reparent(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2864 | PyObject * _resultobj; |
2865 | bool _result; | |
2866 | wxWindow * _arg0; | |
2867 | wxWindow * _arg1; | |
2d091820 RD |
2868 | PyObject * _argo0 = 0; |
2869 | PyObject * _argo1 = 0; | |
107e4716 | 2870 | char *_kwnames[] = { "self","newParent", NULL }; |
d24a34bb RD |
2871 | |
2872 | self = self; | |
107e4716 | 2873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_Reparent",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 2874 | return NULL; |
2d091820 RD |
2875 | if (_argo0) { |
2876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
2878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Reparent. Expected _wxWindow_p."); |
2879 | return NULL; | |
2880 | } | |
2881 | } | |
2d091820 RD |
2882 | if (_argo1) { |
2883 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
2884 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
d24a34bb RD |
2885 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_Reparent. Expected _wxWindow_p."); |
2886 | return NULL; | |
2887 | } | |
2888 | } | |
2889 | { | |
2890 | wxPy_BEGIN_ALLOW_THREADS; | |
2891 | _result = (bool )wxWindow_Reparent(_arg0,_arg1); | |
2892 | ||
2893 | wxPy_END_ALLOW_THREADS; | |
2894 | } _resultobj = Py_BuildValue("i",_result); | |
2895 | return _resultobj; | |
2896 | } | |
2897 | ||
21f8d7ea | 2898 | #define wxWindow_ScreenToClientXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->ScreenToClient(_swigarg0,_swigarg1)) |
107e4716 | 2899 | static PyObject *_wrap_wxWindow_ScreenToClientXY(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2900 | PyObject * _resultobj; |
2901 | wxWindow * _arg0; | |
2902 | int * _arg1; | |
2903 | int * _arg2; | |
2d091820 | 2904 | PyObject * _argo0 = 0; |
70551f47 RD |
2905 | int temp; |
2906 | PyObject * _obj1 = 0; | |
2907 | int temp0; | |
2908 | PyObject * _obj2 = 0; | |
107e4716 | 2909 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
2910 | |
2911 | self = self; | |
107e4716 | 2912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxWindow_ScreenToClientXY",_kwnames,&_argo0,&_obj1,&_obj2)) |
70551f47 | 2913 | return NULL; |
2d091820 RD |
2914 | if (_argo0) { |
2915 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2916 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea | 2917 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClientXY. Expected _wxWindow_p."); |
70551f47 RD |
2918 | return NULL; |
2919 | } | |
2920 | } | |
2921 | { | |
2922 | temp = (int) PyInt_AsLong(_obj1); | |
2923 | _arg1 = &temp; | |
2924 | } | |
2925 | { | |
2926 | temp0 = (int) PyInt_AsLong(_obj2); | |
2927 | _arg2 = &temp0; | |
2928 | } | |
ab9bc19b RD |
2929 | { |
2930 | wxPy_BEGIN_ALLOW_THREADS; | |
2931 | wxWindow_ScreenToClientXY(_arg0,_arg1,_arg2); | |
2932 | ||
2933 | wxPy_END_ALLOW_THREADS; | |
2934 | } Py_INCREF(Py_None); | |
70551f47 RD |
2935 | _resultobj = Py_None; |
2936 | { | |
2937 | PyObject *o; | |
2938 | o = PyInt_FromLong((long) (*_arg1)); | |
2939 | _resultobj = t_output_helper(_resultobj, o); | |
2940 | } | |
2941 | { | |
2942 | PyObject *o; | |
2943 | o = PyInt_FromLong((long) (*_arg2)); | |
2944 | _resultobj = t_output_helper(_resultobj, o); | |
2945 | } | |
2946 | return _resultobj; | |
2947 | } | |
2948 | ||
d24a34bb | 2949 | #define wxWindow_ScreenToClient(_swigobj,_swigarg0) (_swigobj->ScreenToClient(_swigarg0)) |
107e4716 | 2950 | static PyObject *_wrap_wxWindow_ScreenToClient(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
2951 | PyObject * _resultobj; |
2952 | wxPoint * _result; | |
2953 | wxWindow * _arg0; | |
2954 | wxPoint * _arg1; | |
2d091820 | 2955 | PyObject * _argo0 = 0; |
37f6a977 RD |
2956 | wxPoint temp; |
2957 | PyObject * _obj1 = 0; | |
107e4716 | 2958 | char *_kwnames[] = { "self","pt", NULL }; |
d24a34bb RD |
2959 | char _ptemp[128]; |
2960 | ||
2961 | self = self; | |
37f6a977 | 2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ScreenToClient",_kwnames,&_argo0,&_obj1)) |
d24a34bb | 2963 | return NULL; |
2d091820 RD |
2964 | if (_argo0) { |
2965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
d24a34bb RD |
2967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScreenToClient. Expected _wxWindow_p."); |
2968 | return NULL; | |
2969 | } | |
2970 | } | |
37f6a977 RD |
2971 | { |
2972 | _arg1 = &temp; | |
2973 | if (! wxPoint_helper(_obj1, &_arg1)) | |
d24a34bb | 2974 | return NULL; |
37f6a977 | 2975 | } |
d24a34bb RD |
2976 | { |
2977 | wxPy_BEGIN_ALLOW_THREADS; | |
2978 | _result = new wxPoint (wxWindow_ScreenToClient(_arg0,*_arg1)); | |
2979 | ||
2980 | wxPy_END_ALLOW_THREADS; | |
2981 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
2982 | _resultobj = Py_BuildValue("s",_ptemp); | |
2983 | return _resultobj; | |
2984 | } | |
2985 | ||
70551f47 | 2986 | #define wxWindow_ScrollWindow(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->ScrollWindow(_swigarg0,_swigarg1,_swigarg2)) |
107e4716 | 2987 | static PyObject *_wrap_wxWindow_ScrollWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
2988 | PyObject * _resultobj; |
2989 | wxWindow * _arg0; | |
2990 | int _arg1; | |
2991 | int _arg2; | |
2d091820 RD |
2992 | wxRect * _arg3 = (wxRect *) NULL; |
2993 | PyObject * _argo0 = 0; | |
37f6a977 RD |
2994 | wxRect temp; |
2995 | PyObject * _obj3 = 0; | |
107e4716 | 2996 | char *_kwnames[] = { "self","dx","dy","rect", NULL }; |
70551f47 RD |
2997 | |
2998 | self = self; | |
37f6a977 | 2999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|O:wxWindow_ScrollWindow",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3)) |
70551f47 | 3000 | return NULL; |
2d091820 RD |
3001 | if (_argo0) { |
3002 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3003 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3004 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ScrollWindow. Expected _wxWindow_p."); |
3005 | return NULL; | |
3006 | } | |
3007 | } | |
37f6a977 RD |
3008 | if (_obj3) |
3009 | { | |
3010 | _arg3 = &temp; | |
3011 | if (! wxRect_helper(_obj3, &_arg3)) | |
70551f47 | 3012 | return NULL; |
37f6a977 | 3013 | } |
ab9bc19b RD |
3014 | { |
3015 | wxPy_BEGIN_ALLOW_THREADS; | |
3016 | wxWindow_ScrollWindow(_arg0,_arg1,_arg2,_arg3); | |
3017 | ||
3018 | wxPy_END_ALLOW_THREADS; | |
3019 | } Py_INCREF(Py_None); | |
70551f47 RD |
3020 | _resultobj = Py_None; |
3021 | return _resultobj; | |
3022 | } | |
3023 | ||
105e45b9 | 3024 | #define wxWindow_SetAcceleratorTable(_swigobj,_swigarg0) (_swigobj->SetAcceleratorTable(_swigarg0)) |
107e4716 | 3025 | static PyObject *_wrap_wxWindow_SetAcceleratorTable(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
3026 | PyObject * _resultobj; |
3027 | wxWindow * _arg0; | |
3028 | wxAcceleratorTable * _arg1; | |
2d091820 RD |
3029 | PyObject * _argo0 = 0; |
3030 | PyObject * _argo1 = 0; | |
107e4716 | 3031 | char *_kwnames[] = { "self","accel", NULL }; |
105e45b9 RD |
3032 | |
3033 | self = self; | |
107e4716 | 3034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetAcceleratorTable",_kwnames,&_argo0,&_argo1)) |
105e45b9 | 3035 | return NULL; |
2d091820 RD |
3036 | if (_argo0) { |
3037 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3038 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
3039 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAcceleratorTable. Expected _wxWindow_p."); |
3040 | return NULL; | |
3041 | } | |
3042 | } | |
2d091820 RD |
3043 | if (_argo1) { |
3044 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3045 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxAcceleratorTable_p")) { | |
105e45b9 RD |
3046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetAcceleratorTable. Expected _wxAcceleratorTable_p."); |
3047 | return NULL; | |
3048 | } | |
3049 | } | |
ab9bc19b RD |
3050 | { |
3051 | wxPy_BEGIN_ALLOW_THREADS; | |
3052 | wxWindow_SetAcceleratorTable(_arg0,*_arg1); | |
3053 | ||
3054 | wxPy_END_ALLOW_THREADS; | |
3055 | } Py_INCREF(Py_None); | |
105e45b9 RD |
3056 | _resultobj = Py_None; |
3057 | return _resultobj; | |
3058 | } | |
3059 | ||
70551f47 | 3060 | #define wxWindow_SetAutoLayout(_swigobj,_swigarg0) (_swigobj->SetAutoLayout(_swigarg0)) |
107e4716 | 3061 | static PyObject *_wrap_wxWindow_SetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3062 | PyObject * _resultobj; |
3063 | wxWindow * _arg0; | |
3064 | bool _arg1; | |
2d091820 | 3065 | PyObject * _argo0 = 0; |
70551f47 | 3066 | int tempbool1; |
107e4716 | 3067 | char *_kwnames[] = { "self","autoLayout", NULL }; |
70551f47 RD |
3068 | |
3069 | self = self; | |
107e4716 | 3070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetAutoLayout",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 3071 | return NULL; |
2d091820 RD |
3072 | if (_argo0) { |
3073 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3074 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3075 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetAutoLayout. Expected _wxWindow_p."); |
3076 | return NULL; | |
3077 | } | |
3078 | } | |
3079 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
3080 | { |
3081 | wxPy_BEGIN_ALLOW_THREADS; | |
3082 | wxWindow_SetAutoLayout(_arg0,_arg1); | |
3083 | ||
3084 | wxPy_END_ALLOW_THREADS; | |
3085 | } Py_INCREF(Py_None); | |
70551f47 RD |
3086 | _resultobj = Py_None; |
3087 | return _resultobj; | |
3088 | } | |
3089 | ||
1dec68aa RD |
3090 | #define wxWindow_GetAutoLayout(_swigobj) (_swigobj->GetAutoLayout()) |
3091 | static PyObject *_wrap_wxWindow_GetAutoLayout(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3092 | PyObject * _resultobj; | |
3093 | bool _result; | |
3094 | wxWindow * _arg0; | |
3095 | PyObject * _argo0 = 0; | |
3096 | char *_kwnames[] = { "self", NULL }; | |
3097 | ||
3098 | self = self; | |
3099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetAutoLayout",_kwnames,&_argo0)) | |
3100 | return NULL; | |
3101 | if (_argo0) { | |
3102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetAutoLayout. Expected _wxWindow_p."); | |
3105 | return NULL; | |
3106 | } | |
3107 | } | |
3108 | { | |
3109 | wxPy_BEGIN_ALLOW_THREADS; | |
3110 | _result = (bool )wxWindow_GetAutoLayout(_arg0); | |
3111 | ||
3112 | wxPy_END_ALLOW_THREADS; | |
3113 | } _resultobj = Py_BuildValue("i",_result); | |
3114 | return _resultobj; | |
3115 | } | |
3116 | ||
70551f47 | 3117 | #define wxWindow_SetBackgroundColour(_swigobj,_swigarg0) (_swigobj->SetBackgroundColour(_swigarg0)) |
107e4716 | 3118 | static PyObject *_wrap_wxWindow_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3119 | PyObject * _resultobj; |
3120 | wxWindow * _arg0; | |
3121 | wxColour * _arg1; | |
2d091820 RD |
3122 | PyObject * _argo0 = 0; |
3123 | PyObject * _argo1 = 0; | |
107e4716 | 3124 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
3125 | |
3126 | self = self; | |
107e4716 | 3127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetBackgroundColour",_kwnames,&_argo0,&_argo1)) |
70551f47 | 3128 | return NULL; |
2d091820 RD |
3129 | if (_argo0) { |
3130 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3131 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3132 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetBackgroundColour. Expected _wxWindow_p."); |
3133 | return NULL; | |
3134 | } | |
3135 | } | |
2d091820 RD |
3136 | if (_argo1) { |
3137 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3138 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
70551f47 RD |
3139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetBackgroundColour. Expected _wxColour_p."); |
3140 | return NULL; | |
3141 | } | |
3142 | } | |
ab9bc19b RD |
3143 | { |
3144 | wxPy_BEGIN_ALLOW_THREADS; | |
3145 | wxWindow_SetBackgroundColour(_arg0,*_arg1); | |
3146 | ||
3147 | wxPy_END_ALLOW_THREADS; | |
3148 | } Py_INCREF(Py_None); | |
70551f47 RD |
3149 | _resultobj = Py_None; |
3150 | return _resultobj; | |
3151 | } | |
3152 | ||
3153 | #define wxWindow_SetConstraints(_swigobj,_swigarg0) (_swigobj->SetConstraints(_swigarg0)) | |
107e4716 | 3154 | static PyObject *_wrap_wxWindow_SetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3155 | PyObject * _resultobj; |
3156 | wxWindow * _arg0; | |
3157 | wxLayoutConstraints * _arg1; | |
2d091820 RD |
3158 | PyObject * _argo0 = 0; |
3159 | PyObject * _argo1 = 0; | |
107e4716 | 3160 | char *_kwnames[] = { "self","constraints", NULL }; |
70551f47 RD |
3161 | |
3162 | self = self; | |
107e4716 | 3163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetConstraints",_kwnames,&_argo0,&_argo1)) |
70551f47 | 3164 | return NULL; |
2d091820 RD |
3165 | if (_argo0) { |
3166 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3167 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3168 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetConstraints. Expected _wxWindow_p."); |
3169 | return NULL; | |
3170 | } | |
3171 | } | |
2d091820 RD |
3172 | if (_argo1) { |
3173 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3174 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
70551f47 RD |
3175 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetConstraints. Expected _wxLayoutConstraints_p."); |
3176 | return NULL; | |
3177 | } | |
3178 | } | |
ab9bc19b RD |
3179 | { |
3180 | wxPy_BEGIN_ALLOW_THREADS; | |
3181 | wxWindow_SetConstraints(_arg0,_arg1); | |
3182 | ||
3183 | wxPy_END_ALLOW_THREADS; | |
3184 | } Py_INCREF(Py_None); | |
70551f47 RD |
3185 | _resultobj = Py_None; |
3186 | return _resultobj; | |
3187 | } | |
3188 | ||
37f6a977 RD |
3189 | #define wxWindow_UnsetConstraints(_swigobj,_swigarg0) (_swigobj->UnsetConstraints(_swigarg0)) |
3190 | static PyObject *_wrap_wxWindow_UnsetConstraints(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3191 | PyObject * _resultobj; | |
3192 | wxWindow * _arg0; | |
3193 | wxLayoutConstraints * _arg1; | |
3194 | PyObject * _argo0 = 0; | |
3195 | PyObject * _argo1 = 0; | |
3196 | char *_kwnames[] = { "self","constraints", NULL }; | |
3197 | ||
3198 | self = self; | |
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_UnsetConstraints",_kwnames,&_argo0,&_argo1)) | |
3200 | return NULL; | |
3201 | if (_argo0) { | |
3202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_UnsetConstraints. Expected _wxWindow_p."); | |
3205 | return NULL; | |
3206 | } | |
3207 | } | |
3208 | if (_argo1) { | |
3209 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3210 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLayoutConstraints_p")) { | |
3211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_UnsetConstraints. Expected _wxLayoutConstraints_p."); | |
3212 | return NULL; | |
3213 | } | |
3214 | } | |
3215 | { | |
3216 | wxPy_BEGIN_ALLOW_THREADS; | |
3217 | wxWindow_UnsetConstraints(_arg0,_arg1); | |
3218 | ||
3219 | wxPy_END_ALLOW_THREADS; | |
3220 | } Py_INCREF(Py_None); | |
3221 | _resultobj = Py_None; | |
3222 | return _resultobj; | |
3223 | } | |
3224 | ||
70551f47 | 3225 | #define wxWindow_SetFocus(_swigobj) (_swigobj->SetFocus()) |
107e4716 | 3226 | static PyObject *_wrap_wxWindow_SetFocus(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3227 | PyObject * _resultobj; |
3228 | wxWindow * _arg0; | |
2d091820 | 3229 | PyObject * _argo0 = 0; |
107e4716 | 3230 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3231 | |
3232 | self = self; | |
107e4716 | 3233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_SetFocus",_kwnames,&_argo0)) |
70551f47 | 3234 | return NULL; |
2d091820 RD |
3235 | if (_argo0) { |
3236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFocus. Expected _wxWindow_p."); |
3239 | return NULL; | |
3240 | } | |
3241 | } | |
ab9bc19b RD |
3242 | { |
3243 | wxPy_BEGIN_ALLOW_THREADS; | |
3244 | wxWindow_SetFocus(_arg0); | |
3245 | ||
3246 | wxPy_END_ALLOW_THREADS; | |
3247 | } Py_INCREF(Py_None); | |
70551f47 RD |
3248 | _resultobj = Py_None; |
3249 | return _resultobj; | |
3250 | } | |
3251 | ||
37f6a977 RD |
3252 | #define wxWindow_AcceptsFocus(_swigobj) (_swigobj->AcceptsFocus()) |
3253 | static PyObject *_wrap_wxWindow_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3254 | PyObject * _resultobj; | |
3255 | bool _result; | |
3256 | wxWindow * _arg0; | |
3257 | PyObject * _argo0 = 0; | |
3258 | char *_kwnames[] = { "self", NULL }; | |
3259 | ||
3260 | self = self; | |
3261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_AcceptsFocus",_kwnames,&_argo0)) | |
3262 | return NULL; | |
3263 | if (_argo0) { | |
3264 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3265 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3266 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_AcceptsFocus. Expected _wxWindow_p."); | |
3267 | return NULL; | |
3268 | } | |
3269 | } | |
3270 | { | |
3271 | wxPy_BEGIN_ALLOW_THREADS; | |
3272 | _result = (bool )wxWindow_AcceptsFocus(_arg0); | |
3273 | ||
3274 | wxPy_END_ALLOW_THREADS; | |
3275 | } _resultobj = Py_BuildValue("i",_result); | |
3276 | return _resultobj; | |
3277 | } | |
3278 | ||
70551f47 | 3279 | #define wxWindow_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0)) |
107e4716 | 3280 | static PyObject *_wrap_wxWindow_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3281 | PyObject * _resultobj; |
3282 | wxWindow * _arg0; | |
3283 | wxFont * _arg1; | |
2d091820 RD |
3284 | PyObject * _argo0 = 0; |
3285 | PyObject * _argo1 = 0; | |
107e4716 | 3286 | char *_kwnames[] = { "self","font", NULL }; |
70551f47 RD |
3287 | |
3288 | self = self; | |
107e4716 | 3289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetFont",_kwnames,&_argo0,&_argo1)) |
70551f47 | 3290 | return NULL; |
2d091820 RD |
3291 | if (_argo0) { |
3292 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3293 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3294 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetFont. Expected _wxWindow_p."); |
3295 | return NULL; | |
3296 | } | |
3297 | } | |
2d091820 RD |
3298 | if (_argo1) { |
3299 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3300 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) { | |
70551f47 RD |
3301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetFont. Expected _wxFont_p."); |
3302 | return NULL; | |
3303 | } | |
3304 | } | |
ab9bc19b RD |
3305 | { |
3306 | wxPy_BEGIN_ALLOW_THREADS; | |
3307 | wxWindow_SetFont(_arg0,*_arg1); | |
3308 | ||
3309 | wxPy_END_ALLOW_THREADS; | |
3310 | } Py_INCREF(Py_None); | |
70551f47 RD |
3311 | _resultobj = Py_None; |
3312 | return _resultobj; | |
3313 | } | |
3314 | ||
3315 | #define wxWindow_SetForegroundColour(_swigobj,_swigarg0) (_swigobj->SetForegroundColour(_swigarg0)) | |
107e4716 | 3316 | static PyObject *_wrap_wxWindow_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3317 | PyObject * _resultobj; |
3318 | wxWindow * _arg0; | |
3319 | wxColour * _arg1; | |
2d091820 RD |
3320 | PyObject * _argo0 = 0; |
3321 | PyObject * _argo1 = 0; | |
107e4716 | 3322 | char *_kwnames[] = { "self","colour", NULL }; |
70551f47 RD |
3323 | |
3324 | self = self; | |
107e4716 | 3325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetForegroundColour",_kwnames,&_argo0,&_argo1)) |
70551f47 | 3326 | return NULL; |
2d091820 RD |
3327 | if (_argo0) { |
3328 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3329 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3330 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetForegroundColour. Expected _wxWindow_p."); |
3331 | return NULL; | |
3332 | } | |
3333 | } | |
2d091820 RD |
3334 | if (_argo1) { |
3335 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3336 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxColour_p")) { | |
70551f47 RD |
3337 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetForegroundColour. Expected _wxColour_p."); |
3338 | return NULL; | |
3339 | } | |
3340 | } | |
ab9bc19b RD |
3341 | { |
3342 | wxPy_BEGIN_ALLOW_THREADS; | |
3343 | wxWindow_SetForegroundColour(_arg0,*_arg1); | |
3344 | ||
3345 | wxPy_END_ALLOW_THREADS; | |
3346 | } Py_INCREF(Py_None); | |
70551f47 RD |
3347 | _resultobj = Py_None; |
3348 | return _resultobj; | |
3349 | } | |
3350 | ||
3351 | #define wxWindow_SetId(_swigobj,_swigarg0) (_swigobj->SetId(_swigarg0)) | |
107e4716 | 3352 | static PyObject *_wrap_wxWindow_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3353 | PyObject * _resultobj; |
3354 | wxWindow * _arg0; | |
3355 | int _arg1; | |
2d091820 | 3356 | PyObject * _argo0 = 0; |
107e4716 | 3357 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
3358 | |
3359 | self = self; | |
107e4716 | 3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_SetId",_kwnames,&_argo0,&_arg1)) |
70551f47 | 3361 | return NULL; |
2d091820 RD |
3362 | if (_argo0) { |
3363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetId. Expected _wxWindow_p."); |
3366 | return NULL; | |
3367 | } | |
3368 | } | |
ab9bc19b RD |
3369 | { |
3370 | wxPy_BEGIN_ALLOW_THREADS; | |
3371 | wxWindow_SetId(_arg0,_arg1); | |
3372 | ||
3373 | wxPy_END_ALLOW_THREADS; | |
3374 | } Py_INCREF(Py_None); | |
70551f47 RD |
3375 | _resultobj = Py_None; |
3376 | return _resultobj; | |
3377 | } | |
3378 | ||
3379 | #define wxWindow_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) | |
107e4716 | 3380 | static PyObject *_wrap_wxWindow_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3381 | PyObject * _resultobj; |
3382 | wxWindow * _arg0; | |
3383 | wxString * _arg1; | |
2d091820 | 3384 | PyObject * _argo0 = 0; |
70551f47 | 3385 | PyObject * _obj1 = 0; |
107e4716 | 3386 | char *_kwnames[] = { "self","name", NULL }; |
70551f47 RD |
3387 | |
3388 | self = self; | |
107e4716 | 3389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetName",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3390 | return NULL; |
2d091820 RD |
3391 | if (_argo0) { |
3392 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3393 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3394 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetName. Expected _wxWindow_p."); |
3395 | return NULL; | |
3396 | } | |
3397 | } | |
3398 | { | |
3399 | if (!PyString_Check(_obj1)) { | |
3400 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3401 | return NULL; | |
3402 | } | |
ab9bc19b | 3403 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 3404 | } |
ab9bc19b RD |
3405 | { |
3406 | wxPy_BEGIN_ALLOW_THREADS; | |
3407 | wxWindow_SetName(_arg0,*_arg1); | |
3408 | ||
3409 | wxPy_END_ALLOW_THREADS; | |
3410 | } Py_INCREF(Py_None); | |
70551f47 RD |
3411 | _resultobj = Py_None; |
3412 | { | |
3413 | if (_obj1) | |
3414 | delete _arg1; | |
3415 | } | |
3416 | return _resultobj; | |
3417 | } | |
3418 | ||
70551f47 | 3419 | #define wxWindow_SetScrollbar(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetScrollbar(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) |
107e4716 | 3420 | static PyObject *_wrap_wxWindow_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3421 | PyObject * _resultobj; |
3422 | wxWindow * _arg0; | |
3423 | int _arg1; | |
3424 | int _arg2; | |
3425 | int _arg3; | |
3426 | int _arg4; | |
2d091820 RD |
3427 | bool _arg5 = (bool ) TRUE; |
3428 | PyObject * _argo0 = 0; | |
3429 | int tempbool5 = (int) TRUE; | |
107e4716 | 3430 | char *_kwnames[] = { "self","orientation","position","thumbSize","range","refresh", NULL }; |
70551f47 RD |
3431 | |
3432 | self = self; | |
107e4716 | 3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetScrollbar",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5)) |
70551f47 | 3434 | return NULL; |
2d091820 RD |
3435 | if (_argo0) { |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollbar. Expected _wxWindow_p."); |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
3442 | _arg5 = (bool ) tempbool5; | |
ab9bc19b RD |
3443 | { |
3444 | wxPy_BEGIN_ALLOW_THREADS; | |
3445 | wxWindow_SetScrollbar(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3446 | ||
3447 | wxPy_END_ALLOW_THREADS; | |
3448 | } Py_INCREF(Py_None); | |
70551f47 RD |
3449 | _resultobj = Py_None; |
3450 | return _resultobj; | |
3451 | } | |
3452 | ||
3453 | #define wxWindow_SetScrollPos(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetScrollPos(_swigarg0,_swigarg1,_swigarg2)) | |
107e4716 | 3454 | static PyObject *_wrap_wxWindow_SetScrollPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3455 | PyObject * _resultobj; |
3456 | wxWindow * _arg0; | |
3457 | int _arg1; | |
3458 | int _arg2; | |
2d091820 RD |
3459 | bool _arg3 = (bool ) TRUE; |
3460 | PyObject * _argo0 = 0; | |
3461 | int tempbool3 = (int) TRUE; | |
107e4716 | 3462 | char *_kwnames[] = { "self","orientation","pos","refresh", NULL }; |
70551f47 RD |
3463 | |
3464 | self = self; | |
107e4716 | 3465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii|i:wxWindow_SetScrollPos",_kwnames,&_argo0,&_arg1,&_arg2,&tempbool3)) |
70551f47 | 3466 | return NULL; |
2d091820 RD |
3467 | if (_argo0) { |
3468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetScrollPos. Expected _wxWindow_p."); |
3471 | return NULL; | |
3472 | } | |
3473 | } | |
3474 | _arg3 = (bool ) tempbool3; | |
ab9bc19b RD |
3475 | { |
3476 | wxPy_BEGIN_ALLOW_THREADS; | |
3477 | wxWindow_SetScrollPos(_arg0,_arg1,_arg2,_arg3); | |
3478 | ||
3479 | wxPy_END_ALLOW_THREADS; | |
3480 | } Py_INCREF(Py_None); | |
70551f47 RD |
3481 | _resultobj = Py_None; |
3482 | return _resultobj; | |
3483 | } | |
3484 | ||
3485 | #define wxWindow_SetDimensions(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->SetSize(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
107e4716 | 3486 | static PyObject *_wrap_wxWindow_SetDimensions(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3487 | PyObject * _resultobj; |
3488 | wxWindow * _arg0; | |
3489 | int _arg1; | |
3490 | int _arg2; | |
3491 | int _arg3; | |
3492 | int _arg4; | |
2d091820 RD |
3493 | int _arg5 = (int ) wxSIZE_AUTO; |
3494 | PyObject * _argo0 = 0; | |
107e4716 | 3495 | char *_kwnames[] = { "self","x","y","width","height","sizeFlags", NULL }; |
70551f47 RD |
3496 | |
3497 | self = self; | |
107e4716 | 3498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|i:wxWindow_SetDimensions",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5)) |
70551f47 | 3499 | return NULL; |
2d091820 RD |
3500 | if (_argo0) { |
3501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetDimensions. Expected _wxWindow_p."); |
3504 | return NULL; | |
3505 | } | |
3506 | } | |
ab9bc19b RD |
3507 | { |
3508 | wxPy_BEGIN_ALLOW_THREADS; | |
3509 | wxWindow_SetDimensions(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5); | |
3510 | ||
3511 | wxPy_END_ALLOW_THREADS; | |
3512 | } Py_INCREF(Py_None); | |
70551f47 RD |
3513 | _resultobj = Py_None; |
3514 | return _resultobj; | |
3515 | } | |
3516 | ||
3517 | static void wxWindow_SetSize(wxWindow *self,const wxSize & size) { | |
3518 | self->SetSize(size.x, size.y); | |
3519 | } | |
107e4716 | 3520 | static PyObject *_wrap_wxWindow_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3521 | PyObject * _resultobj; |
3522 | wxWindow * _arg0; | |
3523 | wxSize * _arg1; | |
2d091820 | 3524 | PyObject * _argo0 = 0; |
37f6a977 RD |
3525 | wxSize temp; |
3526 | PyObject * _obj1 = 0; | |
107e4716 | 3527 | char *_kwnames[] = { "self","size", NULL }; |
70551f47 RD |
3528 | |
3529 | self = self; | |
37f6a977 | 3530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSize",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3531 | return NULL; |
2d091820 RD |
3532 | if (_argo0) { |
3533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSize. Expected _wxWindow_p."); |
3536 | return NULL; | |
3537 | } | |
3538 | } | |
37f6a977 RD |
3539 | { |
3540 | _arg1 = &temp; | |
3541 | if (! wxSize_helper(_obj1, &_arg1)) | |
70551f47 | 3542 | return NULL; |
37f6a977 | 3543 | } |
ab9bc19b RD |
3544 | { |
3545 | wxPy_BEGIN_ALLOW_THREADS; | |
3546 | wxWindow_SetSize(_arg0,*_arg1); | |
3547 | ||
3548 | wxPy_END_ALLOW_THREADS; | |
3549 | } Py_INCREF(Py_None); | |
70551f47 RD |
3550 | _resultobj = Py_None; |
3551 | return _resultobj; | |
3552 | } | |
3553 | ||
3554 | static void wxWindow_SetPosition(wxWindow *self,const wxPoint & pos) { | |
3555 | self->SetSize(pos.x, pos.y, -1, -1); | |
3556 | } | |
107e4716 | 3557 | static PyObject *_wrap_wxWindow_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3558 | PyObject * _resultobj; |
3559 | wxWindow * _arg0; | |
3560 | wxPoint * _arg1; | |
2d091820 | 3561 | PyObject * _argo0 = 0; |
37f6a977 RD |
3562 | wxPoint temp; |
3563 | PyObject * _obj1 = 0; | |
107e4716 | 3564 | char *_kwnames[] = { "self","pos", NULL }; |
70551f47 RD |
3565 | |
3566 | self = self; | |
37f6a977 | 3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetPosition",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3568 | return NULL; |
2d091820 RD |
3569 | if (_argo0) { |
3570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetPosition. Expected _wxWindow_p."); |
3573 | return NULL; | |
3574 | } | |
3575 | } | |
37f6a977 RD |
3576 | { |
3577 | _arg1 = &temp; | |
3578 | if (! wxPoint_helper(_obj1, &_arg1)) | |
70551f47 | 3579 | return NULL; |
37f6a977 | 3580 | } |
ab9bc19b RD |
3581 | { |
3582 | wxPy_BEGIN_ALLOW_THREADS; | |
3583 | wxWindow_SetPosition(_arg0,*_arg1); | |
3584 | ||
3585 | wxPy_END_ALLOW_THREADS; | |
3586 | } Py_INCREF(Py_None); | |
70551f47 RD |
3587 | _resultobj = Py_None; |
3588 | return _resultobj; | |
3589 | } | |
3590 | ||
3591 | #define wxWindow_SetSizeHints(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetSizeHints(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 3592 | static PyObject *_wrap_wxWindow_SetSizeHints(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3593 | PyObject * _resultobj; |
3594 | wxWindow * _arg0; | |
2d091820 RD |
3595 | int _arg1 = (int ) -1; |
3596 | int _arg2 = (int ) -1; | |
3597 | int _arg3 = (int ) -1; | |
3598 | int _arg4 = (int ) -1; | |
3599 | int _arg5 = (int ) -1; | |
3600 | int _arg6 = (int ) -1; | |
3601 | PyObject * _argo0 = 0; | |
107e4716 | 3602 | char *_kwnames[] = { "self","minW","minH","maxW","maxH","incW","incH", NULL }; |
70551f47 RD |
3603 | |
3604 | self = self; | |
107e4716 | 3605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iiiiii:wxWindow_SetSizeHints",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 3606 | return NULL; |
2d091820 RD |
3607 | if (_argo0) { |
3608 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3609 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3610 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizeHints. Expected _wxWindow_p."); |
3611 | return NULL; | |
3612 | } | |
3613 | } | |
ab9bc19b RD |
3614 | { |
3615 | wxPy_BEGIN_ALLOW_THREADS; | |
3616 | wxWindow_SetSizeHints(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
3617 | ||
3618 | wxPy_END_ALLOW_THREADS; | |
3619 | } Py_INCREF(Py_None); | |
70551f47 RD |
3620 | _resultobj = Py_None; |
3621 | return _resultobj; | |
3622 | } | |
3623 | ||
21f8d7ea | 3624 | #define wxWindow_SetClientSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClientSize(_swigarg0,_swigarg1)) |
107e4716 | 3625 | static PyObject *_wrap_wxWindow_SetClientSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3626 | PyObject * _resultobj; |
3627 | wxWindow * _arg0; | |
3628 | int _arg1; | |
3629 | int _arg2; | |
2d091820 | 3630 | PyObject * _argo0 = 0; |
107e4716 | 3631 | char *_kwnames[] = { "self","width","height", NULL }; |
70551f47 RD |
3632 | |
3633 | self = self; | |
107e4716 | 3634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_SetClientSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 3635 | return NULL; |
2d091820 RD |
3636 | if (_argo0) { |
3637 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3638 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea | 3639 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSizeWH. Expected _wxWindow_p."); |
70551f47 RD |
3640 | return NULL; |
3641 | } | |
3642 | } | |
ab9bc19b RD |
3643 | { |
3644 | wxPy_BEGIN_ALLOW_THREADS; | |
3645 | wxWindow_SetClientSizeWH(_arg0,_arg1,_arg2); | |
3646 | ||
3647 | wxPy_END_ALLOW_THREADS; | |
3648 | } Py_INCREF(Py_None); | |
70551f47 RD |
3649 | _resultobj = Py_None; |
3650 | return _resultobj; | |
3651 | } | |
3652 | ||
afc48cd0 | 3653 | #define wxWindow_SetClientSize(_swigobj,_swigarg0) (_swigobj->SetClientSize(_swigarg0)) |
107e4716 | 3654 | static PyObject *_wrap_wxWindow_SetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
afc48cd0 RD |
3655 | PyObject * _resultobj; |
3656 | wxWindow * _arg0; | |
3657 | wxSize * _arg1; | |
2d091820 | 3658 | PyObject * _argo0 = 0; |
37f6a977 RD |
3659 | wxSize temp; |
3660 | PyObject * _obj1 = 0; | |
107e4716 | 3661 | char *_kwnames[] = { "self","size", NULL }; |
afc48cd0 RD |
3662 | |
3663 | self = self; | |
37f6a977 | 3664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetClientSize",_kwnames,&_argo0,&_obj1)) |
afc48cd0 | 3665 | return NULL; |
2d091820 RD |
3666 | if (_argo0) { |
3667 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3668 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
afc48cd0 RD |
3669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetClientSize. Expected _wxWindow_p."); |
3670 | return NULL; | |
3671 | } | |
3672 | } | |
37f6a977 RD |
3673 | { |
3674 | _arg1 = &temp; | |
3675 | if (! wxSize_helper(_obj1, &_arg1)) | |
afc48cd0 | 3676 | return NULL; |
37f6a977 | 3677 | } |
ab9bc19b RD |
3678 | { |
3679 | wxPy_BEGIN_ALLOW_THREADS; | |
3680 | wxWindow_SetClientSize(_arg0,*_arg1); | |
3681 | ||
3682 | wxPy_END_ALLOW_THREADS; | |
3683 | } Py_INCREF(Py_None); | |
afc48cd0 RD |
3684 | _resultobj = Py_None; |
3685 | return _resultobj; | |
3686 | } | |
3687 | ||
70551f47 | 3688 | #define wxWindow_SetCursor(_swigobj,_swigarg0) (_swigobj->SetCursor(_swigarg0)) |
107e4716 | 3689 | static PyObject *_wrap_wxWindow_SetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3690 | PyObject * _resultobj; |
3691 | wxWindow * _arg0; | |
3692 | wxCursor * _arg1; | |
2d091820 RD |
3693 | PyObject * _argo0 = 0; |
3694 | PyObject * _argo1 = 0; | |
107e4716 | 3695 | char *_kwnames[] = { "self","cursor", NULL }; |
70551f47 RD |
3696 | |
3697 | self = self; | |
107e4716 | 3698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetCursor",_kwnames,&_argo0,&_argo1)) |
70551f47 | 3699 | return NULL; |
2d091820 RD |
3700 | if (_argo0) { |
3701 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3702 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3703 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetCursor. Expected _wxWindow_p."); |
3704 | return NULL; | |
3705 | } | |
3706 | } | |
2d091820 RD |
3707 | if (_argo1) { |
3708 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3709 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
70551f47 RD |
3710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetCursor. Expected _wxCursor_p."); |
3711 | return NULL; | |
3712 | } | |
3713 | } | |
ab9bc19b RD |
3714 | { |
3715 | wxPy_BEGIN_ALLOW_THREADS; | |
3716 | wxWindow_SetCursor(_arg0,*_arg1); | |
3717 | ||
3718 | wxPy_END_ALLOW_THREADS; | |
3719 | } Py_INCREF(Py_None); | |
70551f47 RD |
3720 | _resultobj = Py_None; |
3721 | return _resultobj; | |
3722 | } | |
3723 | ||
9cce9de1 RD |
3724 | #define wxWindow_SetEventHandler(_swigobj,_swigarg0) (_swigobj->SetEventHandler(_swigarg0)) |
3725 | static PyObject *_wrap_wxWindow_SetEventHandler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3726 | PyObject * _resultobj; | |
3727 | wxWindow * _arg0; | |
3728 | wxEvtHandler * _arg1; | |
3729 | PyObject * _argo0 = 0; | |
3730 | PyObject * _argo1 = 0; | |
3731 | char *_kwnames[] = { "self","handler", NULL }; | |
3732 | ||
3733 | self = self; | |
3734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetEventHandler",_kwnames,&_argo0,&_argo1)) | |
3735 | return NULL; | |
3736 | if (_argo0) { | |
3737 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3738 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetEventHandler. Expected _wxWindow_p."); | |
3740 | return NULL; | |
3741 | } | |
3742 | } | |
3743 | if (_argo1) { | |
3744 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3745 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
3746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetEventHandler. Expected _wxEvtHandler_p."); | |
3747 | return NULL; | |
3748 | } | |
3749 | } | |
3750 | { | |
3751 | wxPy_BEGIN_ALLOW_THREADS; | |
3752 | wxWindow_SetEventHandler(_arg0,_arg1); | |
3753 | ||
3754 | wxPy_END_ALLOW_THREADS; | |
3755 | } Py_INCREF(Py_None); | |
3756 | _resultobj = Py_None; | |
3757 | return _resultobj; | |
3758 | } | |
3759 | ||
70551f47 | 3760 | #define wxWindow_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) |
107e4716 | 3761 | static PyObject *_wrap_wxWindow_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3762 | PyObject * _resultobj; |
3763 | wxWindow * _arg0; | |
3764 | wxString * _arg1; | |
2d091820 | 3765 | PyObject * _argo0 = 0; |
70551f47 | 3766 | PyObject * _obj1 = 0; |
107e4716 | 3767 | char *_kwnames[] = { "self","title", NULL }; |
70551f47 RD |
3768 | |
3769 | self = self; | |
107e4716 | 3770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetTitle",_kwnames,&_argo0,&_obj1)) |
70551f47 | 3771 | return NULL; |
2d091820 RD |
3772 | if (_argo0) { |
3773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetTitle. Expected _wxWindow_p."); |
3776 | return NULL; | |
3777 | } | |
3778 | } | |
3779 | { | |
3780 | if (!PyString_Check(_obj1)) { | |
3781 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3782 | return NULL; | |
3783 | } | |
ab9bc19b | 3784 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 3785 | } |
ab9bc19b RD |
3786 | { |
3787 | wxPy_BEGIN_ALLOW_THREADS; | |
3788 | wxWindow_SetTitle(_arg0,*_arg1); | |
3789 | ||
3790 | wxPy_END_ALLOW_THREADS; | |
3791 | } Py_INCREF(Py_None); | |
70551f47 RD |
3792 | _resultobj = Py_None; |
3793 | { | |
3794 | if (_obj1) | |
3795 | delete _arg1; | |
3796 | } | |
3797 | return _resultobj; | |
3798 | } | |
3799 | ||
3800 | #define wxWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
107e4716 | 3801 | static PyObject *_wrap_wxWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3802 | PyObject * _resultobj; |
3803 | bool _result; | |
3804 | wxWindow * _arg0; | |
3805 | bool _arg1; | |
2d091820 | 3806 | PyObject * _argo0 = 0; |
70551f47 | 3807 | int tempbool1; |
107e4716 | 3808 | char *_kwnames[] = { "self","show", NULL }; |
70551f47 RD |
3809 | |
3810 | self = self; | |
107e4716 | 3811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxWindow_Show",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 3812 | return NULL; |
2d091820 RD |
3813 | if (_argo0) { |
3814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Show. Expected _wxWindow_p."); |
3817 | return NULL; | |
3818 | } | |
3819 | } | |
3820 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
3821 | { |
3822 | wxPy_BEGIN_ALLOW_THREADS; | |
3823 | _result = (bool )wxWindow_Show(_arg0,_arg1); | |
3824 | ||
3825 | wxPy_END_ALLOW_THREADS; | |
3826 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3827 | return _resultobj; |
3828 | } | |
3829 | ||
3830 | #define wxWindow_TransferDataFromWindow(_swigobj) (_swigobj->TransferDataFromWindow()) | |
107e4716 | 3831 | static PyObject *_wrap_wxWindow_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3832 | PyObject * _resultobj; |
3833 | bool _result; | |
3834 | wxWindow * _arg0; | |
2d091820 | 3835 | PyObject * _argo0 = 0; |
107e4716 | 3836 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3837 | |
3838 | self = self; | |
107e4716 | 3839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataFromWindow",_kwnames,&_argo0)) |
70551f47 | 3840 | return NULL; |
2d091820 RD |
3841 | if (_argo0) { |
3842 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3843 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3844 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataFromWindow. Expected _wxWindow_p."); |
3845 | return NULL; | |
3846 | } | |
3847 | } | |
ab9bc19b RD |
3848 | { |
3849 | wxPy_BEGIN_ALLOW_THREADS; | |
3850 | _result = (bool )wxWindow_TransferDataFromWindow(_arg0); | |
3851 | ||
3852 | wxPy_END_ALLOW_THREADS; | |
3853 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3854 | return _resultobj; |
3855 | } | |
3856 | ||
3857 | #define wxWindow_TransferDataToWindow(_swigobj) (_swigobj->TransferDataToWindow()) | |
107e4716 | 3858 | static PyObject *_wrap_wxWindow_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3859 | PyObject * _resultobj; |
3860 | bool _result; | |
3861 | wxWindow * _arg0; | |
2d091820 | 3862 | PyObject * _argo0 = 0; |
107e4716 | 3863 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3864 | |
3865 | self = self; | |
107e4716 | 3866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_TransferDataToWindow",_kwnames,&_argo0)) |
70551f47 | 3867 | return NULL; |
2d091820 RD |
3868 | if (_argo0) { |
3869 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3870 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_TransferDataToWindow. Expected _wxWindow_p."); |
3872 | return NULL; | |
3873 | } | |
3874 | } | |
ab9bc19b RD |
3875 | { |
3876 | wxPy_BEGIN_ALLOW_THREADS; | |
3877 | _result = (bool )wxWindow_TransferDataToWindow(_arg0); | |
3878 | ||
3879 | wxPy_END_ALLOW_THREADS; | |
3880 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3881 | return _resultobj; |
3882 | } | |
3883 | ||
3884 | #define wxWindow_Validate(_swigobj) (_swigobj->Validate()) | |
107e4716 | 3885 | static PyObject *_wrap_wxWindow_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
3886 | PyObject * _resultobj; |
3887 | bool _result; | |
3888 | wxWindow * _arg0; | |
2d091820 | 3889 | PyObject * _argo0 = 0; |
107e4716 | 3890 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
3891 | |
3892 | self = self; | |
107e4716 | 3893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_Validate",_kwnames,&_argo0)) |
70551f47 | 3894 | return NULL; |
2d091820 RD |
3895 | if (_argo0) { |
3896 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3897 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
3898 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_Validate. Expected _wxWindow_p."); |
3899 | return NULL; | |
3900 | } | |
3901 | } | |
ab9bc19b RD |
3902 | { |
3903 | wxPy_BEGIN_ALLOW_THREADS; | |
3904 | _result = (bool )wxWindow_Validate(_arg0); | |
3905 | ||
3906 | wxPy_END_ALLOW_THREADS; | |
3907 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
3908 | return _resultobj; |
3909 | } | |
3910 | ||
c95e68d8 | 3911 | #define wxWindow_WarpPointer(_swigobj,_swigarg0,_swigarg1) (_swigobj->WarpPointer(_swigarg0,_swigarg1)) |
107e4716 | 3912 | static PyObject *_wrap_wxWindow_WarpPointer(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
3913 | PyObject * _resultobj; |
3914 | wxWindow * _arg0; | |
3915 | int _arg1; | |
3916 | int _arg2; | |
2d091820 | 3917 | PyObject * _argo0 = 0; |
107e4716 | 3918 | char *_kwnames[] = { "self","x","y", NULL }; |
c95e68d8 RD |
3919 | |
3920 | self = self; | |
107e4716 | 3921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxWindow_WarpPointer",_kwnames,&_argo0,&_arg1,&_arg2)) |
c95e68d8 | 3922 | return NULL; |
2d091820 RD |
3923 | if (_argo0) { |
3924 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3925 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
c95e68d8 RD |
3926 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_WarpPointer. Expected _wxWindow_p."); |
3927 | return NULL; | |
3928 | } | |
3929 | } | |
ab9bc19b RD |
3930 | { |
3931 | wxPy_BEGIN_ALLOW_THREADS; | |
3932 | wxWindow_WarpPointer(_arg0,_arg1,_arg2); | |
3933 | ||
3934 | wxPy_END_ALLOW_THREADS; | |
3935 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
3936 | _resultobj = Py_None; |
3937 | return _resultobj; | |
3938 | } | |
3939 | ||
105e45b9 | 3940 | #define wxWindow_ConvertDialogPointToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) |
107e4716 | 3941 | static PyObject *_wrap_wxWindow_ConvertDialogPointToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
3942 | PyObject * _resultobj; |
3943 | wxPoint * _result; | |
3944 | wxWindow * _arg0; | |
3945 | wxPoint * _arg1; | |
2d091820 | 3946 | PyObject * _argo0 = 0; |
37f6a977 RD |
3947 | wxPoint temp; |
3948 | PyObject * _obj1 = 0; | |
107e4716 | 3949 | char *_kwnames[] = { "self","pt", NULL }; |
105e45b9 RD |
3950 | char _ptemp[128]; |
3951 | ||
3952 | self = self; | |
37f6a977 | 3953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogPointToPixels",_kwnames,&_argo0,&_obj1)) |
105e45b9 | 3954 | return NULL; |
2d091820 RD |
3955 | if (_argo0) { |
3956 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3957 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
3958 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogPointToPixels. Expected _wxWindow_p."); |
3959 | return NULL; | |
3960 | } | |
3961 | } | |
37f6a977 RD |
3962 | { |
3963 | _arg1 = &temp; | |
3964 | if (! wxPoint_helper(_obj1, &_arg1)) | |
105e45b9 | 3965 | return NULL; |
37f6a977 | 3966 | } |
ab9bc19b RD |
3967 | { |
3968 | wxPy_BEGIN_ALLOW_THREADS; | |
3969 | _result = new wxPoint (wxWindow_ConvertDialogPointToPixels(_arg0,*_arg1)); | |
3970 | ||
3971 | wxPy_END_ALLOW_THREADS; | |
3972 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
105e45b9 RD |
3973 | _resultobj = Py_BuildValue("s",_ptemp); |
3974 | return _resultobj; | |
3975 | } | |
3976 | ||
3977 | #define wxWindow_ConvertDialogSizeToPixels(_swigobj,_swigarg0) (_swigobj->ConvertDialogToPixels(_swigarg0)) | |
107e4716 | 3978 | static PyObject *_wrap_wxWindow_ConvertDialogSizeToPixels(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
3979 | PyObject * _resultobj; |
3980 | wxSize * _result; | |
3981 | wxWindow * _arg0; | |
3982 | wxSize * _arg1; | |
2d091820 | 3983 | PyObject * _argo0 = 0; |
37f6a977 RD |
3984 | wxSize temp; |
3985 | PyObject * _obj1 = 0; | |
107e4716 | 3986 | char *_kwnames[] = { "self","sz", NULL }; |
105e45b9 RD |
3987 | char _ptemp[128]; |
3988 | ||
3989 | self = self; | |
37f6a977 | 3990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertDialogSizeToPixels",_kwnames,&_argo0,&_obj1)) |
105e45b9 | 3991 | return NULL; |
2d091820 RD |
3992 | if (_argo0) { |
3993 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3994 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
3995 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertDialogSizeToPixels. Expected _wxWindow_p."); |
3996 | return NULL; | |
3997 | } | |
3998 | } | |
37f6a977 RD |
3999 | { |
4000 | _arg1 = &temp; | |
4001 | if (! wxSize_helper(_obj1, &_arg1)) | |
105e45b9 | 4002 | return NULL; |
37f6a977 | 4003 | } |
ab9bc19b RD |
4004 | { |
4005 | wxPy_BEGIN_ALLOW_THREADS; | |
4006 | _result = new wxSize (wxWindow_ConvertDialogSizeToPixels(_arg0,*_arg1)); | |
4007 | ||
4008 | wxPy_END_ALLOW_THREADS; | |
4009 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
105e45b9 RD |
4010 | _resultobj = Py_BuildValue("s",_ptemp); |
4011 | return _resultobj; | |
4012 | } | |
4013 | ||
4014 | #define wxWindow_ConvertPixelPointToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
107e4716 | 4015 | static PyObject *_wrap_wxWindow_ConvertPixelPointToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
4016 | PyObject * _resultobj; |
4017 | wxPoint * _result; | |
4018 | wxWindow * _arg0; | |
4019 | wxPoint * _arg1; | |
2d091820 | 4020 | PyObject * _argo0 = 0; |
37f6a977 RD |
4021 | wxPoint temp; |
4022 | PyObject * _obj1 = 0; | |
107e4716 | 4023 | char *_kwnames[] = { "self","pt", NULL }; |
105e45b9 RD |
4024 | char _ptemp[128]; |
4025 | ||
4026 | self = self; | |
37f6a977 | 4027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelPointToDialog",_kwnames,&_argo0,&_obj1)) |
105e45b9 | 4028 | return NULL; |
2d091820 RD |
4029 | if (_argo0) { |
4030 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4031 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
4032 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelPointToDialog. Expected _wxWindow_p."); |
4033 | return NULL; | |
4034 | } | |
4035 | } | |
37f6a977 RD |
4036 | { |
4037 | _arg1 = &temp; | |
4038 | if (! wxPoint_helper(_obj1, &_arg1)) | |
105e45b9 | 4039 | return NULL; |
37f6a977 | 4040 | } |
ab9bc19b RD |
4041 | { |
4042 | wxPy_BEGIN_ALLOW_THREADS; | |
4043 | _result = new wxPoint (wxWindow_ConvertPixelPointToDialog(_arg0,*_arg1)); | |
4044 | ||
4045 | wxPy_END_ALLOW_THREADS; | |
4046 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); | |
105e45b9 RD |
4047 | _resultobj = Py_BuildValue("s",_ptemp); |
4048 | return _resultobj; | |
4049 | } | |
4050 | ||
4051 | #define wxWindow_ConvertPixelSizeToDialog(_swigobj,_swigarg0) (_swigobj->ConvertPixelsToDialog(_swigarg0)) | |
107e4716 | 4052 | static PyObject *_wrap_wxWindow_ConvertPixelSizeToDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
105e45b9 RD |
4053 | PyObject * _resultobj; |
4054 | wxSize * _result; | |
4055 | wxWindow * _arg0; | |
4056 | wxSize * _arg1; | |
2d091820 | 4057 | PyObject * _argo0 = 0; |
37f6a977 RD |
4058 | wxSize temp; |
4059 | PyObject * _obj1 = 0; | |
107e4716 | 4060 | char *_kwnames[] = { "self","sz", NULL }; |
105e45b9 RD |
4061 | char _ptemp[128]; |
4062 | ||
4063 | self = self; | |
37f6a977 | 4064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_ConvertPixelSizeToDialog",_kwnames,&_argo0,&_obj1)) |
105e45b9 | 4065 | return NULL; |
2d091820 RD |
4066 | if (_argo0) { |
4067 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4068 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
105e45b9 RD |
4069 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_ConvertPixelSizeToDialog. Expected _wxWindow_p."); |
4070 | return NULL; | |
4071 | } | |
4072 | } | |
37f6a977 RD |
4073 | { |
4074 | _arg1 = &temp; | |
4075 | if (! wxSize_helper(_obj1, &_arg1)) | |
105e45b9 | 4076 | return NULL; |
37f6a977 | 4077 | } |
ab9bc19b RD |
4078 | { |
4079 | wxPy_BEGIN_ALLOW_THREADS; | |
4080 | _result = new wxSize (wxWindow_ConvertPixelSizeToDialog(_arg0,*_arg1)); | |
4081 | ||
4082 | wxPy_END_ALLOW_THREADS; | |
4083 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); | |
105e45b9 RD |
4084 | _resultobj = Py_BuildValue("s",_ptemp); |
4085 | return _resultobj; | |
4086 | } | |
4087 | ||
21f8d7ea | 4088 | #define wxWindow_SetToolTipString(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) |
107e4716 | 4089 | static PyObject *_wrap_wxWindow_SetToolTipString(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
4090 | PyObject * _resultobj; |
4091 | wxWindow * _arg0; | |
4092 | wxString * _arg1; | |
2d091820 | 4093 | PyObject * _argo0 = 0; |
21f8d7ea | 4094 | PyObject * _obj1 = 0; |
107e4716 | 4095 | char *_kwnames[] = { "self","tip", NULL }; |
21f8d7ea RD |
4096 | |
4097 | self = self; | |
107e4716 | 4098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTipString",_kwnames,&_argo0,&_obj1)) |
21f8d7ea | 4099 | return NULL; |
2d091820 RD |
4100 | if (_argo0) { |
4101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea RD |
4103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTipString. Expected _wxWindow_p."); |
4104 | return NULL; | |
4105 | } | |
4106 | } | |
4107 | { | |
4108 | if (!PyString_Check(_obj1)) { | |
4109 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4110 | return NULL; | |
4111 | } | |
ab9bc19b | 4112 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
21f8d7ea | 4113 | } |
ab9bc19b RD |
4114 | { |
4115 | wxPy_BEGIN_ALLOW_THREADS; | |
4116 | wxWindow_SetToolTipString(_arg0,*_arg1); | |
4117 | ||
4118 | wxPy_END_ALLOW_THREADS; | |
4119 | } Py_INCREF(Py_None); | |
21f8d7ea RD |
4120 | _resultobj = Py_None; |
4121 | { | |
4122 | if (_obj1) | |
4123 | delete _arg1; | |
4124 | } | |
4125 | return _resultobj; | |
4126 | } | |
4127 | ||
4128 | #define wxWindow_SetToolTip(_swigobj,_swigarg0) (_swigobj->SetToolTip(_swigarg0)) | |
107e4716 | 4129 | static PyObject *_wrap_wxWindow_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
4130 | PyObject * _resultobj; |
4131 | wxWindow * _arg0; | |
4132 | wxToolTip * _arg1; | |
2d091820 RD |
4133 | PyObject * _argo0 = 0; |
4134 | PyObject * _argo1 = 0; | |
107e4716 | 4135 | char *_kwnames[] = { "self","tooltip", NULL }; |
21f8d7ea RD |
4136 | |
4137 | self = self; | |
107e4716 | 4138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetToolTip",_kwnames,&_argo0,&_argo1)) |
21f8d7ea | 4139 | return NULL; |
2d091820 RD |
4140 | if (_argo0) { |
4141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea RD |
4143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetToolTip. Expected _wxWindow_p."); |
4144 | return NULL; | |
4145 | } | |
4146 | } | |
2d091820 RD |
4147 | if (_argo1) { |
4148 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4149 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxToolTip_p")) { | |
21f8d7ea RD |
4150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetToolTip. Expected _wxToolTip_p."); |
4151 | return NULL; | |
4152 | } | |
4153 | } | |
ab9bc19b RD |
4154 | { |
4155 | wxPy_BEGIN_ALLOW_THREADS; | |
4156 | wxWindow_SetToolTip(_arg0,_arg1); | |
4157 | ||
4158 | wxPy_END_ALLOW_THREADS; | |
4159 | } Py_INCREF(Py_None); | |
21f8d7ea RD |
4160 | _resultobj = Py_None; |
4161 | return _resultobj; | |
4162 | } | |
4163 | ||
4164 | #define wxWindow_GetToolTip(_swigobj) (_swigobj->GetToolTip()) | |
107e4716 | 4165 | static PyObject *_wrap_wxWindow_GetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
21f8d7ea RD |
4166 | PyObject * _resultobj; |
4167 | wxToolTip * _result; | |
4168 | wxWindow * _arg0; | |
2d091820 | 4169 | PyObject * _argo0 = 0; |
107e4716 | 4170 | char *_kwnames[] = { "self", NULL }; |
21f8d7ea RD |
4171 | char _ptemp[128]; |
4172 | ||
4173 | self = self; | |
107e4716 | 4174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetToolTip",_kwnames,&_argo0)) |
21f8d7ea | 4175 | return NULL; |
2d091820 RD |
4176 | if (_argo0) { |
4177 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4178 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
21f8d7ea RD |
4179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetToolTip. Expected _wxWindow_p."); |
4180 | return NULL; | |
4181 | } | |
4182 | } | |
ab9bc19b RD |
4183 | { |
4184 | wxPy_BEGIN_ALLOW_THREADS; | |
4185 | _result = (wxToolTip *)wxWindow_GetToolTip(_arg0); | |
4186 | ||
4187 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4188 | } if (_result) { |
4189 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
4190 | _resultobj = Py_BuildValue("s",_ptemp); | |
4191 | } else { | |
4192 | Py_INCREF(Py_None); | |
4193 | _resultobj = Py_None; | |
4194 | } | |
21f8d7ea RD |
4195 | return _resultobj; |
4196 | } | |
4197 | ||
37f6a977 RD |
4198 | #define wxWindow_SetSizer(_swigobj,_swigarg0) (_swigobj->SetSizer(_swigarg0)) |
4199 | static PyObject *_wrap_wxWindow_SetSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4200 | PyObject * _resultobj; | |
4201 | wxWindow * _arg0; | |
4202 | wxSizer * _arg1; | |
4203 | PyObject * _argo0 = 0; | |
4204 | PyObject * _argo1 = 0; | |
4205 | char *_kwnames[] = { "self","sizer", NULL }; | |
4206 | ||
4207 | self = self; | |
4208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetSizer",_kwnames,&_argo0,&_argo1)) | |
4209 | return NULL; | |
4210 | if (_argo0) { | |
4211 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4212 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4213 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetSizer. Expected _wxWindow_p."); | |
4214 | return NULL; | |
4215 | } | |
4216 | } | |
4217 | if (_argo1) { | |
4218 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4219 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxSizer_p")) { | |
4220 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetSizer. Expected _wxSizer_p."); | |
4221 | return NULL; | |
4222 | } | |
4223 | } | |
4224 | { | |
4225 | wxPy_BEGIN_ALLOW_THREADS; | |
4226 | wxWindow_SetSizer(_arg0,_arg1); | |
4227 | ||
4228 | wxPy_END_ALLOW_THREADS; | |
4229 | } Py_INCREF(Py_None); | |
4230 | _resultobj = Py_None; | |
4231 | return _resultobj; | |
4232 | } | |
4233 | ||
4234 | #define wxWindow_GetValidator(_swigobj) (_swigobj->GetValidator()) | |
4235 | static PyObject *_wrap_wxWindow_GetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject * _resultobj; | |
4237 | wxValidator * _result; | |
4238 | wxWindow * _arg0; | |
4239 | PyObject * _argo0 = 0; | |
4240 | char *_kwnames[] = { "self", NULL }; | |
4241 | char _ptemp[128]; | |
4242 | ||
4243 | self = self; | |
4244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWindow_GetValidator",_kwnames,&_argo0)) | |
4245 | return NULL; | |
4246 | if (_argo0) { | |
4247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_GetValidator. Expected _wxWindow_p."); | |
4250 | return NULL; | |
4251 | } | |
4252 | } | |
4253 | { | |
4254 | wxPy_BEGIN_ALLOW_THREADS; | |
4255 | _result = (wxValidator *)wxWindow_GetValidator(_arg0); | |
4256 | ||
4257 | wxPy_END_ALLOW_THREADS; | |
4258 | } if (_result) { | |
4259 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxValidator_p"); | |
4260 | _resultobj = Py_BuildValue("s",_ptemp); | |
4261 | } else { | |
4262 | Py_INCREF(Py_None); | |
4263 | _resultobj = Py_None; | |
4264 | } | |
4265 | return _resultobj; | |
4266 | } | |
4267 | ||
4268 | #define wxWindow_SetValidator(_swigobj,_swigarg0) (_swigobj->SetValidator(_swigarg0)) | |
4269 | static PyObject *_wrap_wxWindow_SetValidator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4270 | PyObject * _resultobj; | |
4271 | wxWindow * _arg0; | |
4272 | wxValidator * _arg1; | |
4273 | PyObject * _argo0 = 0; | |
4274 | PyObject * _argo1 = 0; | |
4275 | char *_kwnames[] = { "self","validator", NULL }; | |
4276 | ||
4277 | self = self; | |
4278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxWindow_SetValidator",_kwnames,&_argo0,&_argo1)) | |
4279 | return NULL; | |
4280 | if (_argo0) { | |
4281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
4283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWindow_SetValidator. Expected _wxWindow_p."); | |
4284 | return NULL; | |
4285 | } | |
4286 | } | |
4287 | if (_argo1) { | |
4288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxValidator_p")) { | |
4290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxWindow_SetValidator. Expected _wxValidator_p."); | |
4291 | return NULL; | |
4292 | } | |
4293 | } | |
4294 | { | |
4295 | wxPy_BEGIN_ALLOW_THREADS; | |
4296 | wxWindow_SetValidator(_arg0,*_arg1); | |
4297 | ||
4298 | wxPy_END_ALLOW_THREADS; | |
4299 | } Py_INCREF(Py_None); | |
4300 | _resultobj = Py_None; | |
4301 | return _resultobj; | |
4302 | } | |
4303 | ||
70551f47 RD |
4304 | static void *SwigwxPanelTowxWindow(void *ptr) { |
4305 | wxPanel *src; | |
4306 | wxWindow *dest; | |
4307 | src = (wxPanel *) ptr; | |
4308 | dest = (wxWindow *) src; | |
4309 | return (void *) dest; | |
4310 | } | |
4311 | ||
4312 | static void *SwigwxPanelTowxEvtHandler(void *ptr) { | |
4313 | wxPanel *src; | |
4314 | wxEvtHandler *dest; | |
4315 | src = (wxPanel *) ptr; | |
4316 | dest = (wxEvtHandler *) src; | |
4317 | return (void *) dest; | |
4318 | } | |
4319 | ||
4320 | #define new_wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxPanel(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 4321 | static PyObject *_wrap_new_wxPanel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4322 | PyObject * _resultobj; |
4323 | wxPanel * _result; | |
4324 | wxWindow * _arg0; | |
4325 | wxWindowID _arg1; | |
2d091820 RD |
4326 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; |
4327 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
4328 | long _arg4 = (long ) wxTAB_TRAVERSAL; | |
4329 | char * _arg5 = (char *) "panel"; | |
4330 | PyObject * _argo0 = 0; | |
37f6a977 RD |
4331 | wxPoint temp; |
4332 | PyObject * _obj2 = 0; | |
4333 | wxSize temp0; | |
4334 | PyObject * _obj3 = 0; | |
107e4716 | 4335 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
70551f47 RD |
4336 | char _ptemp[128]; |
4337 | ||
4338 | self = self; | |
37f6a977 | 4339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|OOls:new_wxPanel",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
70551f47 | 4340 | return NULL; |
2d091820 RD |
4341 | if (_argo0) { |
4342 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4343 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4344 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPanel. Expected _wxWindow_p."); |
4345 | return NULL; | |
4346 | } | |
4347 | } | |
37f6a977 RD |
4348 | if (_obj2) |
4349 | { | |
4350 | _arg2 = &temp; | |
4351 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 4352 | return NULL; |
37f6a977 RD |
4353 | } |
4354 | if (_obj3) | |
4355 | { | |
4356 | _arg3 = &temp0; | |
4357 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 4358 | return NULL; |
37f6a977 | 4359 | } |
ab9bc19b RD |
4360 | { |
4361 | wxPy_BEGIN_ALLOW_THREADS; | |
4362 | _result = (wxPanel *)new_wxPanel(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
4363 | ||
4364 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4365 | } if (_result) { |
4366 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPanel_p"); | |
4367 | _resultobj = Py_BuildValue("s",_ptemp); | |
4368 | } else { | |
4369 | Py_INCREF(Py_None); | |
4370 | _resultobj = Py_None; | |
4371 | } | |
70551f47 RD |
4372 | return _resultobj; |
4373 | } | |
4374 | ||
4375 | #define wxPanel_InitDialog(_swigobj) (_swigobj->InitDialog()) | |
107e4716 | 4376 | static PyObject *_wrap_wxPanel_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4377 | PyObject * _resultobj; |
4378 | wxPanel * _arg0; | |
2d091820 | 4379 | PyObject * _argo0 = 0; |
107e4716 | 4380 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4381 | |
4382 | self = self; | |
107e4716 | 4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_InitDialog",_kwnames,&_argo0)) |
70551f47 | 4384 | return NULL; |
2d091820 RD |
4385 | if (_argo0) { |
4386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
70551f47 RD |
4388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_InitDialog. Expected _wxPanel_p."); |
4389 | return NULL; | |
4390 | } | |
4391 | } | |
ab9bc19b RD |
4392 | { |
4393 | wxPy_BEGIN_ALLOW_THREADS; | |
4394 | wxPanel_InitDialog(_arg0); | |
4395 | ||
4396 | wxPy_END_ALLOW_THREADS; | |
4397 | } Py_INCREF(Py_None); | |
70551f47 RD |
4398 | _resultobj = Py_None; |
4399 | return _resultobj; | |
4400 | } | |
4401 | ||
d24a34bb | 4402 | #define wxPanel_GetDefaultItem(_swigobj) (_swigobj->GetDefaultItem()) |
107e4716 | 4403 | static PyObject *_wrap_wxPanel_GetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4404 | PyObject * _resultobj; |
4405 | wxButton * _result; | |
4406 | wxPanel * _arg0; | |
2d091820 | 4407 | PyObject * _argo0 = 0; |
107e4716 | 4408 | char *_kwnames[] = { "self", NULL }; |
d24a34bb RD |
4409 | char _ptemp[128]; |
4410 | ||
4411 | self = self; | |
107e4716 | 4412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPanel_GetDefaultItem",_kwnames,&_argo0)) |
d24a34bb | 4413 | return NULL; |
2d091820 RD |
4414 | if (_argo0) { |
4415 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4416 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
d24a34bb RD |
4417 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_GetDefaultItem. Expected _wxPanel_p."); |
4418 | return NULL; | |
4419 | } | |
4420 | } | |
4421 | { | |
4422 | wxPy_BEGIN_ALLOW_THREADS; | |
4423 | _result = (wxButton *)wxPanel_GetDefaultItem(_arg0); | |
4424 | ||
4425 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4426 | } if (_result) { |
4427 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxButton_p"); | |
4428 | _resultobj = Py_BuildValue("s",_ptemp); | |
4429 | } else { | |
4430 | Py_INCREF(Py_None); | |
4431 | _resultobj = Py_None; | |
4432 | } | |
d24a34bb RD |
4433 | return _resultobj; |
4434 | } | |
4435 | ||
4436 | #define wxPanel_SetDefaultItem(_swigobj,_swigarg0) (_swigobj->SetDefaultItem(_swigarg0)) | |
107e4716 | 4437 | static PyObject *_wrap_wxPanel_SetDefaultItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
d24a34bb RD |
4438 | PyObject * _resultobj; |
4439 | wxPanel * _arg0; | |
4440 | wxButton * _arg1; | |
2d091820 RD |
4441 | PyObject * _argo0 = 0; |
4442 | PyObject * _argo1 = 0; | |
107e4716 | 4443 | char *_kwnames[] = { "self","btn", NULL }; |
d24a34bb RD |
4444 | |
4445 | self = self; | |
107e4716 | 4446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPanel_SetDefaultItem",_kwnames,&_argo0,&_argo1)) |
d24a34bb | 4447 | return NULL; |
2d091820 RD |
4448 | if (_argo0) { |
4449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPanel_p")) { | |
d24a34bb RD |
4451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPanel_SetDefaultItem. Expected _wxPanel_p."); |
4452 | return NULL; | |
4453 | } | |
4454 | } | |
2d091820 RD |
4455 | if (_argo1) { |
4456 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4457 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxButton_p")) { | |
d24a34bb RD |
4458 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPanel_SetDefaultItem. Expected _wxButton_p."); |
4459 | return NULL; | |
4460 | } | |
4461 | } | |
4462 | { | |
4463 | wxPy_BEGIN_ALLOW_THREADS; | |
4464 | wxPanel_SetDefaultItem(_arg0,_arg1); | |
4465 | ||
4466 | wxPy_END_ALLOW_THREADS; | |
4467 | } Py_INCREF(Py_None); | |
4468 | _resultobj = Py_None; | |
4469 | return _resultobj; | |
4470 | } | |
4471 | ||
70551f47 RD |
4472 | static void *SwigwxDialogTowxPanel(void *ptr) { |
4473 | wxDialog *src; | |
4474 | wxPanel *dest; | |
4475 | src = (wxDialog *) ptr; | |
4476 | dest = (wxPanel *) src; | |
4477 | return (void *) dest; | |
4478 | } | |
4479 | ||
4480 | static void *SwigwxDialogTowxWindow(void *ptr) { | |
4481 | wxDialog *src; | |
4482 | wxWindow *dest; | |
4483 | src = (wxDialog *) ptr; | |
4484 | dest = (wxWindow *) src; | |
4485 | return (void *) dest; | |
4486 | } | |
4487 | ||
4488 | static void *SwigwxDialogTowxEvtHandler(void *ptr) { | |
4489 | wxDialog *src; | |
4490 | wxEvtHandler *dest; | |
4491 | src = (wxDialog *) ptr; | |
4492 | dest = (wxEvtHandler *) src; | |
4493 | return (void *) dest; | |
4494 | } | |
4495 | ||
4496 | #define new_wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxDialog(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6)) | |
107e4716 | 4497 | static PyObject *_wrap_new_wxDialog(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4498 | PyObject * _resultobj; |
4499 | wxDialog * _result; | |
4500 | wxWindow * _arg0; | |
4501 | wxWindowID _arg1; | |
4502 | wxString * _arg2; | |
2d091820 RD |
4503 | wxPoint * _arg3 = (wxPoint *) &wxPyDefaultPosition; |
4504 | wxSize * _arg4 = (wxSize *) &wxPyDefaultSize; | |
4505 | long _arg5 = (long ) wxDEFAULT_DIALOG_STYLE; | |
4506 | char * _arg6 = (char *) "dialogBox"; | |
4507 | PyObject * _argo0 = 0; | |
70551f47 | 4508 | PyObject * _obj2 = 0; |
37f6a977 RD |
4509 | wxPoint temp; |
4510 | PyObject * _obj3 = 0; | |
4511 | wxSize temp0; | |
4512 | PyObject * _obj4 = 0; | |
107e4716 | 4513 | char *_kwnames[] = { "parent","id","title","pos","size","style","name", NULL }; |
70551f47 RD |
4514 | char _ptemp[128]; |
4515 | ||
4516 | self = self; | |
37f6a977 | 4517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|OOls:new_wxDialog",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_obj4,&_arg5,&_arg6)) |
70551f47 | 4518 | return NULL; |
2d091820 RD |
4519 | if (_argo0) { |
4520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDialog. Expected _wxWindow_p."); |
4523 | return NULL; | |
4524 | } | |
4525 | } | |
4526 | { | |
4527 | if (!PyString_Check(_obj2)) { | |
4528 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4529 | return NULL; | |
4530 | } | |
ab9bc19b | 4531 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 | 4532 | } |
37f6a977 RD |
4533 | if (_obj3) |
4534 | { | |
4535 | _arg3 = &temp; | |
4536 | if (! wxPoint_helper(_obj3, &_arg3)) | |
70551f47 | 4537 | return NULL; |
37f6a977 RD |
4538 | } |
4539 | if (_obj4) | |
4540 | { | |
4541 | _arg4 = &temp0; | |
4542 | if (! wxSize_helper(_obj4, &_arg4)) | |
70551f47 | 4543 | return NULL; |
37f6a977 | 4544 | } |
ab9bc19b RD |
4545 | { |
4546 | wxPy_BEGIN_ALLOW_THREADS; | |
4547 | _result = (wxDialog *)new_wxDialog(_arg0,_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6); | |
4548 | ||
4549 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4550 | } if (_result) { |
4551 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxDialog_p"); | |
4552 | _resultobj = Py_BuildValue("s",_ptemp); | |
4553 | } else { | |
4554 | Py_INCREF(Py_None); | |
4555 | _resultobj = Py_None; | |
4556 | } | |
70551f47 RD |
4557 | { |
4558 | if (_obj2) | |
4559 | delete _arg2; | |
4560 | } | |
4561 | return _resultobj; | |
4562 | } | |
4563 | ||
4564 | #define wxDialog_Centre(_swigobj,_swigarg0) (_swigobj->Centre(_swigarg0)) | |
107e4716 | 4565 | static PyObject *_wrap_wxDialog_Centre(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4566 | PyObject * _resultobj; |
4567 | wxDialog * _arg0; | |
2d091820 RD |
4568 | int _arg1 = (int ) wxBOTH; |
4569 | PyObject * _argo0 = 0; | |
107e4716 | 4570 | char *_kwnames[] = { "self","direction", NULL }; |
70551f47 RD |
4571 | |
4572 | self = self; | |
107e4716 | 4573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxDialog_Centre",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4574 | return NULL; |
2d091820 RD |
4575 | if (_argo0) { |
4576 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4577 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4578 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Centre. Expected _wxDialog_p."); |
4579 | return NULL; | |
4580 | } | |
4581 | } | |
ab9bc19b RD |
4582 | { |
4583 | wxPy_BEGIN_ALLOW_THREADS; | |
4584 | wxDialog_Centre(_arg0,_arg1); | |
4585 | ||
4586 | wxPy_END_ALLOW_THREADS; | |
4587 | } Py_INCREF(Py_None); | |
70551f47 RD |
4588 | _resultobj = Py_None; |
4589 | return _resultobj; | |
4590 | } | |
4591 | ||
4592 | #define wxDialog_EndModal(_swigobj,_swigarg0) (_swigobj->EndModal(_swigarg0)) | |
107e4716 | 4593 | static PyObject *_wrap_wxDialog_EndModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4594 | PyObject * _resultobj; |
4595 | wxDialog * _arg0; | |
4596 | int _arg1; | |
2d091820 | 4597 | PyObject * _argo0 = 0; |
107e4716 | 4598 | char *_kwnames[] = { "self","retCode", NULL }; |
70551f47 RD |
4599 | |
4600 | self = self; | |
107e4716 | 4601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_EndModal",_kwnames,&_argo0,&_arg1)) |
70551f47 | 4602 | return NULL; |
2d091820 RD |
4603 | if (_argo0) { |
4604 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4605 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4606 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_EndModal. Expected _wxDialog_p."); |
4607 | return NULL; | |
4608 | } | |
4609 | } | |
ab9bc19b RD |
4610 | { |
4611 | wxPy_BEGIN_ALLOW_THREADS; | |
4612 | wxDialog_EndModal(_arg0,_arg1); | |
4613 | ||
4614 | wxPy_END_ALLOW_THREADS; | |
4615 | } Py_INCREF(Py_None); | |
70551f47 RD |
4616 | _resultobj = Py_None; |
4617 | return _resultobj; | |
4618 | } | |
4619 | ||
4620 | #define wxDialog_GetTitle(_swigobj) (_swigobj->GetTitle()) | |
107e4716 | 4621 | static PyObject *_wrap_wxDialog_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4622 | PyObject * _resultobj; |
4623 | wxString * _result; | |
4624 | wxDialog * _arg0; | |
2d091820 | 4625 | PyObject * _argo0 = 0; |
107e4716 | 4626 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4627 | |
4628 | self = self; | |
107e4716 | 4629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetTitle",_kwnames,&_argo0)) |
70551f47 | 4630 | return NULL; |
2d091820 RD |
4631 | if (_argo0) { |
4632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetTitle. Expected _wxDialog_p."); |
4635 | return NULL; | |
4636 | } | |
4637 | } | |
70551f47 | 4638 | { |
ab9bc19b RD |
4639 | wxPy_BEGIN_ALLOW_THREADS; |
4640 | _result = new wxString (wxDialog_GetTitle(_arg0)); | |
4641 | ||
4642 | wxPy_END_ALLOW_THREADS; | |
4643 | }{ | |
70551f47 RD |
4644 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
4645 | } | |
4646 | { | |
4647 | delete _result; | |
4648 | } | |
4649 | return _resultobj; | |
4650 | } | |
4651 | ||
4652 | #define wxDialog_Iconize(_swigobj,_swigarg0) (_swigobj->Iconize(_swigarg0)) | |
107e4716 | 4653 | static PyObject *_wrap_wxDialog_Iconize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4654 | PyObject * _resultobj; |
4655 | wxDialog * _arg0; | |
4656 | bool _arg1; | |
2d091820 | 4657 | PyObject * _argo0 = 0; |
70551f47 | 4658 | int tempbool1; |
107e4716 | 4659 | char *_kwnames[] = { "self","iconize", NULL }; |
70551f47 RD |
4660 | |
4661 | self = self; | |
107e4716 | 4662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Iconize",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 4663 | return NULL; |
2d091820 RD |
4664 | if (_argo0) { |
4665 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4666 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4667 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Iconize. Expected _wxDialog_p."); |
4668 | return NULL; | |
4669 | } | |
4670 | } | |
4671 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
4672 | { |
4673 | wxPy_BEGIN_ALLOW_THREADS; | |
4674 | wxDialog_Iconize(_arg0,_arg1); | |
4675 | ||
4676 | wxPy_END_ALLOW_THREADS; | |
4677 | } Py_INCREF(Py_None); | |
70551f47 RD |
4678 | _resultobj = Py_None; |
4679 | return _resultobj; | |
4680 | } | |
4681 | ||
4682 | #define wxDialog_IsIconized(_swigobj) (_swigobj->IsIconized()) | |
107e4716 | 4683 | static PyObject *_wrap_wxDialog_IsIconized(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4684 | PyObject * _resultobj; |
4685 | bool _result; | |
4686 | wxDialog * _arg0; | |
2d091820 | 4687 | PyObject * _argo0 = 0; |
107e4716 | 4688 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4689 | |
4690 | self = self; | |
107e4716 | 4691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsIconized",_kwnames,&_argo0)) |
70551f47 | 4692 | return NULL; |
2d091820 RD |
4693 | if (_argo0) { |
4694 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4695 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4696 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsIconized. Expected _wxDialog_p."); |
4697 | return NULL; | |
4698 | } | |
4699 | } | |
ab9bc19b RD |
4700 | { |
4701 | wxPy_BEGIN_ALLOW_THREADS; | |
4702 | _result = (bool )wxDialog_IsIconized(_arg0); | |
4703 | ||
4704 | wxPy_END_ALLOW_THREADS; | |
4705 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4706 | return _resultobj; |
4707 | } | |
4708 | ||
4709 | #define wxDialog_SetModal(_swigobj,_swigarg0) (_swigobj->SetModal(_swigarg0)) | |
107e4716 | 4710 | static PyObject *_wrap_wxDialog_SetModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4711 | PyObject * _resultobj; |
4712 | wxDialog * _arg0; | |
4713 | bool _arg1; | |
2d091820 | 4714 | PyObject * _argo0 = 0; |
70551f47 | 4715 | int tempbool1; |
107e4716 | 4716 | char *_kwnames[] = { "self","flag", NULL }; |
70551f47 RD |
4717 | |
4718 | self = self; | |
107e4716 | 4719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetModal",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 4720 | return NULL; |
2d091820 RD |
4721 | if (_argo0) { |
4722 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4723 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4724 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetModal. Expected _wxDialog_p."); |
4725 | return NULL; | |
4726 | } | |
4727 | } | |
4728 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
4729 | { |
4730 | wxPy_BEGIN_ALLOW_THREADS; | |
4731 | wxDialog_SetModal(_arg0,_arg1); | |
4732 | ||
4733 | wxPy_END_ALLOW_THREADS; | |
4734 | } Py_INCREF(Py_None); | |
70551f47 RD |
4735 | _resultobj = Py_None; |
4736 | return _resultobj; | |
4737 | } | |
4738 | ||
4739 | #define wxDialog_IsModal(_swigobj) (_swigobj->IsModal()) | |
107e4716 | 4740 | static PyObject *_wrap_wxDialog_IsModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4741 | PyObject * _resultobj; |
4742 | bool _result; | |
4743 | wxDialog * _arg0; | |
2d091820 | 4744 | PyObject * _argo0 = 0; |
107e4716 | 4745 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4746 | |
4747 | self = self; | |
107e4716 | 4748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_IsModal",_kwnames,&_argo0)) |
70551f47 | 4749 | return NULL; |
2d091820 RD |
4750 | if (_argo0) { |
4751 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4752 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4753 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_IsModal. Expected _wxDialog_p."); |
4754 | return NULL; | |
4755 | } | |
4756 | } | |
ab9bc19b RD |
4757 | { |
4758 | wxPy_BEGIN_ALLOW_THREADS; | |
4759 | _result = (bool )wxDialog_IsModal(_arg0); | |
4760 | ||
4761 | wxPy_END_ALLOW_THREADS; | |
4762 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4763 | return _resultobj; |
4764 | } | |
4765 | ||
4766 | #define wxDialog_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
107e4716 | 4767 | static PyObject *_wrap_wxDialog_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4768 | PyObject * _resultobj; |
4769 | wxDialog * _arg0; | |
4770 | wxString * _arg1; | |
2d091820 | 4771 | PyObject * _argo0 = 0; |
70551f47 | 4772 | PyObject * _obj1 = 0; |
107e4716 | 4773 | char *_kwnames[] = { "self","title", NULL }; |
70551f47 RD |
4774 | |
4775 | self = self; | |
107e4716 | 4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDialog_SetTitle",_kwnames,&_argo0,&_obj1)) |
70551f47 | 4777 | return NULL; |
2d091820 RD |
4778 | if (_argo0) { |
4779 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4780 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4781 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetTitle. Expected _wxDialog_p."); |
4782 | return NULL; | |
4783 | } | |
4784 | } | |
4785 | { | |
4786 | if (!PyString_Check(_obj1)) { | |
4787 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
4788 | return NULL; | |
4789 | } | |
ab9bc19b | 4790 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 4791 | } |
ab9bc19b RD |
4792 | { |
4793 | wxPy_BEGIN_ALLOW_THREADS; | |
4794 | wxDialog_SetTitle(_arg0,*_arg1); | |
4795 | ||
4796 | wxPy_END_ALLOW_THREADS; | |
4797 | } Py_INCREF(Py_None); | |
70551f47 RD |
4798 | _resultobj = Py_None; |
4799 | { | |
4800 | if (_obj1) | |
4801 | delete _arg1; | |
4802 | } | |
4803 | return _resultobj; | |
4804 | } | |
4805 | ||
4806 | #define wxDialog_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
107e4716 | 4807 | static PyObject *_wrap_wxDialog_Show(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4808 | PyObject * _resultobj; |
4809 | bool _result; | |
4810 | wxDialog * _arg0; | |
4811 | bool _arg1; | |
2d091820 | 4812 | PyObject * _argo0 = 0; |
70551f47 | 4813 | int tempbool1; |
107e4716 | 4814 | char *_kwnames[] = { "self","show", NULL }; |
70551f47 RD |
4815 | |
4816 | self = self; | |
107e4716 | 4817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_Show",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 4818 | return NULL; |
2d091820 RD |
4819 | if (_argo0) { |
4820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_Show. Expected _wxDialog_p."); |
4823 | return NULL; | |
4824 | } | |
4825 | } | |
4826 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
4827 | { |
4828 | wxPy_BEGIN_ALLOW_THREADS; | |
4829 | _result = (bool )wxDialog_Show(_arg0,_arg1); | |
4830 | ||
4831 | wxPy_END_ALLOW_THREADS; | |
4832 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4833 | return _resultobj; |
4834 | } | |
4835 | ||
4836 | #define wxDialog_ShowModal(_swigobj) (_swigobj->ShowModal()) | |
107e4716 | 4837 | static PyObject *_wrap_wxDialog_ShowModal(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4838 | PyObject * _resultobj; |
4839 | int _result; | |
4840 | wxDialog * _arg0; | |
2d091820 | 4841 | PyObject * _argo0 = 0; |
107e4716 | 4842 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
4843 | |
4844 | self = self; | |
107e4716 | 4845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_ShowModal",_kwnames,&_argo0)) |
70551f47 | 4846 | return NULL; |
2d091820 RD |
4847 | if (_argo0) { |
4848 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4849 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
70551f47 RD |
4850 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_ShowModal. Expected _wxDialog_p."); |
4851 | return NULL; | |
4852 | } | |
4853 | } | |
ab9bc19b RD |
4854 | { |
4855 | wxPy_BEGIN_ALLOW_THREADS; | |
4856 | _result = (int )wxDialog_ShowModal(_arg0); | |
4857 | ||
4858 | wxPy_END_ALLOW_THREADS; | |
4859 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
4860 | return _resultobj; |
4861 | } | |
4862 | ||
4cd9591a | 4863 | #define wxDialog_GetReturnCode(_swigobj) (_swigobj->GetReturnCode()) |
107e4716 | 4864 | static PyObject *_wrap_wxDialog_GetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
4cd9591a RD |
4865 | PyObject * _resultobj; |
4866 | int _result; | |
4867 | wxDialog * _arg0; | |
2d091820 | 4868 | PyObject * _argo0 = 0; |
107e4716 | 4869 | char *_kwnames[] = { "self", NULL }; |
4cd9591a RD |
4870 | |
4871 | self = self; | |
107e4716 | 4872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDialog_GetReturnCode",_kwnames,&_argo0)) |
4cd9591a | 4873 | return NULL; |
2d091820 RD |
4874 | if (_argo0) { |
4875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4cd9591a RD |
4877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_GetReturnCode. Expected _wxDialog_p."); |
4878 | return NULL; | |
4879 | } | |
4880 | } | |
4881 | { | |
4882 | wxPy_BEGIN_ALLOW_THREADS; | |
4883 | _result = (int )wxDialog_GetReturnCode(_arg0); | |
4884 | ||
4885 | wxPy_END_ALLOW_THREADS; | |
4886 | } _resultobj = Py_BuildValue("i",_result); | |
4887 | return _resultobj; | |
4888 | } | |
4889 | ||
4890 | #define wxDialog_SetReturnCode(_swigobj,_swigarg0) (_swigobj->SetReturnCode(_swigarg0)) | |
107e4716 | 4891 | static PyObject *_wrap_wxDialog_SetReturnCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
4cd9591a RD |
4892 | PyObject * _resultobj; |
4893 | wxDialog * _arg0; | |
4894 | int _arg1; | |
2d091820 | 4895 | PyObject * _argo0 = 0; |
107e4716 | 4896 | char *_kwnames[] = { "self","retCode", NULL }; |
4cd9591a RD |
4897 | |
4898 | self = self; | |
107e4716 | 4899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDialog_SetReturnCode",_kwnames,&_argo0,&_arg1)) |
4cd9591a | 4900 | return NULL; |
2d091820 RD |
4901 | if (_argo0) { |
4902 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4903 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDialog_p")) { | |
4cd9591a RD |
4904 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDialog_SetReturnCode. Expected _wxDialog_p."); |
4905 | return NULL; | |
4906 | } | |
4907 | } | |
4908 | { | |
4909 | wxPy_BEGIN_ALLOW_THREADS; | |
4910 | wxDialog_SetReturnCode(_arg0,_arg1); | |
4911 | ||
4912 | wxPy_END_ALLOW_THREADS; | |
4913 | } Py_INCREF(Py_None); | |
4914 | _resultobj = Py_None; | |
4915 | return _resultobj; | |
4916 | } | |
4917 | ||
d24a34bb RD |
4918 | static void *SwigwxScrolledWindowTowxPanel(void *ptr) { |
4919 | wxScrolledWindow *src; | |
4920 | wxPanel *dest; | |
4921 | src = (wxScrolledWindow *) ptr; | |
4922 | dest = (wxPanel *) src; | |
4923 | return (void *) dest; | |
4924 | } | |
4925 | ||
70551f47 RD |
4926 | static void *SwigwxScrolledWindowTowxWindow(void *ptr) { |
4927 | wxScrolledWindow *src; | |
4928 | wxWindow *dest; | |
4929 | src = (wxScrolledWindow *) ptr; | |
4930 | dest = (wxWindow *) src; | |
4931 | return (void *) dest; | |
4932 | } | |
4933 | ||
4934 | static void *SwigwxScrolledWindowTowxEvtHandler(void *ptr) { | |
4935 | wxScrolledWindow *src; | |
4936 | wxEvtHandler *dest; | |
4937 | src = (wxScrolledWindow *) ptr; | |
4938 | dest = (wxEvtHandler *) src; | |
4939 | return (void *) dest; | |
4940 | } | |
4941 | ||
4942 | #define new_wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (new wxScrolledWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 4943 | static PyObject *_wrap_new_wxScrolledWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4944 | PyObject * _resultobj; |
4945 | wxScrolledWindow * _result; | |
4946 | wxWindow * _arg0; | |
2d091820 RD |
4947 | wxWindowID _arg1 = (wxWindowID ) -1; |
4948 | wxPoint * _arg2 = (wxPoint *) &wxPyDefaultPosition; | |
4949 | wxSize * _arg3 = (wxSize *) &wxPyDefaultSize; | |
4950 | long _arg4 = (long ) wxHSCROLL|wxVSCROLL; | |
4951 | char * _arg5 = (char *) "scrolledWindow"; | |
4952 | PyObject * _argo0 = 0; | |
37f6a977 RD |
4953 | wxPoint temp; |
4954 | PyObject * _obj2 = 0; | |
4955 | wxSize temp0; | |
4956 | PyObject * _obj3 = 0; | |
107e4716 | 4957 | char *_kwnames[] = { "parent","id","pos","size","style","name", NULL }; |
70551f47 RD |
4958 | char _ptemp[128]; |
4959 | ||
4960 | self = self; | |
37f6a977 | 4961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iOOls:new_wxScrolledWindow",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4,&_arg5)) |
70551f47 | 4962 | return NULL; |
2d091820 RD |
4963 | if (_argo0) { |
4964 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4965 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
70551f47 RD |
4966 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxScrolledWindow. Expected _wxWindow_p."); |
4967 | return NULL; | |
4968 | } | |
4969 | } | |
37f6a977 RD |
4970 | if (_obj2) |
4971 | { | |
4972 | _arg2 = &temp; | |
4973 | if (! wxPoint_helper(_obj2, &_arg2)) | |
70551f47 | 4974 | return NULL; |
37f6a977 RD |
4975 | } |
4976 | if (_obj3) | |
4977 | { | |
4978 | _arg3 = &temp0; | |
4979 | if (! wxSize_helper(_obj3, &_arg3)) | |
70551f47 | 4980 | return NULL; |
37f6a977 | 4981 | } |
ab9bc19b RD |
4982 | { |
4983 | wxPy_BEGIN_ALLOW_THREADS; | |
4984 | _result = (wxScrolledWindow *)new_wxScrolledWindow(_arg0,_arg1,*_arg2,*_arg3,_arg4,_arg5); | |
4985 | ||
4986 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
4987 | } if (_result) { |
4988 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxScrolledWindow_p"); | |
4989 | _resultobj = Py_BuildValue("s",_ptemp); | |
4990 | } else { | |
4991 | Py_INCREF(Py_None); | |
4992 | _resultobj = Py_None; | |
4993 | } | |
70551f47 RD |
4994 | return _resultobj; |
4995 | } | |
4996 | ||
4997 | #define wxScrolledWindow_EnableScrolling(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableScrolling(_swigarg0,_swigarg1)) | |
107e4716 | 4998 | static PyObject *_wrap_wxScrolledWindow_EnableScrolling(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
4999 | PyObject * _resultobj; |
5000 | wxScrolledWindow * _arg0; | |
5001 | bool _arg1; | |
5002 | bool _arg2; | |
2d091820 | 5003 | PyObject * _argo0 = 0; |
70551f47 RD |
5004 | int tempbool1; |
5005 | int tempbool2; | |
107e4716 | 5006 | char *_kwnames[] = { "self","xScrolling","yScrolling", NULL }; |
70551f47 RD |
5007 | |
5008 | self = self; | |
107e4716 | 5009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_EnableScrolling",_kwnames,&_argo0,&tempbool1,&tempbool2)) |
70551f47 | 5010 | return NULL; |
2d091820 RD |
5011 | if (_argo0) { |
5012 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5013 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5014 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_EnableScrolling. Expected _wxScrolledWindow_p."); |
5015 | return NULL; | |
5016 | } | |
5017 | } | |
5018 | _arg1 = (bool ) tempbool1; | |
5019 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
5020 | { |
5021 | wxPy_BEGIN_ALLOW_THREADS; | |
5022 | wxScrolledWindow_EnableScrolling(_arg0,_arg1,_arg2); | |
5023 | ||
5024 | wxPy_END_ALLOW_THREADS; | |
5025 | } Py_INCREF(Py_None); | |
70551f47 RD |
5026 | _resultobj = Py_None; |
5027 | return _resultobj; | |
5028 | } | |
5029 | ||
5030 | #define wxScrolledWindow_GetScrollPixelsPerUnit(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetScrollPixelsPerUnit(_swigarg0,_swigarg1)) | |
107e4716 | 5031 | static PyObject *_wrap_wxScrolledWindow_GetScrollPixelsPerUnit(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5032 | PyObject * _resultobj; |
5033 | wxScrolledWindow * _arg0; | |
5034 | int * _arg1; | |
5035 | int temp; | |
5036 | int * _arg2; | |
5037 | int temp0; | |
2d091820 | 5038 | PyObject * _argo0 = 0; |
107e4716 | 5039 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5040 | |
5041 | self = self; | |
5042 | { | |
5043 | _arg1 = &temp; | |
5044 | } | |
5045 | { | |
5046 | _arg2 = &temp0; | |
5047 | } | |
107e4716 | 5048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetScrollPixelsPerUnit",_kwnames,&_argo0)) |
70551f47 | 5049 | return NULL; |
2d091820 RD |
5050 | if (_argo0) { |
5051 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5052 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetScrollPixelsPerUnit. Expected _wxScrolledWindow_p."); |
5054 | return NULL; | |
5055 | } | |
5056 | } | |
ab9bc19b RD |
5057 | { |
5058 | wxPy_BEGIN_ALLOW_THREADS; | |
5059 | wxScrolledWindow_GetScrollPixelsPerUnit(_arg0,_arg1,_arg2); | |
5060 | ||
5061 | wxPy_END_ALLOW_THREADS; | |
5062 | } Py_INCREF(Py_None); | |
70551f47 RD |
5063 | _resultobj = Py_None; |
5064 | { | |
5065 | PyObject *o; | |
5066 | o = PyInt_FromLong((long) (*_arg1)); | |
5067 | _resultobj = t_output_helper(_resultobj, o); | |
5068 | } | |
5069 | { | |
5070 | PyObject *o; | |
5071 | o = PyInt_FromLong((long) (*_arg2)); | |
5072 | _resultobj = t_output_helper(_resultobj, o); | |
5073 | } | |
5074 | return _resultobj; | |
5075 | } | |
5076 | ||
5077 | #define wxScrolledWindow_GetVirtualSize(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetVirtualSize(_swigarg0,_swigarg1)) | |
107e4716 | 5078 | static PyObject *_wrap_wxScrolledWindow_GetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5079 | PyObject * _resultobj; |
5080 | wxScrolledWindow * _arg0; | |
5081 | int * _arg1; | |
5082 | int temp; | |
5083 | int * _arg2; | |
5084 | int temp0; | |
2d091820 | 5085 | PyObject * _argo0 = 0; |
107e4716 | 5086 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5087 | |
5088 | self = self; | |
5089 | { | |
5090 | _arg1 = &temp; | |
5091 | } | |
5092 | { | |
5093 | _arg2 = &temp0; | |
5094 | } | |
107e4716 | 5095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_GetVirtualSize",_kwnames,&_argo0)) |
70551f47 | 5096 | return NULL; |
2d091820 RD |
5097 | if (_argo0) { |
5098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_GetVirtualSize. Expected _wxScrolledWindow_p."); |
5101 | return NULL; | |
5102 | } | |
5103 | } | |
ab9bc19b RD |
5104 | { |
5105 | wxPy_BEGIN_ALLOW_THREADS; | |
5106 | wxScrolledWindow_GetVirtualSize(_arg0,_arg1,_arg2); | |
5107 | ||
5108 | wxPy_END_ALLOW_THREADS; | |
5109 | } Py_INCREF(Py_None); | |
70551f47 RD |
5110 | _resultobj = Py_None; |
5111 | { | |
5112 | PyObject *o; | |
5113 | o = PyInt_FromLong((long) (*_arg1)); | |
5114 | _resultobj = t_output_helper(_resultobj, o); | |
5115 | } | |
5116 | { | |
5117 | PyObject *o; | |
5118 | o = PyInt_FromLong((long) (*_arg2)); | |
5119 | _resultobj = t_output_helper(_resultobj, o); | |
5120 | } | |
5121 | return _resultobj; | |
5122 | } | |
5123 | ||
5124 | #define wxScrolledWindow_IsRetained(_swigobj) (_swigobj->IsRetained()) | |
107e4716 | 5125 | static PyObject *_wrap_wxScrolledWindow_IsRetained(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5126 | PyObject * _resultobj; |
5127 | bool _result; | |
5128 | wxScrolledWindow * _arg0; | |
2d091820 | 5129 | PyObject * _argo0 = 0; |
107e4716 | 5130 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5131 | |
5132 | self = self; | |
107e4716 | 5133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_IsRetained",_kwnames,&_argo0)) |
70551f47 | 5134 | return NULL; |
2d091820 RD |
5135 | if (_argo0) { |
5136 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5137 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5138 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_IsRetained. Expected _wxScrolledWindow_p."); |
5139 | return NULL; | |
5140 | } | |
5141 | } | |
ab9bc19b RD |
5142 | { |
5143 | wxPy_BEGIN_ALLOW_THREADS; | |
5144 | _result = (bool )wxScrolledWindow_IsRetained(_arg0); | |
5145 | ||
5146 | wxPy_END_ALLOW_THREADS; | |
5147 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5148 | return _resultobj; |
5149 | } | |
5150 | ||
5151 | #define wxScrolledWindow_PrepareDC(_swigobj,_swigarg0) (_swigobj->PrepareDC(_swigarg0)) | |
107e4716 | 5152 | static PyObject *_wrap_wxScrolledWindow_PrepareDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5153 | PyObject * _resultobj; |
5154 | wxScrolledWindow * _arg0; | |
5155 | wxDC * _arg1; | |
2d091820 RD |
5156 | PyObject * _argo0 = 0; |
5157 | PyObject * _argo1 = 0; | |
107e4716 | 5158 | char *_kwnames[] = { "self","dc", NULL }; |
70551f47 RD |
5159 | |
5160 | self = self; | |
107e4716 | 5161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScrolledWindow_PrepareDC",_kwnames,&_argo0,&_argo1)) |
70551f47 | 5162 | return NULL; |
2d091820 RD |
5163 | if (_argo0) { |
5164 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5165 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5166 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_PrepareDC. Expected _wxScrolledWindow_p."); |
5167 | return NULL; | |
5168 | } | |
5169 | } | |
2d091820 RD |
5170 | if (_argo1) { |
5171 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5172 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
70551f47 RD |
5173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScrolledWindow_PrepareDC. Expected _wxDC_p."); |
5174 | return NULL; | |
5175 | } | |
5176 | } | |
ab9bc19b RD |
5177 | { |
5178 | wxPy_BEGIN_ALLOW_THREADS; | |
5179 | wxScrolledWindow_PrepareDC(_arg0,*_arg1); | |
5180 | ||
5181 | wxPy_END_ALLOW_THREADS; | |
5182 | } Py_INCREF(Py_None); | |
70551f47 RD |
5183 | _resultobj = Py_None; |
5184 | return _resultobj; | |
5185 | } | |
5186 | ||
5187 | #define wxScrolledWindow_Scroll(_swigobj,_swigarg0,_swigarg1) (_swigobj->Scroll(_swigarg0,_swigarg1)) | |
107e4716 | 5188 | static PyObject *_wrap_wxScrolledWindow_Scroll(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5189 | PyObject * _resultobj; |
5190 | wxScrolledWindow * _arg0; | |
5191 | int _arg1; | |
5192 | int _arg2; | |
2d091820 | 5193 | PyObject * _argo0 = 0; |
107e4716 | 5194 | char *_kwnames[] = { "self","x","y", NULL }; |
70551f47 RD |
5195 | |
5196 | self = self; | |
107e4716 | 5197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_Scroll",_kwnames,&_argo0,&_arg1,&_arg2)) |
70551f47 | 5198 | return NULL; |
2d091820 RD |
5199 | if (_argo0) { |
5200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_Scroll. Expected _wxScrolledWindow_p."); |
5203 | return NULL; | |
5204 | } | |
5205 | } | |
ab9bc19b RD |
5206 | { |
5207 | wxPy_BEGIN_ALLOW_THREADS; | |
5208 | wxScrolledWindow_Scroll(_arg0,_arg1,_arg2); | |
5209 | ||
5210 | wxPy_END_ALLOW_THREADS; | |
5211 | } Py_INCREF(Py_None); | |
70551f47 RD |
5212 | _resultobj = Py_None; |
5213 | return _resultobj; | |
5214 | } | |
5215 | ||
5216 | #define wxScrolledWindow_SetScrollbars(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->SetScrollbars(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5)) | |
107e4716 | 5217 | static PyObject *_wrap_wxScrolledWindow_SetScrollbars(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5218 | PyObject * _resultobj; |
5219 | wxScrolledWindow * _arg0; | |
5220 | int _arg1; | |
5221 | int _arg2; | |
5222 | int _arg3; | |
5223 | int _arg4; | |
2d091820 RD |
5224 | int _arg5 = (int ) 0; |
5225 | int _arg6 = (int ) 0; | |
5226 | PyObject * _argo0 = 0; | |
107e4716 | 5227 | char *_kwnames[] = { "self","pixelsPerUnitX","pixelsPerUnitY","noUnitsX","noUnitsY","xPos","yPos", NULL }; |
70551f47 RD |
5228 | |
5229 | self = self; | |
107e4716 | 5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|ii:wxScrolledWindow_SetScrollbars",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6)) |
70551f47 | 5231 | return NULL; |
2d091820 RD |
5232 | if (_argo0) { |
5233 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5234 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5235 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_SetScrollbars. Expected _wxScrolledWindow_p."); |
5236 | return NULL; | |
5237 | } | |
5238 | } | |
ab9bc19b RD |
5239 | { |
5240 | wxPy_BEGIN_ALLOW_THREADS; | |
5241 | wxScrolledWindow_SetScrollbars(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6); | |
5242 | ||
5243 | wxPy_END_ALLOW_THREADS; | |
5244 | } Py_INCREF(Py_None); | |
70551f47 RD |
5245 | _resultobj = Py_None; |
5246 | return _resultobj; | |
5247 | } | |
5248 | ||
5249 | #define wxScrolledWindow_ViewStart(_swigobj,_swigarg0,_swigarg1) (_swigobj->ViewStart(_swigarg0,_swigarg1)) | |
107e4716 | 5250 | static PyObject *_wrap_wxScrolledWindow_ViewStart(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5251 | PyObject * _resultobj; |
5252 | wxScrolledWindow * _arg0; | |
5253 | int * _arg1; | |
5254 | int temp; | |
5255 | int * _arg2; | |
5256 | int temp0; | |
2d091820 | 5257 | PyObject * _argo0 = 0; |
107e4716 | 5258 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5259 | |
5260 | self = self; | |
5261 | { | |
5262 | _arg1 = &temp; | |
5263 | } | |
5264 | { | |
5265 | _arg2 = &temp0; | |
5266 | } | |
107e4716 | 5267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScrolledWindow_ViewStart",_kwnames,&_argo0)) |
70551f47 | 5268 | return NULL; |
2d091820 RD |
5269 | if (_argo0) { |
5270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
70551f47 RD |
5272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_ViewStart. Expected _wxScrolledWindow_p."); |
5273 | return NULL; | |
5274 | } | |
5275 | } | |
ab9bc19b RD |
5276 | { |
5277 | wxPy_BEGIN_ALLOW_THREADS; | |
5278 | wxScrolledWindow_ViewStart(_arg0,_arg1,_arg2); | |
5279 | ||
5280 | wxPy_END_ALLOW_THREADS; | |
5281 | } Py_INCREF(Py_None); | |
70551f47 RD |
5282 | _resultobj = Py_None; |
5283 | { | |
5284 | PyObject *o; | |
5285 | o = PyInt_FromLong((long) (*_arg1)); | |
5286 | _resultobj = t_output_helper(_resultobj, o); | |
5287 | } | |
5288 | { | |
5289 | PyObject *o; | |
5290 | o = PyInt_FromLong((long) (*_arg2)); | |
5291 | _resultobj = t_output_helper(_resultobj, o); | |
5292 | } | |
5293 | return _resultobj; | |
5294 | } | |
5295 | ||
f078d013 RD |
5296 | #define wxScrolledWindow_CalcScrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcScrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
5297 | static PyObject *_wrap_wxScrolledWindow_CalcScrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5298 | PyObject * _resultobj; | |
5299 | wxScrolledWindow * _arg0; | |
5300 | int _arg1; | |
5301 | int _arg2; | |
5302 | int * _arg3; | |
5303 | int temp; | |
5304 | int * _arg4; | |
5305 | int temp0; | |
5306 | PyObject * _argo0 = 0; | |
5307 | char *_kwnames[] = { "self","x","y", NULL }; | |
5308 | ||
5309 | self = self; | |
5310 | { | |
5311 | _arg3 = &temp; | |
5312 | } | |
5313 | { | |
5314 | _arg4 = &temp0; | |
5315 | } | |
5316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcScrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5317 | return NULL; | |
5318 | if (_argo0) { | |
5319 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5320 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5321 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcScrolledPosition. Expected _wxScrolledWindow_p."); | |
5322 | return NULL; | |
5323 | } | |
5324 | } | |
5325 | { | |
5326 | wxPy_BEGIN_ALLOW_THREADS; | |
5327 | wxScrolledWindow_CalcScrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5328 | ||
5329 | wxPy_END_ALLOW_THREADS; | |
5330 | } Py_INCREF(Py_None); | |
5331 | _resultobj = Py_None; | |
5332 | { | |
5333 | PyObject *o; | |
5334 | o = PyInt_FromLong((long) (*_arg3)); | |
5335 | _resultobj = t_output_helper(_resultobj, o); | |
5336 | } | |
5337 | { | |
5338 | PyObject *o; | |
5339 | o = PyInt_FromLong((long) (*_arg4)); | |
5340 | _resultobj = t_output_helper(_resultobj, o); | |
5341 | } | |
5342 | return _resultobj; | |
5343 | } | |
5344 | ||
5345 | #define wxScrolledWindow_CalcUnscrolledPosition(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->CalcUnscrolledPosition(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5346 | static PyObject *_wrap_wxScrolledWindow_CalcUnscrolledPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5347 | PyObject * _resultobj; | |
5348 | wxScrolledWindow * _arg0; | |
5349 | int _arg1; | |
5350 | int _arg2; | |
5351 | int * _arg3; | |
5352 | int temp; | |
5353 | int * _arg4; | |
5354 | int temp0; | |
5355 | PyObject * _argo0 = 0; | |
5356 | char *_kwnames[] = { "self","x","y", NULL }; | |
5357 | ||
5358 | self = self; | |
5359 | { | |
5360 | _arg3 = &temp; | |
5361 | } | |
5362 | { | |
5363 | _arg4 = &temp0; | |
5364 | } | |
5365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxScrolledWindow_CalcUnscrolledPosition",_kwnames,&_argo0,&_arg1,&_arg2)) | |
5366 | return NULL; | |
5367 | if (_argo0) { | |
5368 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5369 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScrolledWindow_p")) { | |
5370 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScrolledWindow_CalcUnscrolledPosition. Expected _wxScrolledWindow_p."); | |
5371 | return NULL; | |
5372 | } | |
5373 | } | |
5374 | { | |
5375 | wxPy_BEGIN_ALLOW_THREADS; | |
5376 | wxScrolledWindow_CalcUnscrolledPosition(_arg0,_arg1,_arg2,_arg3,_arg4); | |
5377 | ||
5378 | wxPy_END_ALLOW_THREADS; | |
5379 | } Py_INCREF(Py_None); | |
5380 | _resultobj = Py_None; | |
5381 | { | |
5382 | PyObject *o; | |
5383 | o = PyInt_FromLong((long) (*_arg3)); | |
5384 | _resultobj = t_output_helper(_resultobj, o); | |
5385 | } | |
5386 | { | |
5387 | PyObject *o; | |
5388 | o = PyInt_FromLong((long) (*_arg4)); | |
5389 | _resultobj = t_output_helper(_resultobj, o); | |
5390 | } | |
5391 | return _resultobj; | |
5392 | } | |
5393 | ||
70551f47 RD |
5394 | static void *SwigwxMenuTowxEvtHandler(void *ptr) { |
5395 | wxMenu *src; | |
5396 | wxEvtHandler *dest; | |
5397 | src = (wxMenu *) ptr; | |
5398 | dest = (wxEvtHandler *) src; | |
5399 | return (void *) dest; | |
5400 | } | |
5401 | ||
8bf5d46e | 5402 | #define new_wxMenu(_swigarg0,_swigarg1) (new wxMenu(_swigarg0,_swigarg1)) |
107e4716 | 5403 | static PyObject *_wrap_new_wxMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5404 | PyObject * _resultobj; |
5405 | wxMenu * _result; | |
2d091820 RD |
5406 | wxString * _arg0 = (wxString *) &wxPyEmptyStr; |
5407 | long _arg1 = (long ) 0; | |
70551f47 | 5408 | PyObject * _obj0 = 0; |
107e4716 | 5409 | char *_kwnames[] = { "title","style", NULL }; |
70551f47 RD |
5410 | char _ptemp[128]; |
5411 | ||
5412 | self = self; | |
107e4716 | 5413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Ol:new_wxMenu",_kwnames,&_obj0,&_arg1)) |
70551f47 RD |
5414 | return NULL; |
5415 | if (_obj0) | |
5416 | { | |
5417 | if (!PyString_Check(_obj0)) { | |
5418 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5419 | return NULL; | |
5420 | } | |
ab9bc19b | 5421 | _arg0 = new wxString(PyString_AsString(_obj0), PyString_Size(_obj0)); |
70551f47 | 5422 | } |
ab9bc19b RD |
5423 | { |
5424 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 5425 | _result = (wxMenu *)new_wxMenu(*_arg0,_arg1); |
ab9bc19b RD |
5426 | |
5427 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5428 | } if (_result) { |
5429 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
5430 | _resultobj = Py_BuildValue("s",_ptemp); | |
5431 | } else { | |
5432 | Py_INCREF(Py_None); | |
5433 | _resultobj = Py_None; | |
5434 | } | |
70551f47 RD |
5435 | { |
5436 | if (_obj0) | |
5437 | delete _arg0; | |
5438 | } | |
5439 | return _resultobj; | |
5440 | } | |
5441 | ||
5442 | #define wxMenu_Append(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5443 | static PyObject *_wrap_wxMenu_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5444 | PyObject * _resultobj; |
5445 | wxMenu * _arg0; | |
5446 | int _arg1; | |
5447 | wxString * _arg2; | |
2d091820 RD |
5448 | wxString * _arg3 = (wxString *) &wxPyEmptyStr; |
5449 | int _arg4 = (int ) FALSE; | |
5450 | PyObject * _argo0 = 0; | |
70551f47 RD |
5451 | PyObject * _obj2 = 0; |
5452 | PyObject * _obj3 = 0; | |
107e4716 | 5453 | char *_kwnames[] = { "self","id","item","helpString","checkable", NULL }; |
70551f47 RD |
5454 | |
5455 | self = self; | |
107e4716 | 5456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|Oi:wxMenu_Append",_kwnames,&_argo0,&_arg1,&_obj2,&_obj3,&_arg4)) |
70551f47 | 5457 | return NULL; |
2d091820 RD |
5458 | if (_argo0) { |
5459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Append. Expected _wxMenu_p."); |
5462 | return NULL; | |
5463 | } | |
5464 | } | |
5465 | { | |
5466 | if (!PyString_Check(_obj2)) { | |
5467 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5468 | return NULL; | |
5469 | } | |
ab9bc19b | 5470 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 RD |
5471 | } |
5472 | if (_obj3) | |
5473 | { | |
5474 | if (!PyString_Check(_obj3)) { | |
5475 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5476 | return NULL; | |
5477 | } | |
ab9bc19b | 5478 | _arg3 = new wxString(PyString_AsString(_obj3), PyString_Size(_obj3)); |
70551f47 | 5479 | } |
ab9bc19b RD |
5480 | { |
5481 | wxPy_BEGIN_ALLOW_THREADS; | |
5482 | wxMenu_Append(_arg0,_arg1,*_arg2,*_arg3,_arg4); | |
5483 | ||
5484 | wxPy_END_ALLOW_THREADS; | |
5485 | } Py_INCREF(Py_None); | |
70551f47 RD |
5486 | _resultobj = Py_None; |
5487 | { | |
5488 | if (_obj2) | |
5489 | delete _arg2; | |
5490 | } | |
5491 | { | |
5492 | if (_obj3) | |
5493 | delete _arg3; | |
5494 | } | |
5495 | return _resultobj; | |
5496 | } | |
5497 | ||
5498 | #define wxMenu_AppendMenu(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Append(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
107e4716 | 5499 | static PyObject *_wrap_wxMenu_AppendMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5500 | PyObject * _resultobj; |
5501 | wxMenu * _arg0; | |
5502 | int _arg1; | |
5503 | wxString * _arg2; | |
5504 | wxMenu * _arg3; | |
2d091820 RD |
5505 | wxString * _arg4 = (wxString *) &wxPyEmptyStr; |
5506 | PyObject * _argo0 = 0; | |
70551f47 | 5507 | PyObject * _obj2 = 0; |
2d091820 | 5508 | PyObject * _argo3 = 0; |
70551f47 | 5509 | PyObject * _obj4 = 0; |
107e4716 | 5510 | char *_kwnames[] = { "self","id","item","subMenu","helpString", NULL }; |
70551f47 RD |
5511 | |
5512 | self = self; | |
107e4716 | 5513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOO|O:wxMenu_AppendMenu",_kwnames,&_argo0,&_arg1,&_obj2,&_argo3,&_obj4)) |
70551f47 | 5514 | return NULL; |
2d091820 RD |
5515 | if (_argo0) { |
5516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
5519 | return NULL; | |
5520 | } | |
5521 | } | |
5522 | { | |
5523 | if (!PyString_Check(_obj2)) { | |
5524 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5525 | return NULL; | |
5526 | } | |
ab9bc19b | 5527 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 | 5528 | } |
2d091820 RD |
5529 | if (_argo3) { |
5530 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
5531 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxMenu_p")) { | |
70551f47 RD |
5532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMenu_AppendMenu. Expected _wxMenu_p."); |
5533 | return NULL; | |
5534 | } | |
5535 | } | |
5536 | if (_obj4) | |
5537 | { | |
5538 | if (!PyString_Check(_obj4)) { | |
5539 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5540 | return NULL; | |
5541 | } | |
ab9bc19b | 5542 | _arg4 = new wxString(PyString_AsString(_obj4), PyString_Size(_obj4)); |
70551f47 | 5543 | } |
ab9bc19b RD |
5544 | { |
5545 | wxPy_BEGIN_ALLOW_THREADS; | |
5546 | wxMenu_AppendMenu(_arg0,_arg1,*_arg2,_arg3,*_arg4); | |
5547 | ||
5548 | wxPy_END_ALLOW_THREADS; | |
5549 | } Py_INCREF(Py_None); | |
70551f47 RD |
5550 | _resultobj = Py_None; |
5551 | { | |
5552 | if (_obj2) | |
5553 | delete _arg2; | |
5554 | } | |
5555 | { | |
5556 | if (_obj4) | |
5557 | delete _arg4; | |
5558 | } | |
5559 | return _resultobj; | |
5560 | } | |
5561 | ||
9cce9de1 RD |
5562 | #define wxMenu_AppendItem(_swigobj,_swigarg0) (_swigobj->Append(_swigarg0)) |
5563 | static PyObject *_wrap_wxMenu_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5564 | PyObject * _resultobj; | |
5565 | wxMenu * _arg0; | |
5566 | wxMenuItem * _arg1; | |
5567 | PyObject * _argo0 = 0; | |
5568 | PyObject * _argo1 = 0; | |
5569 | char *_kwnames[] = { "self","item", NULL }; | |
5570 | ||
5571 | self = self; | |
5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_AppendItem",_kwnames,&_argo0,&_argo1)) | |
5573 | return NULL; | |
5574 | if (_argo0) { | |
5575 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5576 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
5577 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendItem. Expected _wxMenu_p."); | |
5578 | return NULL; | |
5579 | } | |
5580 | } | |
5581 | if (_argo1) { | |
5582 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5583 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenuItem_p")) { | |
5584 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_AppendItem. Expected _wxMenuItem_p."); | |
5585 | return NULL; | |
5586 | } | |
5587 | } | |
5588 | { | |
5589 | wxPy_BEGIN_ALLOW_THREADS; | |
5590 | wxMenu_AppendItem(_arg0,_arg1); | |
5591 | ||
5592 | wxPy_END_ALLOW_THREADS; | |
5593 | } Py_INCREF(Py_None); | |
5594 | _resultobj = Py_None; | |
5595 | return _resultobj; | |
5596 | } | |
5597 | ||
70551f47 | 5598 | #define wxMenu_AppendSeparator(_swigobj) (_swigobj->AppendSeparator()) |
107e4716 | 5599 | static PyObject *_wrap_wxMenu_AppendSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5600 | PyObject * _resultobj; |
5601 | wxMenu * _arg0; | |
2d091820 | 5602 | PyObject * _argo0 = 0; |
107e4716 | 5603 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5604 | |
5605 | self = self; | |
107e4716 | 5606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_AppendSeparator",_kwnames,&_argo0)) |
70551f47 | 5607 | return NULL; |
2d091820 RD |
5608 | if (_argo0) { |
5609 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5610 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5611 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_AppendSeparator. Expected _wxMenu_p."); |
5612 | return NULL; | |
5613 | } | |
5614 | } | |
ab9bc19b RD |
5615 | { |
5616 | wxPy_BEGIN_ALLOW_THREADS; | |
5617 | wxMenu_AppendSeparator(_arg0); | |
5618 | ||
5619 | wxPy_END_ALLOW_THREADS; | |
5620 | } Py_INCREF(Py_None); | |
70551f47 RD |
5621 | _resultobj = Py_None; |
5622 | return _resultobj; | |
5623 | } | |
5624 | ||
5625 | #define wxMenu_Break(_swigobj) (_swigobj->Break()) | |
107e4716 | 5626 | static PyObject *_wrap_wxMenu_Break(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5627 | PyObject * _resultobj; |
5628 | wxMenu * _arg0; | |
2d091820 | 5629 | PyObject * _argo0 = 0; |
107e4716 | 5630 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
5631 | |
5632 | self = self; | |
107e4716 | 5633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Break",_kwnames,&_argo0)) |
70551f47 | 5634 | return NULL; |
2d091820 RD |
5635 | if (_argo0) { |
5636 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5637 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5638 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Break. Expected _wxMenu_p."); |
5639 | return NULL; | |
5640 | } | |
5641 | } | |
ab9bc19b RD |
5642 | { |
5643 | wxPy_BEGIN_ALLOW_THREADS; | |
5644 | wxMenu_Break(_arg0); | |
5645 | ||
5646 | wxPy_END_ALLOW_THREADS; | |
5647 | } Py_INCREF(Py_None); | |
70551f47 RD |
5648 | _resultobj = Py_None; |
5649 | return _resultobj; | |
5650 | } | |
5651 | ||
5652 | #define wxMenu_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
107e4716 | 5653 | static PyObject *_wrap_wxMenu_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5654 | PyObject * _resultobj; |
5655 | wxMenu * _arg0; | |
5656 | int _arg1; | |
5657 | bool _arg2; | |
2d091820 | 5658 | PyObject * _argo0 = 0; |
70551f47 | 5659 | int tempbool2; |
107e4716 | 5660 | char *_kwnames[] = { "self","id","flag", NULL }; |
70551f47 RD |
5661 | |
5662 | self = self; | |
107e4716 | 5663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 5664 | return NULL; |
2d091820 RD |
5665 | if (_argo0) { |
5666 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5667 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5668 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Check. Expected _wxMenu_p."); |
5669 | return NULL; | |
5670 | } | |
5671 | } | |
5672 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
5673 | { |
5674 | wxPy_BEGIN_ALLOW_THREADS; | |
5675 | wxMenu_Check(_arg0,_arg1,_arg2); | |
5676 | ||
5677 | wxPy_END_ALLOW_THREADS; | |
5678 | } Py_INCREF(Py_None); | |
70551f47 RD |
5679 | _resultobj = Py_None; |
5680 | return _resultobj; | |
5681 | } | |
5682 | ||
5683 | #define wxMenu_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
107e4716 | 5684 | static PyObject *_wrap_wxMenu_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5685 | PyObject * _resultobj; |
5686 | wxMenu * _arg0; | |
5687 | int _arg1; | |
5688 | bool _arg2; | |
2d091820 | 5689 | PyObject * _argo0 = 0; |
70551f47 | 5690 | int tempbool2; |
107e4716 | 5691 | char *_kwnames[] = { "self","id","enable", NULL }; |
70551f47 RD |
5692 | |
5693 | self = self; | |
107e4716 | 5694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenu_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 5695 | return NULL; |
2d091820 RD |
5696 | if (_argo0) { |
5697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Enable. Expected _wxMenu_p."); |
5700 | return NULL; | |
5701 | } | |
5702 | } | |
5703 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
5704 | { |
5705 | wxPy_BEGIN_ALLOW_THREADS; | |
5706 | wxMenu_Enable(_arg0,_arg1,_arg2); | |
5707 | ||
5708 | wxPy_END_ALLOW_THREADS; | |
5709 | } Py_INCREF(Py_None); | |
70551f47 RD |
5710 | _resultobj = Py_None; |
5711 | return _resultobj; | |
5712 | } | |
5713 | ||
5714 | #define wxMenu_FindItem(_swigobj,_swigarg0) (_swigobj->FindItem(_swigarg0)) | |
107e4716 | 5715 | static PyObject *_wrap_wxMenu_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5716 | PyObject * _resultobj; |
5717 | int _result; | |
5718 | wxMenu * _arg0; | |
5719 | wxString * _arg1; | |
2d091820 | 5720 | PyObject * _argo0 = 0; |
70551f47 | 5721 | PyObject * _obj1 = 0; |
107e4716 | 5722 | char *_kwnames[] = { "self","itemString", NULL }; |
70551f47 RD |
5723 | |
5724 | self = self; | |
107e4716 | 5725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_FindItem",_kwnames,&_argo0,&_obj1)) |
70551f47 | 5726 | return NULL; |
2d091820 RD |
5727 | if (_argo0) { |
5728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItem. Expected _wxMenu_p."); |
5731 | return NULL; | |
5732 | } | |
5733 | } | |
5734 | { | |
5735 | if (!PyString_Check(_obj1)) { | |
5736 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5737 | return NULL; | |
5738 | } | |
ab9bc19b | 5739 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 5740 | } |
ab9bc19b RD |
5741 | { |
5742 | wxPy_BEGIN_ALLOW_THREADS; | |
5743 | _result = (int )wxMenu_FindItem(_arg0,*_arg1); | |
5744 | ||
5745 | wxPy_END_ALLOW_THREADS; | |
5746 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5747 | { |
5748 | if (_obj1) | |
5749 | delete _arg1; | |
5750 | } | |
5751 | return _resultobj; | |
5752 | } | |
5753 | ||
c95e68d8 | 5754 | #define wxMenu_GetTitle(_swigobj) (_swigobj->GetTitle()) |
107e4716 | 5755 | static PyObject *_wrap_wxMenu_GetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5756 | PyObject * _resultobj; |
5757 | wxString * _result; | |
5758 | wxMenu * _arg0; | |
2d091820 | 5759 | PyObject * _argo0 = 0; |
107e4716 | 5760 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
5761 | |
5762 | self = self; | |
107e4716 | 5763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_GetTitle",_kwnames,&_argo0)) |
c95e68d8 | 5764 | return NULL; |
2d091820 RD |
5765 | if (_argo0) { |
5766 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5767 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
c95e68d8 RD |
5768 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetTitle. Expected _wxMenu_p."); |
5769 | return NULL; | |
5770 | } | |
5771 | } | |
c95e68d8 | 5772 | { |
ab9bc19b RD |
5773 | wxPy_BEGIN_ALLOW_THREADS; |
5774 | _result = new wxString (wxMenu_GetTitle(_arg0)); | |
5775 | ||
5776 | wxPy_END_ALLOW_THREADS; | |
5777 | }{ | |
c95e68d8 RD |
5778 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
5779 | } | |
5780 | { | |
5781 | delete _result; | |
5782 | } | |
5783 | return _resultobj; | |
5784 | } | |
5785 | ||
5786 | #define wxMenu_SetTitle(_swigobj,_swigarg0) (_swigobj->SetTitle(_swigarg0)) | |
107e4716 | 5787 | static PyObject *_wrap_wxMenu_SetTitle(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
5788 | PyObject * _resultobj; |
5789 | wxMenu * _arg0; | |
5790 | wxString * _arg1; | |
2d091820 | 5791 | PyObject * _argo0 = 0; |
c95e68d8 | 5792 | PyObject * _obj1 = 0; |
107e4716 | 5793 | char *_kwnames[] = { "self","title", NULL }; |
c95e68d8 RD |
5794 | |
5795 | self = self; | |
107e4716 | 5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenu_SetTitle",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 5797 | return NULL; |
2d091820 RD |
5798 | if (_argo0) { |
5799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
c95e68d8 RD |
5801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetTitle. Expected _wxMenu_p."); |
5802 | return NULL; | |
5803 | } | |
5804 | } | |
5805 | { | |
5806 | if (!PyString_Check(_obj1)) { | |
5807 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5808 | return NULL; | |
5809 | } | |
ab9bc19b | 5810 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
c95e68d8 | 5811 | } |
ab9bc19b RD |
5812 | { |
5813 | wxPy_BEGIN_ALLOW_THREADS; | |
5814 | wxMenu_SetTitle(_arg0,*_arg1); | |
5815 | ||
5816 | wxPy_END_ALLOW_THREADS; | |
5817 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
5818 | _resultobj = Py_None; |
5819 | { | |
5820 | if (_obj1) | |
5821 | delete _arg1; | |
5822 | } | |
5823 | return _resultobj; | |
5824 | } | |
5825 | ||
70551f47 | 5826 | #define wxMenu_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0)) |
107e4716 | 5827 | static PyObject *_wrap_wxMenu_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5828 | PyObject * _resultobj; |
5829 | wxMenuItem * _result; | |
5830 | wxMenu * _arg0; | |
5831 | int _arg1; | |
2d091820 | 5832 | PyObject * _argo0 = 0; |
107e4716 | 5833 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
5834 | char _ptemp[128]; |
5835 | ||
5836 | self = self; | |
107e4716 | 5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_FindItemForId",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5838 | return NULL; |
2d091820 RD |
5839 | if (_argo0) { |
5840 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5841 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_FindItemForId. Expected _wxMenu_p."); |
5843 | return NULL; | |
5844 | } | |
5845 | } | |
ab9bc19b RD |
5846 | { |
5847 | wxPy_BEGIN_ALLOW_THREADS; | |
5848 | _result = (wxMenuItem *)wxMenu_FindItemForId(_arg0,_arg1); | |
5849 | ||
5850 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
5851 | } if (_result) { |
5852 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
5853 | _resultobj = Py_BuildValue("s",_ptemp); | |
5854 | } else { | |
5855 | Py_INCREF(Py_None); | |
5856 | _resultobj = Py_None; | |
5857 | } | |
70551f47 RD |
5858 | return _resultobj; |
5859 | } | |
5860 | ||
5861 | #define wxMenu_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
107e4716 | 5862 | static PyObject *_wrap_wxMenu_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5863 | PyObject * _resultobj; |
5864 | wxString * _result; | |
5865 | wxMenu * _arg0; | |
5866 | int _arg1; | |
2d091820 | 5867 | PyObject * _argo0 = 0; |
107e4716 | 5868 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
5869 | |
5870 | self = self; | |
107e4716 | 5871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetHelpString",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5872 | return NULL; |
2d091820 RD |
5873 | if (_argo0) { |
5874 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5875 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5876 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetHelpString. Expected _wxMenu_p."); |
5877 | return NULL; | |
5878 | } | |
5879 | } | |
70551f47 | 5880 | { |
ab9bc19b RD |
5881 | wxPy_BEGIN_ALLOW_THREADS; |
5882 | _result = new wxString (wxMenu_GetHelpString(_arg0,_arg1)); | |
5883 | ||
5884 | wxPy_END_ALLOW_THREADS; | |
5885 | }{ | |
70551f47 RD |
5886 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
5887 | } | |
5888 | { | |
5889 | delete _result; | |
5890 | } | |
5891 | return _resultobj; | |
5892 | } | |
5893 | ||
5894 | #define wxMenu_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
107e4716 | 5895 | static PyObject *_wrap_wxMenu_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5896 | PyObject * _resultobj; |
5897 | wxString * _result; | |
5898 | wxMenu * _arg0; | |
5899 | int _arg1; | |
2d091820 | 5900 | PyObject * _argo0 = 0; |
107e4716 | 5901 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
5902 | |
5903 | self = self; | |
107e4716 | 5904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_GetLabel",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5905 | return NULL; |
2d091820 RD |
5906 | if (_argo0) { |
5907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_GetLabel. Expected _wxMenu_p."); |
5910 | return NULL; | |
5911 | } | |
5912 | } | |
70551f47 | 5913 | { |
ab9bc19b RD |
5914 | wxPy_BEGIN_ALLOW_THREADS; |
5915 | _result = new wxString (wxMenu_GetLabel(_arg0,_arg1)); | |
5916 | ||
5917 | wxPy_END_ALLOW_THREADS; | |
5918 | }{ | |
70551f47 RD |
5919 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); |
5920 | } | |
5921 | { | |
5922 | delete _result; | |
5923 | } | |
5924 | return _resultobj; | |
5925 | } | |
5926 | ||
5927 | #define wxMenu_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
107e4716 | 5928 | static PyObject *_wrap_wxMenu_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5929 | PyObject * _resultobj; |
5930 | wxMenu * _arg0; | |
5931 | int _arg1; | |
5932 | wxString * _arg2; | |
2d091820 | 5933 | PyObject * _argo0 = 0; |
70551f47 | 5934 | PyObject * _obj2 = 0; |
107e4716 | 5935 | char *_kwnames[] = { "self","id","helpString", NULL }; |
70551f47 RD |
5936 | |
5937 | self = self; | |
107e4716 | 5938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 5939 | return NULL; |
2d091820 RD |
5940 | if (_argo0) { |
5941 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5942 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5943 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetHelpString. Expected _wxMenu_p."); |
5944 | return NULL; | |
5945 | } | |
5946 | } | |
5947 | { | |
5948 | if (!PyString_Check(_obj2)) { | |
5949 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5950 | return NULL; | |
5951 | } | |
ab9bc19b | 5952 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 | 5953 | } |
ab9bc19b RD |
5954 | { |
5955 | wxPy_BEGIN_ALLOW_THREADS; | |
5956 | wxMenu_SetHelpString(_arg0,_arg1,*_arg2); | |
5957 | ||
5958 | wxPy_END_ALLOW_THREADS; | |
5959 | } Py_INCREF(Py_None); | |
70551f47 RD |
5960 | _resultobj = Py_None; |
5961 | { | |
5962 | if (_obj2) | |
5963 | delete _arg2; | |
5964 | } | |
5965 | return _resultobj; | |
5966 | } | |
5967 | ||
5968 | #define wxMenu_IsChecked(_swigobj,_swigarg0) (_swigobj->IsChecked(_swigarg0)) | |
107e4716 | 5969 | static PyObject *_wrap_wxMenu_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5970 | PyObject * _resultobj; |
5971 | bool _result; | |
5972 | wxMenu * _arg0; | |
5973 | int _arg1; | |
2d091820 | 5974 | PyObject * _argo0 = 0; |
107e4716 | 5975 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
5976 | |
5977 | self = self; | |
107e4716 | 5978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsChecked",_kwnames,&_argo0,&_arg1)) |
70551f47 | 5979 | return NULL; |
2d091820 RD |
5980 | if (_argo0) { |
5981 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5982 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
5983 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsChecked. Expected _wxMenu_p."); |
5984 | return NULL; | |
5985 | } | |
5986 | } | |
ab9bc19b RD |
5987 | { |
5988 | wxPy_BEGIN_ALLOW_THREADS; | |
5989 | _result = (bool )wxMenu_IsChecked(_arg0,_arg1); | |
5990 | ||
5991 | wxPy_END_ALLOW_THREADS; | |
5992 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
5993 | return _resultobj; |
5994 | } | |
5995 | ||
5996 | #define wxMenu_IsEnabled(_swigobj,_swigarg0) (_swigobj->IsEnabled(_swigarg0)) | |
107e4716 | 5997 | static PyObject *_wrap_wxMenu_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
5998 | PyObject * _resultobj; |
5999 | bool _result; | |
6000 | wxMenu * _arg0; | |
6001 | int _arg1; | |
2d091820 | 6002 | PyObject * _argo0 = 0; |
107e4716 | 6003 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
6004 | |
6005 | self = self; | |
107e4716 | 6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenu_IsEnabled",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6007 | return NULL; |
2d091820 RD |
6008 | if (_argo0) { |
6009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
6011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_IsEnabled. Expected _wxMenu_p."); |
6012 | return NULL; | |
6013 | } | |
6014 | } | |
ab9bc19b RD |
6015 | { |
6016 | wxPy_BEGIN_ALLOW_THREADS; | |
6017 | _result = (bool )wxMenu_IsEnabled(_arg0,_arg1); | |
6018 | ||
6019 | wxPy_END_ALLOW_THREADS; | |
6020 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6021 | return _resultobj; |
6022 | } | |
6023 | ||
6024 | #define wxMenu_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) | |
107e4716 | 6025 | static PyObject *_wrap_wxMenu_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6026 | PyObject * _resultobj; |
6027 | wxMenu * _arg0; | |
6028 | int _arg1; | |
6029 | wxString * _arg2; | |
2d091820 | 6030 | PyObject * _argo0 = 0; |
70551f47 | 6031 | PyObject * _obj2 = 0; |
107e4716 | 6032 | char *_kwnames[] = { "self","id","label", NULL }; |
70551f47 RD |
6033 | |
6034 | self = self; | |
107e4716 | 6035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenu_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) |
70551f47 | 6036 | return NULL; |
2d091820 RD |
6037 | if (_argo0) { |
6038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
70551f47 RD |
6040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_SetLabel. Expected _wxMenu_p."); |
6041 | return NULL; | |
6042 | } | |
6043 | } | |
6044 | { | |
6045 | if (!PyString_Check(_obj2)) { | |
6046 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6047 | return NULL; | |
6048 | } | |
ab9bc19b | 6049 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 | 6050 | } |
ab9bc19b RD |
6051 | { |
6052 | wxPy_BEGIN_ALLOW_THREADS; | |
6053 | wxMenu_SetLabel(_arg0,_arg1,*_arg2); | |
6054 | ||
6055 | wxPy_END_ALLOW_THREADS; | |
6056 | } Py_INCREF(Py_None); | |
70551f47 RD |
6057 | _resultobj = Py_None; |
6058 | { | |
6059 | if (_obj2) | |
6060 | delete _arg2; | |
6061 | } | |
6062 | return _resultobj; | |
6063 | } | |
6064 | ||
8bf5d46e | 6065 | #define wxMenu_UpdateUI(_swigobj,_swigarg0) (_swigobj->UpdateUI(_swigarg0)) |
107e4716 | 6066 | static PyObject *_wrap_wxMenu_UpdateUI(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 | 6067 | PyObject * _resultobj; |
8bf5d46e | 6068 | wxMenu * _arg0; |
2d091820 RD |
6069 | wxEvtHandler * _arg1 = (wxEvtHandler *) NULL; |
6070 | PyObject * _argo0 = 0; | |
6071 | PyObject * _argo1 = 0; | |
107e4716 | 6072 | char *_kwnames[] = { "self","source", NULL }; |
70551f47 RD |
6073 | |
6074 | self = self; | |
107e4716 | 6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxMenu_UpdateUI",_kwnames,&_argo0,&_argo1)) |
70551f47 | 6076 | return NULL; |
2d091820 RD |
6077 | if (_argo0) { |
6078 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6079 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
8bf5d46e RD |
6080 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_UpdateUI. Expected _wxMenu_p."); |
6081 | return NULL; | |
6082 | } | |
6083 | } | |
2d091820 RD |
6084 | if (_argo1) { |
6085 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6086 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
8bf5d46e | 6087 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenu_UpdateUI. Expected _wxEvtHandler_p."); |
70551f47 RD |
6088 | return NULL; |
6089 | } | |
6090 | } | |
ab9bc19b RD |
6091 | { |
6092 | wxPy_BEGIN_ALLOW_THREADS; | |
8bf5d46e | 6093 | wxMenu_UpdateUI(_arg0,_arg1); |
ab9bc19b RD |
6094 | |
6095 | wxPy_END_ALLOW_THREADS; | |
6096 | } Py_INCREF(Py_None); | |
70551f47 RD |
6097 | _resultobj = Py_None; |
6098 | return _resultobj; | |
6099 | } | |
6100 | ||
107e4716 RD |
6101 | static void wxMenu_Destroy(wxMenu *self) { |
6102 | delete self; | |
6103 | } | |
6104 | static PyObject *_wrap_wxMenu_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6105 | PyObject * _resultobj; | |
6106 | wxMenu * _arg0; | |
6107 | PyObject * _argo0 = 0; | |
6108 | char *_kwnames[] = { "self", NULL }; | |
6109 | ||
6110 | self = self; | |
6111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenu_Destroy",_kwnames,&_argo0)) | |
6112 | return NULL; | |
6113 | if (_argo0) { | |
6114 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6115 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenu_p")) { | |
6116 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenu_Destroy. Expected _wxMenu_p."); | |
6117 | return NULL; | |
6118 | } | |
6119 | } | |
6120 | { | |
6121 | wxPy_BEGIN_ALLOW_THREADS; | |
6122 | wxMenu_Destroy(_arg0); | |
6123 | ||
6124 | wxPy_END_ALLOW_THREADS; | |
6125 | } Py_INCREF(Py_None); | |
6126 | _resultobj = Py_None; | |
6127 | return _resultobj; | |
6128 | } | |
6129 | ||
70551f47 RD |
6130 | static void *SwigwxMenuBarTowxEvtHandler(void *ptr) { |
6131 | wxMenuBar *src; | |
6132 | wxEvtHandler *dest; | |
6133 | src = (wxMenuBar *) ptr; | |
6134 | dest = (wxEvtHandler *) src; | |
6135 | return (void *) dest; | |
6136 | } | |
6137 | ||
6138 | #define new_wxMenuBar() (new wxMenuBar()) | |
107e4716 | 6139 | static PyObject *_wrap_new_wxMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6140 | PyObject * _resultobj; |
6141 | wxMenuBar * _result; | |
107e4716 | 6142 | char *_kwnames[] = { NULL }; |
70551f47 RD |
6143 | char _ptemp[128]; |
6144 | ||
6145 | self = self; | |
107e4716 | 6146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuBar",_kwnames)) |
70551f47 | 6147 | return NULL; |
ab9bc19b RD |
6148 | { |
6149 | wxPy_BEGIN_ALLOW_THREADS; | |
6150 | _result = (wxMenuBar *)new_wxMenuBar(); | |
6151 | ||
6152 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6153 | } if (_result) { |
6154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuBar_p"); | |
6155 | _resultobj = Py_BuildValue("s",_ptemp); | |
6156 | } else { | |
6157 | Py_INCREF(Py_None); | |
6158 | _resultobj = Py_None; | |
6159 | } | |
70551f47 RD |
6160 | return _resultobj; |
6161 | } | |
6162 | ||
6163 | #define wxMenuBar_Append(_swigobj,_swigarg0,_swigarg1) (_swigobj->Append(_swigarg0,_swigarg1)) | |
107e4716 | 6164 | static PyObject *_wrap_wxMenuBar_Append(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6165 | PyObject * _resultobj; |
6166 | wxMenuBar * _arg0; | |
6167 | wxMenu * _arg1; | |
6168 | wxString * _arg2; | |
2d091820 RD |
6169 | PyObject * _argo0 = 0; |
6170 | PyObject * _argo1 = 0; | |
70551f47 | 6171 | PyObject * _obj2 = 0; |
107e4716 | 6172 | char *_kwnames[] = { "self","menu","title", NULL }; |
70551f47 RD |
6173 | |
6174 | self = self; | |
107e4716 | 6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_Append",_kwnames,&_argo0,&_argo1,&_obj2)) |
70551f47 | 6176 | return NULL; |
2d091820 RD |
6177 | if (_argo0) { |
6178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Append. Expected _wxMenuBar_p."); |
6181 | return NULL; | |
6182 | } | |
6183 | } | |
2d091820 RD |
6184 | if (_argo1) { |
6185 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
6186 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
70551f47 RD |
6187 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMenuBar_Append. Expected _wxMenu_p."); |
6188 | return NULL; | |
6189 | } | |
6190 | } | |
6191 | { | |
6192 | if (!PyString_Check(_obj2)) { | |
6193 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6194 | return NULL; | |
6195 | } | |
ab9bc19b | 6196 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 | 6197 | } |
ab9bc19b RD |
6198 | { |
6199 | wxPy_BEGIN_ALLOW_THREADS; | |
6200 | wxMenuBar_Append(_arg0,_arg1,*_arg2); | |
6201 | ||
6202 | wxPy_END_ALLOW_THREADS; | |
6203 | } Py_INCREF(Py_None); | |
70551f47 RD |
6204 | _resultobj = Py_None; |
6205 | { | |
6206 | if (_obj2) | |
6207 | delete _arg2; | |
6208 | } | |
6209 | return _resultobj; | |
6210 | } | |
6211 | ||
6212 | #define wxMenuBar_Check(_swigobj,_swigarg0,_swigarg1) (_swigobj->Check(_swigarg0,_swigarg1)) | |
107e4716 | 6213 | static PyObject *_wrap_wxMenuBar_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6214 | PyObject * _resultobj; |
6215 | wxMenuBar * _arg0; | |
6216 | int _arg1; | |
6217 | bool _arg2; | |
2d091820 | 6218 | PyObject * _argo0 = 0; |
70551f47 | 6219 | int tempbool2; |
107e4716 | 6220 | char *_kwnames[] = { "self","id","flag", NULL }; |
70551f47 RD |
6221 | |
6222 | self = self; | |
107e4716 | 6223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Check",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 6224 | return NULL; |
2d091820 RD |
6225 | if (_argo0) { |
6226 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6227 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6228 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Check. Expected _wxMenuBar_p."); |
6229 | return NULL; | |
6230 | } | |
6231 | } | |
6232 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
6233 | { |
6234 | wxPy_BEGIN_ALLOW_THREADS; | |
6235 | wxMenuBar_Check(_arg0,_arg1,_arg2); | |
6236 | ||
6237 | wxPy_END_ALLOW_THREADS; | |
6238 | } Py_INCREF(Py_None); | |
70551f47 RD |
6239 | _resultobj = Py_None; |
6240 | return _resultobj; | |
6241 | } | |
6242 | ||
6243 | #define wxMenuBar_Checked(_swigobj,_swigarg0) (_swigobj->Checked(_swigarg0)) | |
107e4716 | 6244 | static PyObject *_wrap_wxMenuBar_Checked(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6245 | PyObject * _resultobj; |
6246 | bool _result; | |
6247 | wxMenuBar * _arg0; | |
6248 | int _arg1; | |
2d091820 | 6249 | PyObject * _argo0 = 0; |
107e4716 | 6250 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
6251 | |
6252 | self = self; | |
107e4716 | 6253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Checked",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6254 | return NULL; |
2d091820 RD |
6255 | if (_argo0) { |
6256 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6257 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6258 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Checked. Expected _wxMenuBar_p."); |
6259 | return NULL; | |
6260 | } | |
6261 | } | |
ab9bc19b RD |
6262 | { |
6263 | wxPy_BEGIN_ALLOW_THREADS; | |
6264 | _result = (bool )wxMenuBar_Checked(_arg0,_arg1); | |
6265 | ||
6266 | wxPy_END_ALLOW_THREADS; | |
6267 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6268 | return _resultobj; |
6269 | } | |
6270 | ||
6271 | #define wxMenuBar_Enable(_swigobj,_swigarg0,_swigarg1) (_swigobj->Enable(_swigarg0,_swigarg1)) | |
107e4716 | 6272 | static PyObject *_wrap_wxMenuBar_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6273 | PyObject * _resultobj; |
6274 | wxMenuBar * _arg0; | |
6275 | int _arg1; | |
6276 | bool _arg2; | |
2d091820 | 6277 | PyObject * _argo0 = 0; |
70551f47 | 6278 | int tempbool2; |
107e4716 | 6279 | char *_kwnames[] = { "self","id","enable", NULL }; |
70551f47 RD |
6280 | |
6281 | self = self; | |
107e4716 | 6282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_Enable",_kwnames,&_argo0,&_arg1,&tempbool2)) |
70551f47 | 6283 | return NULL; |
2d091820 RD |
6284 | if (_argo0) { |
6285 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6286 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6287 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enable. Expected _wxMenuBar_p."); |
6288 | return NULL; | |
6289 | } | |
6290 | } | |
6291 | _arg2 = (bool ) tempbool2; | |
ab9bc19b RD |
6292 | { |
6293 | wxPy_BEGIN_ALLOW_THREADS; | |
6294 | wxMenuBar_Enable(_arg0,_arg1,_arg2); | |
6295 | ||
6296 | wxPy_END_ALLOW_THREADS; | |
6297 | } Py_INCREF(Py_None); | |
70551f47 RD |
6298 | _resultobj = Py_None; |
6299 | return _resultobj; | |
6300 | } | |
6301 | ||
6302 | #define wxMenuBar_Enabled(_swigobj,_swigarg0) (_swigobj->Enabled(_swigarg0)) | |
107e4716 | 6303 | static PyObject *_wrap_wxMenuBar_Enabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6304 | PyObject * _resultobj; |
6305 | bool _result; | |
6306 | wxMenuBar * _arg0; | |
6307 | int _arg1; | |
2d091820 | 6308 | PyObject * _argo0 = 0; |
107e4716 | 6309 | char *_kwnames[] = { "self","id", NULL }; |
70551f47 RD |
6310 | |
6311 | self = self; | |
107e4716 | 6312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_Enabled",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6313 | return NULL; |
2d091820 RD |
6314 | if (_argo0) { |
6315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Enabled. Expected _wxMenuBar_p."); |
6318 | return NULL; | |
6319 | } | |
6320 | } | |
ab9bc19b RD |
6321 | { |
6322 | wxPy_BEGIN_ALLOW_THREADS; | |
6323 | _result = (bool )wxMenuBar_Enabled(_arg0,_arg1); | |
6324 | ||
6325 | wxPy_END_ALLOW_THREADS; | |
6326 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6327 | return _resultobj; |
6328 | } | |
6329 | ||
6330 | #define wxMenuBar_FindMenuItem(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindMenuItem(_swigarg0,_swigarg1)) | |
107e4716 | 6331 | static PyObject *_wrap_wxMenuBar_FindMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6332 | PyObject * _resultobj; |
6333 | int _result; | |
6334 | wxMenuBar * _arg0; | |
6335 | wxString * _arg1; | |
6336 | wxString * _arg2; | |
2d091820 | 6337 | PyObject * _argo0 = 0; |
70551f47 RD |
6338 | PyObject * _obj1 = 0; |
6339 | PyObject * _obj2 = 0; | |
107e4716 | 6340 | char *_kwnames[] = { "self","menuString","itemString", NULL }; |
70551f47 RD |
6341 | |
6342 | self = self; | |
107e4716 | 6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxMenuBar_FindMenuItem",_kwnames,&_argo0,&_obj1,&_obj2)) |
70551f47 | 6344 | return NULL; |
2d091820 RD |
6345 | if (_argo0) { |
6346 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6347 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6348 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindMenuItem. Expected _wxMenuBar_p."); |
6349 | return NULL; | |
6350 | } | |
6351 | } | |
6352 | { | |
6353 | if (!PyString_Check(_obj1)) { | |
6354 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6355 | return NULL; | |
6356 | } | |
ab9bc19b | 6357 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 RD |
6358 | } |
6359 | { | |
6360 | if (!PyString_Check(_obj2)) { | |
6361 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6362 | return NULL; | |
6363 | } | |
ab9bc19b | 6364 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); |
70551f47 | 6365 | } |
ab9bc19b RD |
6366 | { |
6367 | wxPy_BEGIN_ALLOW_THREADS; | |
6368 | _result = (int )wxMenuBar_FindMenuItem(_arg0,*_arg1,*_arg2); | |
6369 | ||
6370 | wxPy_END_ALLOW_THREADS; | |
6371 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6372 | { |
6373 | if (_obj1) | |
6374 | delete _arg1; | |
6375 | } | |
6376 | { | |
6377 | if (_obj2) | |
6378 | delete _arg2; | |
6379 | } | |
6380 | return _resultobj; | |
6381 | } | |
6382 | ||
d3b4d113 | 6383 | #define wxMenuBar_FindItemForId(_swigobj,_swigarg0) (_swigobj->FindItemForId(_swigarg0)) |
107e4716 | 6384 | static PyObject *_wrap_wxMenuBar_FindItemForId(PyObject *self, PyObject *args, PyObject *kwargs) { |
d3b4d113 RR |
6385 | PyObject * _resultobj; |
6386 | wxMenuItem * _result; | |
6387 | wxMenuBar * _arg0; | |
6388 | int _arg1; | |
2d091820 | 6389 | PyObject * _argo0 = 0; |
107e4716 | 6390 | char *_kwnames[] = { "self","id", NULL }; |
d3b4d113 RR |
6391 | char _ptemp[128]; |
6392 | ||
6393 | self = self; | |
107e4716 | 6394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_FindItemForId",_kwnames,&_argo0,&_arg1)) |
d3b4d113 | 6395 | return NULL; |
2d091820 RD |
6396 | if (_argo0) { |
6397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
d3b4d113 RR |
6399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_FindItemForId. Expected _wxMenuBar_p."); |
6400 | return NULL; | |
6401 | } | |
6402 | } | |
ab9bc19b RD |
6403 | { |
6404 | wxPy_BEGIN_ALLOW_THREADS; | |
6405 | _result = (wxMenuItem *)wxMenuBar_FindItemForId(_arg0,_arg1); | |
6406 | ||
6407 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6408 | } if (_result) { |
6409 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6410 | _resultobj = Py_BuildValue("s",_ptemp); | |
6411 | } else { | |
6412 | Py_INCREF(Py_None); | |
6413 | _resultobj = Py_None; | |
6414 | } | |
d3b4d113 RR |
6415 | return _resultobj; |
6416 | } | |
6417 | ||
9cce9de1 RD |
6418 | #define wxMenuBar_SetLabel(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabel(_swigarg0,_swigarg1)) |
6419 | static PyObject *_wrap_wxMenuBar_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6420 | PyObject * _resultobj; | |
6421 | wxMenuBar * _arg0; | |
6422 | int _arg1; | |
6423 | wxString * _arg2; | |
6424 | PyObject * _argo0 = 0; | |
6425 | PyObject * _obj2 = 0; | |
6426 | char *_kwnames[] = { "self","id","label", NULL }; | |
6427 | ||
6428 | self = self; | |
6429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabel",_kwnames,&_argo0,&_arg1,&_obj2)) | |
6430 | return NULL; | |
6431 | if (_argo0) { | |
6432 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6433 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6434 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabel. Expected _wxMenuBar_p."); | |
6435 | return NULL; | |
6436 | } | |
6437 | } | |
6438 | { | |
6439 | if (!PyString_Check(_obj2)) { | |
6440 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6441 | return NULL; | |
6442 | } | |
6443 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6444 | } | |
6445 | { | |
6446 | wxPy_BEGIN_ALLOW_THREADS; | |
6447 | wxMenuBar_SetLabel(_arg0,_arg1,*_arg2); | |
6448 | ||
6449 | wxPy_END_ALLOW_THREADS; | |
6450 | } Py_INCREF(Py_None); | |
6451 | _resultobj = Py_None; | |
6452 | { | |
6453 | if (_obj2) | |
6454 | delete _arg2; | |
6455 | } | |
6456 | return _resultobj; | |
6457 | } | |
6458 | ||
6459 | #define wxMenuBar_EnableTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnableTop(_swigarg0,_swigarg1)) | |
6460 | static PyObject *_wrap_wxMenuBar_EnableTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6461 | PyObject * _resultobj; | |
6462 | wxMenuBar * _arg0; | |
6463 | int _arg1; | |
6464 | bool _arg2; | |
6465 | PyObject * _argo0 = 0; | |
6466 | int tempbool2; | |
6467 | char *_kwnames[] = { "self","pos","enable", NULL }; | |
6468 | ||
6469 | self = self; | |
6470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxMenuBar_EnableTop",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
6471 | return NULL; | |
6472 | if (_argo0) { | |
6473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_EnableTop. Expected _wxMenuBar_p."); | |
6476 | return NULL; | |
6477 | } | |
6478 | } | |
6479 | _arg2 = (bool ) tempbool2; | |
6480 | { | |
6481 | wxPy_BEGIN_ALLOW_THREADS; | |
6482 | wxMenuBar_EnableTop(_arg0,_arg1,_arg2); | |
6483 | ||
6484 | wxPy_END_ALLOW_THREADS; | |
6485 | } Py_INCREF(Py_None); | |
6486 | _resultobj = Py_None; | |
6487 | return _resultobj; | |
6488 | } | |
6489 | ||
6490 | #define wxMenuBar_GetHelpString(_swigobj,_swigarg0) (_swigobj->GetHelpString(_swigarg0)) | |
6491 | static PyObject *_wrap_wxMenuBar_GetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6492 | PyObject * _resultobj; | |
6493 | wxString * _result; | |
6494 | wxMenuBar * _arg0; | |
6495 | int _arg1; | |
6496 | PyObject * _argo0 = 0; | |
6497 | char *_kwnames[] = { "self","id", NULL }; | |
6498 | ||
6499 | self = self; | |
6500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetHelpString",_kwnames,&_argo0,&_arg1)) | |
6501 | return NULL; | |
6502 | if (_argo0) { | |
6503 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6504 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6505 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetHelpString. Expected _wxMenuBar_p."); | |
6506 | return NULL; | |
6507 | } | |
6508 | } | |
6509 | { | |
6510 | wxPy_BEGIN_ALLOW_THREADS; | |
6511 | _result = new wxString (wxMenuBar_GetHelpString(_arg0,_arg1)); | |
6512 | ||
6513 | wxPy_END_ALLOW_THREADS; | |
6514 | }{ | |
6515 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
6516 | } | |
6517 | { | |
6518 | delete _result; | |
6519 | } | |
6520 | return _resultobj; | |
6521 | } | |
6522 | ||
6523 | #define wxMenuBar_GetLabel(_swigobj,_swigarg0) (_swigobj->GetLabel(_swigarg0)) | |
6524 | static PyObject *_wrap_wxMenuBar_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6525 | PyObject * _resultobj; | |
6526 | wxString * _result; | |
6527 | wxMenuBar * _arg0; | |
6528 | int _arg1; | |
6529 | PyObject * _argo0 = 0; | |
6530 | char *_kwnames[] = { "self","id", NULL }; | |
6531 | ||
6532 | self = self; | |
6533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabel",_kwnames,&_argo0,&_arg1)) | |
6534 | return NULL; | |
6535 | if (_argo0) { | |
6536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabel. Expected _wxMenuBar_p."); | |
6539 | return NULL; | |
6540 | } | |
6541 | } | |
6542 | { | |
6543 | wxPy_BEGIN_ALLOW_THREADS; | |
6544 | _result = new wxString (wxMenuBar_GetLabel(_arg0,_arg1)); | |
6545 | ||
6546 | wxPy_END_ALLOW_THREADS; | |
6547 | }{ | |
6548 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
6549 | } | |
6550 | { | |
6551 | delete _result; | |
6552 | } | |
6553 | return _resultobj; | |
6554 | } | |
6555 | ||
6556 | #define wxMenuBar_SetHelpString(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetHelpString(_swigarg0,_swigarg1)) | |
6557 | static PyObject *_wrap_wxMenuBar_SetHelpString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6558 | PyObject * _resultobj; | |
6559 | wxMenuBar * _arg0; | |
6560 | int _arg1; | |
6561 | wxString * _arg2; | |
6562 | PyObject * _argo0 = 0; | |
6563 | PyObject * _obj2 = 0; | |
6564 | char *_kwnames[] = { "self","id","helpString", NULL }; | |
6565 | ||
6566 | self = self; | |
6567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetHelpString",_kwnames,&_argo0,&_arg1,&_obj2)) | |
6568 | return NULL; | |
6569 | if (_argo0) { | |
6570 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6571 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6572 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetHelpString. Expected _wxMenuBar_p."); | |
6573 | return NULL; | |
6574 | } | |
6575 | } | |
6576 | { | |
6577 | if (!PyString_Check(_obj2)) { | |
6578 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6579 | return NULL; | |
6580 | } | |
6581 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6582 | } | |
6583 | { | |
6584 | wxPy_BEGIN_ALLOW_THREADS; | |
6585 | wxMenuBar_SetHelpString(_arg0,_arg1,*_arg2); | |
6586 | ||
6587 | wxPy_END_ALLOW_THREADS; | |
6588 | } Py_INCREF(Py_None); | |
6589 | _resultobj = Py_None; | |
6590 | { | |
6591 | if (_obj2) | |
6592 | delete _arg2; | |
6593 | } | |
6594 | return _resultobj; | |
6595 | } | |
6596 | ||
6597 | #define wxMenuBar_GetLabelTop(_swigobj,_swigarg0) (_swigobj->GetLabelTop(_swigarg0)) | |
6598 | static PyObject *_wrap_wxMenuBar_GetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6599 | PyObject * _resultobj; | |
6600 | wxString * _result; | |
6601 | wxMenuBar * _arg0; | |
6602 | int _arg1; | |
6603 | PyObject * _argo0 = 0; | |
6604 | char *_kwnames[] = { "self","pos", NULL }; | |
6605 | ||
6606 | self = self; | |
6607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetLabelTop",_kwnames,&_argo0,&_arg1)) | |
6608 | return NULL; | |
6609 | if (_argo0) { | |
6610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetLabelTop. Expected _wxMenuBar_p."); | |
6613 | return NULL; | |
6614 | } | |
6615 | } | |
6616 | { | |
6617 | wxPy_BEGIN_ALLOW_THREADS; | |
6618 | _result = new wxString (wxMenuBar_GetLabelTop(_arg0,_arg1)); | |
6619 | ||
6620 | wxPy_END_ALLOW_THREADS; | |
6621 | }{ | |
6622 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
6623 | } | |
6624 | { | |
6625 | delete _result; | |
6626 | } | |
6627 | return _resultobj; | |
6628 | } | |
6629 | ||
6630 | #define wxMenuBar_SetLabelTop(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLabelTop(_swigarg0,_swigarg1)) | |
6631 | static PyObject *_wrap_wxMenuBar_SetLabelTop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6632 | PyObject * _resultobj; | |
6633 | wxMenuBar * _arg0; | |
6634 | int _arg1; | |
6635 | wxString * _arg2; | |
6636 | PyObject * _argo0 = 0; | |
6637 | PyObject * _obj2 = 0; | |
6638 | char *_kwnames[] = { "self","pos","label", NULL }; | |
6639 | ||
6640 | self = self; | |
6641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxMenuBar_SetLabelTop",_kwnames,&_argo0,&_arg1,&_obj2)) | |
6642 | return NULL; | |
6643 | if (_argo0) { | |
6644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_SetLabelTop. Expected _wxMenuBar_p."); | |
6647 | return NULL; | |
6648 | } | |
6649 | } | |
6650 | { | |
6651 | if (!PyString_Check(_obj2)) { | |
6652 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6653 | return NULL; | |
6654 | } | |
6655 | _arg2 = new wxString(PyString_AsString(_obj2), PyString_Size(_obj2)); | |
6656 | } | |
6657 | { | |
6658 | wxPy_BEGIN_ALLOW_THREADS; | |
6659 | wxMenuBar_SetLabelTop(_arg0,_arg1,*_arg2); | |
6660 | ||
6661 | wxPy_END_ALLOW_THREADS; | |
6662 | } Py_INCREF(Py_None); | |
6663 | _resultobj = Py_None; | |
6664 | { | |
6665 | if (_obj2) | |
6666 | delete _arg2; | |
6667 | } | |
6668 | return _resultobj; | |
6669 | } | |
6670 | ||
70551f47 | 6671 | #define wxMenuBar_GetMenuCount(_swigobj) (_swigobj->GetMenuCount()) |
107e4716 | 6672 | static PyObject *_wrap_wxMenuBar_GetMenuCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6673 | PyObject * _resultobj; |
6674 | int _result; | |
6675 | wxMenuBar * _arg0; | |
2d091820 | 6676 | PyObject * _argo0 = 0; |
107e4716 | 6677 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6678 | |
6679 | self = self; | |
107e4716 | 6680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_GetMenuCount",_kwnames,&_argo0)) |
70551f47 | 6681 | return NULL; |
2d091820 RD |
6682 | if (_argo0) { |
6683 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6684 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6685 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenuCount. Expected _wxMenuBar_p."); |
6686 | return NULL; | |
6687 | } | |
6688 | } | |
ab9bc19b RD |
6689 | { |
6690 | wxPy_BEGIN_ALLOW_THREADS; | |
6691 | _result = (int )wxMenuBar_GetMenuCount(_arg0); | |
6692 | ||
6693 | wxPy_END_ALLOW_THREADS; | |
6694 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6695 | return _resultobj; |
6696 | } | |
6697 | ||
6698 | #define wxMenuBar_GetMenu(_swigobj,_swigarg0) (_swigobj->GetMenu(_swigarg0)) | |
107e4716 | 6699 | static PyObject *_wrap_wxMenuBar_GetMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6700 | PyObject * _resultobj; |
6701 | wxMenu * _result; | |
6702 | wxMenuBar * _arg0; | |
6703 | int _arg1; | |
2d091820 | 6704 | PyObject * _argo0 = 0; |
107e4716 | 6705 | char *_kwnames[] = { "self","i", NULL }; |
70551f47 RD |
6706 | char _ptemp[128]; |
6707 | ||
6708 | self = self; | |
107e4716 | 6709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxMenuBar_GetMenu",_kwnames,&_argo0,&_arg1)) |
70551f47 | 6710 | return NULL; |
2d091820 RD |
6711 | if (_argo0) { |
6712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
70551f47 RD |
6714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_GetMenu. Expected _wxMenuBar_p."); |
6715 | return NULL; | |
6716 | } | |
6717 | } | |
ab9bc19b RD |
6718 | { |
6719 | wxPy_BEGIN_ALLOW_THREADS; | |
6720 | _result = (wxMenu *)wxMenuBar_GetMenu(_arg0,_arg1); | |
6721 | ||
6722 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6723 | } if (_result) { |
6724 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6725 | _resultobj = Py_BuildValue("s",_ptemp); | |
6726 | } else { | |
6727 | Py_INCREF(Py_None); | |
6728 | _resultobj = Py_None; | |
6729 | } | |
ab9bc19b RD |
6730 | return _resultobj; |
6731 | } | |
6732 | ||
bc29c5e0 RD |
6733 | #define wxMenuBar_Refresh(_swigobj) (_swigobj->Refresh()) |
6734 | static PyObject *_wrap_wxMenuBar_Refresh(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject * _resultobj; | |
6736 | wxMenuBar * _arg0; | |
6737 | PyObject * _argo0 = 0; | |
6738 | char *_kwnames[] = { "self", NULL }; | |
6739 | ||
6740 | self = self; | |
6741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuBar_Refresh",_kwnames,&_argo0)) | |
6742 | return NULL; | |
6743 | if (_argo0) { | |
6744 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6745 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuBar_p")) { | |
6746 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuBar_Refresh. Expected _wxMenuBar_p."); | |
6747 | return NULL; | |
6748 | } | |
6749 | } | |
6750 | { | |
6751 | wxPy_BEGIN_ALLOW_THREADS; | |
6752 | wxMenuBar_Refresh(_arg0); | |
6753 | ||
6754 | wxPy_END_ALLOW_THREADS; | |
6755 | } Py_INCREF(Py_None); | |
6756 | _resultobj = Py_None; | |
6757 | return _resultobj; | |
6758 | } | |
6759 | ||
ab9bc19b | 6760 | #define new_wxMenuItem() (new wxMenuItem()) |
107e4716 | 6761 | static PyObject *_wrap_new_wxMenuItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
ab9bc19b RD |
6762 | PyObject * _resultobj; |
6763 | wxMenuItem * _result; | |
107e4716 | 6764 | char *_kwnames[] = { NULL }; |
ab9bc19b RD |
6765 | char _ptemp[128]; |
6766 | ||
6767 | self = self; | |
107e4716 | 6768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMenuItem",_kwnames)) |
ab9bc19b RD |
6769 | return NULL; |
6770 | { | |
6771 | wxPy_BEGIN_ALLOW_THREADS; | |
6772 | _result = (wxMenuItem *)new_wxMenuItem(); | |
6773 | ||
6774 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6775 | } if (_result) { |
6776 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenuItem_p"); | |
6777 | _resultobj = Py_BuildValue("s",_ptemp); | |
6778 | } else { | |
6779 | Py_INCREF(Py_None); | |
6780 | _resultobj = Py_None; | |
6781 | } | |
70551f47 RD |
6782 | return _resultobj; |
6783 | } | |
6784 | ||
6785 | #define wxMenuItem_IsSeparator(_swigobj) (_swigobj->IsSeparator()) | |
107e4716 | 6786 | static PyObject *_wrap_wxMenuItem_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6787 | PyObject * _resultobj; |
6788 | bool _result; | |
6789 | wxMenuItem * _arg0; | |
2d091820 | 6790 | PyObject * _argo0 = 0; |
107e4716 | 6791 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6792 | |
6793 | self = self; | |
107e4716 | 6794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsSeparator",_kwnames,&_argo0)) |
70551f47 | 6795 | return NULL; |
2d091820 RD |
6796 | if (_argo0) { |
6797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
6799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsSeparator. Expected _wxMenuItem_p."); |
6800 | return NULL; | |
6801 | } | |
6802 | } | |
ab9bc19b RD |
6803 | { |
6804 | wxPy_BEGIN_ALLOW_THREADS; | |
6805 | _result = (bool )wxMenuItem_IsSeparator(_arg0); | |
6806 | ||
6807 | wxPy_END_ALLOW_THREADS; | |
6808 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6809 | return _resultobj; |
6810 | } | |
6811 | ||
6812 | #define wxMenuItem_IsEnabled(_swigobj) (_swigobj->IsEnabled()) | |
107e4716 | 6813 | static PyObject *_wrap_wxMenuItem_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6814 | PyObject * _resultobj; |
6815 | bool _result; | |
6816 | wxMenuItem * _arg0; | |
2d091820 | 6817 | PyObject * _argo0 = 0; |
107e4716 | 6818 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6819 | |
6820 | self = self; | |
107e4716 | 6821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsEnabled",_kwnames,&_argo0)) |
70551f47 | 6822 | return NULL; |
2d091820 RD |
6823 | if (_argo0) { |
6824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
6826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsEnabled. Expected _wxMenuItem_p."); |
6827 | return NULL; | |
6828 | } | |
6829 | } | |
ab9bc19b RD |
6830 | { |
6831 | wxPy_BEGIN_ALLOW_THREADS; | |
6832 | _result = (bool )wxMenuItem_IsEnabled(_arg0); | |
6833 | ||
6834 | wxPy_END_ALLOW_THREADS; | |
6835 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6836 | return _resultobj; |
6837 | } | |
6838 | ||
6839 | #define wxMenuItem_IsChecked(_swigobj) (_swigobj->IsChecked()) | |
107e4716 | 6840 | static PyObject *_wrap_wxMenuItem_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6841 | PyObject * _resultobj; |
6842 | bool _result; | |
6843 | wxMenuItem * _arg0; | |
2d091820 | 6844 | PyObject * _argo0 = 0; |
107e4716 | 6845 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6846 | |
6847 | self = self; | |
107e4716 | 6848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsChecked",_kwnames,&_argo0)) |
70551f47 | 6849 | return NULL; |
2d091820 RD |
6850 | if (_argo0) { |
6851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
6853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsChecked. Expected _wxMenuItem_p."); |
6854 | return NULL; | |
6855 | } | |
6856 | } | |
ab9bc19b RD |
6857 | { |
6858 | wxPy_BEGIN_ALLOW_THREADS; | |
6859 | _result = (bool )wxMenuItem_IsChecked(_arg0); | |
6860 | ||
6861 | wxPy_END_ALLOW_THREADS; | |
6862 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6863 | return _resultobj; |
6864 | } | |
6865 | ||
6866 | #define wxMenuItem_IsCheckable(_swigobj) (_swigobj->IsCheckable()) | |
107e4716 | 6867 | static PyObject *_wrap_wxMenuItem_IsCheckable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6868 | PyObject * _resultobj; |
6869 | bool _result; | |
6870 | wxMenuItem * _arg0; | |
2d091820 | 6871 | PyObject * _argo0 = 0; |
107e4716 | 6872 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6873 | |
6874 | self = self; | |
107e4716 | 6875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_IsCheckable",_kwnames,&_argo0)) |
70551f47 | 6876 | return NULL; |
2d091820 RD |
6877 | if (_argo0) { |
6878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
6880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_IsCheckable. Expected _wxMenuItem_p."); |
6881 | return NULL; | |
6882 | } | |
6883 | } | |
ab9bc19b RD |
6884 | { |
6885 | wxPy_BEGIN_ALLOW_THREADS; | |
6886 | _result = (bool )wxMenuItem_IsCheckable(_arg0); | |
6887 | ||
6888 | wxPy_END_ALLOW_THREADS; | |
6889 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6890 | return _resultobj; |
6891 | } | |
6892 | ||
6893 | #define wxMenuItem_GetId(_swigobj) (_swigobj->GetId()) | |
107e4716 | 6894 | static PyObject *_wrap_wxMenuItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6895 | PyObject * _resultobj; |
6896 | int _result; | |
6897 | wxMenuItem * _arg0; | |
2d091820 | 6898 | PyObject * _argo0 = 0; |
107e4716 | 6899 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6900 | |
6901 | self = self; | |
107e4716 | 6902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetId",_kwnames,&_argo0)) |
70551f47 | 6903 | return NULL; |
2d091820 RD |
6904 | if (_argo0) { |
6905 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6906 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
6907 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetId. Expected _wxMenuItem_p."); |
6908 | return NULL; | |
6909 | } | |
6910 | } | |
ab9bc19b RD |
6911 | { |
6912 | wxPy_BEGIN_ALLOW_THREADS; | |
6913 | _result = (int )wxMenuItem_GetId(_arg0); | |
6914 | ||
6915 | wxPy_END_ALLOW_THREADS; | |
6916 | } _resultobj = Py_BuildValue("i",_result); | |
70551f47 RD |
6917 | return _resultobj; |
6918 | } | |
6919 | ||
6920 | #define wxMenuItem_GetSubMenu(_swigobj) (_swigobj->GetSubMenu()) | |
107e4716 | 6921 | static PyObject *_wrap_wxMenuItem_GetSubMenu(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
6922 | PyObject * _resultobj; |
6923 | wxMenu * _result; | |
6924 | wxMenuItem * _arg0; | |
2d091820 | 6925 | PyObject * _argo0 = 0; |
107e4716 | 6926 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
6927 | char _ptemp[128]; |
6928 | ||
6929 | self = self; | |
107e4716 | 6930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetSubMenu",_kwnames,&_argo0)) |
70551f47 | 6931 | return NULL; |
2d091820 RD |
6932 | if (_argo0) { |
6933 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6934 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
6935 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetSubMenu. Expected _wxMenuItem_p."); |
6936 | return NULL; | |
6937 | } | |
6938 | } | |
ab9bc19b RD |
6939 | { |
6940 | wxPy_BEGIN_ALLOW_THREADS; | |
6941 | _result = (wxMenu *)wxMenuItem_GetSubMenu(_arg0); | |
6942 | ||
6943 | wxPy_END_ALLOW_THREADS; | |
2d091820 RD |
6944 | } if (_result) { |
6945 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMenu_p"); | |
6946 | _resultobj = Py_BuildValue("s",_ptemp); | |
6947 | } else { | |
6948 | Py_INCREF(Py_None); | |
6949 | _resultobj = Py_None; | |
6950 | } | |
70551f47 RD |
6951 | return _resultobj; |
6952 | } | |
6953 | ||
c95e68d8 | 6954 | #define wxMenuItem_SetName(_swigobj,_swigarg0) (_swigobj->SetName(_swigarg0)) |
107e4716 | 6955 | static PyObject *_wrap_wxMenuItem_SetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
6956 | PyObject * _resultobj; |
6957 | wxMenuItem * _arg0; | |
6958 | wxString * _arg1; | |
2d091820 | 6959 | PyObject * _argo0 = 0; |
c95e68d8 | 6960 | PyObject * _obj1 = 0; |
107e4716 | 6961 | char *_kwnames[] = { "self","strName", NULL }; |
c95e68d8 RD |
6962 | |
6963 | self = self; | |
107e4716 | 6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetName",_kwnames,&_argo0,&_obj1)) |
c95e68d8 | 6965 | return NULL; |
2d091820 RD |
6966 | if (_argo0) { |
6967 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6968 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
c95e68d8 RD |
6969 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetName. Expected _wxMenuItem_p."); |
6970 | return NULL; | |
6971 | } | |
6972 | } | |
6973 | { | |
6974 | if (!PyString_Check(_obj1)) { | |
6975 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
6976 | return NULL; | |
6977 | } | |
ab9bc19b | 6978 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
c95e68d8 | 6979 | } |
ab9bc19b RD |
6980 | { |
6981 | wxPy_BEGIN_ALLOW_THREADS; | |
6982 | wxMenuItem_SetName(_arg0,*_arg1); | |
6983 | ||
6984 | wxPy_END_ALLOW_THREADS; | |
6985 | } Py_INCREF(Py_None); | |
c95e68d8 RD |
6986 | _resultobj = Py_None; |
6987 | { | |
6988 | if (_obj1) | |
6989 | delete _arg1; | |
6990 | } | |
6991 | return _resultobj; | |
6992 | } | |
6993 | ||
6994 | #define wxMenuItem_GetName(_swigobj) (_swigobj->GetName()) | |
107e4716 | 6995 | static PyObject *_wrap_wxMenuItem_GetName(PyObject *self, PyObject *args, PyObject *kwargs) { |
c95e68d8 RD |
6996 | PyObject * _resultobj; |
6997 | wxString * _result; | |
6998 | wxMenuItem * _arg0; | |
2d091820 | 6999 | PyObject * _argo0 = 0; |
107e4716 | 7000 | char *_kwnames[] = { "self", NULL }; |
c95e68d8 RD |
7001 | |
7002 | self = self; | |
107e4716 | 7003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetName",_kwnames,&_argo0)) |
c95e68d8 | 7004 | return NULL; |
2d091820 RD |
7005 | if (_argo0) { |
7006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
c95e68d8 RD |
7008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetName. Expected _wxMenuItem_p."); |
7009 | return NULL; | |
7010 | } | |
7011 | } | |
c95e68d8 | 7012 | { |
ab9bc19b RD |
7013 | wxPy_BEGIN_ALLOW_THREADS; |
7014 | _result = new wxString (wxMenuItem_GetName(_arg0)); | |
7015 | ||
7016 | wxPy_END_ALLOW_THREADS; | |
7017 | }{ | |
7018 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7019 | } | |
7020 | { | |
7021 | delete _result; | |
c95e68d8 RD |
7022 | } |
7023 | return _resultobj; | |
7024 | } | |
7025 | ||
70551f47 | 7026 | #define wxMenuItem_GetHelp(_swigobj) (_swigobj->GetHelp()) |
107e4716 | 7027 | static PyObject *_wrap_wxMenuItem_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7028 | PyObject * _resultobj; |
7029 | wxString * _result; | |
7030 | wxMenuItem * _arg0; | |
2d091820 | 7031 | PyObject * _argo0 = 0; |
107e4716 | 7032 | char *_kwnames[] = { "self", NULL }; |
70551f47 RD |
7033 | |
7034 | self = self; | |
107e4716 | 7035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMenuItem_GetHelp",_kwnames,&_argo0)) |
70551f47 | 7036 | return NULL; |
2d091820 RD |
7037 | if (_argo0) { |
7038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
7040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_GetHelp. Expected _wxMenuItem_p."); |
7041 | return NULL; | |
7042 | } | |
7043 | } | |
70551f47 | 7044 | { |
ab9bc19b RD |
7045 | wxPy_BEGIN_ALLOW_THREADS; |
7046 | _result = new wxString (wxMenuItem_GetHelp(_arg0)); | |
7047 | ||
7048 | wxPy_END_ALLOW_THREADS; | |
7049 | }{ | |
7050 | _resultobj = PyString_FromString(WXSTRINGCAST *(_result)); | |
7051 | } | |
7052 | { | |
7053 | delete _result; | |
70551f47 RD |
7054 | } |
7055 | return _resultobj; | |
7056 | } | |
7057 | ||
7058 | #define wxMenuItem_SetHelp(_swigobj,_swigarg0) (_swigobj->SetHelp(_swigarg0)) | |
107e4716 | 7059 | static PyObject *_wrap_wxMenuItem_SetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7060 | PyObject * _resultobj; |
7061 | wxMenuItem * _arg0; | |
7062 | wxString * _arg1; | |
2d091820 | 7063 | PyObject * _argo0 = 0; |
70551f47 | 7064 | PyObject * _obj1 = 0; |
107e4716 | 7065 | char *_kwnames[] = { "self","strHelp", NULL }; |
70551f47 RD |
7066 | |
7067 | self = self; | |
107e4716 | 7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMenuItem_SetHelp",_kwnames,&_argo0,&_obj1)) |
70551f47 | 7069 | return NULL; |
2d091820 RD |
7070 | if (_argo0) { |
7071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
7073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_SetHelp. Expected _wxMenuItem_p."); |
7074 | return NULL; | |
7075 | } | |
7076 | } | |
7077 | { | |
7078 | if (!PyString_Check(_obj1)) { | |
7079 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7080 | return NULL; | |
7081 | } | |
ab9bc19b | 7082 | _arg1 = new wxString(PyString_AsString(_obj1), PyString_Size(_obj1)); |
70551f47 | 7083 | } |
ab9bc19b RD |
7084 | { |
7085 | wxPy_BEGIN_ALLOW_THREADS; | |
7086 | wxMenuItem_SetHelp(_arg0,*_arg1); | |
7087 | ||
7088 | wxPy_END_ALLOW_THREADS; | |
7089 | } Py_INCREF(Py_None); | |
70551f47 RD |
7090 | _resultobj = Py_None; |
7091 | { | |
7092 | if (_obj1) | |
7093 | delete _arg1; | |
7094 | } | |
7095 | return _resultobj; | |
7096 | } | |
7097 | ||
7098 | #define wxMenuItem_Enable(_swigobj,_swigarg0) (_swigobj->Enable(_swigarg0)) | |
107e4716 | 7099 | static PyObject *_wrap_wxMenuItem_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7100 | PyObject * _resultobj; |
7101 | wxMenuItem * _arg0; | |
2d091820 RD |
7102 | bool _arg1 = (bool ) TRUE; |
7103 | PyObject * _argo0 = 0; | |
7104 | int tempbool1 = (int) TRUE; | |
107e4716 | 7105 | char *_kwnames[] = { "self","bDoEnable", NULL }; |
70551f47 RD |
7106 | |
7107 | self = self; | |
107e4716 | 7108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Enable",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 7109 | return NULL; |
2d091820 RD |
7110 | if (_argo0) { |
7111 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7112 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
7113 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Enable. Expected _wxMenuItem_p."); |
7114 | return NULL; | |
7115 | } | |
7116 | } | |
7117 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
7118 | { |
7119 | wxPy_BEGIN_ALLOW_THREADS; | |
7120 | wxMenuItem_Enable(_arg0,_arg1); | |
7121 | ||
7122 | wxPy_END_ALLOW_THREADS; | |
7123 | } Py_INCREF(Py_None); | |
70551f47 RD |
7124 | _resultobj = Py_None; |
7125 | return _resultobj; | |
7126 | } | |
7127 | ||
7128 | #define wxMenuItem_Check(_swigobj,_swigarg0) (_swigobj->Check(_swigarg0)) | |
107e4716 | 7129 | static PyObject *_wrap_wxMenuItem_Check(PyObject *self, PyObject *args, PyObject *kwargs) { |
70551f47 RD |
7130 | PyObject * _resultobj; |
7131 | wxMenuItem * _arg0; | |
2d091820 RD |
7132 | bool _arg1 = (bool ) TRUE; |
7133 | PyObject * _argo0 = 0; | |
7134 | int tempbool1 = (int) TRUE; | |
107e4716 | 7135 | char *_kwnames[] = { "self","bDoCheck", NULL }; |
70551f47 RD |
7136 | |
7137 | self = self; | |
107e4716 | 7138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxMenuItem_Check",_kwnames,&_argo0,&tempbool1)) |
70551f47 | 7139 | return NULL; |
2d091820 RD |
7140 | if (_argo0) { |
7141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMenuItem_p")) { | |
70551f47 RD |
7143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMenuItem_Check. Expected _wxMenuItem_p."); |
7144 | return NULL; | |
7145 | } | |
7146 | } | |
7147 | _arg1 = (bool ) tempbool1; | |
ab9bc19b RD |
7148 | { |
7149 | wxPy_BEGIN_ALLOW_THREADS; | |
7150 | wxMenuItem_Check(_arg0,_arg1); | |
7151 | ||
7152 | wxPy_END_ALLOW_THREADS; | |
7153 | } Py_INCREF(Py_None); | |
70551f47 RD |
7154 | _resultobj = Py_None; |
7155 | return _resultobj; | |
7156 | } | |
7157 | ||
7158 | static PyMethodDef windowscMethods[] = { | |
107e4716 RD |
7159 | { "wxMenuItem_Check", (PyCFunction) _wrap_wxMenuItem_Check, METH_VARARGS | METH_KEYWORDS }, |
7160 | { "wxMenuItem_Enable", (PyCFunction) _wrap_wxMenuItem_Enable, METH_VARARGS | METH_KEYWORDS }, | |
7161 | { "wxMenuItem_SetHelp", (PyCFunction) _wrap_wxMenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS }, | |
7162 | { "wxMenuItem_GetHelp", (PyCFunction) _wrap_wxMenuItem_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
7163 | { "wxMenuItem_GetName", (PyCFunction) _wrap_wxMenuItem_GetName, METH_VARARGS | METH_KEYWORDS }, | |
7164 | { "wxMenuItem_SetName", (PyCFunction) _wrap_wxMenuItem_SetName, METH_VARARGS | METH_KEYWORDS }, | |
7165 | { "wxMenuItem_GetSubMenu", (PyCFunction) _wrap_wxMenuItem_GetSubMenu, METH_VARARGS | METH_KEYWORDS }, | |
7166 | { "wxMenuItem_GetId", (PyCFunction) _wrap_wxMenuItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
7167 | { "wxMenuItem_IsCheckable", (PyCFunction) _wrap_wxMenuItem_IsCheckable, METH_VARARGS | METH_KEYWORDS }, | |
7168 | { "wxMenuItem_IsChecked", (PyCFunction) _wrap_wxMenuItem_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
7169 | { "wxMenuItem_IsEnabled", (PyCFunction) _wrap_wxMenuItem_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
7170 | { "wxMenuItem_IsSeparator", (PyCFunction) _wrap_wxMenuItem_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
7171 | { "new_wxMenuItem", (PyCFunction) _wrap_new_wxMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
bc29c5e0 | 7172 | { "wxMenuBar_Refresh", (PyCFunction) _wrap_wxMenuBar_Refresh, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7173 | { "wxMenuBar_GetMenu", (PyCFunction) _wrap_wxMenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS }, |
7174 | { "wxMenuBar_GetMenuCount", (PyCFunction) _wrap_wxMenuBar_GetMenuCount, METH_VARARGS | METH_KEYWORDS }, | |
9cce9de1 RD |
7175 | { "wxMenuBar_SetLabelTop", (PyCFunction) _wrap_wxMenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS }, |
7176 | { "wxMenuBar_GetLabelTop", (PyCFunction) _wrap_wxMenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS }, | |
7177 | { "wxMenuBar_SetHelpString", (PyCFunction) _wrap_wxMenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
7178 | { "wxMenuBar_GetLabel", (PyCFunction) _wrap_wxMenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7179 | { "wxMenuBar_GetHelpString", (PyCFunction) _wrap_wxMenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
7180 | { "wxMenuBar_EnableTop", (PyCFunction) _wrap_wxMenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS }, | |
7181 | { "wxMenuBar_SetLabel", (PyCFunction) _wrap_wxMenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7182 | { "wxMenuBar_FindItemForId", (PyCFunction) _wrap_wxMenuBar_FindItemForId, METH_VARARGS | METH_KEYWORDS }, |
7183 | { "wxMenuBar_FindMenuItem", (PyCFunction) _wrap_wxMenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS }, | |
7184 | { "wxMenuBar_Enabled", (PyCFunction) _wrap_wxMenuBar_Enabled, METH_VARARGS | METH_KEYWORDS }, | |
7185 | { "wxMenuBar_Enable", (PyCFunction) _wrap_wxMenuBar_Enable, METH_VARARGS | METH_KEYWORDS }, | |
7186 | { "wxMenuBar_Checked", (PyCFunction) _wrap_wxMenuBar_Checked, METH_VARARGS | METH_KEYWORDS }, | |
7187 | { "wxMenuBar_Check", (PyCFunction) _wrap_wxMenuBar_Check, METH_VARARGS | METH_KEYWORDS }, | |
7188 | { "wxMenuBar_Append", (PyCFunction) _wrap_wxMenuBar_Append, METH_VARARGS | METH_KEYWORDS }, | |
7189 | { "new_wxMenuBar", (PyCFunction) _wrap_new_wxMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
7190 | { "wxMenu_Destroy", (PyCFunction) _wrap_wxMenu_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
7191 | { "wxMenu_UpdateUI", (PyCFunction) _wrap_wxMenu_UpdateUI, METH_VARARGS | METH_KEYWORDS }, | |
7192 | { "wxMenu_SetLabel", (PyCFunction) _wrap_wxMenu_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7193 | { "wxMenu_IsEnabled", (PyCFunction) _wrap_wxMenu_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
7194 | { "wxMenu_IsChecked", (PyCFunction) _wrap_wxMenu_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
7195 | { "wxMenu_SetHelpString", (PyCFunction) _wrap_wxMenu_SetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
7196 | { "wxMenu_GetLabel", (PyCFunction) _wrap_wxMenu_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7197 | { "wxMenu_GetHelpString", (PyCFunction) _wrap_wxMenu_GetHelpString, METH_VARARGS | METH_KEYWORDS }, | |
7198 | { "wxMenu_FindItemForId", (PyCFunction) _wrap_wxMenu_FindItemForId, METH_VARARGS | METH_KEYWORDS }, | |
7199 | { "wxMenu_SetTitle", (PyCFunction) _wrap_wxMenu_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
7200 | { "wxMenu_GetTitle", (PyCFunction) _wrap_wxMenu_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
7201 | { "wxMenu_FindItem", (PyCFunction) _wrap_wxMenu_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
7202 | { "wxMenu_Enable", (PyCFunction) _wrap_wxMenu_Enable, METH_VARARGS | METH_KEYWORDS }, | |
7203 | { "wxMenu_Check", (PyCFunction) _wrap_wxMenu_Check, METH_VARARGS | METH_KEYWORDS }, | |
7204 | { "wxMenu_Break", (PyCFunction) _wrap_wxMenu_Break, METH_VARARGS | METH_KEYWORDS }, | |
7205 | { "wxMenu_AppendSeparator", (PyCFunction) _wrap_wxMenu_AppendSeparator, METH_VARARGS | METH_KEYWORDS }, | |
9cce9de1 | 7206 | { "wxMenu_AppendItem", (PyCFunction) _wrap_wxMenu_AppendItem, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7207 | { "wxMenu_AppendMenu", (PyCFunction) _wrap_wxMenu_AppendMenu, METH_VARARGS | METH_KEYWORDS }, |
7208 | { "wxMenu_Append", (PyCFunction) _wrap_wxMenu_Append, METH_VARARGS | METH_KEYWORDS }, | |
7209 | { "new_wxMenu", (PyCFunction) _wrap_new_wxMenu, METH_VARARGS | METH_KEYWORDS }, | |
f078d013 RD |
7210 | { "wxScrolledWindow_CalcUnscrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcUnscrolledPosition, METH_VARARGS | METH_KEYWORDS }, |
7211 | { "wxScrolledWindow_CalcScrolledPosition", (PyCFunction) _wrap_wxScrolledWindow_CalcScrolledPosition, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7212 | { "wxScrolledWindow_ViewStart", (PyCFunction) _wrap_wxScrolledWindow_ViewStart, METH_VARARGS | METH_KEYWORDS }, |
7213 | { "wxScrolledWindow_SetScrollbars", (PyCFunction) _wrap_wxScrolledWindow_SetScrollbars, METH_VARARGS | METH_KEYWORDS }, | |
7214 | { "wxScrolledWindow_Scroll", (PyCFunction) _wrap_wxScrolledWindow_Scroll, METH_VARARGS | METH_KEYWORDS }, | |
7215 | { "wxScrolledWindow_PrepareDC", (PyCFunction) _wrap_wxScrolledWindow_PrepareDC, METH_VARARGS | METH_KEYWORDS }, | |
7216 | { "wxScrolledWindow_IsRetained", (PyCFunction) _wrap_wxScrolledWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
7217 | { "wxScrolledWindow_GetVirtualSize", (PyCFunction) _wrap_wxScrolledWindow_GetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
7218 | { "wxScrolledWindow_GetScrollPixelsPerUnit", (PyCFunction) _wrap_wxScrolledWindow_GetScrollPixelsPerUnit, METH_VARARGS | METH_KEYWORDS }, | |
7219 | { "wxScrolledWindow_EnableScrolling", (PyCFunction) _wrap_wxScrolledWindow_EnableScrolling, METH_VARARGS | METH_KEYWORDS }, | |
7220 | { "new_wxScrolledWindow", (PyCFunction) _wrap_new_wxScrolledWindow, METH_VARARGS | METH_KEYWORDS }, | |
7221 | { "wxDialog_SetReturnCode", (PyCFunction) _wrap_wxDialog_SetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
7222 | { "wxDialog_GetReturnCode", (PyCFunction) _wrap_wxDialog_GetReturnCode, METH_VARARGS | METH_KEYWORDS }, | |
7223 | { "wxDialog_ShowModal", (PyCFunction) _wrap_wxDialog_ShowModal, METH_VARARGS | METH_KEYWORDS }, | |
7224 | { "wxDialog_Show", (PyCFunction) _wrap_wxDialog_Show, METH_VARARGS | METH_KEYWORDS }, | |
7225 | { "wxDialog_SetTitle", (PyCFunction) _wrap_wxDialog_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
7226 | { "wxDialog_IsModal", (PyCFunction) _wrap_wxDialog_IsModal, METH_VARARGS | METH_KEYWORDS }, | |
7227 | { "wxDialog_SetModal", (PyCFunction) _wrap_wxDialog_SetModal, METH_VARARGS | METH_KEYWORDS }, | |
7228 | { "wxDialog_IsIconized", (PyCFunction) _wrap_wxDialog_IsIconized, METH_VARARGS | METH_KEYWORDS }, | |
7229 | { "wxDialog_Iconize", (PyCFunction) _wrap_wxDialog_Iconize, METH_VARARGS | METH_KEYWORDS }, | |
7230 | { "wxDialog_GetTitle", (PyCFunction) _wrap_wxDialog_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
7231 | { "wxDialog_EndModal", (PyCFunction) _wrap_wxDialog_EndModal, METH_VARARGS | METH_KEYWORDS }, | |
7232 | { "wxDialog_Centre", (PyCFunction) _wrap_wxDialog_Centre, METH_VARARGS | METH_KEYWORDS }, | |
7233 | { "new_wxDialog", (PyCFunction) _wrap_new_wxDialog, METH_VARARGS | METH_KEYWORDS }, | |
7234 | { "wxPanel_SetDefaultItem", (PyCFunction) _wrap_wxPanel_SetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
7235 | { "wxPanel_GetDefaultItem", (PyCFunction) _wrap_wxPanel_GetDefaultItem, METH_VARARGS | METH_KEYWORDS }, | |
7236 | { "wxPanel_InitDialog", (PyCFunction) _wrap_wxPanel_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
7237 | { "new_wxPanel", (PyCFunction) _wrap_new_wxPanel, METH_VARARGS | METH_KEYWORDS }, | |
37f6a977 RD |
7238 | { "wxWindow_SetValidator", (PyCFunction) _wrap_wxWindow_SetValidator, METH_VARARGS | METH_KEYWORDS }, |
7239 | { "wxWindow_GetValidator", (PyCFunction) _wrap_wxWindow_GetValidator, METH_VARARGS | METH_KEYWORDS }, | |
7240 | { "wxWindow_SetSizer", (PyCFunction) _wrap_wxWindow_SetSizer, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7241 | { "wxWindow_GetToolTip", (PyCFunction) _wrap_wxWindow_GetToolTip, METH_VARARGS | METH_KEYWORDS }, |
7242 | { "wxWindow_SetToolTip", (PyCFunction) _wrap_wxWindow_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
7243 | { "wxWindow_SetToolTipString", (PyCFunction) _wrap_wxWindow_SetToolTipString, METH_VARARGS | METH_KEYWORDS }, | |
7244 | { "wxWindow_ConvertPixelSizeToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS }, | |
7245 | { "wxWindow_ConvertPixelPointToDialog", (PyCFunction) _wrap_wxWindow_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS }, | |
7246 | { "wxWindow_DLG_SZE", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
7247 | { "wxWindow_DLG_PNT", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
7248 | { "wxWindow_ConvertDialogSizeToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS }, | |
7249 | { "wxWindow_ConvertDialogPointToPixels", (PyCFunction) _wrap_wxWindow_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS }, | |
7250 | { "wxWindow_WarpPointer", (PyCFunction) _wrap_wxWindow_WarpPointer, METH_VARARGS | METH_KEYWORDS }, | |
7251 | { "wxWindow_Validate", (PyCFunction) _wrap_wxWindow_Validate, METH_VARARGS | METH_KEYWORDS }, | |
7252 | { "wxWindow_TransferDataToWindow", (PyCFunction) _wrap_wxWindow_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
7253 | { "wxWindow_TransferDataFromWindow", (PyCFunction) _wrap_wxWindow_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
7254 | { "wxWindow_Show", (PyCFunction) _wrap_wxWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
7255 | { "wxWindow_SetTitle", (PyCFunction) _wrap_wxWindow_SetTitle, METH_VARARGS | METH_KEYWORDS }, | |
9cce9de1 | 7256 | { "wxWindow_SetEventHandler", (PyCFunction) _wrap_wxWindow_SetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7257 | { "wxWindow_SetCursor", (PyCFunction) _wrap_wxWindow_SetCursor, METH_VARARGS | METH_KEYWORDS }, |
7258 | { "wxWindow_SetClientSize", (PyCFunction) _wrap_wxWindow_SetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
7259 | { "wxWindow_SetClientSizeWH", (PyCFunction) _wrap_wxWindow_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
7260 | { "wxWindow_SetSizeHints", (PyCFunction) _wrap_wxWindow_SetSizeHints, METH_VARARGS | METH_KEYWORDS }, | |
7261 | { "wxWindow_SetPosition", (PyCFunction) _wrap_wxWindow_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
7262 | { "wxWindow_SetSize", (PyCFunction) _wrap_wxWindow_SetSize, METH_VARARGS | METH_KEYWORDS }, | |
7263 | { "wxWindow_SetDimensions", (PyCFunction) _wrap_wxWindow_SetDimensions, METH_VARARGS | METH_KEYWORDS }, | |
7264 | { "wxWindow_SetScrollPos", (PyCFunction) _wrap_wxWindow_SetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
7265 | { "wxWindow_SetScrollbar", (PyCFunction) _wrap_wxWindow_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
7266 | { "wxWindow_SetName", (PyCFunction) _wrap_wxWindow_SetName, METH_VARARGS | METH_KEYWORDS }, | |
7267 | { "wxWindow_SetId", (PyCFunction) _wrap_wxWindow_SetId, METH_VARARGS | METH_KEYWORDS }, | |
7268 | { "wxWindow_SetForegroundColour", (PyCFunction) _wrap_wxWindow_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7269 | { "wxWindow_SetFont", (PyCFunction) _wrap_wxWindow_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
37f6a977 | 7270 | { "wxWindow_AcceptsFocus", (PyCFunction) _wrap_wxWindow_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, |
107e4716 | 7271 | { "wxWindow_SetFocus", (PyCFunction) _wrap_wxWindow_SetFocus, METH_VARARGS | METH_KEYWORDS }, |
37f6a977 | 7272 | { "wxWindow_UnsetConstraints", (PyCFunction) _wrap_wxWindow_UnsetConstraints, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7273 | { "wxWindow_SetConstraints", (PyCFunction) _wrap_wxWindow_SetConstraints, METH_VARARGS | METH_KEYWORDS }, |
7274 | { "wxWindow_SetBackgroundColour", (PyCFunction) _wrap_wxWindow_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
1dec68aa | 7275 | { "wxWindow_GetAutoLayout", (PyCFunction) _wrap_wxWindow_GetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7276 | { "wxWindow_SetAutoLayout", (PyCFunction) _wrap_wxWindow_SetAutoLayout, METH_VARARGS | METH_KEYWORDS }, |
7277 | { "wxWindow_SetAcceleratorTable", (PyCFunction) _wrap_wxWindow_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS }, | |
7278 | { "wxWindow_ScrollWindow", (PyCFunction) _wrap_wxWindow_ScrollWindow, METH_VARARGS | METH_KEYWORDS }, | |
7279 | { "wxWindow_ScreenToClient", (PyCFunction) _wrap_wxWindow_ScreenToClient, METH_VARARGS | METH_KEYWORDS }, | |
7280 | { "wxWindow_ScreenToClientXY", (PyCFunction) _wrap_wxWindow_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS }, | |
7281 | { "wxWindow_Reparent", (PyCFunction) _wrap_wxWindow_Reparent, METH_VARARGS | METH_KEYWORDS }, | |
7282 | { "wxWindow_ReleaseMouse", (PyCFunction) _wrap_wxWindow_ReleaseMouse, METH_VARARGS | METH_KEYWORDS }, | |
7283 | { "wxWindow_Refresh", (PyCFunction) _wrap_wxWindow_Refresh, METH_VARARGS | METH_KEYWORDS }, | |
7284 | { "wxWindow_Raise", (PyCFunction) _wrap_wxWindow_Raise, METH_VARARGS | METH_KEYWORDS }, | |
7285 | { "wxWindow_PopupMenu", (PyCFunction) _wrap_wxWindow_PopupMenu, METH_VARARGS | METH_KEYWORDS }, | |
7286 | { "wxWindow_PopupMenuXY", (PyCFunction) _wrap_wxWindow_PopupMenuXY, METH_VARARGS | METH_KEYWORDS }, | |
9cce9de1 RD |
7287 | { "wxWindow_PushEventHandler", (PyCFunction) _wrap_wxWindow_PushEventHandler, METH_VARARGS | METH_KEYWORDS }, |
7288 | { "wxWindow_PopEventHandler", (PyCFunction) _wrap_wxWindow_PopEventHandler, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 RD |
7289 | { "wxWindow_Move", (PyCFunction) _wrap_wxWindow_Move, METH_VARARGS | METH_KEYWORDS }, |
7290 | { "wxWindow_MoveXY", (PyCFunction) _wrap_wxWindow_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
7291 | { "wxWindow_MakeModal", (PyCFunction) _wrap_wxWindow_MakeModal, METH_VARARGS | METH_KEYWORDS }, | |
7292 | { "wxWindow_Lower", (PyCFunction) _wrap_wxWindow_Lower, METH_VARARGS | METH_KEYWORDS }, | |
7293 | { "wxWindow_LoadFromResource", (PyCFunction) _wrap_wxWindow_LoadFromResource, METH_VARARGS | METH_KEYWORDS }, | |
7294 | { "wxWindow_Layout", (PyCFunction) _wrap_wxWindow_Layout, METH_VARARGS | METH_KEYWORDS }, | |
7295 | { "wxWindow_IsTopLevel", (PyCFunction) _wrap_wxWindow_IsTopLevel, METH_VARARGS | METH_KEYWORDS }, | |
7296 | { "wxWindow_IsShown", (PyCFunction) _wrap_wxWindow_IsShown, METH_VARARGS | METH_KEYWORDS }, | |
7297 | { "wxWindow_IsRetained", (PyCFunction) _wrap_wxWindow_IsRetained, METH_VARARGS | METH_KEYWORDS }, | |
7298 | { "wxWindow_IsEnabled", (PyCFunction) _wrap_wxWindow_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
7299 | { "wxWindow_InitDialog", (PyCFunction) _wrap_wxWindow_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
7300 | { "wxWindow_Hide", (PyCFunction) _wrap_wxWindow_Hide, METH_VARARGS | METH_KEYWORDS }, | |
7301 | { "wxWindow_GetWindowStyleFlag", (PyCFunction) _wrap_wxWindow_GetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
7302 | { "wxWindow_GetUpdateRegion", (PyCFunction) _wrap_wxWindow_GetUpdateRegion, METH_VARARGS | METH_KEYWORDS }, | |
7303 | { "wxWindow_GetTitle", (PyCFunction) _wrap_wxWindow_GetTitle, METH_VARARGS | METH_KEYWORDS }, | |
7304 | { "wxWindow_GetFullTextExtent", (PyCFunction) _wrap_wxWindow_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
7305 | { "wxWindow_GetTextExtent", (PyCFunction) _wrap_wxWindow_GetTextExtent, METH_VARARGS | METH_KEYWORDS }, | |
7306 | { "wxWindow_GetSize", (PyCFunction) _wrap_wxWindow_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
7307 | { "wxWindow_GetSizeTuple", (PyCFunction) _wrap_wxWindow_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
7308 | { "wxWindow_GetScrollRange", (PyCFunction) _wrap_wxWindow_GetScrollRange, METH_VARARGS | METH_KEYWORDS }, | |
7309 | { "wxWindow_GetScrollPos", (PyCFunction) _wrap_wxWindow_GetScrollPos, METH_VARARGS | METH_KEYWORDS }, | |
7310 | { "wxWindow_GetScrollThumb", (PyCFunction) _wrap_wxWindow_GetScrollThumb, METH_VARARGS | METH_KEYWORDS }, | |
7311 | { "wxWindow_GetRect", (PyCFunction) _wrap_wxWindow_GetRect, METH_VARARGS | METH_KEYWORDS }, | |
7312 | { "wxWindow_GetPosition", (PyCFunction) _wrap_wxWindow_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
7313 | { "wxWindow_GetPositionTuple", (PyCFunction) _wrap_wxWindow_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
7314 | { "wxWindow_GetParent", (PyCFunction) _wrap_wxWindow_GetParent, METH_VARARGS | METH_KEYWORDS }, | |
7315 | { "wxWindow_GetName", (PyCFunction) _wrap_wxWindow_GetName, METH_VARARGS | METH_KEYWORDS }, | |
7316 | { "wxWindow_SetLabel", (PyCFunction) _wrap_wxWindow_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7317 | { "wxWindow_GetLabel", (PyCFunction) _wrap_wxWindow_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
7318 | { "wxWindow_GetId", (PyCFunction) _wrap_wxWindow_GetId, METH_VARARGS | METH_KEYWORDS }, | |
7319 | { "wxWindow_GetGrandParent", (PyCFunction) _wrap_wxWindow_GetGrandParent, METH_VARARGS | METH_KEYWORDS }, | |
7320 | { "wxWindow_GetForegroundColour", (PyCFunction) _wrap_wxWindow_GetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
7321 | { "wxWindow_GetFont", (PyCFunction) _wrap_wxWindow_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
9cce9de1 | 7322 | { "wxWindow_GetEventHandler", (PyCFunction) _wrap_wxWindow_GetEventHandler, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7323 | { "wxWindow_GetConstraints", (PyCFunction) _wrap_wxWindow_GetConstraints, METH_VARARGS | METH_KEYWORDS }, |
7324 | { "wxWindow_GetClientSize", (PyCFunction) _wrap_wxWindow_GetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
7325 | { "wxWindow_GetClientSizeTuple", (PyCFunction) _wrap_wxWindow_GetClientSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
7326 | { "wxWindow_GetCharWidth", (PyCFunction) _wrap_wxWindow_GetCharWidth, METH_VARARGS | METH_KEYWORDS }, | |
7327 | { "wxWindow_GetCharHeight", (PyCFunction) _wrap_wxWindow_GetCharHeight, METH_VARARGS | METH_KEYWORDS }, | |
9cce9de1 | 7328 | { "wxWindow_GetChildren", (PyCFunction) _wrap_wxWindow_GetChildren, METH_VARARGS | METH_KEYWORDS }, |
107e4716 RD |
7329 | { "wxWindow_GetBackgroundColour", (PyCFunction) _wrap_wxWindow_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, |
7330 | { "wxWindow_Fit", (PyCFunction) _wrap_wxWindow_Fit, METH_VARARGS | METH_KEYWORDS }, | |
7331 | { "wxWindow_FindWindowByName", (PyCFunction) _wrap_wxWindow_FindWindowByName, METH_VARARGS | METH_KEYWORDS }, | |
7332 | { "wxWindow_FindWindowById", (PyCFunction) _wrap_wxWindow_FindWindowById, METH_VARARGS | METH_KEYWORDS }, | |
7333 | { "wxWindow_Enable", (PyCFunction) _wrap_wxWindow_Enable, METH_VARARGS | METH_KEYWORDS }, | |
7334 | { "wxWindow_DestroyChildren", (PyCFunction) _wrap_wxWindow_DestroyChildren, METH_VARARGS | METH_KEYWORDS }, | |
7335 | { "wxWindow_Destroy", (PyCFunction) _wrap_wxWindow_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
7336 | { "wxWindow_Close", (PyCFunction) _wrap_wxWindow_Close, METH_VARARGS | METH_KEYWORDS }, | |
7337 | { "wxWindow_ClientToScreen", (PyCFunction) _wrap_wxWindow_ClientToScreen, METH_VARARGS | METH_KEYWORDS }, | |
7338 | { "wxWindow_ClientToScreenXY", (PyCFunction) _wrap_wxWindow_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS }, | |
7339 | { "wxWindow_CenterOnParent", (PyCFunction) _wrap_wxWindow_CenterOnParent, METH_VARARGS | METH_KEYWORDS }, | |
7340 | { "wxWindow_CentreOnParent", (PyCFunction) _wrap_wxWindow_CentreOnParent, METH_VARARGS | METH_KEYWORDS }, | |
7341 | { "wxWindow_Centre", (PyCFunction) _wrap_wxWindow_Centre, METH_VARARGS | METH_KEYWORDS }, | |
7342 | { "wxWindow_Center", (PyCFunction) _wrap_wxWindow_Center, METH_VARARGS | METH_KEYWORDS }, | |
7343 | { "wxWindow_CaptureMouse", (PyCFunction) _wrap_wxWindow_CaptureMouse, METH_VARARGS | METH_KEYWORDS }, | |
7344 | { "new_wxWindow", (PyCFunction) _wrap_new_wxWindow, METH_VARARGS | METH_KEYWORDS }, | |
37f6a977 RD |
7345 | { "wxPyValidator__setSelf", (PyCFunction) _wrap_wxPyValidator__setSelf, METH_VARARGS | METH_KEYWORDS }, |
7346 | { "wxPyValidator_Destroy", (PyCFunction) _wrap_wxPyValidator_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
7347 | { "new_wxPyValidator", (PyCFunction) _wrap_new_wxPyValidator, METH_VARARGS | METH_KEYWORDS }, | |
7348 | { "wxValidator_SetWindow", (PyCFunction) _wrap_wxValidator_SetWindow, METH_VARARGS | METH_KEYWORDS }, | |
7349 | { "wxValidator_GetWindow", (PyCFunction) _wrap_wxValidator_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
7350 | { "wxValidator_Clone", (PyCFunction) _wrap_wxValidator_Clone, METH_VARARGS | METH_KEYWORDS }, | |
7351 | { "new_wxValidator", (PyCFunction) _wrap_new_wxValidator, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7352 | { "wxEvtHandler_Connect", (PyCFunction) _wrap_wxEvtHandler_Connect, METH_VARARGS | METH_KEYWORDS }, |
37f6a977 RD |
7353 | { "wxEvtHandler_SetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, |
7354 | { "wxEvtHandler_SetNextHandler", (PyCFunction) _wrap_wxEvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
7355 | { "wxEvtHandler_GetPreviousHandler", (PyCFunction) _wrap_wxEvtHandler_GetPreviousHandler, METH_VARARGS | METH_KEYWORDS }, | |
7356 | { "wxEvtHandler_GetNextHandler", (PyCFunction) _wrap_wxEvtHandler_GetNextHandler, METH_VARARGS | METH_KEYWORDS }, | |
7357 | { "wxEvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
7358 | { "wxEvtHandler_GetEvtHandlerEnabled", (PyCFunction) _wrap_wxEvtHandler_GetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS }, | |
107e4716 | 7359 | { "wxEvtHandler_ProcessEvent", (PyCFunction) _wrap_wxEvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS }, |
37f6a977 RD |
7360 | { "wxValidator_SetBellOnError", (PyCFunction) _wrap_wxValidator_SetBellOnError, METH_VARARGS | METH_KEYWORDS }, |
7361 | { "wxValidator_IsSilent", (PyCFunction) _wrap_wxValidator_IsSilent, METH_VARARGS | METH_KEYWORDS }, | |
70551f47 RD |
7362 | { NULL, NULL } |
7363 | }; | |
2d091820 RD |
7364 | #ifdef __cplusplus |
7365 | } | |
7366 | #endif | |
7367 | /* | |
7368 | * This table is used by the pointer type-checker | |
7369 | */ | |
7370 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
7371 | { "_wxAcceleratorTable","_class_wxAcceleratorTable",0}, | |
7372 | { "_signed_long","_long",0}, | |
7373 | { "_wxPrintQuality","_int",0}, | |
7374 | { "_wxPrintQuality","_signed_int",0}, | |
7375 | { "_wxPrintQuality","_unsigned_int",0}, | |
7376 | { "_wxPrintQuality","_wxWindowID",0}, | |
7377 | { "_wxPrintQuality","_uint",0}, | |
7378 | { "_wxPrintQuality","_EBool",0}, | |
7379 | { "_wxPrintQuality","_size_t",0}, | |
7380 | { "_class_wxRegionIterator","_wxRegionIterator",0}, | |
7381 | { "_class_wxMenuBar","_wxMenuBar",0}, | |
7382 | { "_class_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
7383 | { "_class_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
7384 | { "_class_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
7385 | { "_class_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
7386 | { "_class_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
7387 | { "_class_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
7388 | { "_class_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
7389 | { "_class_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
7390 | { "_class_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
7391 | { "_class_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
7392 | { "_class_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
7393 | { "_class_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
37f6a977 RD |
7394 | { "_class_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
7395 | { "_class_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
7396 | { "_class_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
7397 | { "_class_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
2d091820 RD |
7398 | { "_class_wxEvtHandler","_wxEvtHandler",0}, |
7399 | { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0}, | |
7400 | { "_wxCursor","_class_wxCursor",0}, | |
7401 | { "_wxMask","_class_wxMask",0}, | |
7402 | { "_wxPen","_class_wxPen",0}, | |
7403 | { "_byte","_unsigned_char",0}, | |
7404 | { "_long","_wxDash",0}, | |
7405 | { "_long","_unsigned_long",0}, | |
7406 | { "_long","_signed_long",0}, | |
7407 | { "_wxImageList","_class_wxImageList",0}, | |
7408 | { "_class_wxAcceleratorTable","_wxAcceleratorTable",0}, | |
7409 | { "_wxDC","_class_wxDC",0}, | |
7410 | { "_size_t","_wxPrintQuality",0}, | |
7411 | { "_size_t","_unsigned_int",0}, | |
7412 | { "_size_t","_int",0}, | |
7413 | { "_size_t","_wxWindowID",0}, | |
7414 | { "_size_t","_uint",0}, | |
7415 | { "_class_wxRealPoint","_wxRealPoint",0}, | |
7416 | { "_class_wxMenuItem","_wxMenuItem",0}, | |
7417 | { "_class_wxPostScriptDC","_wxPostScriptDC",0}, | |
7418 | { "_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
7419 | { "_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
7420 | { "_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
7421 | { "_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
7422 | { "_wxPanel","_class_wxPanel",0}, | |
7423 | { "_class_wxMask","_wxMask",0}, | |
7424 | { "_wxColour","_class_wxColour",0}, | |
7425 | { "_class_wxDialog","_wxDialog",0}, | |
7426 | { "_wxBrush","_class_wxBrush",0}, | |
7427 | { "_uint","_wxPrintQuality",0}, | |
7428 | { "_uint","_size_t",0}, | |
7429 | { "_uint","_unsigned_int",0}, | |
7430 | { "_uint","_int",0}, | |
7431 | { "_uint","_wxWindowID",0}, | |
37f6a977 | 7432 | { "_wxPyValidator","_class_wxPyValidator",0}, |
2d091820 RD |
7433 | { "_wxRect","_class_wxRect",0}, |
7434 | { "_wxPoint","_class_wxPoint",0}, | |
7435 | { "_wxBitmap","_class_wxBitmap",0}, | |
7436 | { "_wxPyTimer","_class_wxPyTimer",0}, | |
7437 | { "_wxWindowDC","_class_wxWindowDC",0}, | |
7438 | { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0}, | |
37f6a977 RD |
7439 | { "_class_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
7440 | { "_class_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
7441 | { "_class_wxValidator","_wxValidator",0}, | |
2d091820 RD |
7442 | { "_EBool","_wxPrintQuality",0}, |
7443 | { "_EBool","_signed_int",0}, | |
7444 | { "_EBool","_int",0}, | |
7445 | { "_EBool","_wxWindowID",0}, | |
7446 | { "_class_wxRegion","_wxRegion",0}, | |
7447 | { "_wxFont","_class_wxFont",0}, | |
7448 | { "_unsigned_long","_wxDash",0}, | |
7449 | { "_unsigned_long","_long",0}, | |
7450 | { "_class_wxRect","_wxRect",0}, | |
7451 | { "_class_wxDC","_wxDC",0}, | |
7452 | { "_class_wxPyTimer","_wxPyTimer",0}, | |
7453 | { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0}, | |
7454 | { "_class_wxPanel","_class_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
7455 | { "_class_wxPanel","_wxScrolledWindow",SwigwxScrolledWindowTowxPanel}, | |
7456 | { "_class_wxPanel","_class_wxDialog",SwigwxDialogTowxPanel}, | |
7457 | { "_class_wxPanel","_wxDialog",SwigwxDialogTowxPanel}, | |
7458 | { "_class_wxPanel","_wxPanel",0}, | |
7459 | { "_signed_int","_wxPrintQuality",0}, | |
7460 | { "_signed_int","_EBool",0}, | |
7461 | { "_signed_int","_wxWindowID",0}, | |
7462 | { "_signed_int","_int",0}, | |
7463 | { "_wxLayoutConstraints","_class_wxLayoutConstraints",0}, | |
7464 | { "_wxMenu","_class_wxMenu",0}, | |
7465 | { "_wxScreenDC","_class_wxScreenDC",0}, | |
7466 | { "_WXTYPE","_short",0}, | |
7467 | { "_WXTYPE","_signed_short",0}, | |
7468 | { "_WXTYPE","_unsigned_short",0}, | |
7469 | { "_class_wxBrush","_wxBrush",0}, | |
7470 | { "_unsigned_short","_WXTYPE",0}, | |
7471 | { "_unsigned_short","_short",0}, | |
7472 | { "_class_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
7473 | { "_class_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
7474 | { "_class_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
7475 | { "_class_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
7476 | { "_class_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
7477 | { "_class_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
7478 | { "_class_wxWindow","_wxWindow",0}, | |
7479 | { "_class_wxFont","_wxFont",0}, | |
37f6a977 | 7480 | { "_class_wxPyValidator","_wxPyValidator",0}, |
2d091820 RD |
7481 | { "_wxClientDC","_class_wxClientDC",0}, |
7482 | { "_class_wxPoint","_wxPoint",0}, | |
7483 | { "_wxRealPoint","_class_wxRealPoint",0}, | |
7484 | { "_signed_short","_WXTYPE",0}, | |
7485 | { "_signed_short","_short",0}, | |
7486 | { "_wxMemoryDC","_class_wxMemoryDC",0}, | |
7487 | { "_wxPaintDC","_class_wxPaintDC",0}, | |
7488 | { "_class_wxWindowDC","_wxWindowDC",0}, | |
7489 | { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0}, | |
7490 | { "_class_wxCursor","_wxCursor",0}, | |
7491 | { "_wxPostScriptDC","_class_wxPostScriptDC",0}, | |
7492 | { "_wxScrolledWindow","_class_wxScrolledWindow",0}, | |
7493 | { "_unsigned_char","_byte",0}, | |
7494 | { "_class_wxMenu","_wxMenu",0}, | |
7495 | { "_unsigned_int","_wxPrintQuality",0}, | |
7496 | { "_unsigned_int","_size_t",0}, | |
7497 | { "_unsigned_int","_uint",0}, | |
7498 | { "_unsigned_int","_wxWindowID",0}, | |
7499 | { "_unsigned_int","_int",0}, | |
7500 | { "_wxIcon","_class_wxIcon",0}, | |
7501 | { "_wxDialog","_class_wxDialog",0}, | |
7502 | { "_class_wxPen","_wxPen",0}, | |
7503 | { "_short","_WXTYPE",0}, | |
7504 | { "_short","_unsigned_short",0}, | |
7505 | { "_short","_signed_short",0}, | |
7506 | { "_class_wxImageList","_wxImageList",0}, | |
7507 | { "_wxWindowID","_wxPrintQuality",0}, | |
7508 | { "_wxWindowID","_size_t",0}, | |
7509 | { "_wxWindowID","_EBool",0}, | |
7510 | { "_wxWindowID","_uint",0}, | |
7511 | { "_wxWindowID","_int",0}, | |
7512 | { "_wxWindowID","_signed_int",0}, | |
7513 | { "_wxWindowID","_unsigned_int",0}, | |
7514 | { "_int","_wxPrintQuality",0}, | |
7515 | { "_int","_size_t",0}, | |
7516 | { "_int","_EBool",0}, | |
7517 | { "_int","_uint",0}, | |
7518 | { "_int","_wxWindowID",0}, | |
7519 | { "_int","_unsigned_int",0}, | |
7520 | { "_int","_signed_int",0}, | |
7521 | { "_wxSize","_class_wxSize",0}, | |
7522 | { "_wxRegionIterator","_class_wxRegionIterator",0}, | |
7523 | { "_class_wxPaintDC","_wxPaintDC",0}, | |
37f6a977 RD |
7524 | { "_wxValidator","_class_wxPyValidator",SwigwxPyValidatorTowxValidator}, |
7525 | { "_wxValidator","_wxPyValidator",SwigwxPyValidatorTowxValidator}, | |
7526 | { "_wxValidator","_class_wxValidator",0}, | |
2d091820 RD |
7527 | { "_class_wxLayoutConstraints","_wxLayoutConstraints",0}, |
7528 | { "_class_wxIcon","_wxIcon",0}, | |
7529 | { "_class_wxColour","_wxColour",0}, | |
7530 | { "_class_wxScreenDC","_wxScreenDC",0}, | |
7531 | { "_wxPalette","_class_wxPalette",0}, | |
7532 | { "_wxRegion","_class_wxRegion",0}, | |
7533 | { "_class_wxClientDC","_wxClientDC",0}, | |
7534 | { "_class_wxSize","_wxSize",0}, | |
7535 | { "_class_wxBitmap","_wxBitmap",0}, | |
7536 | { "_class_wxMemoryDC","_wxMemoryDC",0}, | |
7537 | { "_wxMenuBar","_class_wxMenuBar",0}, | |
7538 | { "_wxEvtHandler","_class_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
7539 | { "_wxEvtHandler","_wxMenuBar",SwigwxMenuBarTowxEvtHandler}, | |
7540 | { "_wxEvtHandler","_class_wxMenu",SwigwxMenuTowxEvtHandler}, | |
7541 | { "_wxEvtHandler","_wxMenu",SwigwxMenuTowxEvtHandler}, | |
7542 | { "_wxEvtHandler","_class_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
7543 | { "_wxEvtHandler","_wxScrolledWindow",SwigwxScrolledWindowTowxEvtHandler}, | |
7544 | { "_wxEvtHandler","_class_wxDialog",SwigwxDialogTowxEvtHandler}, | |
7545 | { "_wxEvtHandler","_wxDialog",SwigwxDialogTowxEvtHandler}, | |
7546 | { "_wxEvtHandler","_class_wxPanel",SwigwxPanelTowxEvtHandler}, | |
7547 | { "_wxEvtHandler","_wxPanel",SwigwxPanelTowxEvtHandler}, | |
7548 | { "_wxEvtHandler","_class_wxWindow",SwigwxWindowTowxEvtHandler}, | |
7549 | { "_wxEvtHandler","_wxWindow",SwigwxWindowTowxEvtHandler}, | |
37f6a977 RD |
7550 | { "_wxEvtHandler","_class_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, |
7551 | { "_wxEvtHandler","_wxPyValidator",SwigwxPyValidatorTowxEvtHandler}, | |
7552 | { "_wxEvtHandler","_class_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
7553 | { "_wxEvtHandler","_wxValidator",SwigwxValidatorTowxEvtHandler}, | |
2d091820 RD |
7554 | { "_wxEvtHandler","_class_wxEvtHandler",0}, |
7555 | { "_wxMenuItem","_class_wxMenuItem",0}, | |
7556 | { "_wxDash","_unsigned_long",0}, | |
7557 | { "_wxDash","_long",0}, | |
7558 | { "_class_wxScrolledWindow","_wxScrolledWindow",0}, | |
7559 | { "_class_wxPalette","_wxPalette",0}, | |
7560 | { "_wxWindow","_class_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
7561 | { "_wxWindow","_wxScrolledWindow",SwigwxScrolledWindowTowxWindow}, | |
7562 | { "_wxWindow","_class_wxDialog",SwigwxDialogTowxWindow}, | |
7563 | { "_wxWindow","_wxDialog",SwigwxDialogTowxWindow}, | |
7564 | { "_wxWindow","_class_wxPanel",SwigwxPanelTowxWindow}, | |
7565 | { "_wxWindow","_wxPanel",SwigwxPanelTowxWindow}, | |
7566 | { "_wxWindow","_class_wxWindow",0}, | |
7567 | {0,0,0}}; | |
7568 | ||
70551f47 RD |
7569 | static PyObject *SWIG_globals; |
7570 | #ifdef __cplusplus | |
7571 | extern "C" | |
7572 | #endif | |
2d091820 | 7573 | SWIGEXPORT(void) initwindowsc() { |
70551f47 RD |
7574 | PyObject *m, *d; |
7575 | SWIG_globals = SWIG_newvarlink(); | |
7576 | m = Py_InitModule("windowsc", windowscMethods); | |
7577 | d = PyModule_GetDict(m); | |
2d091820 RD |
7578 | { |
7579 | int i; | |
7580 | for (i = 0; _swig_mapping[i].n1; i++) | |
7581 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
7582 | } | |
70551f47 | 7583 | } |