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