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