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