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