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