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