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