]>
Commit | Line | Data |
---|---|---|
bb0054cd | 1 | /* |
c368d904 | 2 | * FILE : src/msw/misc2.cpp |
bb0054cd RD |
3 | * |
4 | * This file was automatically generated by : | |
5 | * Simplified Wrapper and Interface Generator (SWIG) | |
185d7c3e | 6 | * Version 1.1 (Build 883) |
bb0054cd RD |
7 | * |
8 | * Portions Copyright (c) 1995-1998 | |
9 | * The University of Utah and The Regents of the University of California. | |
10 | * Permission is granted to distribute this file in any manner provided | |
11 | * this notice remains intact. | |
12 | * | |
13 | * Do not make changes to this file--changes will be lost! | |
14 | * | |
15 | */ | |
16 | ||
17 | ||
18 | #define SWIGCODE | |
19 | /* Implementation : PYTHON */ | |
20 | ||
21 | #define SWIGPYTHON | |
22 | #include <string.h> | |
23 | #include <stdlib.h> | |
24 | /* Definitions for Windows/Unix exporting */ | |
25 | #if defined(__WIN32__) | |
26 | # if defined(_MSC_VER) | |
1d99702e | 27 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
28 | # else |
29 | # if defined(__BORLANDC__) | |
c368d904 | 30 | # define SWIGEXPORT(a) a _export |
bb0054cd | 31 | # else |
c368d904 | 32 | # define SWIGEXPORT(a) a |
bb0054cd RD |
33 | # endif |
34 | # endif | |
35 | #else | |
c368d904 | 36 | # define SWIGEXPORT(a) a |
bb0054cd RD |
37 | #endif |
38 | ||
c368d904 RD |
39 | #include "Python.h" |
40 | ||
bb0054cd RD |
41 | #ifdef __cplusplus |
42 | extern "C" { | |
43 | #endif | |
185d7c3e | 44 | |
bb0054cd RD |
45 | extern void SWIG_MakePtr(char *, void *, char *); |
46 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
47 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 48 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
49 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
50 | extern PyObject *SWIG_newvarlink(void); | |
51 | #ifdef __cplusplus | |
52 | } | |
53 | #endif | |
bb0054cd RD |
54 | #define SWIG_init initmisc2c |
55 | ||
56 | #define SWIG_name "misc2c" | |
57 | ||
58 | #include "helpers.h" | |
59 | #include <wx/resource.h> | |
60 | #include <wx/tooltip.h> | |
f0261a72 RD |
61 | #include <wx/caret.h> |
62 | #include <wx/fontenum.h> | |
f6bcfd97 | 63 | #include <wx/tipdlg.h> |
c368d904 | 64 | #include <wx/process.h> |
493f1553 RD |
65 | |
66 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
185d7c3e | 67 | #include <wx/joystick.h> |
e0672e2f | 68 | #endif |
bb0054cd | 69 | |
493f1553 RD |
70 | #if wxUSE_WAVE || defined(__WXMSW__) |
71 | #include <wx/wave.h> | |
72 | #endif | |
73 | ||
b37c7e1d RD |
74 | #include <wx/mimetype.h> |
75 | ||
bb0054cd RD |
76 | |
77 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
78 | PyObject* o2; | |
79 | PyObject* o3; | |
80 | ||
6e18ca6c | 81 | if (!target) { |
bb0054cd | 82 | target = o; |
6e18ca6c | 83 | } else if (target == Py_None) { |
bb0054cd RD |
84 | Py_DECREF(Py_None); |
85 | target = o; | |
6e18ca6c | 86 | } else { |
bb0054cd RD |
87 | if (!PyTuple_Check(target)) { |
88 | o2 = target; | |
89 | target = PyTuple_New(1); | |
90 | PyTuple_SetItem(target, 0, o2); | |
91 | } | |
6e18ca6c RD |
92 | o3 = PyTuple_New(1); |
93 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
94 | |
95 | o2 = target; | |
6e18ca6c RD |
96 | target = PySequence_Concat(o2, o3); |
97 | Py_DECREF(o2); | |
bb0054cd RD |
98 | Py_DECREF(o3); |
99 | } | |
100 | return target; | |
101 | } | |
102 | ||
794c5cb1 RD |
103 | #if PYTHON_API_VERSION >= 1009 |
104 | static char* wxStringErrorMsg = "String or Unicode type required"; | |
105 | #else | |
0122b7e3 | 106 | static char* wxStringErrorMsg = "String type required"; |
794c5cb1 | 107 | #endif |
bb0054cd | 108 | |
e508a2b6 RD |
109 | static wxString wxPyEmptyStr(""); |
110 | ||
06c0fba4 RD |
111 | int wxCaret_GetBlinkTime() { |
112 | return wxCaret::GetBlinkTime(); | |
113 | } | |
114 | ||
115 | void wxCaret_SetBlinkTime(int milliseconds) { | |
116 | wxCaret::SetBlinkTime(milliseconds); | |
117 | } | |
b1462dfa RD |
118 | |
119 | class wxPyFontEnumerator : public wxFontEnumerator { | |
120 | public: | |
121 | wxPyFontEnumerator() {} | |
122 | ~wxPyFontEnumerator() {} | |
123 | ||
124 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
125 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
126 | ||
127 | PYPRIVATE; | |
128 | }; | |
129 | ||
130 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
131 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
132 | ||
f6bcfd97 | 133 | |
6e18ca6c | 134 | bool wxThread_IsMain() { |
00ca6262 | 135 | #ifdef WXP_WITH_THREAD |
6e18ca6c | 136 | return wxThread::IsMain(); |
00ca6262 RD |
137 | #else |
138 | return TRUE; | |
139 | #endif | |
6e18ca6c RD |
140 | } |
141 | ||
f6bcfd97 BP |
142 | class wxPyTipProvider : public wxTipProvider { |
143 | public: | |
144 | wxPyTipProvider(size_t currentTip) | |
145 | : wxTipProvider(currentTip) {} | |
146 | ||
147 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
148 | ||
149 | PYPRIVATE; | |
150 | }; | |
151 | ||
152 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
153 | ||
154 | ||
155 | #include <wx/generic/dragimgg.h> | |
76bfdc78 RD |
156 | |
157 | // A Log class that can be derived from in wxPython | |
158 | class wxPyLog : public wxLog { | |
159 | public: | |
160 | wxPyLog() : wxLog() {} | |
161 | ||
162 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
163 | bool found; | |
4268f798 | 164 | wxPyBeginBlockThreads(); |
76bfdc78 RD |
165 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) |
166 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(isi)", level, szString, t)); | |
4268f798 | 167 | wxPyEndBlockThreads(); |
76bfdc78 RD |
168 | if (! found) |
169 | wxLog::DoLog(level, szString, t); | |
170 | } | |
171 | ||
172 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
173 | bool found; | |
4268f798 | 174 | wxPyBeginBlockThreads(); |
76bfdc78 RD |
175 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) |
176 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(si)", szString, t)); | |
4268f798 | 177 | wxPyEndBlockThreads(); |
76bfdc78 RD |
178 | if (! found) |
179 | wxLog::DoLogString(szString, t); | |
180 | } | |
181 | ||
182 | PYPRIVATE; | |
183 | }; | |
c368d904 RD |
184 | // C++ version of wxProcess derived class |
185 | ||
186 | class wxPyProcess : public wxProcess { | |
187 | public: | |
188 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
189 | : wxProcess(parent, id) | |
190 | {} | |
191 | ||
192 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
193 | ||
194 | PYPRIVATE; | |
195 | }; | |
196 | ||
197 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 198 | |
19a97bd6 | 199 | |
493f1553 RD |
200 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
201 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
202 | class wxJoystick : public wxObject { | |
203 | public: | |
204 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 205 | wxPyBeginBlockThreads(); |
493f1553 | 206 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 207 | wxPyEndBlockThreads(); |
493f1553 RD |
208 | } |
209 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
210 | int GetZPosition() { return -1; } | |
211 | int GetButtonState() { return -1; } | |
212 | int GetPOVPosition() { return -1; } | |
213 | int GetPOVCTSPosition() { return -1; } | |
214 | int GetRudderPosition() { return -1; } | |
215 | int GetUPosition() { return -1; } | |
216 | int GetVPosition() { return -1; } | |
217 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 218 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
219 | |
220 | bool IsOk(void) { return FALSE; } | |
221 | int GetNumberJoysticks() { return -1; } | |
222 | int GetManufacturerId() { return -1; } | |
223 | int GetProductId() { return -1; } | |
224 | wxString GetProductName() { return ""; } | |
225 | int GetXMin() { return -1; } | |
226 | int GetYMin() { return -1; } | |
227 | int GetZMin() { return -1; } | |
228 | int GetXMax() { return -1; } | |
229 | int GetYMax() { return -1; } | |
230 | int GetZMax() { return -1; } | |
231 | int GetNumberButtons() { return -1; } | |
232 | int GetNumberAxes() { return -1; } | |
233 | int GetMaxButtons() { return -1; } | |
234 | int GetMaxAxes() { return -1; } | |
235 | int GetPollingMin() { return -1; } | |
236 | int GetPollingMax() { return -1; } | |
237 | int GetRudderMin() { return -1; } | |
238 | int GetRudderMax() { return -1; } | |
239 | int GetUMin() { return -1; } | |
240 | int GetUMax() { return -1; } | |
241 | int GetVMin() { return -1; } | |
242 | int GetVMax() { return -1; } | |
243 | ||
244 | bool HasRudder() { return FALSE; } | |
245 | bool HasZ() { return FALSE; } | |
246 | bool HasU() { return FALSE; } | |
247 | bool HasV() { return FALSE; } | |
248 | bool HasPOV() { return FALSE; } | |
249 | bool HasPOV4Dir() { return FALSE; } | |
250 | bool HasPOVCTS() { return FALSE; } | |
251 | ||
252 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
253 | bool ReleaseCapture() { return FALSE; } | |
254 | }; | |
255 | #endif | |
256 | ||
0adbc166 | 257 | #if !wxUSE_WAVE |
493f1553 RD |
258 | // A C++ stub class for wxWave for platforms that don't have it. |
259 | class wxWave : public wxObject | |
260 | { | |
261 | public: | |
262 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 263 | wxPyBeginBlockThreads(); |
493f1553 | 264 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 265 | wxPyEndBlockThreads(); |
493f1553 RD |
266 | } |
267 | wxWave(int size, const wxByte* data) { | |
4268f798 | 268 | wxPyBeginBlockThreads(); |
493f1553 | 269 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 270 | wxPyEndBlockThreads(); |
493f1553 RD |
271 | } |
272 | ||
273 | ~wxWave() {} | |
274 | ||
275 | bool IsOk() const { return FALSE; } | |
276 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
277 | }; | |
278 | ||
279 | #endif | |
280 | // Implementations of some alternate "constructors" | |
281 | wxWave* wxWaveData(const wxString& data) { | |
282 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
283 | } | |
b37c7e1d RD |
284 | |
285 | #if 0 | |
286 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
287 | ||
288 | #endif | |
7dbce44a RD |
289 | |
290 | #include <wx/docview.h> | |
06c0fba4 RD |
291 | #ifdef __cplusplus |
292 | extern "C" { | |
293 | #endif | |
294 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
295 | PyObject * _resultobj; | |
296 | wxString * _result; | |
297 | char * _arg0; | |
298 | char * _arg1 = (char *) NULL; | |
299 | char * _arg2 = (char *) NULL; | |
300 | char * _arg3 = (char *) NULL; | |
301 | char * _arg4 = (char *) "*.*"; | |
302 | int _arg5 = (int ) 0; | |
303 | wxWindow * _arg6 = (wxWindow *) NULL; | |
304 | int _arg7 = (int ) -1; | |
305 | int _arg8 = (int ) -1; | |
306 | PyObject * _argo6 = 0; | |
307 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
308 | ||
309 | self = self; | |
310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) | |
311 | return NULL; | |
312 | if (_argo6) { | |
313 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
314 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
316 | return NULL; | |
317 | } | |
318 | } | |
319 | { | |
4268f798 | 320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
321 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); |
322 | ||
4268f798 RD |
323 | wxPyEndAllowThreads(__tstate); |
324 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 325 | }{ |
eec92d76 | 326 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
327 | } |
328 | { | |
329 | delete _result; | |
330 | } | |
331 | return _resultobj; | |
332 | } | |
333 | ||
334 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
335 | PyObject * _resultobj; | |
336 | wxString * _result; | |
337 | wxString * _arg0; | |
338 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
339 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
340 | wxWindow * _arg3 = (wxWindow *) NULL; | |
341 | int _arg4 = (int ) -1; | |
342 | int _arg5 = (int ) -1; | |
343 | bool _arg6 = (bool ) TRUE; | |
344 | PyObject * _obj0 = 0; | |
345 | PyObject * _obj1 = 0; | |
346 | PyObject * _obj2 = 0; | |
347 | PyObject * _argo3 = 0; | |
348 | int tempbool6 = (int) TRUE; | |
349 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
350 | ||
351 | self = self; | |
352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
353 | return NULL; | |
354 | { | |
185d7c3e RD |
355 | #if PYTHON_API_VERSION >= 1009 |
356 | char* tmpPtr; int tmpSize; | |
357 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 358 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
359 | return NULL; |
360 | } | |
361 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
362 | return NULL; | |
363 | _arg0 = new wxString(tmpPtr, tmpSize); | |
364 | #else | |
06c0fba4 RD |
365 | if (!PyString_Check(_obj0)) { |
366 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
367 | return NULL; | |
368 | } | |
185d7c3e RD |
369 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
370 | #endif | |
06c0fba4 RD |
371 | } |
372 | if (_obj1) | |
373 | { | |
185d7c3e RD |
374 | #if PYTHON_API_VERSION >= 1009 |
375 | char* tmpPtr; int tmpSize; | |
376 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 377 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
378 | return NULL; |
379 | } | |
380 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
381 | return NULL; | |
382 | _arg1 = new wxString(tmpPtr, tmpSize); | |
383 | #else | |
06c0fba4 RD |
384 | if (!PyString_Check(_obj1)) { |
385 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
386 | return NULL; | |
387 | } | |
185d7c3e RD |
388 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
389 | #endif | |
06c0fba4 RD |
390 | } |
391 | if (_obj2) | |
392 | { | |
185d7c3e RD |
393 | #if PYTHON_API_VERSION >= 1009 |
394 | char* tmpPtr; int tmpSize; | |
395 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 396 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
397 | return NULL; |
398 | } | |
399 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
400 | return NULL; | |
401 | _arg2 = new wxString(tmpPtr, tmpSize); | |
402 | #else | |
06c0fba4 RD |
403 | if (!PyString_Check(_obj2)) { |
404 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
405 | return NULL; | |
406 | } | |
185d7c3e RD |
407 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
408 | #endif | |
06c0fba4 RD |
409 | } |
410 | if (_argo3) { | |
411 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
412 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
414 | return NULL; | |
415 | } | |
416 | } | |
417 | _arg6 = (bool ) tempbool6; | |
418 | { | |
4268f798 | 419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
420 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
421 | ||
4268f798 RD |
422 | wxPyEndAllowThreads(__tstate); |
423 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 424 | }{ |
eec92d76 | 425 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
426 | } |
427 | { | |
428 | if (_obj0) | |
429 | delete _arg0; | |
430 | } | |
431 | { | |
432 | if (_obj1) | |
433 | delete _arg1; | |
434 | } | |
435 | { | |
436 | if (_obj2) | |
437 | delete _arg2; | |
438 | } | |
439 | { | |
440 | delete _result; | |
441 | } | |
442 | return _resultobj; | |
443 | } | |
444 | ||
1b62f00d RD |
445 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
446 | PyObject * _resultobj; | |
447 | wxString * _result; | |
448 | wxString * _arg0; | |
449 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
450 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
451 | wxWindow * _arg3 = (wxWindow *) NULL; | |
452 | PyObject * _obj0 = 0; | |
453 | PyObject * _obj1 = 0; | |
454 | PyObject * _obj2 = 0; | |
455 | PyObject * _argo3 = 0; | |
456 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
457 | ||
458 | self = self; | |
459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
460 | return NULL; | |
461 | { | |
462 | #if PYTHON_API_VERSION >= 1009 | |
463 | char* tmpPtr; int tmpSize; | |
464 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 465 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
466 | return NULL; |
467 | } | |
468 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
469 | return NULL; | |
470 | _arg0 = new wxString(tmpPtr, tmpSize); | |
471 | #else | |
472 | if (!PyString_Check(_obj0)) { | |
473 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
474 | return NULL; | |
475 | } | |
476 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
477 | #endif | |
478 | } | |
479 | if (_obj1) | |
480 | { | |
481 | #if PYTHON_API_VERSION >= 1009 | |
482 | char* tmpPtr; int tmpSize; | |
483 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 484 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
485 | return NULL; |
486 | } | |
487 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
488 | return NULL; | |
489 | _arg1 = new wxString(tmpPtr, tmpSize); | |
490 | #else | |
491 | if (!PyString_Check(_obj1)) { | |
492 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
493 | return NULL; | |
494 | } | |
495 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
496 | #endif | |
497 | } | |
498 | if (_obj2) | |
499 | { | |
500 | #if PYTHON_API_VERSION >= 1009 | |
501 | char* tmpPtr; int tmpSize; | |
502 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 503 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
1b62f00d RD |
504 | return NULL; |
505 | } | |
506 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
507 | return NULL; | |
508 | _arg2 = new wxString(tmpPtr, tmpSize); | |
509 | #else | |
510 | if (!PyString_Check(_obj2)) { | |
511 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
512 | return NULL; | |
513 | } | |
514 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
515 | #endif | |
516 | } | |
517 | if (_argo3) { | |
518 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
519 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
521 | return NULL; | |
522 | } | |
523 | } | |
524 | { | |
4268f798 | 525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1b62f00d RD |
526 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
527 | ||
4268f798 RD |
528 | wxPyEndAllowThreads(__tstate); |
529 | if (PyErr_Occurred()) return NULL; | |
1b62f00d RD |
530 | }{ |
531 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
532 | } | |
533 | { | |
534 | if (_obj0) | |
535 | delete _arg0; | |
536 | } | |
537 | { | |
538 | if (_obj1) | |
539 | delete _arg1; | |
540 | } | |
541 | { | |
542 | if (_obj2) | |
543 | delete _arg2; | |
544 | } | |
545 | { | |
546 | delete _result; | |
547 | } | |
548 | return _resultobj; | |
549 | } | |
550 | ||
06c0fba4 RD |
551 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
552 | PyObject * _resultobj; | |
553 | wxString * _result; | |
554 | wxString * _arg0; | |
555 | wxString * _arg1; | |
556 | int _arg2; | |
557 | wxString * _arg3; | |
558 | wxWindow * _arg4 = (wxWindow *) NULL; | |
559 | int _arg5 = (int ) -1; | |
560 | int _arg6 = (int ) -1; | |
561 | bool _arg7 = (bool ) TRUE; | |
562 | int _arg8 = (int ) 150; | |
563 | int _arg9 = (int ) 200; | |
564 | PyObject * _obj0 = 0; | |
565 | PyObject * _obj1 = 0; | |
566 | PyObject * _obj3 = 0; | |
567 | PyObject * _argo4 = 0; | |
568 | int tempbool7 = (int) TRUE; | |
eec92d76 | 569 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
570 | |
571 | self = self; | |
572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
573 | return NULL; | |
574 | { | |
185d7c3e RD |
575 | #if PYTHON_API_VERSION >= 1009 |
576 | char* tmpPtr; int tmpSize; | |
577 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 578 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
579 | return NULL; |
580 | } | |
581 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
582 | return NULL; | |
583 | _arg0 = new wxString(tmpPtr, tmpSize); | |
584 | #else | |
06c0fba4 RD |
585 | if (!PyString_Check(_obj0)) { |
586 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
587 | return NULL; | |
588 | } | |
185d7c3e RD |
589 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
590 | #endif | |
06c0fba4 RD |
591 | } |
592 | { | |
185d7c3e RD |
593 | #if PYTHON_API_VERSION >= 1009 |
594 | char* tmpPtr; int tmpSize; | |
595 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 596 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
597 | return NULL; |
598 | } | |
599 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
600 | return NULL; | |
601 | _arg1 = new wxString(tmpPtr, tmpSize); | |
602 | #else | |
06c0fba4 RD |
603 | if (!PyString_Check(_obj1)) { |
604 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
605 | return NULL; | |
606 | } | |
185d7c3e RD |
607 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
608 | #endif | |
06c0fba4 RD |
609 | } |
610 | if (_obj3) | |
611 | { | |
612 | _arg3 = wxString_LIST_helper(_obj3); | |
613 | if (_arg3 == NULL) { | |
614 | return NULL; | |
615 | } | |
616 | } | |
617 | if (_argo4) { | |
618 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
619 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
621 | return NULL; | |
622 | } | |
623 | } | |
624 | _arg7 = (bool ) tempbool7; | |
625 | { | |
626 | if (_obj3) { | |
627 | _arg2 = PyList_Size(_obj3); | |
628 | } | |
629 | else { | |
630 | _arg2 = 0; | |
631 | } | |
632 | } | |
633 | { | |
4268f798 | 634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
635 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
636 | ||
4268f798 RD |
637 | wxPyEndAllowThreads(__tstate); |
638 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 639 | }{ |
eec92d76 | 640 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
06c0fba4 RD |
641 | } |
642 | { | |
643 | if (_obj0) | |
644 | delete _arg0; | |
645 | } | |
646 | { | |
647 | if (_obj1) | |
648 | delete _arg1; | |
649 | } | |
650 | { | |
651 | delete [] _arg3; | |
652 | } | |
653 | { | |
654 | delete _result; | |
655 | } | |
656 | return _resultobj; | |
657 | } | |
658 | ||
659 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
660 | PyObject * _resultobj; | |
661 | int _result; | |
662 | wxString * _arg0; | |
663 | wxString * _arg1; | |
664 | int _arg2; | |
665 | wxString * _arg3; | |
666 | wxWindow * _arg4 = (wxWindow *) NULL; | |
667 | int _arg5 = (int ) -1; | |
668 | int _arg6 = (int ) -1; | |
669 | bool _arg7 = (bool ) TRUE; | |
670 | int _arg8 = (int ) 150; | |
671 | int _arg9 = (int ) 200; | |
672 | PyObject * _obj0 = 0; | |
673 | PyObject * _obj1 = 0; | |
674 | PyObject * _obj3 = 0; | |
675 | PyObject * _argo4 = 0; | |
676 | int tempbool7 = (int) TRUE; | |
eec92d76 | 677 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
678 | |
679 | self = self; | |
680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
681 | return NULL; | |
682 | { | |
185d7c3e RD |
683 | #if PYTHON_API_VERSION >= 1009 |
684 | char* tmpPtr; int tmpSize; | |
685 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 686 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
687 | return NULL; |
688 | } | |
689 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
690 | return NULL; | |
691 | _arg0 = new wxString(tmpPtr, tmpSize); | |
692 | #else | |
06c0fba4 RD |
693 | if (!PyString_Check(_obj0)) { |
694 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
695 | return NULL; | |
696 | } | |
185d7c3e RD |
697 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
698 | #endif | |
06c0fba4 RD |
699 | } |
700 | { | |
185d7c3e RD |
701 | #if PYTHON_API_VERSION >= 1009 |
702 | char* tmpPtr; int tmpSize; | |
703 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 704 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
705 | return NULL; |
706 | } | |
707 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
708 | return NULL; | |
709 | _arg1 = new wxString(tmpPtr, tmpSize); | |
710 | #else | |
06c0fba4 RD |
711 | if (!PyString_Check(_obj1)) { |
712 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
713 | return NULL; | |
714 | } | |
185d7c3e RD |
715 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
716 | #endif | |
06c0fba4 RD |
717 | } |
718 | if (_obj3) | |
719 | { | |
720 | _arg3 = wxString_LIST_helper(_obj3); | |
721 | if (_arg3 == NULL) { | |
722 | return NULL; | |
723 | } | |
724 | } | |
725 | if (_argo4) { | |
726 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
727 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
729 | return NULL; | |
730 | } | |
731 | } | |
732 | _arg7 = (bool ) tempbool7; | |
733 | { | |
734 | if (_obj3) { | |
735 | _arg2 = PyList_Size(_obj3); | |
736 | } | |
737 | else { | |
738 | _arg2 = 0; | |
739 | } | |
740 | } | |
741 | { | |
4268f798 | 742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
743 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
744 | ||
4268f798 RD |
745 | wxPyEndAllowThreads(__tstate); |
746 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
747 | } _resultobj = Py_BuildValue("i",_result); |
748 | { | |
749 | if (_obj0) | |
750 | delete _arg0; | |
751 | } | |
752 | { | |
753 | if (_obj1) | |
754 | delete _arg1; | |
755 | } | |
756 | { | |
757 | delete [] _arg3; | |
758 | } | |
759 | return _resultobj; | |
760 | } | |
761 | ||
762 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
763 | PyObject * _resultobj; | |
764 | int _result; | |
765 | wxString * _arg0; | |
766 | wxString * _arg1 = (wxString *) &wxPyEmptyStr; | |
767 | int _arg2 = (int ) wxOK|wxCENTRE; | |
768 | wxWindow * _arg3 = (wxWindow *) NULL; | |
769 | int _arg4 = (int ) -1; | |
770 | int _arg5 = (int ) -1; | |
771 | PyObject * _obj0 = 0; | |
772 | PyObject * _obj1 = 0; | |
773 | PyObject * _argo3 = 0; | |
774 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
775 | ||
776 | self = self; | |
777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
778 | return NULL; | |
779 | { | |
185d7c3e RD |
780 | #if PYTHON_API_VERSION >= 1009 |
781 | char* tmpPtr; int tmpSize; | |
782 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 783 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
784 | return NULL; |
785 | } | |
786 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
787 | return NULL; | |
788 | _arg0 = new wxString(tmpPtr, tmpSize); | |
789 | #else | |
06c0fba4 RD |
790 | if (!PyString_Check(_obj0)) { |
791 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
792 | return NULL; | |
793 | } | |
185d7c3e RD |
794 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
795 | #endif | |
06c0fba4 RD |
796 | } |
797 | if (_obj1) | |
798 | { | |
185d7c3e RD |
799 | #if PYTHON_API_VERSION >= 1009 |
800 | char* tmpPtr; int tmpSize; | |
801 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 802 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
803 | return NULL; |
804 | } | |
805 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
806 | return NULL; | |
807 | _arg1 = new wxString(tmpPtr, tmpSize); | |
808 | #else | |
06c0fba4 RD |
809 | if (!PyString_Check(_obj1)) { |
810 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
811 | return NULL; | |
812 | } | |
185d7c3e RD |
813 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
814 | #endif | |
06c0fba4 RD |
815 | } |
816 | if (_argo3) { | |
817 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
818 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
819 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
820 | return NULL; | |
821 | } | |
822 | } | |
823 | { | |
4268f798 | 824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
825 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
826 | ||
4268f798 RD |
827 | wxPyEndAllowThreads(__tstate); |
828 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
829 | } _resultobj = Py_BuildValue("i",_result); |
830 | { | |
831 | if (_obj0) | |
832 | delete _arg0; | |
833 | } | |
834 | { | |
835 | if (_obj1) | |
836 | delete _arg1; | |
837 | } | |
838 | return _resultobj; | |
839 | } | |
840 | ||
841 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
842 | PyObject * _resultobj; | |
843 | long _result; | |
844 | wxString * _arg0; | |
845 | wxString * _arg1; | |
846 | wxString * _arg2; | |
847 | long _arg3; | |
848 | long _arg4 = (long ) 0; | |
849 | long _arg5 = (long ) 100; | |
850 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 851 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
852 | PyObject * _obj0 = 0; |
853 | PyObject * _obj1 = 0; | |
854 | PyObject * _obj2 = 0; | |
855 | PyObject * _argo6 = 0; | |
856 | wxPoint temp; | |
857 | PyObject * _obj7 = 0; | |
858 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
859 | ||
860 | self = self; | |
861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
862 | return NULL; | |
863 | { | |
185d7c3e RD |
864 | #if PYTHON_API_VERSION >= 1009 |
865 | char* tmpPtr; int tmpSize; | |
866 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
868 | return NULL; |
869 | } | |
870 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
871 | return NULL; | |
872 | _arg0 = new wxString(tmpPtr, tmpSize); | |
873 | #else | |
06c0fba4 RD |
874 | if (!PyString_Check(_obj0)) { |
875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
876 | return NULL; | |
877 | } | |
185d7c3e RD |
878 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
879 | #endif | |
06c0fba4 RD |
880 | } |
881 | { | |
185d7c3e RD |
882 | #if PYTHON_API_VERSION >= 1009 |
883 | char* tmpPtr; int tmpSize; | |
884 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 885 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
886 | return NULL; |
887 | } | |
888 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
889 | return NULL; | |
890 | _arg1 = new wxString(tmpPtr, tmpSize); | |
891 | #else | |
06c0fba4 RD |
892 | if (!PyString_Check(_obj1)) { |
893 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
894 | return NULL; | |
895 | } | |
185d7c3e RD |
896 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
897 | #endif | |
06c0fba4 RD |
898 | } |
899 | { | |
185d7c3e RD |
900 | #if PYTHON_API_VERSION >= 1009 |
901 | char* tmpPtr; int tmpSize; | |
902 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
794c5cb1 | 903 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
904 | return NULL; |
905 | } | |
906 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
907 | return NULL; | |
908 | _arg2 = new wxString(tmpPtr, tmpSize); | |
909 | #else | |
06c0fba4 RD |
910 | if (!PyString_Check(_obj2)) { |
911 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
912 | return NULL; | |
913 | } | |
185d7c3e RD |
914 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); |
915 | #endif | |
06c0fba4 RD |
916 | } |
917 | if (_argo6) { | |
918 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
919 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
921 | return NULL; | |
922 | } | |
923 | } | |
924 | if (_obj7) | |
925 | { | |
926 | _arg7 = &temp; | |
927 | if (! wxPoint_helper(_obj7, &_arg7)) | |
928 | return NULL; | |
929 | } | |
930 | { | |
4268f798 | 931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
932 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
933 | ||
4268f798 RD |
934 | wxPyEndAllowThreads(__tstate); |
935 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
936 | } _resultobj = Py_BuildValue("l",_result); |
937 | { | |
938 | if (_obj0) | |
939 | delete _arg0; | |
940 | } | |
941 | { | |
942 | if (_obj1) | |
943 | delete _arg1; | |
944 | } | |
945 | { | |
946 | if (_obj2) | |
947 | delete _arg2; | |
948 | } | |
949 | return _resultobj; | |
950 | } | |
951 | ||
952 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
953 | PyObject * _resultobj; | |
954 | bool _result; | |
955 | char *_kwnames[] = { NULL }; | |
956 | ||
957 | self = self; | |
958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
959 | return NULL; | |
960 | { | |
4268f798 | 961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
962 | _result = (bool )wxColourDisplay(); |
963 | ||
4268f798 RD |
964 | wxPyEndAllowThreads(__tstate); |
965 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
966 | } _resultobj = Py_BuildValue("i",_result); |
967 | return _resultobj; | |
968 | } | |
969 | ||
970 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
971 | PyObject * _resultobj; | |
972 | int _result; | |
973 | char *_kwnames[] = { NULL }; | |
974 | ||
975 | self = self; | |
976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
977 | return NULL; | |
978 | { | |
4268f798 | 979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
980 | _result = (int )wxDisplayDepth(); |
981 | ||
4268f798 RD |
982 | wxPyEndAllowThreads(__tstate); |
983 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
984 | } _resultobj = Py_BuildValue("i",_result); |
985 | return _resultobj; | |
986 | } | |
f0261a72 | 987 | |
1e7ecb7b RD |
988 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
989 | PyObject * _resultobj; | |
990 | int _result; | |
991 | char *_kwnames[] = { NULL }; | |
992 | ||
993 | self = self; | |
994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
995 | return NULL; | |
996 | { | |
4268f798 | 997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1e7ecb7b RD |
998 | _result = (int )wxGetDisplayDepth(); |
999 | ||
4268f798 RD |
1000 | wxPyEndAllowThreads(__tstate); |
1001 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1002 | } _resultobj = Py_BuildValue("i",_result); |
1003 | return _resultobj; | |
1004 | } | |
1005 | ||
1006 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1007 | PyObject * _resultobj; | |
1008 | int * _arg0; | |
1009 | int temp; | |
1010 | int * _arg1; | |
1011 | int temp0; | |
1012 | char *_kwnames[] = { NULL }; | |
1013 | ||
1014 | self = self; | |
1015 | { | |
1016 | _arg0 = &temp; | |
1017 | } | |
1018 | { | |
1019 | _arg1 = &temp0; | |
1020 | } | |
1021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1022 | return NULL; | |
1023 | { | |
4268f798 | 1024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1e7ecb7b RD |
1025 | wxDisplaySize(_arg0,_arg1); |
1026 | ||
4268f798 RD |
1027 | wxPyEndAllowThreads(__tstate); |
1028 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1029 | } Py_INCREF(Py_None); |
1030 | _resultobj = Py_None; | |
1031 | { | |
1032 | PyObject *o; | |
1033 | o = PyInt_FromLong((long) (*_arg0)); | |
1034 | _resultobj = t_output_helper(_resultobj, o); | |
1035 | } | |
1036 | { | |
1037 | PyObject *o; | |
1038 | o = PyInt_FromLong((long) (*_arg1)); | |
1039 | _resultobj = t_output_helper(_resultobj, o); | |
1040 | } | |
1041 | return _resultobj; | |
1042 | } | |
1043 | ||
1044 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1045 | PyObject * _resultobj; | |
1046 | wxSize * _result; | |
1047 | char *_kwnames[] = { NULL }; | |
1048 | char _ptemp[128]; | |
1049 | ||
1050 | self = self; | |
1051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1052 | return NULL; | |
1053 | { | |
4268f798 | 1054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1e7ecb7b RD |
1055 | _result = new wxSize (wxGetDisplaySize()); |
1056 | ||
4268f798 RD |
1057 | wxPyEndAllowThreads(__tstate); |
1058 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1059 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1060 | _resultobj = Py_BuildValue("s",_ptemp); | |
1061 | return _resultobj; | |
1062 | } | |
1063 | ||
1064 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1065 | PyObject * _resultobj; | |
1066 | int * _arg0; | |
1067 | int temp; | |
1068 | int * _arg1; | |
1069 | int temp0; | |
1070 | char *_kwnames[] = { NULL }; | |
1071 | ||
1072 | self = self; | |
1073 | { | |
1074 | _arg0 = &temp; | |
1075 | } | |
1076 | { | |
1077 | _arg1 = &temp0; | |
1078 | } | |
1079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1080 | return NULL; | |
1081 | { | |
4268f798 | 1082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1e7ecb7b RD |
1083 | wxDisplaySizeMM(_arg0,_arg1); |
1084 | ||
4268f798 RD |
1085 | wxPyEndAllowThreads(__tstate); |
1086 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1087 | } Py_INCREF(Py_None); |
1088 | _resultobj = Py_None; | |
1089 | { | |
1090 | PyObject *o; | |
1091 | o = PyInt_FromLong((long) (*_arg0)); | |
1092 | _resultobj = t_output_helper(_resultobj, o); | |
1093 | } | |
1094 | { | |
1095 | PyObject *o; | |
1096 | o = PyInt_FromLong((long) (*_arg1)); | |
1097 | _resultobj = t_output_helper(_resultobj, o); | |
1098 | } | |
1099 | return _resultobj; | |
1100 | } | |
1101 | ||
1102 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1103 | PyObject * _resultobj; | |
1104 | wxSize * _result; | |
1105 | char *_kwnames[] = { NULL }; | |
1106 | char _ptemp[128]; | |
1107 | ||
1108 | self = self; | |
1109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1110 | return NULL; | |
1111 | { | |
4268f798 | 1112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1e7ecb7b RD |
1113 | _result = new wxSize (wxGetDisplaySizeMM()); |
1114 | ||
4268f798 RD |
1115 | wxPyEndAllowThreads(__tstate); |
1116 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1117 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1118 | _resultobj = Py_BuildValue("s",_ptemp); | |
1119 | return _resultobj; | |
1120 | } | |
1121 | ||
91c41b30 RD |
1122 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1123 | PyObject * _resultobj; | |
1124 | int * _arg0; | |
1125 | int temp; | |
1126 | int * _arg1; | |
1127 | int temp0; | |
1128 | int * _arg2; | |
1129 | int temp1; | |
1130 | int * _arg3; | |
1131 | int temp2; | |
1132 | char *_kwnames[] = { NULL }; | |
1133 | ||
1134 | self = self; | |
1135 | { | |
1136 | _arg0 = &temp; | |
1137 | } | |
1138 | { | |
1139 | _arg1 = &temp0; | |
1140 | } | |
1141 | { | |
1142 | _arg2 = &temp1; | |
1143 | } | |
1144 | { | |
1145 | _arg3 = &temp2; | |
1146 | } | |
1147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1148 | return NULL; | |
1149 | { | |
4268f798 | 1150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
91c41b30 RD |
1151 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
1152 | ||
4268f798 RD |
1153 | wxPyEndAllowThreads(__tstate); |
1154 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1155 | } Py_INCREF(Py_None); |
1156 | _resultobj = Py_None; | |
1157 | { | |
1158 | PyObject *o; | |
1159 | o = PyInt_FromLong((long) (*_arg0)); | |
1160 | _resultobj = t_output_helper(_resultobj, o); | |
1161 | } | |
1162 | { | |
1163 | PyObject *o; | |
1164 | o = PyInt_FromLong((long) (*_arg1)); | |
1165 | _resultobj = t_output_helper(_resultobj, o); | |
1166 | } | |
1167 | { | |
1168 | PyObject *o; | |
1169 | o = PyInt_FromLong((long) (*_arg2)); | |
1170 | _resultobj = t_output_helper(_resultobj, o); | |
1171 | } | |
1172 | { | |
1173 | PyObject *o; | |
1174 | o = PyInt_FromLong((long) (*_arg3)); | |
1175 | _resultobj = t_output_helper(_resultobj, o); | |
1176 | } | |
1177 | return _resultobj; | |
1178 | } | |
1179 | ||
1180 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1181 | PyObject * _resultobj; | |
1182 | wxRect * _result; | |
1183 | char *_kwnames[] = { NULL }; | |
1184 | char _ptemp[128]; | |
1185 | ||
1186 | self = self; | |
1187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1188 | return NULL; | |
1189 | { | |
4268f798 | 1190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
91c41b30 RD |
1191 | _result = new wxRect (wxGetClientDisplayRect()); |
1192 | ||
4268f798 RD |
1193 | wxPyEndAllowThreads(__tstate); |
1194 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1195 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1196 | _resultobj = Py_BuildValue("s",_ptemp); | |
1197 | return _resultobj; | |
1198 | } | |
1199 | ||
06c0fba4 RD |
1200 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1201 | PyObject * _resultobj; | |
1202 | wxCursor * _arg0; | |
1203 | PyObject * _argo0 = 0; | |
1204 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1205 | |
06c0fba4 RD |
1206 | self = self; |
1207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1208 | return NULL; | |
1209 | if (_argo0) { | |
1210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1213 | return NULL; | |
1214 | } | |
f0261a72 | 1215 | } |
06c0fba4 | 1216 | { |
4268f798 | 1217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1218 | wxSetCursor(*_arg0); |
1219 | ||
4268f798 RD |
1220 | wxPyEndAllowThreads(__tstate); |
1221 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1222 | } Py_INCREF(Py_None); |
1223 | _resultobj = Py_None; | |
1224 | return _resultobj; | |
1225 | } | |
1226 | ||
efc5f224 | 1227 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1228 | PyObject * _resultobj; |
1229 | wxWindow * _result; | |
1230 | wxString * _arg0; | |
1d99702e | 1231 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1232 | PyObject * _obj0 = 0; |
1d99702e | 1233 | PyObject * _argo1 = 0; |
efc5f224 | 1234 | char *_kwnames[] = { "label","parent", NULL }; |
bb0054cd RD |
1235 | |
1236 | self = self; | |
efc5f224 | 1237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1238 | return NULL; |
1239 | { | |
185d7c3e RD |
1240 | #if PYTHON_API_VERSION >= 1009 |
1241 | char* tmpPtr; int tmpSize; | |
1242 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1243 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1244 | return NULL; |
1245 | } | |
1246 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1247 | return NULL; | |
1248 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1249 | #else | |
bb0054cd RD |
1250 | if (!PyString_Check(_obj0)) { |
1251 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1252 | return NULL; | |
1253 | } | |
185d7c3e RD |
1254 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1255 | #endif | |
bb0054cd | 1256 | } |
1d99702e RD |
1257 | if (_argo1) { |
1258 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1259 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
1261 | return NULL; | |
1262 | } | |
1263 | } | |
1264 | { | |
4268f798 | 1265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
1266 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); |
1267 | ||
4268f798 RD |
1268 | wxPyEndAllowThreads(__tstate); |
1269 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1270 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1271 | { |
1272 | if (_obj0) | |
1273 | delete _arg0; | |
1274 | } | |
1275 | return _resultobj; | |
1276 | } | |
1277 | ||
efc5f224 | 1278 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1279 | PyObject * _resultobj; |
1280 | wxWindow * _result; | |
1281 | wxString * _arg0; | |
1d99702e | 1282 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1283 | PyObject * _obj0 = 0; |
1d99702e | 1284 | PyObject * _argo1 = 0; |
efc5f224 | 1285 | char *_kwnames[] = { "name","parent", NULL }; |
bb0054cd RD |
1286 | |
1287 | self = self; | |
efc5f224 | 1288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1289 | return NULL; |
1290 | { | |
185d7c3e RD |
1291 | #if PYTHON_API_VERSION >= 1009 |
1292 | char* tmpPtr; int tmpSize; | |
1293 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1294 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1295 | return NULL; |
1296 | } | |
1297 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1298 | return NULL; | |
1299 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1300 | #else | |
bb0054cd RD |
1301 | if (!PyString_Check(_obj0)) { |
1302 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1303 | return NULL; | |
1304 | } | |
185d7c3e RD |
1305 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1306 | #endif | |
bb0054cd | 1307 | } |
1d99702e RD |
1308 | if (_argo1) { |
1309 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1310 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1311 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
1312 | return NULL; | |
1313 | } | |
1314 | } | |
1315 | { | |
4268f798 | 1316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
bb0054cd RD |
1317 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); |
1318 | ||
4268f798 RD |
1319 | wxPyEndAllowThreads(__tstate); |
1320 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1321 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1322 | { |
1323 | if (_obj0) | |
1324 | delete _arg0; | |
1325 | } | |
1326 | return _resultobj; | |
1327 | } | |
1328 | ||
06c0fba4 RD |
1329 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1330 | PyObject * _resultobj; | |
1331 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1332 | PyObject * _argo0 = 0; | |
1333 | char *_kwnames[] = { "cursor", NULL }; | |
1334 | ||
1335 | self = self; | |
1336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1337 | return NULL; | |
1338 | if (_argo0) { | |
1339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1342 | return NULL; | |
1343 | } | |
1344 | } | |
1345 | { | |
4268f798 | 1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1347 | wxBeginBusyCursor(_arg0); |
1348 | ||
4268f798 RD |
1349 | wxPyEndAllowThreads(__tstate); |
1350 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1351 | } Py_INCREF(Py_None); |
1352 | _resultobj = Py_None; | |
1353 | return _resultobj; | |
1354 | } | |
1355 | ||
1356 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1357 | PyObject * _resultobj; | |
1358 | wxWindow * _result; | |
1359 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1360 | |
1361 | self = self; | |
1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1363 | return NULL; | |
1364 | { | |
4268f798 | 1365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1366 | _result = (wxWindow *)wxGetActiveWindow(); |
1367 | ||
4268f798 RD |
1368 | wxPyEndAllowThreads(__tstate); |
1369 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1370 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1371 | return _resultobj; |
1372 | } | |
1373 | ||
493f1553 RD |
1374 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1375 | PyObject * _resultobj; | |
1376 | wxWindow * _result; | |
1377 | wxPoint * _arg0; | |
1378 | wxPoint temp; | |
1379 | PyObject * _obj0 = 0; | |
1380 | char *_kwnames[] = { "pt", NULL }; | |
1381 | ||
1382 | self = self; | |
1383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1384 | return NULL; | |
1385 | { | |
1386 | _arg0 = &temp; | |
1387 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1388 | return NULL; | |
1389 | } | |
1390 | { | |
4268f798 | 1391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
1392 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
1393 | ||
4268f798 RD |
1394 | wxPyEndAllowThreads(__tstate); |
1395 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1396 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1397 | return _resultobj; | |
1398 | } | |
1399 | ||
1400 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1401 | PyObject * _resultobj; | |
1402 | wxWindow * _result; | |
1403 | wxPoint * _arg0; | |
1404 | wxPoint temp; | |
1405 | PyObject * _obj0 = 0; | |
1406 | char *_kwnames[] = { "pt", NULL }; | |
1407 | ||
1408 | self = self; | |
1409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1410 | return NULL; | |
1411 | { | |
1412 | _arg0 = &temp; | |
1413 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1414 | return NULL; | |
1415 | } | |
1416 | { | |
4268f798 | 1417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
1418 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
1419 | ||
4268f798 RD |
1420 | wxPyEndAllowThreads(__tstate); |
1421 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1422 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1423 | return _resultobj; | |
1424 | } | |
1425 | ||
1426 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1427 | PyObject * _resultobj; | |
1428 | bool _result; | |
1429 | wxWindow * _arg0; | |
1430 | PyObject * _argo0 = 0; | |
1431 | char *_kwnames[] = { "wnd", NULL }; | |
1432 | ||
1433 | self = self; | |
1434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1435 | return NULL; | |
1436 | if (_argo0) { | |
1437 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1438 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1439 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1440 | return NULL; | |
1441 | } | |
1442 | } | |
1443 | { | |
4268f798 | 1444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
1445 | _result = (bool )wxCheckForInterrupt(_arg0); |
1446 | ||
4268f798 RD |
1447 | wxPyEndAllowThreads(__tstate); |
1448 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1449 | } _resultobj = Py_BuildValue("i",_result); |
1450 | return _resultobj; | |
1451 | } | |
1452 | ||
25832b3f RD |
1453 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1454 | PyObject * _resultobj; | |
1455 | char *_kwnames[] = { NULL }; | |
1456 | ||
1457 | self = self; | |
1458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1459 | return NULL; | |
1460 | { | |
4268f798 | 1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25832b3f RD |
1462 | wxFlushEvents(); |
1463 | ||
4268f798 RD |
1464 | wxPyEndAllowThreads(__tstate); |
1465 | if (PyErr_Occurred()) return NULL; | |
25832b3f RD |
1466 | } Py_INCREF(Py_None); |
1467 | _resultobj = Py_None; | |
1468 | return _resultobj; | |
1469 | } | |
1470 | ||
06c0fba4 RD |
1471 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1472 | PyObject * _resultobj; | |
1473 | bool _result; | |
1474 | char * _arg0; | |
1475 | int _arg1; | |
1476 | char *_kwnames[] = { "name","value", NULL }; | |
1477 | ||
1478 | self = self; | |
1479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1480 | return NULL; | |
1481 | { | |
4268f798 | 1482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1483 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
1484 | ||
4268f798 RD |
1485 | wxPyEndAllowThreads(__tstate); |
1486 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1487 | } _resultobj = Py_BuildValue("i",_result); |
1488 | return _resultobj; | |
1489 | } | |
1490 | ||
1491 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1492 | PyObject * _resultobj; | |
1493 | char *_kwnames[] = { NULL }; | |
1494 | ||
1495 | self = self; | |
1496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1497 | return NULL; | |
1498 | { | |
4268f798 | 1499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1500 | wxResourceClear(); |
1501 | ||
4268f798 RD |
1502 | wxPyEndAllowThreads(__tstate); |
1503 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1504 | } Py_INCREF(Py_None); |
1505 | _resultobj = Py_None; | |
1506 | return _resultobj; | |
1507 | } | |
1508 | ||
1509 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1510 | PyObject * _resultobj; | |
1511 | wxBitmap * _result; | |
1512 | char * _arg0; | |
1513 | char *_kwnames[] = { "resource", NULL }; | |
1514 | char _ptemp[128]; | |
1515 | ||
1516 | self = self; | |
1517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1518 | return NULL; | |
1519 | { | |
4268f798 | 1520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1521 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
1522 | ||
4268f798 RD |
1523 | wxPyEndAllowThreads(__tstate); |
1524 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1525 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1526 | _resultobj = Py_BuildValue("s",_ptemp); | |
1527 | return _resultobj; | |
1528 | } | |
1529 | ||
1530 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1531 | PyObject * _resultobj; | |
1532 | wxIcon * _result; | |
1533 | char * _arg0; | |
1534 | char *_kwnames[] = { "resource", NULL }; | |
1535 | char _ptemp[128]; | |
1536 | ||
1537 | self = self; | |
1538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1539 | return NULL; | |
1540 | { | |
4268f798 | 1541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1542 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
1543 | ||
4268f798 RD |
1544 | wxPyEndAllowThreads(__tstate); |
1545 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1546 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1547 | _resultobj = Py_BuildValue("s",_ptemp); | |
1548 | return _resultobj; | |
1549 | } | |
1550 | ||
1551 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1552 | PyObject * _resultobj; | |
1553 | wxMenuBar * _result; | |
1554 | char * _arg0; | |
1555 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1556 | |
1557 | self = self; | |
1558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1559 | return NULL; | |
1560 | { | |
4268f798 | 1561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1562 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
1563 | ||
4268f798 RD |
1564 | wxPyEndAllowThreads(__tstate); |
1565 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1566 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1567 | return _resultobj; |
1568 | } | |
1569 | ||
1570 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1571 | PyObject * _resultobj; | |
1572 | int _result; | |
1573 | char * _arg0; | |
1574 | char *_kwnames[] = { "name", NULL }; | |
1575 | ||
1576 | self = self; | |
1577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1578 | return NULL; | |
1579 | { | |
4268f798 | 1580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1581 | _result = (int )wxResourceGetIdentifier(_arg0); |
1582 | ||
4268f798 RD |
1583 | wxPyEndAllowThreads(__tstate); |
1584 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1585 | } _resultobj = Py_BuildValue("i",_result); |
1586 | return _resultobj; | |
1587 | } | |
1588 | ||
1589 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1590 | PyObject * _resultobj; | |
1591 | bool _result; | |
1592 | char * _arg0; | |
1593 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1594 | PyObject * _argo1 = 0; | |
1595 | char *_kwnames[] = { "resource","table", NULL }; | |
1596 | ||
1597 | self = self; | |
1598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1599 | return NULL; | |
1600 | if (_argo1) { | |
1601 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1602 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1604 | return NULL; | |
1605 | } | |
1606 | } | |
1607 | { | |
4268f798 | 1608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1609 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
1610 | ||
4268f798 RD |
1611 | wxPyEndAllowThreads(__tstate); |
1612 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1613 | } _resultobj = Py_BuildValue("i",_result); |
1614 | return _resultobj; | |
1615 | } | |
1616 | ||
1617 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1618 | PyObject * _resultobj; | |
1619 | bool _result; | |
1620 | char * _arg0; | |
1621 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1622 | PyObject * _argo1 = 0; | |
1623 | char *_kwnames[] = { "filename","table", NULL }; | |
1624 | ||
1625 | self = self; | |
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1627 | return NULL; | |
1628 | if (_argo1) { | |
1629 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1630 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1631 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1632 | return NULL; | |
1633 | } | |
1634 | } | |
1635 | { | |
4268f798 | 1636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1637 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
1638 | ||
4268f798 RD |
1639 | wxPyEndAllowThreads(__tstate); |
1640 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1641 | } _resultobj = Py_BuildValue("i",_result); |
1642 | return _resultobj; | |
1643 | } | |
1644 | ||
1645 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1646 | PyObject * _resultobj; | |
1647 | bool _result; | |
1648 | char * _arg0; | |
1649 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1650 | PyObject * _argo1 = 0; | |
1651 | char *_kwnames[] = { "resource","table", NULL }; | |
1652 | ||
1653 | self = self; | |
1654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1655 | return NULL; | |
1656 | if (_argo1) { | |
1657 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1658 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1660 | return NULL; | |
1661 | } | |
1662 | } | |
1663 | { | |
4268f798 | 1664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
06c0fba4 RD |
1665 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
1666 | ||
4268f798 RD |
1667 | wxPyEndAllowThreads(__tstate); |
1668 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1669 | } _resultobj = Py_BuildValue("i",_result); |
1670 | return _resultobj; | |
1671 | } | |
1672 | ||
f0261a72 RD |
1673 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1674 | PyObject * _resultobj; | |
1675 | int _result; | |
1676 | char *_kwnames[] = { NULL }; | |
1677 | ||
1678 | self = self; | |
1679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1680 | return NULL; | |
1681 | { | |
4268f798 | 1682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
1683 | _result = (int )wxCaret_GetBlinkTime(); |
1684 | ||
4268f798 RD |
1685 | wxPyEndAllowThreads(__tstate); |
1686 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1687 | } _resultobj = Py_BuildValue("i",_result); |
1688 | return _resultobj; | |
1689 | } | |
1690 | ||
1691 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1692 | PyObject * _resultobj; | |
1693 | int _arg0; | |
1694 | char *_kwnames[] = { "milliseconds", NULL }; | |
1695 | ||
1696 | self = self; | |
1697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1698 | return NULL; | |
1699 | { | |
4268f798 | 1700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f0261a72 RD |
1701 | wxCaret_SetBlinkTime(_arg0); |
1702 | ||
4268f798 RD |
1703 | wxPyEndAllowThreads(__tstate); |
1704 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1705 | } Py_INCREF(Py_None); |
1706 | _resultobj = Py_None; | |
1707 | return _resultobj; | |
1708 | } | |
1709 | ||
6e18ca6c RD |
1710 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1711 | PyObject * _resultobj; | |
1712 | bool _result; | |
1713 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1714 | PyObject * _argo0 = 0; | |
1715 | char *_kwnames[] = { "win", NULL }; | |
1716 | ||
1717 | self = self; | |
1718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1719 | return NULL; | |
1720 | if (_argo0) { | |
1721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1724 | return NULL; | |
1725 | } | |
1726 | } | |
1727 | { | |
4268f798 | 1728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e18ca6c RD |
1729 | _result = (bool )wxSafeYield(_arg0); |
1730 | ||
4268f798 RD |
1731 | wxPyEndAllowThreads(__tstate); |
1732 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1733 | } _resultobj = Py_BuildValue("i",_result); |
1734 | return _resultobj; | |
1735 | } | |
1736 | ||
b1462dfa RD |
1737 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1738 | PyObject * _resultobj; | |
1739 | wxEvtHandler * _arg0; | |
1740 | wxEvent * _arg1; | |
1741 | PyObject * _argo0 = 0; | |
1742 | PyObject * _argo1 = 0; | |
1743 | char *_kwnames[] = { "dest","event", NULL }; | |
1744 | ||
1745 | self = self; | |
1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1747 | return NULL; | |
1748 | if (_argo0) { | |
1749 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1750 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1751 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1752 | return NULL; | |
1753 | } | |
1754 | } | |
1755 | if (_argo1) { | |
1756 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1757 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1759 | return NULL; | |
1760 | } | |
1761 | } | |
1762 | { | |
4268f798 | 1763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b1462dfa RD |
1764 | wxPostEvent(_arg0,*_arg1); |
1765 | ||
4268f798 RD |
1766 | wxPyEndAllowThreads(__tstate); |
1767 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1768 | } Py_INCREF(Py_None); |
1769 | _resultobj = Py_None; | |
1770 | return _resultobj; | |
1771 | } | |
1772 | ||
694759cf RD |
1773 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1774 | PyObject * _resultobj; | |
1775 | char *_kwnames[] = { NULL }; | |
1776 | ||
1777 | self = self; | |
1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1779 | return NULL; | |
1780 | { | |
4268f798 | 1781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
694759cf RD |
1782 | wxWakeUpIdle(); |
1783 | ||
4268f798 RD |
1784 | wxPyEndAllowThreads(__tstate); |
1785 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1786 | } Py_INCREF(Py_None); |
1787 | _resultobj = Py_None; | |
1788 | return _resultobj; | |
1789 | } | |
1790 | ||
6e18ca6c | 1791 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1792 | PyObject * _resultobj; |
6e18ca6c | 1793 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1794 | |
1795 | self = self; | |
6e18ca6c | 1796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1797 | return NULL; |
6e18ca6c | 1798 | { |
4268f798 | 1799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e18ca6c RD |
1800 | wxWakeUpMainThread(); |
1801 | ||
4268f798 RD |
1802 | wxPyEndAllowThreads(__tstate); |
1803 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1804 | } Py_INCREF(Py_None); |
1805 | _resultobj = Py_None; | |
1806 | return _resultobj; | |
1807 | } | |
1808 | ||
1809 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1810 | PyObject * _resultobj; | |
1811 | char *_kwnames[] = { NULL }; | |
1812 | ||
1813 | self = self; | |
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1815 | return NULL; |
c368d904 | 1816 | { |
4268f798 | 1817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e18ca6c RD |
1818 | wxMutexGuiEnter(); |
1819 | ||
4268f798 RD |
1820 | wxPyEndAllowThreads(__tstate); |
1821 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1822 | } Py_INCREF(Py_None); |
1823 | _resultobj = Py_None; | |
1824 | return _resultobj; | |
1825 | } | |
1826 | ||
1827 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1828 | PyObject * _resultobj; | |
1829 | char *_kwnames[] = { NULL }; | |
1830 | ||
1831 | self = self; | |
1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1833 | return NULL; | |
1834 | { | |
4268f798 | 1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e18ca6c RD |
1836 | wxMutexGuiLeave(); |
1837 | ||
4268f798 RD |
1838 | wxPyEndAllowThreads(__tstate); |
1839 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1840 | } Py_INCREF(Py_None); |
1841 | _resultobj = Py_None; | |
1842 | return _resultobj; | |
1843 | } | |
1844 | ||
1845 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1846 | PyObject * _resultobj; | |
1847 | bool _result; | |
1848 | char *_kwnames[] = { NULL }; | |
1849 | ||
1850 | self = self; | |
1851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1852 | return NULL; | |
1853 | { | |
4268f798 | 1854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e18ca6c | 1855 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1856 | |
4268f798 RD |
1857 | wxPyEndAllowThreads(__tstate); |
1858 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1859 | } _resultobj = Py_BuildValue("i",_result); |
1860 | return _resultobj; | |
1861 | } | |
1862 | ||
f6bcfd97 | 1863 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1864 | PyObject * _resultobj; |
f6bcfd97 BP |
1865 | bool _result; |
1866 | wxWindow * _arg0; | |
1867 | wxTipProvider * _arg1; | |
1868 | bool _arg2 = (bool ) TRUE; | |
1869 | PyObject * _argo0 = 0; | |
1870 | PyObject * _argo1 = 0; | |
1871 | int tempbool2 = (int) TRUE; | |
1872 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1873 | ||
1874 | self = self; | |
1875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1876 | return NULL; | |
1877 | if (_argo0) { | |
1878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1881 | return NULL; | |
1882 | } | |
1883 | } | |
1884 | if (_argo1) { | |
1885 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1886 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1887 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1888 | return NULL; | |
1889 | } | |
1890 | } | |
1891 | _arg2 = (bool ) tempbool2; | |
1892 | { | |
4268f798 | 1893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
1894 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
1895 | ||
4268f798 RD |
1896 | wxPyEndAllowThreads(__tstate); |
1897 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1898 | } _resultobj = Py_BuildValue("i",_result); |
1899 | return _resultobj; | |
1900 | } | |
1901 | ||
1902 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1903 | PyObject * _resultobj; | |
1904 | wxTipProvider * _result; | |
bb0054cd | 1905 | wxString * _arg0; |
f6bcfd97 | 1906 | size_t _arg1; |
bb0054cd | 1907 | PyObject * _obj0 = 0; |
f6bcfd97 | 1908 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1909 | char _ptemp[128]; |
1910 | ||
1911 | self = self; | |
f6bcfd97 | 1912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1913 | return NULL; |
1914 | { | |
185d7c3e RD |
1915 | #if PYTHON_API_VERSION >= 1009 |
1916 | char* tmpPtr; int tmpSize; | |
1917 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 1918 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
1919 | return NULL; |
1920 | } | |
1921 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
1922 | return NULL; | |
1923 | _arg0 = new wxString(tmpPtr, tmpSize); | |
1924 | #else | |
bb0054cd RD |
1925 | if (!PyString_Check(_obj0)) { |
1926 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
1927 | return NULL; | |
1928 | } | |
185d7c3e RD |
1929 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
1930 | #endif | |
bb0054cd RD |
1931 | } |
1932 | { | |
4268f798 | 1933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1934 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1935 | |
4268f798 RD |
1936 | wxPyEndAllowThreads(__tstate); |
1937 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1938 | } if (_result) { |
f6bcfd97 | 1939 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1940 | _resultobj = Py_BuildValue("s",_ptemp); |
1941 | } else { | |
1942 | Py_INCREF(Py_None); | |
1943 | _resultobj = Py_None; | |
1944 | } | |
bb0054cd RD |
1945 | { |
1946 | if (_obj0) | |
1947 | delete _arg0; | |
1948 | } | |
1949 | return _resultobj; | |
1950 | } | |
1951 | ||
f6bcfd97 | 1952 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1953 | PyObject * _resultobj; |
f6bcfd97 BP |
1954 | unsigned long _result; |
1955 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1956 | |
1957 | self = self; | |
f6bcfd97 | 1958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1959 | return NULL; |
f0261a72 | 1960 | { |
4268f798 | 1961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1962 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1963 | |
4268f798 RD |
1964 | wxPyEndAllowThreads(__tstate); |
1965 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1966 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1967 | return _resultobj; |
1968 | } | |
1969 | ||
f6bcfd97 | 1970 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1971 | PyObject * _resultobj; |
f6bcfd97 BP |
1972 | char * _result; |
1973 | unsigned long _arg0 = (unsigned long ) 0; | |
1974 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1975 | |
1976 | self = self; | |
f6bcfd97 | 1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 1978 | return NULL; |
f0261a72 | 1979 | { |
4268f798 | 1980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1981 | _result = (char *)wxSysErrorMsg(_arg0); |
f0261a72 | 1982 | |
4268f798 RD |
1983 | wxPyEndAllowThreads(__tstate); |
1984 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1985 | } _resultobj = Py_BuildValue("s", _result); |
f0261a72 RD |
1986 | return _resultobj; |
1987 | } | |
1988 | ||
f6bcfd97 | 1989 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1990 | PyObject * _resultobj; |
f6bcfd97 BP |
1991 | char * _arg0; |
1992 | char *_kwnames[] = { "szFormat", NULL }; | |
f0261a72 RD |
1993 | |
1994 | self = self; | |
f6bcfd97 | 1995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0)) |
f0261a72 | 1996 | return NULL; |
f0261a72 | 1997 | { |
4268f798 | 1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 1999 | wxLogFatalError(_arg0); |
f0261a72 | 2000 | |
4268f798 RD |
2001 | wxPyEndAllowThreads(__tstate); |
2002 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2003 | } Py_INCREF(Py_None); |
2004 | _resultobj = Py_None; | |
f0261a72 RD |
2005 | return _resultobj; |
2006 | } | |
2007 | ||
f6bcfd97 | 2008 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 2009 | PyObject * _resultobj; |
f6bcfd97 BP |
2010 | char * _arg0; |
2011 | char *_kwnames[] = { "szFormat", NULL }; | |
f0261a72 RD |
2012 | |
2013 | self = self; | |
f6bcfd97 | 2014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0)) |
f0261a72 | 2015 | return NULL; |
f0261a72 | 2016 | { |
4268f798 | 2017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 2018 | wxLogError(_arg0); |
f0261a72 | 2019 | |
4268f798 RD |
2020 | wxPyEndAllowThreads(__tstate); |
2021 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
2022 | } Py_INCREF(Py_None); |
2023 | _resultobj = Py_None; | |
f0261a72 RD |
2024 | return _resultobj; |
2025 | } | |
2026 | ||
f6bcfd97 BP |
2027 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
2028 | PyObject * _resultobj; | |
2029 | char * _arg0; | |
2030 | char *_kwnames[] = { "szFormat", NULL }; | |
2031 | ||
2032 | self = self; | |
2033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0)) | |
2034 | return NULL; | |
2035 | { | |
4268f798 | 2036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2037 | wxLogWarning(_arg0); |
2038 | ||
4268f798 RD |
2039 | wxPyEndAllowThreads(__tstate); |
2040 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2041 | } Py_INCREF(Py_None); |
2042 | _resultobj = Py_None; | |
2043 | return _resultobj; | |
2044 | } | |
2045 | ||
2046 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2047 | PyObject * _resultobj; | |
2048 | char * _arg0; | |
2049 | char *_kwnames[] = { "szFormat", NULL }; | |
2050 | ||
2051 | self = self; | |
2052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0)) | |
2053 | return NULL; | |
2054 | { | |
4268f798 | 2055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2056 | wxLogMessage(_arg0); |
2057 | ||
4268f798 RD |
2058 | wxPyEndAllowThreads(__tstate); |
2059 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2060 | } Py_INCREF(Py_None); |
2061 | _resultobj = Py_None; | |
2062 | return _resultobj; | |
2063 | } | |
2064 | ||
2065 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2066 | PyObject * _resultobj; | |
2067 | char * _arg0; | |
2068 | char *_kwnames[] = { "szFormat", NULL }; | |
2069 | ||
2070 | self = self; | |
2071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0)) | |
2072 | return NULL; | |
2073 | { | |
4268f798 | 2074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2075 | wxLogInfo(_arg0); |
2076 | ||
4268f798 RD |
2077 | wxPyEndAllowThreads(__tstate); |
2078 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2079 | } Py_INCREF(Py_None); |
2080 | _resultobj = Py_None; | |
2081 | return _resultobj; | |
2082 | } | |
2083 | ||
2084 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2085 | PyObject * _resultobj; | |
2086 | char * _arg0; | |
2087 | char *_kwnames[] = { "szFormat", NULL }; | |
2088 | ||
2089 | self = self; | |
2090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0)) | |
2091 | return NULL; | |
2092 | { | |
4268f798 | 2093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2094 | wxLogVerbose(_arg0); |
2095 | ||
4268f798 RD |
2096 | wxPyEndAllowThreads(__tstate); |
2097 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2098 | } Py_INCREF(Py_None); |
2099 | _resultobj = Py_None; | |
2100 | return _resultobj; | |
2101 | } | |
2102 | ||
2103 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2104 | PyObject * _resultobj; | |
2105 | char * _arg0; | |
2106 | char *_kwnames[] = { "szFormat", NULL }; | |
2107 | ||
2108 | self = self; | |
2109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0)) | |
2110 | return NULL; | |
2111 | { | |
4268f798 | 2112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2113 | wxLogStatus(_arg0); |
2114 | ||
4268f798 RD |
2115 | wxPyEndAllowThreads(__tstate); |
2116 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2117 | } Py_INCREF(Py_None); |
2118 | _resultobj = Py_None; | |
2119 | return _resultobj; | |
2120 | } | |
2121 | ||
2122 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2123 | PyObject * _resultobj; | |
2124 | wxFrame * _arg0; | |
2125 | char * _arg1; | |
2126 | PyObject * _argo0 = 0; | |
2127 | char *_kwnames[] = { "pFrame","szFormat", NULL }; | |
2128 | ||
2129 | self = self; | |
2130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1)) | |
2131 | return NULL; | |
2132 | if (_argo0) { | |
2133 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2134 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2135 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2136 | return NULL; | |
2137 | } | |
2138 | } | |
2139 | { | |
4268f798 | 2140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2141 | wxLogStatus(_arg0,_arg1); |
2142 | ||
4268f798 RD |
2143 | wxPyEndAllowThreads(__tstate); |
2144 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2145 | } Py_INCREF(Py_None); |
2146 | _resultobj = Py_None; | |
2147 | return _resultobj; | |
2148 | } | |
2149 | ||
2150 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2151 | PyObject * _resultobj; | |
2152 | char * _arg0; | |
2153 | char *_kwnames[] = { "szFormat", NULL }; | |
2154 | ||
2155 | self = self; | |
2156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0)) | |
2157 | return NULL; | |
2158 | { | |
4268f798 | 2159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2160 | wxLogSysError(_arg0); |
2161 | ||
4268f798 RD |
2162 | wxPyEndAllowThreads(__tstate); |
2163 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2164 | } Py_INCREF(Py_None); |
2165 | _resultobj = Py_None; | |
2166 | return _resultobj; | |
2167 | } | |
2168 | ||
c368d904 RD |
2169 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2170 | PyObject * _resultobj; | |
2171 | long _result; | |
2172 | wxString * _arg0; | |
2173 | int _arg1 = (int ) FALSE; | |
2174 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2175 | PyObject * _obj0 = 0; | |
2176 | PyObject * _argo2 = 0; | |
2177 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2178 | ||
2179 | self = self; | |
2180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2181 | return NULL; | |
2182 | { | |
185d7c3e RD |
2183 | #if PYTHON_API_VERSION >= 1009 |
2184 | char* tmpPtr; int tmpSize; | |
2185 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2186 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2187 | return NULL; |
2188 | } | |
2189 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2190 | return NULL; | |
2191 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2192 | #else | |
c368d904 RD |
2193 | if (!PyString_Check(_obj0)) { |
2194 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2195 | return NULL; | |
2196 | } | |
185d7c3e RD |
2197 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2198 | #endif | |
c368d904 RD |
2199 | } |
2200 | if (_argo2) { | |
2201 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2202 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2203 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2204 | return NULL; | |
2205 | } | |
2206 | } | |
2207 | { | |
4268f798 | 2208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
2209 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
2210 | ||
4268f798 RD |
2211 | wxPyEndAllowThreads(__tstate); |
2212 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2213 | } _resultobj = Py_BuildValue("l",_result); |
2214 | { | |
2215 | if (_obj0) | |
2216 | delete _arg0; | |
2217 | } | |
2218 | return _resultobj; | |
2219 | } | |
2220 | ||
493f1553 RD |
2221 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2222 | PyObject * _resultobj; | |
2223 | wxWave * _result; | |
2224 | wxString * _arg0; | |
2225 | PyObject * _obj0 = 0; | |
2226 | char *_kwnames[] = { "data", NULL }; | |
2227 | char _ptemp[128]; | |
2228 | ||
2229 | self = self; | |
2230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2231 | return NULL; | |
2232 | { | |
2233 | #if PYTHON_API_VERSION >= 1009 | |
2234 | char* tmpPtr; int tmpSize; | |
2235 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
2236 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2237 | return NULL; | |
2238 | } | |
2239 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2240 | return NULL; | |
2241 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2242 | #else | |
2243 | if (!PyString_Check(_obj0)) { | |
2244 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2245 | return NULL; | |
2246 | } | |
2247 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
2248 | #endif | |
2249 | } | |
2250 | { | |
4268f798 | 2251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
2252 | _result = (wxWave *)wxWaveData(*_arg0); |
2253 | ||
4268f798 RD |
2254 | wxPyEndAllowThreads(__tstate); |
2255 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2256 | } if (_result) { |
2257 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2258 | _resultobj = Py_BuildValue("s",_ptemp); | |
2259 | } else { | |
2260 | Py_INCREF(Py_None); | |
2261 | _resultobj = Py_None; | |
2262 | } | |
2263 | { | |
2264 | if (_obj0) | |
2265 | delete _arg0; | |
2266 | } | |
2267 | return _resultobj; | |
2268 | } | |
2269 | ||
b37c7e1d RD |
2270 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2271 | ||
2272 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2273 | return 1; | |
2274 | } | |
2275 | ||
2276 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2277 | PyObject * pyobj; | |
2278 | char ptemp[128]; | |
2279 | ||
2280 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2281 | pyobj = PyString_FromString(ptemp); | |
2282 | return pyobj; | |
2283 | } | |
2284 | ||
b5a5d647 RD |
2285 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2286 | PyObject * _resultobj; | |
2287 | wxColour * _result; | |
2288 | wxSystemColour _arg0; | |
2289 | char *_kwnames[] = { "index", NULL }; | |
2290 | char _ptemp[128]; | |
2291 | ||
2292 | self = self; | |
2293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2294 | return NULL; | |
2295 | { | |
2296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2297 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); | |
2298 | ||
2299 | wxPyEndAllowThreads(__tstate); | |
2300 | if (PyErr_Occurred()) return NULL; | |
2301 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2302 | _resultobj = Py_BuildValue("s",_ptemp); | |
2303 | return _resultobj; | |
2304 | } | |
2305 | ||
2306 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2307 | PyObject * _resultobj; | |
2308 | wxFont * _result; | |
2309 | wxSystemFont _arg0; | |
2310 | char *_kwnames[] = { "index", NULL }; | |
2311 | char _ptemp[128]; | |
2312 | ||
2313 | self = self; | |
2314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2315 | return NULL; | |
2316 | { | |
2317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2318 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); | |
2319 | ||
2320 | wxPyEndAllowThreads(__tstate); | |
2321 | if (PyErr_Occurred()) return NULL; | |
2322 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2323 | _resultobj = Py_BuildValue("s",_ptemp); | |
2324 | return _resultobj; | |
2325 | } | |
2326 | ||
2327 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject * _resultobj; | |
2329 | int _result; | |
2330 | wxSystemMetric _arg0; | |
2331 | char *_kwnames[] = { "index", NULL }; | |
2332 | ||
2333 | self = self; | |
2334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2335 | return NULL; | |
2336 | { | |
2337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2338 | _result = (int )wxSystemSettings::GetMetric(_arg0); | |
2339 | ||
2340 | wxPyEndAllowThreads(__tstate); | |
2341 | if (PyErr_Occurred()) return NULL; | |
2342 | } _resultobj = Py_BuildValue("i",_result); | |
2343 | return _resultobj; | |
2344 | } | |
2345 | ||
2346 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2347 | PyObject * _resultobj; | |
2348 | bool _result; | |
2349 | wxSystemFeature _arg0; | |
2350 | char *_kwnames[] = { "index", NULL }; | |
2351 | ||
2352 | self = self; | |
2353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2354 | return NULL; | |
2355 | { | |
2356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2357 | _result = (bool )wxSystemSettings::HasFeature(_arg0); | |
2358 | ||
2359 | wxPyEndAllowThreads(__tstate); | |
2360 | if (PyErr_Occurred()) return NULL; | |
2361 | } _resultobj = Py_BuildValue("i",_result); | |
2362 | return _resultobj; | |
2363 | } | |
2364 | ||
2365 | static PyObject *_wrap_wxSystemSettings_GetSystemColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2366 | PyObject * _resultobj; | |
2367 | wxColour * _result; | |
2368 | int _arg0; | |
2369 | char *_kwnames[] = { "index", NULL }; | |
2370 | char _ptemp[128]; | |
2371 | ||
2372 | self = self; | |
2373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemColour",_kwnames,&_arg0)) | |
2374 | return NULL; | |
2375 | { | |
2376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2377 | _result = new wxColour (wxSystemSettings::GetSystemColour(_arg0)); | |
2378 | ||
2379 | wxPyEndAllowThreads(__tstate); | |
2380 | if (PyErr_Occurred()) return NULL; | |
2381 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2382 | _resultobj = Py_BuildValue("s",_ptemp); | |
2383 | return _resultobj; | |
2384 | } | |
2385 | ||
2386 | static PyObject *_wrap_wxSystemSettings_GetSystemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2387 | PyObject * _resultobj; | |
2388 | wxFont * _result; | |
2389 | int _arg0; | |
2390 | char *_kwnames[] = { "index", NULL }; | |
2391 | char _ptemp[128]; | |
2392 | ||
2393 | self = self; | |
2394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemFont",_kwnames,&_arg0)) | |
2395 | return NULL; | |
2396 | { | |
2397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2398 | _result = new wxFont (wxSystemSettings::GetSystemFont(_arg0)); | |
2399 | ||
2400 | wxPyEndAllowThreads(__tstate); | |
2401 | if (PyErr_Occurred()) return NULL; | |
2402 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2403 | _resultobj = Py_BuildValue("s",_ptemp); | |
2404 | return _resultobj; | |
2405 | } | |
2406 | ||
2407 | static PyObject *_wrap_wxSystemSettings_GetSystemMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2408 | PyObject * _resultobj; | |
2409 | int _result; | |
2410 | int _arg0; | |
2411 | char *_kwnames[] = { "index", NULL }; | |
2412 | ||
2413 | self = self; | |
2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetSystemMetric",_kwnames,&_arg0)) | |
2415 | return NULL; | |
2416 | { | |
2417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2418 | _result = (int )wxSystemSettings::GetSystemMetric(_arg0); | |
2419 | ||
2420 | wxPyEndAllowThreads(__tstate); | |
2421 | if (PyErr_Occurred()) return NULL; | |
2422 | } _resultobj = Py_BuildValue("i",_result); | |
2423 | return _resultobj; | |
2424 | } | |
2425 | ||
9416aa89 RD |
2426 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2427 | wxToolTip *src; | |
2428 | wxObject *dest; | |
2429 | src = (wxToolTip *) ptr; | |
2430 | dest = (wxObject *) src; | |
2431 | return (void *) dest; | |
2432 | } | |
2433 | ||
f6bcfd97 BP |
2434 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2435 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2436 | PyObject * _resultobj; | |
2437 | wxToolTip * _result; | |
2438 | wxString * _arg0; | |
2439 | PyObject * _obj0 = 0; | |
2440 | char *_kwnames[] = { "tip", NULL }; | |
2441 | char _ptemp[128]; | |
2442 | ||
2443 | self = self; | |
2444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2445 | return NULL; | |
2446 | { | |
185d7c3e RD |
2447 | #if PYTHON_API_VERSION >= 1009 |
2448 | char* tmpPtr; int tmpSize; | |
2449 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 2450 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2451 | return NULL; |
2452 | } | |
2453 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
2454 | return NULL; | |
2455 | _arg0 = new wxString(tmpPtr, tmpSize); | |
2456 | #else | |
f6bcfd97 BP |
2457 | if (!PyString_Check(_obj0)) { |
2458 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2459 | return NULL; | |
2460 | } | |
185d7c3e RD |
2461 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
2462 | #endif | |
f6bcfd97 BP |
2463 | } |
2464 | { | |
4268f798 | 2465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2466 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
2467 | ||
4268f798 RD |
2468 | wxPyEndAllowThreads(__tstate); |
2469 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2470 | } if (_result) { |
2471 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2472 | _resultobj = Py_BuildValue("s",_ptemp); | |
2473 | } else { | |
2474 | Py_INCREF(Py_None); | |
2475 | _resultobj = Py_None; | |
2476 | } | |
2477 | { | |
2478 | if (_obj0) | |
2479 | delete _arg0; | |
2480 | } | |
2481 | return _resultobj; | |
2482 | } | |
2483 | ||
2484 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2485 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2486 | PyObject * _resultobj; | |
2487 | wxToolTip * _arg0; | |
2488 | wxString * _arg1; | |
2489 | PyObject * _argo0 = 0; | |
2490 | PyObject * _obj1 = 0; | |
2491 | char *_kwnames[] = { "self","tip", NULL }; | |
2492 | ||
2493 | self = self; | |
2494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2495 | return NULL; | |
2496 | if (_argo0) { | |
2497 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2498 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2500 | return NULL; | |
2501 | } | |
2502 | } | |
2503 | { | |
185d7c3e RD |
2504 | #if PYTHON_API_VERSION >= 1009 |
2505 | char* tmpPtr; int tmpSize; | |
2506 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
794c5cb1 | 2507 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
2508 | return NULL; |
2509 | } | |
2510 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
2511 | return NULL; | |
2512 | _arg1 = new wxString(tmpPtr, tmpSize); | |
2513 | #else | |
f6bcfd97 BP |
2514 | if (!PyString_Check(_obj1)) { |
2515 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
2516 | return NULL; | |
2517 | } | |
185d7c3e RD |
2518 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); |
2519 | #endif | |
f6bcfd97 BP |
2520 | } |
2521 | { | |
4268f798 | 2522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2523 | wxToolTip_SetTip(_arg0,*_arg1); |
2524 | ||
4268f798 RD |
2525 | wxPyEndAllowThreads(__tstate); |
2526 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2527 | } Py_INCREF(Py_None); |
2528 | _resultobj = Py_None; | |
2529 | { | |
2530 | if (_obj1) | |
2531 | delete _arg1; | |
2532 | } | |
2533 | return _resultobj; | |
2534 | } | |
2535 | ||
2536 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2537 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2538 | PyObject * _resultobj; | |
2539 | wxString * _result; | |
2540 | wxToolTip * _arg0; | |
2541 | PyObject * _argo0 = 0; | |
2542 | char *_kwnames[] = { "self", NULL }; | |
2543 | ||
2544 | self = self; | |
2545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2546 | return NULL; | |
2547 | if (_argo0) { | |
2548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2551 | return NULL; | |
2552 | } | |
2553 | } | |
2554 | { | |
4268f798 | 2555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2556 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
2557 | ||
4268f798 RD |
2558 | wxPyEndAllowThreads(__tstate); |
2559 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2560 | }{ |
2561 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2562 | } | |
2563 | { | |
2564 | delete _result; | |
2565 | } | |
2566 | return _resultobj; | |
2567 | } | |
2568 | ||
2569 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2570 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2571 | PyObject * _resultobj; | |
2572 | wxWindow * _result; | |
2573 | wxToolTip * _arg0; | |
2574 | PyObject * _argo0 = 0; | |
2575 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2576 | |
2577 | self = self; | |
2578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2579 | return NULL; | |
2580 | if (_argo0) { | |
2581 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2582 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2583 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2584 | return NULL; | |
2585 | } | |
2586 | } | |
2587 | { | |
4268f798 | 2588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2589 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
2590 | ||
4268f798 RD |
2591 | wxPyEndAllowThreads(__tstate); |
2592 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2593 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2594 | return _resultobj; |
2595 | } | |
2596 | ||
edf2f43e RD |
2597 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2598 | PyObject * _resultobj; | |
2599 | bool _arg0; | |
2600 | int tempbool0; | |
2601 | char *_kwnames[] = { "flag", NULL }; | |
2602 | ||
2603 | self = self; | |
2604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2605 | return NULL; | |
2606 | _arg0 = (bool ) tempbool0; | |
2607 | { | |
4268f798 | 2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
edf2f43e RD |
2609 | wxToolTip::Enable(_arg0); |
2610 | ||
4268f798 RD |
2611 | wxPyEndAllowThreads(__tstate); |
2612 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2613 | } Py_INCREF(Py_None); |
2614 | _resultobj = Py_None; | |
2615 | return _resultobj; | |
2616 | } | |
2617 | ||
2618 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2619 | PyObject * _resultobj; | |
2620 | long _arg0; | |
2621 | char *_kwnames[] = { "milliseconds", NULL }; | |
2622 | ||
2623 | self = self; | |
2624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2625 | return NULL; | |
2626 | { | |
4268f798 | 2627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
edf2f43e RD |
2628 | wxToolTip::SetDelay(_arg0); |
2629 | ||
4268f798 RD |
2630 | wxPyEndAllowThreads(__tstate); |
2631 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2632 | } Py_INCREF(Py_None); |
2633 | _resultobj = Py_None; | |
2634 | return _resultobj; | |
2635 | } | |
2636 | ||
f6bcfd97 BP |
2637 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2638 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2639 | PyObject * _resultobj; | |
2640 | wxCaret * _result; | |
2641 | wxWindow * _arg0; | |
2642 | wxSize * _arg1; | |
2643 | PyObject * _argo0 = 0; | |
2644 | wxSize temp; | |
2645 | PyObject * _obj1 = 0; | |
2646 | char *_kwnames[] = { "window","size", NULL }; | |
2647 | char _ptemp[128]; | |
2648 | ||
2649 | self = self; | |
2650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2651 | return NULL; | |
2652 | if (_argo0) { | |
2653 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2654 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2655 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2656 | return NULL; | |
2657 | } | |
2658 | } | |
2659 | { | |
2660 | _arg1 = &temp; | |
2661 | if (! wxSize_helper(_obj1, &_arg1)) | |
2662 | return NULL; | |
2663 | } | |
2664 | { | |
4268f798 | 2665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2666 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
2667 | ||
4268f798 RD |
2668 | wxPyEndAllowThreads(__tstate); |
2669 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2670 | } if (_result) { |
2671 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2672 | _resultobj = Py_BuildValue("s",_ptemp); | |
2673 | } else { | |
2674 | Py_INCREF(Py_None); | |
2675 | _resultobj = Py_None; | |
2676 | } | |
2677 | return _resultobj; | |
2678 | } | |
2679 | ||
2680 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2681 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2682 | PyObject * _resultobj; | |
2683 | wxCaret * _arg0; | |
2684 | PyObject * _argo0 = 0; | |
2685 | char *_kwnames[] = { "self", NULL }; | |
2686 | ||
2687 | self = self; | |
2688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2689 | return NULL; | |
2690 | if (_argo0) { | |
2691 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2692 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2693 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2694 | return NULL; | |
2695 | } | |
2696 | } | |
2697 | { | |
4268f798 | 2698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2699 | delete_wxCaret(_arg0); |
2700 | ||
4268f798 RD |
2701 | wxPyEndAllowThreads(__tstate); |
2702 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2703 | } Py_INCREF(Py_None); |
2704 | _resultobj = Py_None; | |
2705 | return _resultobj; | |
2706 | } | |
2707 | ||
2708 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2709 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2710 | PyObject * _resultobj; | |
2711 | bool _result; | |
2712 | wxCaret * _arg0; | |
2713 | PyObject * _argo0 = 0; | |
2714 | char *_kwnames[] = { "self", NULL }; | |
2715 | ||
2716 | self = self; | |
2717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2718 | return NULL; | |
2719 | if (_argo0) { | |
2720 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2721 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2722 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2723 | return NULL; | |
2724 | } | |
2725 | } | |
2726 | { | |
4268f798 | 2727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2728 | _result = (bool )wxCaret_IsOk(_arg0); |
2729 | ||
4268f798 RD |
2730 | wxPyEndAllowThreads(__tstate); |
2731 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2732 | } _resultobj = Py_BuildValue("i",_result); |
2733 | return _resultobj; | |
2734 | } | |
2735 | ||
2736 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2737 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2738 | PyObject * _resultobj; | |
2739 | bool _result; | |
2740 | wxCaret * _arg0; | |
2741 | PyObject * _argo0 = 0; | |
2742 | char *_kwnames[] = { "self", NULL }; | |
2743 | ||
2744 | self = self; | |
2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2746 | return NULL; | |
2747 | if (_argo0) { | |
2748 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2749 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2750 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
2754 | { | |
4268f798 | 2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2756 | _result = (bool )wxCaret_IsVisible(_arg0); |
2757 | ||
4268f798 RD |
2758 | wxPyEndAllowThreads(__tstate); |
2759 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2760 | } _resultobj = Py_BuildValue("i",_result); |
2761 | return _resultobj; | |
2762 | } | |
2763 | ||
2764 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2765 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2766 | PyObject * _resultobj; | |
2767 | wxCaret * _arg0; | |
2768 | int * _arg1; | |
2769 | int temp; | |
2770 | int * _arg2; | |
2771 | int temp0; | |
2772 | PyObject * _argo0 = 0; | |
2773 | char *_kwnames[] = { "self", NULL }; | |
2774 | ||
2775 | self = self; | |
2776 | { | |
2777 | _arg1 = &temp; | |
2778 | } | |
2779 | { | |
2780 | _arg2 = &temp0; | |
2781 | } | |
2782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2783 | return NULL; | |
2784 | if (_argo0) { | |
2785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2788 | return NULL; | |
2789 | } | |
2790 | } | |
2791 | { | |
4268f798 | 2792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2793 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
2794 | ||
4268f798 RD |
2795 | wxPyEndAllowThreads(__tstate); |
2796 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2797 | } Py_INCREF(Py_None); |
2798 | _resultobj = Py_None; | |
2799 | { | |
2800 | PyObject *o; | |
2801 | o = PyInt_FromLong((long) (*_arg1)); | |
2802 | _resultobj = t_output_helper(_resultobj, o); | |
2803 | } | |
2804 | { | |
2805 | PyObject *o; | |
2806 | o = PyInt_FromLong((long) (*_arg2)); | |
2807 | _resultobj = t_output_helper(_resultobj, o); | |
2808 | } | |
2809 | return _resultobj; | |
2810 | } | |
2811 | ||
2812 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
2813 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2814 | PyObject * _resultobj; | |
f6bcfd97 BP |
2815 | wxPoint * _result; |
2816 | wxCaret * _arg0; | |
2817 | PyObject * _argo0 = 0; | |
2818 | char *_kwnames[] = { "self", NULL }; | |
2819 | char _ptemp[128]; | |
2820 | ||
2821 | self = self; | |
2822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2823 | return NULL; | |
2824 | if (_argo0) { | |
2825 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2826 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2827 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2828 | return NULL; | |
2829 | } | |
2830 | } | |
2831 | { | |
4268f798 | 2832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2833 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
2834 | ||
4268f798 RD |
2835 | wxPyEndAllowThreads(__tstate); |
2836 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2837 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2838 | _resultobj = Py_BuildValue("s",_ptemp); | |
2839 | return _resultobj; | |
2840 | } | |
2841 | ||
2842 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2843 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2844 | PyObject * _resultobj; | |
2845 | wxCaret * _arg0; | |
2846 | int * _arg1; | |
2847 | int temp; | |
2848 | int * _arg2; | |
2849 | int temp0; | |
2850 | PyObject * _argo0 = 0; | |
2851 | char *_kwnames[] = { "self", NULL }; | |
2852 | ||
2853 | self = self; | |
2854 | { | |
2855 | _arg1 = &temp; | |
2856 | } | |
2857 | { | |
2858 | _arg2 = &temp0; | |
2859 | } | |
2860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2861 | return NULL; | |
2862 | if (_argo0) { | |
2863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2866 | return NULL; | |
2867 | } | |
2868 | } | |
2869 | { | |
4268f798 | 2870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2871 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
2872 | ||
4268f798 RD |
2873 | wxPyEndAllowThreads(__tstate); |
2874 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2875 | } Py_INCREF(Py_None); |
2876 | _resultobj = Py_None; | |
2877 | { | |
2878 | PyObject *o; | |
2879 | o = PyInt_FromLong((long) (*_arg1)); | |
2880 | _resultobj = t_output_helper(_resultobj, o); | |
2881 | } | |
2882 | { | |
2883 | PyObject *o; | |
2884 | o = PyInt_FromLong((long) (*_arg2)); | |
2885 | _resultobj = t_output_helper(_resultobj, o); | |
2886 | } | |
2887 | return _resultobj; | |
2888 | } | |
2889 | ||
2890 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2891 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2892 | PyObject * _resultobj; | |
2893 | wxSize * _result; | |
2894 | wxCaret * _arg0; | |
2895 | PyObject * _argo0 = 0; | |
2896 | char *_kwnames[] = { "self", NULL }; | |
2897 | char _ptemp[128]; | |
2898 | ||
2899 | self = self; | |
2900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
2901 | return NULL; | |
2902 | if (_argo0) { | |
2903 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2904 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2905 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
2906 | return NULL; | |
2907 | } | |
2908 | } | |
2909 | { | |
4268f798 | 2910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2911 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
2912 | ||
4268f798 RD |
2913 | wxPyEndAllowThreads(__tstate); |
2914 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2915 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
2916 | _resultobj = Py_BuildValue("s",_ptemp); | |
2917 | return _resultobj; | |
2918 | } | |
2919 | ||
2920 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2921 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2922 | PyObject * _resultobj; | |
2923 | wxWindow * _result; | |
2924 | wxCaret * _arg0; | |
2925 | PyObject * _argo0 = 0; | |
2926 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2927 | |
2928 | self = self; | |
2929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2930 | return NULL; | |
2931 | if (_argo0) { | |
2932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2935 | return NULL; | |
2936 | } | |
2937 | } | |
2938 | { | |
4268f798 | 2939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2940 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
2941 | ||
4268f798 RD |
2942 | wxPyEndAllowThreads(__tstate); |
2943 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2944 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2945 | return _resultobj; |
2946 | } | |
2947 | ||
2948 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2949 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2950 | PyObject * _resultobj; | |
2951 | wxCaret * _arg0; | |
2952 | int _arg1; | |
2953 | int _arg2; | |
2954 | PyObject * _argo0 = 0; | |
2955 | char *_kwnames[] = { "self","x","y", NULL }; | |
2956 | ||
2957 | self = self; | |
2958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2959 | return NULL; | |
2960 | if (_argo0) { | |
2961 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2962 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2963 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2964 | return NULL; | |
2965 | } | |
2966 | } | |
2967 | { | |
4268f798 | 2968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
2969 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
2970 | ||
4268f798 RD |
2971 | wxPyEndAllowThreads(__tstate); |
2972 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2973 | } Py_INCREF(Py_None); |
2974 | _resultobj = Py_None; | |
2975 | return _resultobj; | |
2976 | } | |
2977 | ||
2978 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2979 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2980 | PyObject * _resultobj; | |
2981 | wxCaret * _arg0; | |
2982 | wxPoint * _arg1; | |
2983 | PyObject * _argo0 = 0; | |
2984 | wxPoint temp; | |
2985 | PyObject * _obj1 = 0; | |
2986 | char *_kwnames[] = { "self","pt", NULL }; | |
2987 | ||
2988 | self = self; | |
2989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2990 | return NULL; | |
2991 | if (_argo0) { | |
2992 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2993 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2994 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2995 | return NULL; | |
2996 | } | |
2997 | } | |
2998 | { | |
2999 | _arg1 = &temp; | |
3000 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3001 | return NULL; | |
3002 | } | |
3003 | { | |
4268f798 | 3004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3005 | wxCaret_Move(_arg0,*_arg1); |
3006 | ||
4268f798 RD |
3007 | wxPyEndAllowThreads(__tstate); |
3008 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3009 | } Py_INCREF(Py_None); |
3010 | _resultobj = Py_None; | |
3011 | return _resultobj; | |
3012 | } | |
3013 | ||
3014 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3015 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3016 | PyObject * _resultobj; | |
3017 | wxCaret * _arg0; | |
3018 | int _arg1; | |
3019 | int _arg2; | |
3020 | PyObject * _argo0 = 0; | |
3021 | char *_kwnames[] = { "self","width","height", NULL }; | |
3022 | ||
3023 | self = self; | |
3024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3025 | return NULL; | |
3026 | if (_argo0) { | |
3027 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3028 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3029 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3030 | return NULL; | |
3031 | } | |
3032 | } | |
3033 | { | |
4268f798 | 3034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3035 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
3036 | ||
4268f798 RD |
3037 | wxPyEndAllowThreads(__tstate); |
3038 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3039 | } Py_INCREF(Py_None); |
3040 | _resultobj = Py_None; | |
3041 | return _resultobj; | |
3042 | } | |
3043 | ||
3044 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3045 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3046 | PyObject * _resultobj; | |
3047 | wxCaret * _arg0; | |
3048 | wxSize * _arg1; | |
3049 | PyObject * _argo0 = 0; | |
3050 | wxSize temp; | |
3051 | PyObject * _obj1 = 0; | |
3052 | char *_kwnames[] = { "self","size", NULL }; | |
3053 | ||
3054 | self = self; | |
3055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3056 | return NULL; | |
3057 | if (_argo0) { | |
3058 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3059 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3061 | return NULL; | |
3062 | } | |
3063 | } | |
3064 | { | |
3065 | _arg1 = &temp; | |
3066 | if (! wxSize_helper(_obj1, &_arg1)) | |
3067 | return NULL; | |
3068 | } | |
3069 | { | |
4268f798 | 3070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3071 | wxCaret_SetSize(_arg0,*_arg1); |
3072 | ||
4268f798 RD |
3073 | wxPyEndAllowThreads(__tstate); |
3074 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3075 | } Py_INCREF(Py_None); |
3076 | _resultobj = Py_None; | |
3077 | return _resultobj; | |
3078 | } | |
3079 | ||
3080 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3081 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject * _resultobj; | |
3083 | wxCaret * _arg0; | |
3084 | int _arg1 = (int ) TRUE; | |
3085 | PyObject * _argo0 = 0; | |
3086 | char *_kwnames[] = { "self","show", NULL }; | |
3087 | ||
3088 | self = self; | |
3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3090 | return NULL; | |
3091 | if (_argo0) { | |
3092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3095 | return NULL; | |
3096 | } | |
3097 | } | |
3098 | { | |
4268f798 | 3099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3100 | wxCaret_Show(_arg0,_arg1); |
3101 | ||
4268f798 RD |
3102 | wxPyEndAllowThreads(__tstate); |
3103 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3104 | } Py_INCREF(Py_None); |
3105 | _resultobj = Py_None; | |
3106 | return _resultobj; | |
3107 | } | |
3108 | ||
3109 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3110 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3111 | PyObject * _resultobj; | |
3112 | wxCaret * _arg0; | |
3113 | PyObject * _argo0 = 0; | |
3114 | char *_kwnames[] = { "self", NULL }; | |
3115 | ||
3116 | self = self; | |
3117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3118 | return NULL; | |
3119 | if (_argo0) { | |
3120 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3121 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3122 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3123 | return NULL; | |
3124 | } | |
3125 | } | |
3126 | { | |
4268f798 | 3127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3128 | wxCaret_Hide(_arg0); |
3129 | ||
4268f798 RD |
3130 | wxPyEndAllowThreads(__tstate); |
3131 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3132 | } Py_INCREF(Py_None); |
3133 | _resultobj = Py_None; | |
3134 | return _resultobj; | |
3135 | } | |
3136 | ||
3137 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
3138 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3139 | PyObject * _resultobj; | |
3140 | wxPyFontEnumerator * _result; | |
3141 | char *_kwnames[] = { NULL }; | |
3142 | char _ptemp[128]; | |
3143 | ||
3144 | self = self; | |
3145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
3146 | return NULL; | |
3147 | { | |
4268f798 | 3148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3149 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); |
3150 | ||
4268f798 RD |
3151 | wxPyEndAllowThreads(__tstate); |
3152 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3153 | } if (_result) { |
3154 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
3155 | _resultobj = Py_BuildValue("s",_ptemp); | |
3156 | } else { | |
3157 | Py_INCREF(Py_None); | |
3158 | _resultobj = Py_None; | |
3159 | } | |
3160 | return _resultobj; | |
3161 | } | |
3162 | ||
3163 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
3164 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3165 | PyObject * _resultobj; | |
3166 | wxPyFontEnumerator * _arg0; | |
3167 | PyObject * _argo0 = 0; | |
3168 | char *_kwnames[] = { "self", NULL }; | |
3169 | ||
3170 | self = self; | |
3171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
3172 | return NULL; | |
3173 | if (_argo0) { | |
3174 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3175 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3176 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
3177 | return NULL; | |
3178 | } | |
3179 | } | |
3180 | { | |
4268f798 | 3181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3182 | delete_wxPyFontEnumerator(_arg0); |
3183 | ||
4268f798 RD |
3184 | wxPyEndAllowThreads(__tstate); |
3185 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3186 | } Py_INCREF(Py_None); |
3187 | _resultobj = Py_None; | |
3188 | return _resultobj; | |
3189 | } | |
3190 | ||
8af26133 | 3191 | #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
0122b7e3 | 3192 | static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
f6bcfd97 BP |
3193 | PyObject * _resultobj; |
3194 | wxPyFontEnumerator * _arg0; | |
3195 | PyObject * _arg1; | |
3196 | PyObject * _arg2; | |
8af26133 | 3197 | bool _arg3; |
f6bcfd97 BP |
3198 | PyObject * _argo0 = 0; |
3199 | PyObject * _obj1 = 0; | |
3200 | PyObject * _obj2 = 0; | |
8af26133 RD |
3201 | int tempbool3; |
3202 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
f6bcfd97 BP |
3203 | |
3204 | self = self; | |
8af26133 | 3205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) |
f6bcfd97 BP |
3206 | return NULL; |
3207 | if (_argo0) { | |
3208 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3209 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
0122b7e3 | 3210 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p."); |
f6bcfd97 BP |
3211 | return NULL; |
3212 | } | |
3213 | } | |
3214 | { | |
3215 | _arg1 = _obj1; | |
3216 | } | |
3217 | { | |
3218 | _arg2 = _obj2; | |
3219 | } | |
8af26133 | 3220 | _arg3 = (bool ) tempbool3; |
f6bcfd97 | 3221 | { |
4268f798 | 3222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8af26133 | 3223 | wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
f6bcfd97 | 3224 | |
4268f798 RD |
3225 | wxPyEndAllowThreads(__tstate); |
3226 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3227 | } Py_INCREF(Py_None); |
3228 | _resultobj = Py_None; | |
3229 | return _resultobj; | |
3230 | } | |
3231 | ||
3232 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
3233 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3234 | PyObject * _resultobj; | |
3235 | bool _result; | |
3236 | wxPyFontEnumerator * _arg0; | |
3237 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
3238 | bool _arg2 = (bool ) FALSE; | |
3239 | PyObject * _argo0 = 0; | |
3240 | int tempbool2 = (int) FALSE; | |
3241 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
3242 | ||
3243 | self = self; | |
3244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3245 | return NULL; | |
3246 | if (_argo0) { | |
3247 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3248 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3249 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
3250 | return NULL; | |
3251 | } | |
3252 | } | |
3253 | _arg2 = (bool ) tempbool2; | |
3254 | { | |
4268f798 | 3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3256 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); |
3257 | ||
4268f798 RD |
3258 | wxPyEndAllowThreads(__tstate); |
3259 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3260 | } _resultobj = Py_BuildValue("i",_result); |
3261 | return _resultobj; | |
3262 | } | |
3263 | ||
3264 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
3265 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3266 | PyObject * _resultobj; | |
3267 | bool _result; | |
3268 | wxPyFontEnumerator * _arg0; | |
3269 | char * _arg1 = (char *) ""; | |
3270 | PyObject * _argo0 = 0; | |
3271 | char *_kwnames[] = { "self","facename", NULL }; | |
3272 | ||
3273 | self = self; | |
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
3275 | return NULL; | |
3276 | if (_argo0) { | |
3277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
3280 | return NULL; | |
3281 | } | |
3282 | } | |
3283 | { | |
4268f798 | 3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3285 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); |
3286 | ||
4268f798 RD |
3287 | wxPyEndAllowThreads(__tstate); |
3288 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3289 | } _resultobj = Py_BuildValue("i",_result); |
3290 | return _resultobj; | |
3291 | } | |
3292 | ||
3293 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
3294 | wxArrayString* arr = self->GetEncodings(); | |
8af26133 | 3295 | return wxArrayString2PyList_helper(*arr); |
f6bcfd97 BP |
3296 | } |
3297 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3298 | PyObject * _resultobj; | |
3299 | PyObject * _result; | |
3300 | wxPyFontEnumerator * _arg0; | |
3301 | PyObject * _argo0 = 0; | |
3302 | char *_kwnames[] = { "self", NULL }; | |
3303 | ||
3304 | self = self; | |
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
3306 | return NULL; | |
3307 | if (_argo0) { | |
3308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
3311 | return NULL; | |
3312 | } | |
3313 | } | |
3314 | { | |
4268f798 | 3315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3316 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); |
3317 | ||
4268f798 RD |
3318 | wxPyEndAllowThreads(__tstate); |
3319 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3320 | }{ |
3321 | _resultobj = _result; | |
3322 | } | |
3323 | return _resultobj; | |
3324 | } | |
3325 | ||
3326 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3327 | wxArrayString* arr = self->GetFacenames(); | |
8af26133 | 3328 | return wxArrayString2PyList_helper(*arr); |
f6bcfd97 BP |
3329 | } |
3330 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3331 | PyObject * _resultobj; | |
3332 | PyObject * _result; | |
3333 | wxPyFontEnumerator * _arg0; | |
3334 | PyObject * _argo0 = 0; | |
3335 | char *_kwnames[] = { "self", NULL }; | |
3336 | ||
3337 | self = self; | |
3338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3339 | return NULL; | |
3340 | if (_argo0) { | |
3341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3344 | return NULL; | |
3345 | } | |
3346 | } | |
3347 | { | |
4268f798 | 3348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3349 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); |
3350 | ||
4268f798 RD |
3351 | wxPyEndAllowThreads(__tstate); |
3352 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3353 | }{ |
3354 | _resultobj = _result; | |
3355 | } | |
3356 | return _resultobj; | |
3357 | } | |
3358 | ||
3359 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3360 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3361 | PyObject * _resultobj; | |
3362 | wxBusyCursor * _result; | |
3363 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3364 | PyObject * _argo0 = 0; | |
3365 | char *_kwnames[] = { "cursor", NULL }; | |
3366 | char _ptemp[128]; | |
3367 | ||
3368 | self = self; | |
3369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3370 | return NULL; | |
3371 | if (_argo0) { | |
3372 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3373 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3374 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3375 | return NULL; | |
3376 | } | |
3377 | } | |
3378 | { | |
4268f798 | 3379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3380 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
3381 | ||
4268f798 RD |
3382 | wxPyEndAllowThreads(__tstate); |
3383 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3384 | } if (_result) { |
3385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3386 | _resultobj = Py_BuildValue("s",_ptemp); | |
3387 | } else { | |
3388 | Py_INCREF(Py_None); | |
3389 | _resultobj = Py_None; | |
3390 | } | |
3391 | return _resultobj; | |
3392 | } | |
3393 | ||
3394 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3395 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3396 | PyObject * _resultobj; | |
3397 | wxBusyCursor * _arg0; | |
3398 | PyObject * _argo0 = 0; | |
3399 | char *_kwnames[] = { "self", NULL }; | |
3400 | ||
3401 | self = self; | |
3402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3403 | return NULL; | |
3404 | if (_argo0) { | |
3405 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3406 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3407 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3408 | return NULL; | |
3409 | } | |
3410 | } | |
3411 | { | |
4268f798 | 3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3413 | delete_wxBusyCursor(_arg0); |
3414 | ||
4268f798 RD |
3415 | wxPyEndAllowThreads(__tstate); |
3416 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3417 | } Py_INCREF(Py_None); |
3418 | _resultobj = Py_None; | |
3419 | return _resultobj; | |
3420 | } | |
3421 | ||
c368d904 RD |
3422 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3423 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3424 | PyObject * _resultobj; | |
3425 | wxWindowDisabler * _result; | |
3426 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3427 | PyObject * _argo0 = 0; | |
3428 | char *_kwnames[] = { "winToSkip", NULL }; | |
3429 | char _ptemp[128]; | |
3430 | ||
3431 | self = self; | |
3432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3433 | return NULL; | |
3434 | if (_argo0) { | |
3435 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3436 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3437 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3438 | return NULL; | |
3439 | } | |
3440 | } | |
3441 | { | |
4268f798 | 3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
3443 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
3444 | ||
4268f798 RD |
3445 | wxPyEndAllowThreads(__tstate); |
3446 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3447 | } if (_result) { |
3448 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3449 | _resultobj = Py_BuildValue("s",_ptemp); | |
3450 | } else { | |
3451 | Py_INCREF(Py_None); | |
3452 | _resultobj = Py_None; | |
3453 | } | |
3454 | return _resultobj; | |
3455 | } | |
3456 | ||
3457 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3458 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3459 | PyObject * _resultobj; | |
3460 | wxWindowDisabler * _arg0; | |
3461 | PyObject * _argo0 = 0; | |
3462 | char *_kwnames[] = { "self", NULL }; | |
3463 | ||
3464 | self = self; | |
3465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3466 | return NULL; | |
3467 | if (_argo0) { | |
3468 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3469 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3470 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3471 | return NULL; | |
3472 | } | |
3473 | } | |
3474 | { | |
4268f798 | 3475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
3476 | delete_wxWindowDisabler(_arg0); |
3477 | ||
4268f798 RD |
3478 | wxPyEndAllowThreads(__tstate); |
3479 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3480 | } Py_INCREF(Py_None); |
3481 | _resultobj = Py_None; | |
3482 | return _resultobj; | |
3483 | } | |
3484 | ||
6e18ca6c RD |
3485 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3486 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3487 | PyObject * _resultobj; | |
3488 | wxMutexGuiLocker * _result; | |
3489 | char *_kwnames[] = { NULL }; | |
3490 | char _ptemp[128]; | |
3491 | ||
3492 | self = self; | |
3493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3494 | return NULL; | |
3495 | { | |
4268f798 | 3496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e18ca6c RD |
3497 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
3498 | ||
4268f798 RD |
3499 | wxPyEndAllowThreads(__tstate); |
3500 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3501 | } if (_result) { |
3502 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3503 | _resultobj = Py_BuildValue("s",_ptemp); | |
3504 | } else { | |
3505 | Py_INCREF(Py_None); | |
3506 | _resultobj = Py_None; | |
3507 | } | |
3508 | return _resultobj; | |
3509 | } | |
3510 | ||
3511 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3512 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3513 | PyObject * _resultobj; | |
3514 | wxMutexGuiLocker * _arg0; | |
3515 | PyObject * _argo0 = 0; | |
3516 | char *_kwnames[] = { "self", NULL }; | |
3517 | ||
3518 | self = self; | |
3519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3520 | return NULL; | |
3521 | if (_argo0) { | |
3522 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3523 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3524 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3525 | return NULL; | |
3526 | } | |
3527 | } | |
3528 | { | |
4268f798 | 3529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6e18ca6c RD |
3530 | delete_wxMutexGuiLocker(_arg0); |
3531 | ||
4268f798 RD |
3532 | wxPyEndAllowThreads(__tstate); |
3533 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3534 | } Py_INCREF(Py_None); |
3535 | _resultobj = Py_None; | |
3536 | return _resultobj; | |
3537 | } | |
3538 | ||
f6bcfd97 BP |
3539 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3540 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3541 | PyObject * _resultobj; | |
3542 | wxTipProvider * _arg0; | |
3543 | PyObject * _argo0 = 0; | |
3544 | char *_kwnames[] = { "self", NULL }; | |
3545 | ||
3546 | self = self; | |
3547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3548 | return NULL; | |
3549 | if (_argo0) { | |
3550 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3551 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3552 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3553 | return NULL; | |
3554 | } | |
3555 | } | |
3556 | { | |
4268f798 | 3557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3558 | delete_wxTipProvider(_arg0); |
3559 | ||
4268f798 RD |
3560 | wxPyEndAllowThreads(__tstate); |
3561 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3562 | } Py_INCREF(Py_None); |
3563 | _resultobj = Py_None; | |
3564 | return _resultobj; | |
3565 | } | |
3566 | ||
3567 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3568 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3569 | PyObject * _resultobj; | |
3570 | wxString * _result; | |
3571 | wxTipProvider * _arg0; | |
3572 | PyObject * _argo0 = 0; | |
3573 | char *_kwnames[] = { "self", NULL }; | |
3574 | ||
3575 | self = self; | |
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3577 | return NULL; | |
3578 | if (_argo0) { | |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | { | |
4268f798 | 3586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3587 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
3588 | ||
4268f798 RD |
3589 | wxPyEndAllowThreads(__tstate); |
3590 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3591 | }{ |
3592 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3593 | } | |
3594 | { | |
3595 | delete _result; | |
3596 | } | |
3597 | return _resultobj; | |
3598 | } | |
3599 | ||
3600 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3601 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3602 | PyObject * _resultobj; | |
3603 | size_t _result; | |
3604 | wxTipProvider * _arg0; | |
3605 | PyObject * _argo0 = 0; | |
3606 | char *_kwnames[] = { "self", NULL }; | |
3607 | ||
3608 | self = self; | |
3609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3610 | return NULL; | |
3611 | if (_argo0) { | |
3612 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3613 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3614 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3615 | return NULL; | |
3616 | } | |
3617 | } | |
3618 | { | |
4268f798 | 3619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3620 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
3621 | ||
4268f798 RD |
3622 | wxPyEndAllowThreads(__tstate); |
3623 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3624 | } _resultobj = Py_BuildValue("i",_result); |
3625 | return _resultobj; | |
3626 | } | |
3627 | ||
3628 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3629 | wxPyTipProvider *src; | |
3630 | wxTipProvider *dest; | |
3631 | src = (wxPyTipProvider *) ptr; | |
3632 | dest = (wxTipProvider *) src; | |
3633 | return (void *) dest; | |
3634 | } | |
3635 | ||
3636 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3637 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3638 | PyObject * _resultobj; | |
3639 | wxPyTipProvider * _result; | |
3640 | size_t _arg0; | |
3641 | char *_kwnames[] = { "currentTip", NULL }; | |
3642 | char _ptemp[128]; | |
3643 | ||
3644 | self = self; | |
3645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3646 | return NULL; | |
3647 | { | |
4268f798 | 3648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3649 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
3650 | ||
4268f798 RD |
3651 | wxPyEndAllowThreads(__tstate); |
3652 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3653 | } if (_result) { |
3654 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3655 | _resultobj = Py_BuildValue("s",_ptemp); | |
3656 | } else { | |
3657 | Py_INCREF(Py_None); | |
3658 | _resultobj = Py_None; | |
3659 | } | |
3660 | return _resultobj; | |
3661 | } | |
3662 | ||
9416aa89 RD |
3663 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3664 | wxGenericDragImage *src; | |
3665 | wxObject *dest; | |
3666 | src = (wxGenericDragImage *) ptr; | |
3667 | dest = (wxObject *) src; | |
3668 | return (void *) dest; | |
3669 | } | |
3670 | ||
10e07c70 | 3671 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3672 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3673 | PyObject * _resultobj; | |
3674 | wxGenericDragImage * _result; | |
3675 | wxBitmap * _arg0; | |
3676 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3677 | PyObject * _argo0 = 0; |
3678 | PyObject * _argo1 = 0; | |
10e07c70 | 3679 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3680 | char _ptemp[128]; |
3681 | ||
3682 | self = self; | |
10e07c70 | 3683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3684 | return NULL; |
3685 | if (_argo0) { | |
3686 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3687 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3688 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3689 | return NULL; | |
3690 | } | |
3691 | } | |
3692 | if (_argo1) { | |
3693 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3694 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3696 | return NULL; | |
3697 | } | |
3698 | } | |
f6bcfd97 | 3699 | { |
4268f798 | 3700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10e07c70 | 3701 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3702 | |
4268f798 RD |
3703 | wxPyEndAllowThreads(__tstate); |
3704 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3705 | } if (_result) { |
3706 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3707 | _resultobj = Py_BuildValue("s",_ptemp); | |
3708 | } else { | |
3709 | Py_INCREF(Py_None); | |
3710 | _resultobj = Py_None; | |
3711 | } | |
3712 | return _resultobj; | |
3713 | } | |
3714 | ||
cdf14688 RD |
3715 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3716 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3717 | PyObject * _resultobj; | |
3718 | wxGenericDragImage * _result; | |
3719 | wxIcon * _arg0; | |
3720 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3721 | PyObject * _argo0 = 0; | |
3722 | PyObject * _argo1 = 0; | |
3723 | char *_kwnames[] = { "image","cursor", NULL }; | |
3724 | char _ptemp[128]; | |
3725 | ||
3726 | self = self; | |
3727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3728 | return NULL; | |
3729 | if (_argo0) { | |
3730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3733 | return NULL; | |
3734 | } | |
3735 | } | |
3736 | if (_argo1) { | |
3737 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3738 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3739 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3740 | return NULL; | |
3741 | } | |
3742 | } | |
3743 | { | |
4268f798 | 3744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cdf14688 RD |
3745 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
3746 | ||
4268f798 RD |
3747 | wxPyEndAllowThreads(__tstate); |
3748 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3749 | } if (_result) { |
3750 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3751 | _resultobj = Py_BuildValue("s",_ptemp); | |
3752 | } else { | |
3753 | Py_INCREF(Py_None); | |
3754 | _resultobj = Py_None; | |
3755 | } | |
3756 | return _resultobj; | |
3757 | } | |
3758 | ||
3759 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3760 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3761 | PyObject * _resultobj; | |
3762 | wxGenericDragImage * _result; | |
3763 | wxString * _arg0; | |
3764 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3765 | PyObject * _obj0 = 0; | |
3766 | PyObject * _argo1 = 0; | |
3767 | char *_kwnames[] = { "str","cursor", NULL }; | |
3768 | char _ptemp[128]; | |
3769 | ||
3770 | self = self; | |
3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3772 | return NULL; | |
3773 | { | |
3774 | #if PYTHON_API_VERSION >= 1009 | |
3775 | char* tmpPtr; int tmpSize; | |
3776 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
3777 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3778 | return NULL; | |
3779 | } | |
3780 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
3781 | return NULL; | |
3782 | _arg0 = new wxString(tmpPtr, tmpSize); | |
3783 | #else | |
3784 | if (!PyString_Check(_obj0)) { | |
3785 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
3786 | return NULL; | |
3787 | } | |
3788 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
3789 | #endif | |
3790 | } | |
3791 | if (_argo1) { | |
3792 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3793 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3794 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3795 | return NULL; | |
3796 | } | |
3797 | } | |
3798 | { | |
4268f798 | 3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cdf14688 RD |
3800 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
3801 | ||
4268f798 RD |
3802 | wxPyEndAllowThreads(__tstate); |
3803 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3804 | } if (_result) { |
3805 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3806 | _resultobj = Py_BuildValue("s",_ptemp); | |
3807 | } else { | |
3808 | Py_INCREF(Py_None); | |
3809 | _resultobj = Py_None; | |
3810 | } | |
3811 | { | |
3812 | if (_obj0) | |
3813 | delete _arg0; | |
3814 | } | |
3815 | return _resultobj; | |
3816 | } | |
3817 | ||
3818 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3819 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3820 | PyObject * _resultobj; | |
3821 | wxGenericDragImage * _result; | |
3822 | wxTreeCtrl * _arg0; | |
3823 | wxTreeItemId * _arg1; | |
3824 | PyObject * _argo0 = 0; | |
3825 | PyObject * _argo1 = 0; | |
3826 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3827 | char _ptemp[128]; | |
3828 | ||
3829 | self = self; | |
3830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3831 | return NULL; | |
3832 | if (_argo0) { | |
3833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3836 | return NULL; | |
3837 | } | |
3838 | } | |
3839 | if (_argo1) { | |
3840 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3841 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3842 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3843 | return NULL; | |
3844 | } | |
3845 | } | |
3846 | { | |
4268f798 | 3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cdf14688 RD |
3848 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
3849 | ||
4268f798 RD |
3850 | wxPyEndAllowThreads(__tstate); |
3851 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3852 | } if (_result) { |
3853 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3854 | _resultobj = Py_BuildValue("s",_ptemp); | |
3855 | } else { | |
3856 | Py_INCREF(Py_None); | |
3857 | _resultobj = Py_None; | |
3858 | } | |
3859 | return _resultobj; | |
3860 | } | |
3861 | ||
3862 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3863 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3864 | PyObject * _resultobj; | |
3865 | wxGenericDragImage * _result; | |
3866 | wxListCtrl * _arg0; | |
3867 | long _arg1; | |
3868 | PyObject * _argo0 = 0; | |
3869 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3870 | char _ptemp[128]; | |
3871 | ||
3872 | self = self; | |
3873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3874 | return NULL; | |
3875 | if (_argo0) { | |
3876 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3877 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3878 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3879 | return NULL; | |
3880 | } | |
3881 | } | |
3882 | { | |
4268f798 | 3883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
cdf14688 RD |
3884 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
3885 | ||
4268f798 RD |
3886 | wxPyEndAllowThreads(__tstate); |
3887 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3888 | } if (_result) { |
3889 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3890 | _resultobj = Py_BuildValue("s",_ptemp); | |
3891 | } else { | |
3892 | Py_INCREF(Py_None); | |
3893 | _resultobj = Py_None; | |
3894 | } | |
3895 | return _resultobj; | |
3896 | } | |
3897 | ||
f6bcfd97 BP |
3898 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3899 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3900 | PyObject * _resultobj; | |
3901 | wxGenericDragImage * _arg0; | |
3902 | PyObject * _argo0 = 0; | |
3903 | char *_kwnames[] = { "self", NULL }; | |
3904 | ||
3905 | self = self; | |
3906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3907 | return NULL; | |
3908 | if (_argo0) { | |
3909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3912 | return NULL; | |
3913 | } | |
3914 | } | |
3915 | { | |
4268f798 | 3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
3917 | delete_wxGenericDragImage(_arg0); |
3918 | ||
4268f798 RD |
3919 | wxPyEndAllowThreads(__tstate); |
3920 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3921 | } Py_INCREF(Py_None); |
3922 | _resultobj = Py_None; | |
3923 | return _resultobj; | |
3924 | } | |
3925 | ||
10e07c70 RD |
3926 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3927 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3928 | PyObject * _resultobj; | |
3929 | wxGenericDragImage * _arg0; | |
3930 | wxBitmap * _arg1; | |
3931 | PyObject * _argo0 = 0; | |
3932 | PyObject * _argo1 = 0; | |
3933 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3934 | ||
3935 | self = self; | |
3936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3937 | return NULL; | |
3938 | if (_argo0) { | |
3939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3942 | return NULL; | |
3943 | } | |
3944 | } | |
3945 | if (_argo1) { | |
3946 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3947 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3948 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3949 | return NULL; | |
3950 | } | |
3951 | } | |
3952 | { | |
4268f798 | 3953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10e07c70 RD |
3954 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
3955 | ||
4268f798 RD |
3956 | wxPyEndAllowThreads(__tstate); |
3957 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
3958 | } Py_INCREF(Py_None); |
3959 | _resultobj = Py_None; | |
3960 | return _resultobj; | |
3961 | } | |
3962 | ||
f6bcfd97 BP |
3963 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3964 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3965 | PyObject * _resultobj; | |
3966 | bool _result; | |
3967 | wxGenericDragImage * _arg0; | |
3968 | wxPoint * _arg1; | |
3969 | wxWindow * _arg2; | |
3970 | bool _arg3 = (bool ) FALSE; | |
3971 | wxRect * _arg4 = (wxRect *) NULL; | |
3972 | PyObject * _argo0 = 0; | |
3973 | wxPoint temp; | |
3974 | PyObject * _obj1 = 0; | |
3975 | PyObject * _argo2 = 0; | |
3976 | int tempbool3 = (int) FALSE; | |
3977 | wxRect temp0; | |
3978 | PyObject * _obj4 = 0; | |
3979 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3980 | ||
3981 | self = self; | |
3982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3983 | return NULL; | |
3984 | if (_argo0) { | |
3985 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3986 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3987 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3988 | return NULL; | |
3989 | } | |
3990 | } | |
3991 | { | |
3992 | _arg1 = &temp; | |
3993 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3994 | return NULL; | |
3995 | } | |
3996 | if (_argo2) { | |
3997 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3998 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3999 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
4000 | return NULL; | |
4001 | } | |
4002 | } | |
4003 | _arg3 = (bool ) tempbool3; | |
4004 | if (_obj4) | |
4005 | { | |
4006 | _arg4 = &temp0; | |
4007 | if (! wxRect_helper(_obj4, &_arg4)) | |
4008 | return NULL; | |
4009 | } | |
4010 | { | |
4268f798 | 4011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4012 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
4013 | ||
4268f798 RD |
4014 | wxPyEndAllowThreads(__tstate); |
4015 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4016 | } _resultobj = Py_BuildValue("i",_result); |
4017 | return _resultobj; | |
4018 | } | |
4019 | ||
4020 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
4021 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4022 | PyObject * _resultobj; | |
4023 | bool _result; | |
4024 | wxGenericDragImage * _arg0; | |
4025 | wxPoint * _arg1; | |
4026 | wxWindow * _arg2; | |
4027 | wxWindow * _arg3; | |
4028 | PyObject * _argo0 = 0; | |
4029 | wxPoint temp; | |
4030 | PyObject * _obj1 = 0; | |
4031 | PyObject * _argo2 = 0; | |
4032 | PyObject * _argo3 = 0; | |
4033 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
4034 | ||
4035 | self = self; | |
4036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
4037 | return NULL; | |
4038 | if (_argo0) { | |
4039 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4040 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
4042 | return NULL; | |
4043 | } | |
4044 | } | |
4045 | { | |
4046 | _arg1 = &temp; | |
4047 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4048 | return NULL; | |
4049 | } | |
4050 | if (_argo2) { | |
4051 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4052 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
4053 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4054 | return NULL; | |
4055 | } | |
4056 | } | |
4057 | if (_argo3) { | |
4058 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
4059 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
4060 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
4061 | return NULL; | |
4062 | } | |
4063 | } | |
4064 | { | |
4268f798 | 4065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4066 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
4067 | ||
4268f798 RD |
4068 | wxPyEndAllowThreads(__tstate); |
4069 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4070 | } _resultobj = Py_BuildValue("i",_result); |
4071 | return _resultobj; | |
4072 | } | |
4073 | ||
4074 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
4075 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4076 | PyObject * _resultobj; | |
4077 | bool _result; | |
4078 | wxGenericDragImage * _arg0; | |
4079 | PyObject * _argo0 = 0; | |
4080 | char *_kwnames[] = { "self", NULL }; | |
4081 | ||
4082 | self = self; | |
4083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
4084 | return NULL; | |
4085 | if (_argo0) { | |
4086 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4087 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4088 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
4089 | return NULL; | |
4090 | } | |
4091 | } | |
4092 | { | |
4268f798 | 4093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4094 | _result = (bool )wxDragImage_EndDrag(_arg0); |
4095 | ||
4268f798 RD |
4096 | wxPyEndAllowThreads(__tstate); |
4097 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4098 | } _resultobj = Py_BuildValue("i",_result); |
4099 | return _resultobj; | |
4100 | } | |
4101 | ||
4102 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
4103 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4104 | PyObject * _resultobj; | |
4105 | bool _result; | |
4106 | wxGenericDragImage * _arg0; | |
4107 | wxPoint * _arg1; | |
4108 | PyObject * _argo0 = 0; | |
4109 | wxPoint temp; | |
4110 | PyObject * _obj1 = 0; | |
4111 | char *_kwnames[] = { "self","pt", NULL }; | |
4112 | ||
4113 | self = self; | |
4114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
4115 | return NULL; | |
4116 | if (_argo0) { | |
4117 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4118 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4119 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
4120 | return NULL; | |
4121 | } | |
4122 | } | |
4123 | { | |
4124 | _arg1 = &temp; | |
4125 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4126 | return NULL; | |
4127 | } | |
4128 | { | |
4268f798 | 4129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4130 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
4131 | ||
4268f798 RD |
4132 | wxPyEndAllowThreads(__tstate); |
4133 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4134 | } _resultobj = Py_BuildValue("i",_result); |
4135 | return _resultobj; | |
4136 | } | |
4137 | ||
4138 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
4139 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4140 | PyObject * _resultobj; | |
4141 | bool _result; | |
4142 | wxGenericDragImage * _arg0; | |
4143 | PyObject * _argo0 = 0; | |
4144 | char *_kwnames[] = { "self", NULL }; | |
4145 | ||
4146 | self = self; | |
4147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4148 | return NULL; | |
4149 | if (_argo0) { | |
4150 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4151 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4152 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4153 | return NULL; | |
4154 | } | |
4155 | } | |
4156 | { | |
4268f798 | 4157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4158 | _result = (bool )wxDragImage_Show(_arg0); |
4159 | ||
4268f798 RD |
4160 | wxPyEndAllowThreads(__tstate); |
4161 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4162 | } _resultobj = Py_BuildValue("i",_result); |
4163 | return _resultobj; | |
4164 | } | |
4165 | ||
4166 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4167 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4168 | PyObject * _resultobj; | |
4169 | bool _result; | |
4170 | wxGenericDragImage * _arg0; | |
4171 | PyObject * _argo0 = 0; | |
4172 | char *_kwnames[] = { "self", NULL }; | |
4173 | ||
4174 | self = self; | |
4175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4176 | return NULL; | |
4177 | if (_argo0) { | |
4178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4181 | return NULL; | |
4182 | } | |
4183 | } | |
4184 | { | |
4268f798 | 4185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4186 | _result = (bool )wxDragImage_Hide(_arg0); |
4187 | ||
4268f798 RD |
4188 | wxPyEndAllowThreads(__tstate); |
4189 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4190 | } _resultobj = Py_BuildValue("i",_result); |
4191 | return _resultobj; | |
4192 | } | |
4193 | ||
4194 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4195 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4196 | PyObject * _resultobj; | |
4197 | wxRect * _result; | |
4198 | wxGenericDragImage * _arg0; | |
4199 | wxPoint * _arg1; | |
4200 | PyObject * _argo0 = 0; | |
4201 | wxPoint temp; | |
4202 | PyObject * _obj1 = 0; | |
4203 | char *_kwnames[] = { "self","pos", NULL }; | |
4204 | char _ptemp[128]; | |
4205 | ||
4206 | self = self; | |
4207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4208 | return NULL; | |
4209 | if (_argo0) { | |
4210 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4211 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4212 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4213 | return NULL; | |
4214 | } | |
4215 | } | |
4216 | { | |
4217 | _arg1 = &temp; | |
4218 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4219 | return NULL; | |
4220 | } | |
4221 | { | |
4268f798 | 4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4223 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
4224 | ||
4268f798 RD |
4225 | wxPyEndAllowThreads(__tstate); |
4226 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4227 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4228 | _resultobj = Py_BuildValue("s",_ptemp); | |
4229 | return _resultobj; | |
4230 | } | |
4231 | ||
4232 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4233 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4234 | PyObject * _resultobj; | |
4235 | bool _result; | |
4236 | wxGenericDragImage * _arg0; | |
4237 | wxPoint * _arg1; | |
4238 | wxPoint * _arg2; | |
4239 | bool _arg3; | |
4240 | bool _arg4; | |
4241 | PyObject * _argo0 = 0; | |
4242 | wxPoint temp; | |
4243 | PyObject * _obj1 = 0; | |
4244 | wxPoint temp0; | |
4245 | PyObject * _obj2 = 0; | |
4246 | int tempbool3; | |
4247 | int tempbool4; | |
4248 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4249 | ||
4250 | self = self; | |
4251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4252 | return NULL; | |
4253 | if (_argo0) { | |
4254 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4255 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4256 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4257 | return NULL; | |
4258 | } | |
4259 | } | |
4260 | { | |
4261 | _arg1 = &temp; | |
4262 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4263 | return NULL; | |
4264 | } | |
4265 | { | |
4266 | _arg2 = &temp0; | |
4267 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4268 | return NULL; | |
4269 | } | |
4270 | _arg3 = (bool ) tempbool3; | |
4271 | _arg4 = (bool ) tempbool4; | |
4272 | { | |
4268f798 | 4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4274 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
4275 | ||
4268f798 RD |
4276 | wxPyEndAllowThreads(__tstate); |
4277 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4278 | } _resultobj = Py_BuildValue("i",_result); |
4279 | return _resultobj; | |
4280 | } | |
4281 | ||
9416aa89 RD |
4282 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4283 | wxPyTimer *src; | |
4284 | wxObject *dest; | |
4285 | src = (wxPyTimer *) ptr; | |
4286 | dest = (wxObject *) src; | |
4287 | return (void *) dest; | |
4288 | } | |
4289 | ||
f6bcfd97 BP |
4290 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4291 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4292 | PyObject * _resultobj; | |
4293 | wxPyTimer * _result; | |
4294 | PyObject * _arg0; | |
4295 | PyObject * _obj0 = 0; | |
4296 | char *_kwnames[] = { "notify", NULL }; | |
4297 | char _ptemp[128]; | |
4298 | ||
4299 | self = self; | |
4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4301 | return NULL; | |
4302 | { | |
4303 | _arg0 = _obj0; | |
4304 | } | |
4305 | { | |
4268f798 | 4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4307 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
4308 | ||
4268f798 RD |
4309 | wxPyEndAllowThreads(__tstate); |
4310 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4311 | } if (_result) { |
4312 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4313 | _resultobj = Py_BuildValue("s",_ptemp); | |
4314 | } else { | |
4315 | Py_INCREF(Py_None); | |
4316 | _resultobj = Py_None; | |
4317 | } | |
4318 | return _resultobj; | |
4319 | } | |
4320 | ||
4321 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4322 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4323 | PyObject * _resultobj; | |
4324 | wxPyTimer * _arg0; | |
4325 | PyObject * _argo0 = 0; | |
4326 | char *_kwnames[] = { "self", NULL }; | |
4327 | ||
4328 | self = self; | |
4329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4330 | return NULL; | |
4331 | if (_argo0) { | |
4332 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4333 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4334 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4335 | return NULL; | |
4336 | } | |
4337 | } | |
4338 | { | |
4268f798 | 4339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4340 | delete_wxPyTimer(_arg0); |
4341 | ||
4268f798 RD |
4342 | wxPyEndAllowThreads(__tstate); |
4343 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4344 | } Py_INCREF(Py_None); |
4345 | _resultobj = Py_None; | |
4346 | return _resultobj; | |
4347 | } | |
4348 | ||
4349 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4350 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4351 | PyObject * _resultobj; | |
4352 | int _result; | |
4353 | wxPyTimer * _arg0; | |
4354 | PyObject * _argo0 = 0; | |
4355 | char *_kwnames[] = { "self", NULL }; | |
4356 | ||
4357 | self = self; | |
4358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4359 | return NULL; | |
4360 | if (_argo0) { | |
4361 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4362 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4363 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4364 | return NULL; | |
4365 | } | |
4366 | } | |
4367 | { | |
4268f798 | 4368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4369 | _result = (int )wxPyTimer_GetInterval(_arg0); |
4370 | ||
4268f798 RD |
4371 | wxPyEndAllowThreads(__tstate); |
4372 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4373 | } _resultobj = Py_BuildValue("i",_result); |
4374 | return _resultobj; | |
4375 | } | |
4376 | ||
4377 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4378 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4379 | PyObject * _resultobj; | |
4380 | bool _result; | |
4381 | wxPyTimer * _arg0; | |
4382 | PyObject * _argo0 = 0; | |
4383 | char *_kwnames[] = { "self", NULL }; | |
4384 | ||
4385 | self = self; | |
4386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4387 | return NULL; | |
4388 | if (_argo0) { | |
4389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4392 | return NULL; | |
4393 | } | |
4394 | } | |
4395 | { | |
4268f798 | 4396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4397 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
4398 | ||
4268f798 RD |
4399 | wxPyEndAllowThreads(__tstate); |
4400 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4401 | } _resultobj = Py_BuildValue("i",_result); |
4402 | return _resultobj; | |
4403 | } | |
4404 | ||
4405 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4406 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4407 | PyObject * _resultobj; | |
4408 | bool _result; | |
4409 | wxPyTimer * _arg0; | |
4410 | PyObject * _argo0 = 0; | |
4411 | char *_kwnames[] = { "self", NULL }; | |
4412 | ||
4413 | self = self; | |
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4415 | return NULL; | |
4416 | if (_argo0) { | |
4417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4420 | return NULL; | |
4421 | } | |
4422 | } | |
4423 | { | |
4268f798 | 4424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4425 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
4426 | ||
4268f798 RD |
4427 | wxPyEndAllowThreads(__tstate); |
4428 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4429 | } _resultobj = Py_BuildValue("i",_result); |
4430 | return _resultobj; | |
4431 | } | |
4432 | ||
4433 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4434 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4435 | PyObject * _resultobj; | |
4436 | wxPyTimer * _arg0; | |
4437 | wxEvtHandler * _arg1; | |
4438 | int _arg2 = (int ) -1; | |
4439 | PyObject * _argo0 = 0; | |
4440 | PyObject * _argo1 = 0; | |
4441 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4442 | ||
4443 | self = self; | |
4444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4445 | return NULL; | |
4446 | if (_argo0) { | |
4447 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4448 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4449 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4450 | return NULL; | |
4451 | } | |
4452 | } | |
4453 | if (_argo1) { | |
4454 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4455 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4457 | return NULL; | |
4458 | } | |
4459 | } | |
4460 | { | |
4268f798 | 4461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4462 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
4463 | ||
4268f798 RD |
4464 | wxPyEndAllowThreads(__tstate); |
4465 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4466 | } Py_INCREF(Py_None); |
4467 | _resultobj = Py_None; | |
4468 | return _resultobj; | |
4469 | } | |
4470 | ||
4471 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4472 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4473 | PyObject * _resultobj; | |
4474 | wxPyTimer * _arg0; | |
4475 | int _arg1 = (int ) -1; | |
4476 | int _arg2 = (int ) FALSE; | |
4477 | PyObject * _argo0 = 0; | |
4478 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4479 | ||
4480 | self = self; | |
4481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4482 | return NULL; | |
4483 | if (_argo0) { | |
4484 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4485 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4486 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4487 | return NULL; | |
4488 | } | |
4489 | } | |
4490 | { | |
4268f798 | 4491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4492 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
4493 | ||
4268f798 RD |
4494 | wxPyEndAllowThreads(__tstate); |
4495 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4496 | } Py_INCREF(Py_None); |
4497 | _resultobj = Py_None; | |
4498 | return _resultobj; | |
4499 | } | |
4500 | ||
4501 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4502 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject * _resultobj; | |
4504 | wxPyTimer * _arg0; | |
f0261a72 RD |
4505 | PyObject * _argo0 = 0; |
4506 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4507 | |
4508 | self = self; | |
f6bcfd97 | 4509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4510 | return NULL; |
4511 | if (_argo0) { | |
4512 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4513 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4514 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4515 | return NULL; |
4516 | } | |
4517 | } | |
4518 | { | |
4268f798 | 4519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 4520 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4521 | |
4268f798 RD |
4522 | wxPyEndAllowThreads(__tstate); |
4523 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4524 | } Py_INCREF(Py_None); |
4525 | _resultobj = Py_None; | |
f0261a72 RD |
4526 | return _resultobj; |
4527 | } | |
4528 | ||
b37c7e1d RD |
4529 | #define new_wxStopWatch() (new wxStopWatch()) |
4530 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4531 | PyObject * _resultobj; | |
4532 | wxStopWatch * _result; | |
4533 | char *_kwnames[] = { NULL }; | |
4534 | char _ptemp[128]; | |
4535 | ||
4536 | self = self; | |
4537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4538 | return NULL; | |
4539 | { | |
4268f798 | 4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
4541 | _result = (wxStopWatch *)new_wxStopWatch(); |
4542 | ||
4268f798 RD |
4543 | wxPyEndAllowThreads(__tstate); |
4544 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4545 | } if (_result) { |
4546 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4547 | _resultobj = Py_BuildValue("s",_ptemp); | |
4548 | } else { | |
4549 | Py_INCREF(Py_None); | |
4550 | _resultobj = Py_None; | |
4551 | } | |
4552 | return _resultobj; | |
4553 | } | |
4554 | ||
4555 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) | |
4556 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4557 | PyObject * _resultobj; | |
4558 | wxStopWatch * _arg0; | |
4559 | long _arg1 = (long ) 0; | |
4560 | PyObject * _argo0 = 0; | |
4561 | char *_kwnames[] = { "self","t", NULL }; | |
4562 | ||
4563 | self = self; | |
4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4565 | return NULL; | |
4566 | if (_argo0) { | |
4567 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4568 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4569 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4570 | return NULL; | |
4571 | } | |
4572 | } | |
4573 | { | |
4268f798 | 4574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
4575 | wxStopWatch_Start(_arg0,_arg1); |
4576 | ||
4268f798 RD |
4577 | wxPyEndAllowThreads(__tstate); |
4578 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4579 | } Py_INCREF(Py_None); |
4580 | _resultobj = Py_None; | |
4581 | return _resultobj; | |
4582 | } | |
4583 | ||
4584 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4585 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4586 | PyObject * _resultobj; | |
4587 | wxStopWatch * _arg0; | |
4588 | PyObject * _argo0 = 0; | |
4589 | char *_kwnames[] = { "self", NULL }; | |
4590 | ||
4591 | self = self; | |
4592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4593 | return NULL; | |
4594 | if (_argo0) { | |
4595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4598 | return NULL; | |
4599 | } | |
4600 | } | |
4601 | { | |
4268f798 | 4602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
4603 | wxStopWatch_Pause(_arg0); |
4604 | ||
4268f798 RD |
4605 | wxPyEndAllowThreads(__tstate); |
4606 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4607 | } Py_INCREF(Py_None); |
4608 | _resultobj = Py_None; | |
4609 | return _resultobj; | |
4610 | } | |
4611 | ||
4612 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4613 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4614 | PyObject * _resultobj; | |
4615 | wxStopWatch * _arg0; | |
4616 | PyObject * _argo0 = 0; | |
4617 | char *_kwnames[] = { "self", NULL }; | |
4618 | ||
4619 | self = self; | |
4620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4621 | return NULL; | |
4622 | if (_argo0) { | |
4623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4626 | return NULL; | |
4627 | } | |
4628 | } | |
4629 | { | |
4268f798 | 4630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
4631 | wxStopWatch_Resume(_arg0); |
4632 | ||
4268f798 RD |
4633 | wxPyEndAllowThreads(__tstate); |
4634 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4635 | } Py_INCREF(Py_None); |
4636 | _resultobj = Py_None; | |
4637 | return _resultobj; | |
4638 | } | |
4639 | ||
4640 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4641 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4642 | PyObject * _resultobj; | |
4643 | long _result; | |
4644 | wxStopWatch * _arg0; | |
4645 | PyObject * _argo0 = 0; | |
4646 | char *_kwnames[] = { "self", NULL }; | |
4647 | ||
4648 | self = self; | |
4649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4650 | return NULL; | |
4651 | if (_argo0) { | |
4652 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4653 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4654 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4655 | return NULL; | |
4656 | } | |
4657 | } | |
4658 | { | |
4268f798 | 4659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
4660 | _result = (long )wxStopWatch_Time(_arg0); |
4661 | ||
4268f798 RD |
4662 | wxPyEndAllowThreads(__tstate); |
4663 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4664 | } _resultobj = Py_BuildValue("l",_result); |
4665 | return _resultobj; | |
4666 | } | |
4667 | ||
f6bcfd97 BP |
4668 | #define new_wxLog() (new wxLog()) |
4669 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4670 | PyObject * _resultobj; |
f6bcfd97 BP |
4671 | wxLog * _result; |
4672 | char *_kwnames[] = { NULL }; | |
4673 | char _ptemp[128]; | |
f0261a72 RD |
4674 | |
4675 | self = self; | |
f6bcfd97 BP |
4676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4677 | return NULL; | |
f0261a72 | 4678 | { |
4268f798 | 4679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4680 | _result = (wxLog *)new_wxLog(); |
4681 | ||
4268f798 RD |
4682 | wxPyEndAllowThreads(__tstate); |
4683 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4684 | } if (_result) { |
4685 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4686 | _resultobj = Py_BuildValue("s",_ptemp); | |
4687 | } else { | |
4688 | Py_INCREF(Py_None); | |
4689 | _resultobj = Py_None; | |
4690 | } | |
4691 | return _resultobj; | |
f0261a72 | 4692 | } |
f6bcfd97 BP |
4693 | |
4694 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4695 | PyObject * _resultobj; | |
4696 | bool _result; | |
4697 | char *_kwnames[] = { NULL }; | |
4698 | ||
4699 | self = self; | |
4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4701 | return NULL; | |
f0261a72 | 4702 | { |
4268f798 | 4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4704 | _result = (bool )wxLog::IsEnabled(); |
4705 | ||
4268f798 RD |
4706 | wxPyEndAllowThreads(__tstate); |
4707 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4708 | } _resultobj = Py_BuildValue("i",_result); |
4709 | return _resultobj; | |
f0261a72 | 4710 | } |
f6bcfd97 BP |
4711 | |
4712 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4713 | PyObject * _resultobj; | |
4714 | bool _result; | |
4715 | bool _arg0 = (bool ) TRUE; | |
4716 | int tempbool0 = (int) TRUE; | |
4717 | char *_kwnames[] = { "doIt", NULL }; | |
4718 | ||
4719 | self = self; | |
4720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4721 | return NULL; | |
4722 | _arg0 = (bool ) tempbool0; | |
4723 | { | |
4268f798 | 4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4725 | _result = (bool )wxLog::EnableLogging(_arg0); |
4726 | ||
4268f798 RD |
4727 | wxPyEndAllowThreads(__tstate); |
4728 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4729 | } _resultobj = Py_BuildValue("i",_result); |
4730 | return _resultobj; | |
4731 | } | |
4732 | ||
4733 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4734 | PyObject * _resultobj; | |
4735 | wxLogLevel * _arg0; | |
4736 | char * _arg1; | |
4737 | int _arg2 = (int ) 0; | |
4738 | PyObject * _argo0 = 0; | |
4739 | char *_kwnames[] = { "level","szString","t", NULL }; | |
4740 | ||
4741 | self = self; | |
4742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2)) | |
f0261a72 RD |
4743 | return NULL; |
4744 | if (_argo0) { | |
4745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
4747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
f0261a72 RD |
4748 | return NULL; |
4749 | } | |
4750 | } | |
4751 | { | |
4268f798 | 4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 4753 | wxLog::OnLog(*_arg0,_arg1,_arg2); |
f0261a72 | 4754 | |
4268f798 RD |
4755 | wxPyEndAllowThreads(__tstate); |
4756 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4757 | } Py_INCREF(Py_None); |
4758 | _resultobj = Py_None; | |
f6bcfd97 | 4759 | return _resultobj; |
f0261a72 | 4760 | } |
f6bcfd97 BP |
4761 | |
4762 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4763 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4764 | PyObject * _resultobj; | |
4765 | wxLog * _arg0; | |
4766 | PyObject * _argo0 = 0; | |
4767 | char *_kwnames[] = { "self", NULL }; | |
4768 | ||
4769 | self = self; | |
4770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4771 | return NULL; | |
4772 | if (_argo0) { | |
4773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4776 | return NULL; | |
4777 | } | |
4778 | } | |
f0261a72 | 4779 | { |
4268f798 | 4780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4781 | wxLog_Flush(_arg0); |
4782 | ||
4268f798 RD |
4783 | wxPyEndAllowThreads(__tstate); |
4784 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4785 | } Py_INCREF(Py_None); |
4786 | _resultobj = Py_None; | |
f0261a72 RD |
4787 | return _resultobj; |
4788 | } | |
4789 | ||
f6bcfd97 BP |
4790 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4791 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4792 | PyObject * _resultobj; |
f6bcfd97 BP |
4793 | bool _result; |
4794 | wxLog * _arg0; | |
f0261a72 RD |
4795 | PyObject * _argo0 = 0; |
4796 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4797 | |
4798 | self = self; | |
f6bcfd97 | 4799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4800 | return NULL; |
4801 | if (_argo0) { | |
4802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4805 | return NULL; |
4806 | } | |
4807 | } | |
4808 | { | |
4268f798 | 4809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 4810 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 | 4811 | |
4268f798 RD |
4812 | wxPyEndAllowThreads(__tstate); |
4813 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4814 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4815 | return _resultobj; |
4816 | } | |
4817 | ||
f6bcfd97 | 4818 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4819 | PyObject * _resultobj; |
f6bcfd97 BP |
4820 | char *_kwnames[] = { NULL }; |
4821 | ||
4822 | self = self; | |
4823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4824 | return NULL; | |
4825 | { | |
4268f798 | 4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4827 | wxLog::FlushActive(); |
4828 | ||
4268f798 RD |
4829 | wxPyEndAllowThreads(__tstate); |
4830 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4831 | } Py_INCREF(Py_None); |
4832 | _resultobj = Py_None; | |
4833 | return _resultobj; | |
4834 | } | |
4835 | ||
4836 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4837 | PyObject * _resultobj; | |
4838 | wxLog * _result; | |
4839 | char *_kwnames[] = { NULL }; | |
4840 | char _ptemp[128]; | |
4841 | ||
4842 | self = self; | |
4843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4844 | return NULL; | |
4845 | { | |
4268f798 | 4846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4847 | _result = (wxLog *)wxLog::GetActiveTarget(); |
4848 | ||
4268f798 RD |
4849 | wxPyEndAllowThreads(__tstate); |
4850 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4851 | } if (_result) { |
4852 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4853 | _resultobj = Py_BuildValue("s",_ptemp); | |
4854 | } else { | |
4855 | Py_INCREF(Py_None); | |
4856 | _resultobj = Py_None; | |
4857 | } | |
4858 | return _resultobj; | |
4859 | } | |
4860 | ||
4861 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4862 | PyObject * _resultobj; | |
4863 | wxLog * _result; | |
4864 | wxLog * _arg0; | |
f0261a72 | 4865 | PyObject * _argo0 = 0; |
f6bcfd97 | 4866 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4867 | char _ptemp[128]; |
4868 | ||
4869 | self = self; | |
f6bcfd97 | 4870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4871 | return NULL; |
4872 | if (_argo0) { | |
4873 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4874 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4875 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4876 | return NULL; |
4877 | } | |
4878 | } | |
4879 | { | |
4268f798 | 4880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 4881 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4882 | |
4268f798 RD |
4883 | wxPyEndAllowThreads(__tstate); |
4884 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4885 | } if (_result) { |
f6bcfd97 | 4886 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4887 | _resultobj = Py_BuildValue("s",_ptemp); |
4888 | } else { | |
4889 | Py_INCREF(Py_None); | |
4890 | _resultobj = Py_None; | |
4891 | } | |
4892 | return _resultobj; | |
4893 | } | |
4894 | ||
f6bcfd97 | 4895 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4896 | PyObject * _resultobj; |
f6bcfd97 BP |
4897 | char *_kwnames[] = { NULL }; |
4898 | ||
4899 | self = self; | |
4900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4901 | return NULL; | |
4902 | { | |
4268f798 | 4903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4904 | wxLog::Suspend(); |
4905 | ||
4268f798 RD |
4906 | wxPyEndAllowThreads(__tstate); |
4907 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4908 | } Py_INCREF(Py_None); |
4909 | _resultobj = Py_None; | |
4910 | return _resultobj; | |
4911 | } | |
4912 | ||
4913 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4914 | PyObject * _resultobj; | |
4915 | char *_kwnames[] = { NULL }; | |
4916 | ||
4917 | self = self; | |
4918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4919 | return NULL; | |
4920 | { | |
4268f798 | 4921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4922 | wxLog::Resume(); |
4923 | ||
4268f798 RD |
4924 | wxPyEndAllowThreads(__tstate); |
4925 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4926 | } Py_INCREF(Py_None); |
4927 | _resultobj = Py_None; | |
4928 | return _resultobj; | |
4929 | } | |
4930 | ||
4931 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4932 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4933 | PyObject * _resultobj; | |
4934 | wxLog * _arg0; | |
4935 | bool _arg1 = (bool ) TRUE; | |
f0261a72 | 4936 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4937 | int tempbool1 = (int) TRUE; |
4938 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
f0261a72 RD |
4939 | |
4940 | self = self; | |
f6bcfd97 | 4941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) |
f0261a72 RD |
4942 | return NULL; |
4943 | if (_argo0) { | |
4944 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4945 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4946 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
f0261a72 RD |
4947 | return NULL; |
4948 | } | |
4949 | } | |
f6bcfd97 | 4950 | _arg1 = (bool ) tempbool1; |
f0261a72 | 4951 | { |
4268f798 | 4952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 4953 | wxLog_SetVerbose(_arg0,_arg1); |
f0261a72 | 4954 | |
4268f798 RD |
4955 | wxPyEndAllowThreads(__tstate); |
4956 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4957 | } Py_INCREF(Py_None); |
4958 | _resultobj = Py_None; | |
4959 | return _resultobj; | |
4960 | } | |
4961 | ||
f6bcfd97 | 4962 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4963 | PyObject * _resultobj; |
f6bcfd97 BP |
4964 | char *_kwnames[] = { NULL }; |
4965 | ||
4966 | self = self; | |
4967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4968 | return NULL; | |
4969 | { | |
4268f798 | 4970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4971 | wxLog::DontCreateOnDemand(); |
4972 | ||
4268f798 RD |
4973 | wxPyEndAllowThreads(__tstate); |
4974 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4975 | } Py_INCREF(Py_None); |
4976 | _resultobj = Py_None; | |
4977 | return _resultobj; | |
4978 | } | |
4979 | ||
4980 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4981 | PyObject * _resultobj; | |
4982 | wxTraceMask * _arg0; | |
f0261a72 | 4983 | PyObject * _argo0 = 0; |
f6bcfd97 | 4984 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4985 | |
4986 | self = self; | |
f6bcfd97 | 4987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
f0261a72 RD |
4988 | return NULL; |
4989 | if (_argo0) { | |
4990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4993 | return NULL; | |
4994 | } | |
4995 | } | |
4996 | { | |
4268f798 | 4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
4998 | wxLog::SetTraceMask(*_arg0); |
4999 | ||
4268f798 RD |
5000 | wxPyEndAllowThreads(__tstate); |
5001 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5002 | } Py_INCREF(Py_None); |
5003 | _resultobj = Py_None; | |
5004 | return _resultobj; | |
5005 | } | |
5006 | ||
5007 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5008 | PyObject * _resultobj; | |
5009 | wxString * _arg0; | |
5010 | PyObject * _obj0 = 0; | |
5011 | char *_kwnames[] = { "str", NULL }; | |
5012 | ||
5013 | self = self; | |
5014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
5015 | return NULL; | |
5016 | { | |
185d7c3e RD |
5017 | #if PYTHON_API_VERSION >= 1009 |
5018 | char* tmpPtr; int tmpSize; | |
5019 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 5020 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5021 | return NULL; |
5022 | } | |
5023 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
5024 | return NULL; | |
5025 | _arg0 = new wxString(tmpPtr, tmpSize); | |
5026 | #else | |
f6bcfd97 BP |
5027 | if (!PyString_Check(_obj0)) { |
5028 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
5029 | return NULL; | |
5030 | } | |
185d7c3e RD |
5031 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
5032 | #endif | |
f6bcfd97 BP |
5033 | } |
5034 | { | |
4268f798 | 5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
5036 | wxLog::AddTraceMask(*_arg0); |
5037 | ||
4268f798 RD |
5038 | wxPyEndAllowThreads(__tstate); |
5039 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5040 | } Py_INCREF(Py_None); |
5041 | _resultobj = Py_None; | |
5042 | { | |
5043 | if (_obj0) | |
5044 | delete _arg0; | |
5045 | } | |
5046 | return _resultobj; | |
5047 | } | |
5048 | ||
5049 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5050 | PyObject * _resultobj; | |
5051 | wxString * _arg0; | |
5052 | PyObject * _obj0 = 0; | |
5053 | char *_kwnames[] = { "str", NULL }; | |
5054 | ||
5055 | self = self; | |
5056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 5057 | return NULL; |
f0261a72 | 5058 | { |
185d7c3e RD |
5059 | #if PYTHON_API_VERSION >= 1009 |
5060 | char* tmpPtr; int tmpSize; | |
5061 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
794c5cb1 | 5062 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); |
185d7c3e RD |
5063 | return NULL; |
5064 | } | |
5065 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
5066 | return NULL; | |
5067 | _arg0 = new wxString(tmpPtr, tmpSize); | |
5068 | #else | |
f6bcfd97 BP |
5069 | if (!PyString_Check(_obj0)) { |
5070 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
f0261a72 | 5071 | return NULL; |
f6bcfd97 | 5072 | } |
185d7c3e RD |
5073 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); |
5074 | #endif | |
f0261a72 RD |
5075 | } |
5076 | { | |
4268f798 | 5077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5078 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 5079 | |
4268f798 RD |
5080 | wxPyEndAllowThreads(__tstate); |
5081 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
5082 | } Py_INCREF(Py_None); |
5083 | _resultobj = Py_None; | |
f6bcfd97 BP |
5084 | { |
5085 | if (_obj0) | |
5086 | delete _arg0; | |
5087 | } | |
f0261a72 RD |
5088 | return _resultobj; |
5089 | } | |
5090 | ||
76bfdc78 RD |
5091 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5092 | PyObject * _resultobj; | |
5093 | char *_kwnames[] = { NULL }; | |
5094 | ||
5095 | self = self; | |
5096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
5097 | return NULL; | |
5098 | { | |
4268f798 | 5099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5100 | wxLog::ClearTraceMasks(); |
5101 | ||
4268f798 RD |
5102 | wxPyEndAllowThreads(__tstate); |
5103 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5104 | } Py_INCREF(Py_None); |
5105 | _resultobj = Py_None; | |
5106 | return _resultobj; | |
5107 | } | |
5108 | ||
5109 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5110 | PyObject * _resultobj; | |
5111 | wxChar * _arg0; | |
5112 | char *_kwnames[] = { "ts", NULL }; | |
5113 | ||
5114 | self = self; | |
5115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0)) | |
5116 | return NULL; | |
5117 | { | |
4268f798 | 5118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5119 | wxLog::SetTimestamp(_arg0); |
5120 | ||
4268f798 RD |
5121 | wxPyEndAllowThreads(__tstate); |
5122 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5123 | } Py_INCREF(Py_None); |
5124 | _resultobj = Py_None; | |
5125 | return _resultobj; | |
5126 | } | |
5127 | ||
5128 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject * _resultobj; | |
5130 | wxChar * _result; | |
5131 | char *_kwnames[] = { NULL }; | |
5132 | ||
5133 | self = self; | |
5134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5135 | return NULL; | |
5136 | { | |
4268f798 | 5137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5138 | _result = (wxChar *)wxLog::GetTimestamp(); |
5139 | ||
4268f798 RD |
5140 | wxPyEndAllowThreads(__tstate); |
5141 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5142 | } _resultobj = Py_BuildValue("s", _result); |
5143 | return _resultobj; | |
5144 | } | |
5145 | ||
f6bcfd97 BP |
5146 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
5147 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 5148 | PyObject * _resultobj; |
f6bcfd97 BP |
5149 | bool _result; |
5150 | wxLog * _arg0; | |
a1df7a95 | 5151 | PyObject * _argo0 = 0; |
f6bcfd97 | 5152 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5153 | |
5154 | self = self; | |
f6bcfd97 | 5155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5156 | return NULL; |
5157 | if (_argo0) { | |
5158 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5159 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5160 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5161 | return NULL; |
5162 | } | |
5163 | } | |
5164 | { | |
4268f798 | 5165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5166 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5167 | |
4268f798 RD |
5168 | wxPyEndAllowThreads(__tstate); |
5169 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5170 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5171 | return _resultobj; |
5172 | } | |
5173 | ||
f6bcfd97 | 5174 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5175 | PyObject * _resultobj; |
f6bcfd97 BP |
5176 | wxTraceMask * _result; |
5177 | char *_kwnames[] = { NULL }; | |
5178 | char _ptemp[128]; | |
a1df7a95 RD |
5179 | |
5180 | self = self; | |
f6bcfd97 | 5181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5182 | return NULL; |
a1df7a95 | 5183 | { |
4268f798 | 5184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 BP |
5185 | _result = new wxTraceMask (wxLog::GetTraceMask()); |
5186 | ||
4268f798 RD |
5187 | wxPyEndAllowThreads(__tstate); |
5188 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5189 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); |
5190 | _resultobj = Py_BuildValue("s",_ptemp); | |
5191 | return _resultobj; | |
a1df7a95 | 5192 | } |
f6bcfd97 BP |
5193 | |
5194 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5195 | PyObject * _resultobj; | |
5196 | bool _result; | |
5197 | char * _arg0; | |
5198 | char *_kwnames[] = { "mask", NULL }; | |
5199 | ||
5200 | self = self; | |
5201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0)) | |
5202 | return NULL; | |
a1df7a95 | 5203 | { |
4268f798 | 5204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5205 | _result = (bool )wxLog::IsAllowedTraceMask(_arg0); |
a1df7a95 | 5206 | |
4268f798 RD |
5207 | wxPyEndAllowThreads(__tstate); |
5208 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5209 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5210 | return _resultobj; |
5211 | } | |
5212 | ||
76bfdc78 RD |
5213 | static wxString wxLog_TimeStamp(wxLog *self) { |
5214 | wxString msg; | |
5215 | wxLog::TimeStamp(&msg); | |
5216 | return msg; | |
5217 | } | |
5218 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5219 | PyObject * _resultobj; | |
5220 | wxString * _result; | |
5221 | wxLog * _arg0; | |
5222 | PyObject * _argo0 = 0; | |
5223 | char *_kwnames[] = { "self", NULL }; | |
5224 | ||
5225 | self = self; | |
5226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5227 | return NULL; | |
5228 | if (_argo0) { | |
5229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5232 | return NULL; | |
5233 | } | |
5234 | } | |
5235 | { | |
4268f798 | 5236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5237 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
5238 | ||
4268f798 RD |
5239 | wxPyEndAllowThreads(__tstate); |
5240 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5241 | }{ |
5242 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5243 | } | |
5244 | { | |
5245 | delete _result; | |
5246 | } | |
5247 | return _resultobj; | |
5248 | } | |
5249 | ||
f6bcfd97 BP |
5250 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5251 | wxLogStderr *src; | |
5252 | wxLog *dest; | |
5253 | src = (wxLogStderr *) ptr; | |
5254 | dest = (wxLog *) src; | |
5255 | return (void *) dest; | |
5256 | } | |
5257 | ||
5258 | #define new_wxLogStderr() (new wxLogStderr()) | |
5259 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5260 | PyObject * _resultobj; |
f6bcfd97 BP |
5261 | wxLogStderr * _result; |
5262 | char *_kwnames[] = { NULL }; | |
5263 | char _ptemp[128]; | |
f0261a72 RD |
5264 | |
5265 | self = self; | |
f6bcfd97 | 5266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5267 | return NULL; |
f0261a72 | 5268 | { |
4268f798 | 5269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5270 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5271 | |
4268f798 RD |
5272 | wxPyEndAllowThreads(__tstate); |
5273 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5274 | } if (_result) { |
5275 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5276 | _resultobj = Py_BuildValue("s",_ptemp); | |
5277 | } else { | |
5278 | Py_INCREF(Py_None); | |
5279 | _resultobj = Py_None; | |
5280 | } | |
f0261a72 RD |
5281 | return _resultobj; |
5282 | } | |
5283 | ||
f6bcfd97 BP |
5284 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5285 | wxLogTextCtrl *src; | |
5286 | wxLog *dest; | |
5287 | src = (wxLogTextCtrl *) ptr; | |
5288 | dest = (wxLog *) src; | |
5289 | return (void *) dest; | |
5290 | } | |
5291 | ||
5292 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5293 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5294 | PyObject * _resultobj; |
f6bcfd97 BP |
5295 | wxLogTextCtrl * _result; |
5296 | wxTextCtrl * _arg0; | |
f0261a72 | 5297 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5298 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5299 | char _ptemp[128]; | |
f0261a72 RD |
5300 | |
5301 | self = self; | |
f6bcfd97 | 5302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5303 | return NULL; |
5304 | if (_argo0) { | |
5305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5308 | return NULL; |
5309 | } | |
5310 | } | |
5311 | { | |
4268f798 | 5312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5313 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5314 | |
4268f798 RD |
5315 | wxPyEndAllowThreads(__tstate); |
5316 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5317 | } if (_result) { |
5318 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5319 | _resultobj = Py_BuildValue("s",_ptemp); | |
5320 | } else { | |
5321 | Py_INCREF(Py_None); | |
5322 | _resultobj = Py_None; | |
5323 | } | |
f0261a72 RD |
5324 | return _resultobj; |
5325 | } | |
5326 | ||
f6bcfd97 BP |
5327 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5328 | wxLogGui *src; | |
5329 | wxLog *dest; | |
5330 | src = (wxLogGui *) ptr; | |
5331 | dest = (wxLog *) src; | |
5332 | return (void *) dest; | |
5333 | } | |
5334 | ||
5335 | #define new_wxLogGui() (new wxLogGui()) | |
5336 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5337 | PyObject * _resultobj; |
f6bcfd97 | 5338 | wxLogGui * _result; |
b1462dfa RD |
5339 | char *_kwnames[] = { NULL }; |
5340 | char _ptemp[128]; | |
5341 | ||
5342 | self = self; | |
f6bcfd97 | 5343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5344 | return NULL; |
5345 | { | |
4268f798 | 5346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5347 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5348 | |
4268f798 RD |
5349 | wxPyEndAllowThreads(__tstate); |
5350 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5351 | } if (_result) { |
f6bcfd97 | 5352 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5353 | _resultobj = Py_BuildValue("s",_ptemp); |
5354 | } else { | |
5355 | Py_INCREF(Py_None); | |
5356 | _resultobj = Py_None; | |
5357 | } | |
5358 | return _resultobj; | |
5359 | } | |
5360 | ||
f6bcfd97 BP |
5361 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5362 | wxLogWindow *src; | |
5363 | wxLog *dest; | |
5364 | src = (wxLogWindow *) ptr; | |
5365 | dest = (wxLog *) src; | |
5366 | return (void *) dest; | |
5367 | } | |
5368 | ||
5369 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5370 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5371 | PyObject * _resultobj; |
f6bcfd97 BP |
5372 | wxLogWindow * _result; |
5373 | wxFrame * _arg0; | |
5374 | char * _arg1; | |
5375 | bool _arg2 = (bool ) TRUE; | |
5376 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5377 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5378 | int tempbool2 = (int) TRUE; |
5379 | int tempbool3 = (int) TRUE; | |
5380 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5381 | char _ptemp[128]; | |
b1462dfa RD |
5382 | |
5383 | self = self; | |
f6bcfd97 | 5384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5385 | return NULL; |
5386 | if (_argo0) { | |
5387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5390 | return NULL; |
5391 | } | |
5392 | } | |
f6bcfd97 BP |
5393 | _arg2 = (bool ) tempbool2; |
5394 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5395 | { |
4268f798 | 5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5397 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3); |
b1462dfa | 5398 | |
4268f798 RD |
5399 | wxPyEndAllowThreads(__tstate); |
5400 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5401 | } if (_result) { |
5402 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5403 | _resultobj = Py_BuildValue("s",_ptemp); | |
5404 | } else { | |
5405 | Py_INCREF(Py_None); | |
5406 | _resultobj = Py_None; | |
5407 | } | |
b1462dfa RD |
5408 | return _resultobj; |
5409 | } | |
5410 | ||
f6bcfd97 BP |
5411 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5412 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5413 | PyObject * _resultobj; |
f6bcfd97 BP |
5414 | wxLogWindow * _arg0; |
5415 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5416 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5417 | int tempbool1 = (int) TRUE; |
5418 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5419 | |
5420 | self = self; | |
f6bcfd97 | 5421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5422 | return NULL; |
5423 | if (_argo0) { | |
5424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5427 | return NULL; |
5428 | } | |
5429 | } | |
f6bcfd97 | 5430 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5431 | { |
4268f798 | 5432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5433 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5434 | |
4268f798 RD |
5435 | wxPyEndAllowThreads(__tstate); |
5436 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5437 | } Py_INCREF(Py_None); |
5438 | _resultobj = Py_None; | |
5439 | return _resultobj; | |
5440 | } | |
5441 | ||
f6bcfd97 BP |
5442 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5443 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5444 | PyObject * _resultobj; |
f6bcfd97 BP |
5445 | wxFrame * _result; |
5446 | wxLogWindow * _arg0; | |
b1462dfa | 5447 | PyObject * _argo0 = 0; |
f6bcfd97 | 5448 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5449 | |
5450 | self = self; | |
f6bcfd97 | 5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5452 | return NULL; |
5453 | if (_argo0) { | |
5454 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5455 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5457 | return NULL; |
5458 | } | |
5459 | } | |
b1462dfa | 5460 | { |
4268f798 | 5461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5462 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5463 | |
4268f798 RD |
5464 | wxPyEndAllowThreads(__tstate); |
5465 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5466 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5467 | return _resultobj; |
5468 | } | |
5469 | ||
f6bcfd97 BP |
5470 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5471 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5472 | PyObject * _resultobj; |
f6bcfd97 BP |
5473 | wxLog * _result; |
5474 | wxLogWindow * _arg0; | |
b1462dfa | 5475 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5476 | char *_kwnames[] = { "self", NULL }; |
5477 | char _ptemp[128]; | |
b1462dfa RD |
5478 | |
5479 | self = self; | |
f6bcfd97 | 5480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5481 | return NULL; |
5482 | if (_argo0) { | |
5483 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5484 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5485 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5486 | return NULL; |
5487 | } | |
5488 | } | |
5489 | { | |
4268f798 | 5490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5491 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5492 | |
4268f798 RD |
5493 | wxPyEndAllowThreads(__tstate); |
5494 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5495 | } if (_result) { |
5496 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5497 | _resultobj = Py_BuildValue("s",_ptemp); | |
5498 | } else { | |
5499 | Py_INCREF(Py_None); | |
5500 | _resultobj = Py_None; | |
5501 | } | |
b1462dfa RD |
5502 | return _resultobj; |
5503 | } | |
5504 | ||
f6bcfd97 BP |
5505 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5506 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5507 | PyObject * _resultobj; |
f6bcfd97 BP |
5508 | bool _result; |
5509 | wxLogWindow * _arg0; | |
65dd82cb RD |
5510 | PyObject * _argo0 = 0; |
5511 | char *_kwnames[] = { "self", NULL }; | |
5512 | ||
5513 | self = self; | |
f6bcfd97 | 5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5515 | return NULL; |
5516 | if (_argo0) { | |
5517 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5518 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5519 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5520 | return NULL; |
5521 | } | |
5522 | } | |
5523 | { | |
4268f798 | 5524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5525 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5526 | |
4268f798 RD |
5527 | wxPyEndAllowThreads(__tstate); |
5528 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5529 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5530 | return _resultobj; |
5531 | } | |
5532 | ||
f6bcfd97 BP |
5533 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5534 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5535 | PyObject * _resultobj; |
f6bcfd97 BP |
5536 | wxLogWindow * _arg0; |
5537 | bool _arg1; | |
65dd82cb | 5538 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5539 | int tempbool1; |
5540 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5541 | |
5542 | self = self; | |
f6bcfd97 | 5543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5544 | return NULL; |
5545 | if (_argo0) { | |
5546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5549 | return NULL; |
5550 | } | |
5551 | } | |
f6bcfd97 | 5552 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5553 | { |
4268f798 | 5554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5555 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5556 | |
4268f798 RD |
5557 | wxPyEndAllowThreads(__tstate); |
5558 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5559 | } Py_INCREF(Py_None); |
5560 | _resultobj = Py_None; | |
65dd82cb RD |
5561 | return _resultobj; |
5562 | } | |
5563 | ||
f6bcfd97 BP |
5564 | #define new_wxLogNull() (new wxLogNull()) |
5565 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 5566 | PyObject * _resultobj; |
f6bcfd97 BP |
5567 | wxLogNull * _result; |
5568 | char *_kwnames[] = { NULL }; | |
2abc0a0f RD |
5569 | char _ptemp[128]; |
5570 | ||
5571 | self = self; | |
f6bcfd97 | 5572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) |
2abc0a0f | 5573 | return NULL; |
2abc0a0f | 5574 | { |
4268f798 | 5575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5576 | _result = (wxLogNull *)new_wxLogNull(); |
2abc0a0f | 5577 | |
4268f798 RD |
5578 | wxPyEndAllowThreads(__tstate); |
5579 | if (PyErr_Occurred()) return NULL; | |
2abc0a0f | 5580 | } if (_result) { |
f6bcfd97 | 5581 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); |
2abc0a0f RD |
5582 | _resultobj = Py_BuildValue("s",_ptemp); |
5583 | } else { | |
5584 | Py_INCREF(Py_None); | |
5585 | _resultobj = Py_None; | |
5586 | } | |
5587 | return _resultobj; | |
5588 | } | |
5589 | ||
f6bcfd97 BP |
5590 | #define delete_wxLogNull(_swigobj) (delete _swigobj) |
5591 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 5592 | PyObject * _resultobj; |
f6bcfd97 | 5593 | wxLogNull * _arg0; |
2abc0a0f RD |
5594 | PyObject * _argo0 = 0; |
5595 | char *_kwnames[] = { "self", NULL }; | |
5596 | ||
5597 | self = self; | |
f6bcfd97 | 5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) |
2abc0a0f RD |
5599 | return NULL; |
5600 | if (_argo0) { | |
5601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { |
5603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
2abc0a0f RD |
5604 | return NULL; |
5605 | } | |
5606 | } | |
5607 | { | |
4268f798 | 5608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f6bcfd97 | 5609 | delete_wxLogNull(_arg0); |
2abc0a0f | 5610 | |
4268f798 RD |
5611 | wxPyEndAllowThreads(__tstate); |
5612 | if (PyErr_Occurred()) return NULL; | |
2abc0a0f RD |
5613 | } Py_INCREF(Py_None); |
5614 | _resultobj = Py_None; | |
5615 | return _resultobj; | |
5616 | } | |
5617 | ||
76bfdc78 RD |
5618 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5619 | wxLogChain *src; | |
5620 | wxLog *dest; | |
5621 | src = (wxLogChain *) ptr; | |
5622 | dest = (wxLog *) src; | |
5623 | return (void *) dest; | |
5624 | } | |
5625 | ||
5626 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5627 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5628 | PyObject * _resultobj; | |
5629 | wxLogChain * _result; | |
5630 | wxLog * _arg0; | |
5631 | PyObject * _argo0 = 0; | |
5632 | char *_kwnames[] = { "logger", NULL }; | |
5633 | char _ptemp[128]; | |
5634 | ||
5635 | self = self; | |
5636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5637 | return NULL; | |
5638 | if (_argo0) { | |
5639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5642 | return NULL; | |
5643 | } | |
5644 | } | |
5645 | { | |
4268f798 | 5646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5647 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
5648 | ||
4268f798 RD |
5649 | wxPyEndAllowThreads(__tstate); |
5650 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5651 | } if (_result) { |
5652 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5653 | _resultobj = Py_BuildValue("s",_ptemp); | |
5654 | } else { | |
5655 | Py_INCREF(Py_None); | |
5656 | _resultobj = Py_None; | |
5657 | } | |
5658 | return _resultobj; | |
5659 | } | |
5660 | ||
5661 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5662 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5663 | PyObject * _resultobj; | |
5664 | wxLogChain * _arg0; | |
5665 | wxLog * _arg1; | |
5666 | PyObject * _argo0 = 0; | |
5667 | PyObject * _argo1 = 0; | |
5668 | char *_kwnames[] = { "self","logger", NULL }; | |
5669 | ||
5670 | self = self; | |
5671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5672 | return NULL; | |
5673 | if (_argo0) { | |
5674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5677 | return NULL; | |
5678 | } | |
5679 | } | |
5680 | if (_argo1) { | |
5681 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5682 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5683 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5684 | return NULL; | |
5685 | } | |
5686 | } | |
5687 | { | |
4268f798 | 5688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5689 | wxLogChain_SetLog(_arg0,_arg1); |
5690 | ||
4268f798 RD |
5691 | wxPyEndAllowThreads(__tstate); |
5692 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5693 | } Py_INCREF(Py_None); |
5694 | _resultobj = Py_None; | |
5695 | return _resultobj; | |
5696 | } | |
5697 | ||
5698 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5699 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject * _resultobj; | |
5701 | wxLogChain * _arg0; | |
5702 | bool _arg1; | |
5703 | PyObject * _argo0 = 0; | |
5704 | int tempbool1; | |
5705 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5706 | ||
5707 | self = self; | |
5708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5709 | return NULL; | |
5710 | if (_argo0) { | |
5711 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5712 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5713 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5714 | return NULL; | |
5715 | } | |
5716 | } | |
5717 | _arg1 = (bool ) tempbool1; | |
5718 | { | |
4268f798 | 5719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5720 | wxLogChain_PassMessages(_arg0,_arg1); |
5721 | ||
4268f798 RD |
5722 | wxPyEndAllowThreads(__tstate); |
5723 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5724 | } Py_INCREF(Py_None); |
5725 | _resultobj = Py_None; | |
5726 | return _resultobj; | |
5727 | } | |
5728 | ||
5729 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5730 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5731 | PyObject * _resultobj; | |
5732 | bool _result; | |
5733 | wxLogChain * _arg0; | |
5734 | PyObject * _argo0 = 0; | |
5735 | char *_kwnames[] = { "self", NULL }; | |
5736 | ||
5737 | self = self; | |
5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5739 | return NULL; | |
5740 | if (_argo0) { | |
5741 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5742 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5743 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5744 | return NULL; | |
5745 | } | |
5746 | } | |
5747 | { | |
4268f798 | 5748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5749 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
5750 | ||
4268f798 RD |
5751 | wxPyEndAllowThreads(__tstate); |
5752 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5753 | } _resultobj = Py_BuildValue("i",_result); |
5754 | return _resultobj; | |
5755 | } | |
5756 | ||
5757 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5758 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5759 | PyObject * _resultobj; | |
5760 | wxLog * _result; | |
5761 | wxLogChain * _arg0; | |
5762 | PyObject * _argo0 = 0; | |
5763 | char *_kwnames[] = { "self", NULL }; | |
5764 | char _ptemp[128]; | |
5765 | ||
5766 | self = self; | |
5767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5768 | return NULL; | |
5769 | if (_argo0) { | |
5770 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5771 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5772 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5773 | return NULL; | |
5774 | } | |
5775 | } | |
5776 | { | |
4268f798 | 5777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5778 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
5779 | ||
4268f798 RD |
5780 | wxPyEndAllowThreads(__tstate); |
5781 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5782 | } if (_result) { |
5783 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5784 | _resultobj = Py_BuildValue("s",_ptemp); | |
5785 | } else { | |
5786 | Py_INCREF(Py_None); | |
5787 | _resultobj = Py_None; | |
5788 | } | |
5789 | return _resultobj; | |
5790 | } | |
5791 | ||
5792 | static void *SwigwxPyLogTowxLog(void *ptr) { | |
5793 | wxPyLog *src; | |
5794 | wxLog *dest; | |
5795 | src = (wxPyLog *) ptr; | |
5796 | dest = (wxLog *) src; | |
5797 | return (void *) dest; | |
5798 | } | |
5799 | ||
5800 | #define new_wxPyLog() (new wxPyLog()) | |
5801 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5802 | PyObject * _resultobj; | |
5803 | wxPyLog * _result; | |
5804 | char *_kwnames[] = { NULL }; | |
5805 | char _ptemp[128]; | |
5806 | ||
5807 | self = self; | |
5808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5809 | return NULL; | |
5810 | { | |
4268f798 | 5811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5812 | _result = (wxPyLog *)new_wxPyLog(); |
5813 | ||
4268f798 RD |
5814 | wxPyEndAllowThreads(__tstate); |
5815 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5816 | } if (_result) { |
5817 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5818 | _resultobj = Py_BuildValue("s",_ptemp); | |
5819 | } else { | |
5820 | Py_INCREF(Py_None); | |
5821 | _resultobj = Py_None; | |
5822 | } | |
5823 | return _resultobj; | |
5824 | } | |
5825 | ||
0122b7e3 RD |
5826 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5827 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5828 | PyObject * _resultobj; |
5829 | wxPyLog * _arg0; | |
5830 | PyObject * _arg1; | |
5831 | PyObject * _arg2; | |
5832 | PyObject * _argo0 = 0; | |
5833 | PyObject * _obj1 = 0; | |
5834 | PyObject * _obj2 = 0; | |
5835 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5836 | ||
5837 | self = self; | |
0122b7e3 | 5838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5839 | return NULL; |
5840 | if (_argo0) { | |
5841 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5842 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5843 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5844 | return NULL; |
5845 | } | |
5846 | } | |
5847 | { | |
5848 | _arg1 = _obj1; | |
5849 | } | |
5850 | { | |
5851 | _arg2 = _obj2; | |
5852 | } | |
5853 | { | |
4268f798 | 5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0122b7e3 | 5855 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5856 | |
4268f798 RD |
5857 | wxPyEndAllowThreads(__tstate); |
5858 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5859 | } Py_INCREF(Py_None); |
5860 | _resultobj = Py_None; | |
5861 | return _resultobj; | |
5862 | } | |
5863 | ||
5864 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5865 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5866 | PyObject * _resultobj; | |
5867 | wxPyLog * _arg0; | |
5868 | PyObject * _argo0 = 0; | |
5869 | char *_kwnames[] = { "self", NULL }; | |
5870 | ||
5871 | self = self; | |
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5873 | return NULL; | |
5874 | if (_argo0) { | |
5875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5878 | return NULL; | |
5879 | } | |
5880 | } | |
5881 | { | |
4268f798 | 5882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
76bfdc78 RD |
5883 | wxPyLog_Destroy(_arg0); |
5884 | ||
4268f798 RD |
5885 | wxPyEndAllowThreads(__tstate); |
5886 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5887 | } Py_INCREF(Py_None); |
5888 | _resultobj = Py_None; | |
5889 | return _resultobj; | |
5890 | } | |
5891 | ||
c368d904 RD |
5892 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5893 | wxProcessEvent *src; | |
5894 | wxEvent *dest; | |
5895 | src = (wxProcessEvent *) ptr; | |
5896 | dest = (wxEvent *) src; | |
5897 | return (void *) dest; | |
5898 | } | |
5899 | ||
9416aa89 RD |
5900 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5901 | wxProcessEvent *src; | |
5902 | wxObject *dest; | |
5903 | src = (wxProcessEvent *) ptr; | |
5904 | dest = (wxObject *) src; | |
5905 | return (void *) dest; | |
5906 | } | |
5907 | ||
c368d904 RD |
5908 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5909 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5910 | PyObject * _resultobj; | |
5911 | wxProcessEvent * _result; | |
5912 | int _arg0 = (int ) 0; | |
5913 | int _arg1 = (int ) 0; | |
5914 | int _arg2 = (int ) 0; | |
5915 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5916 | char _ptemp[128]; | |
5917 | ||
5918 | self = self; | |
5919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5920 | return NULL; | |
5921 | { | |
4268f798 | 5922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
5923 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
5924 | ||
4268f798 RD |
5925 | wxPyEndAllowThreads(__tstate); |
5926 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5927 | } if (_result) { |
5928 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5929 | _resultobj = Py_BuildValue("s",_ptemp); | |
5930 | } else { | |
5931 | Py_INCREF(Py_None); | |
5932 | _resultobj = Py_None; | |
5933 | } | |
5934 | return _resultobj; | |
5935 | } | |
5936 | ||
5937 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5938 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5939 | PyObject * _resultobj; | |
5940 | int _result; | |
5941 | wxProcessEvent * _arg0; | |
5942 | PyObject * _argo0 = 0; | |
5943 | char *_kwnames[] = { "self", NULL }; | |
5944 | ||
5945 | self = self; | |
5946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5947 | return NULL; | |
5948 | if (_argo0) { | |
5949 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5950 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5951 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5952 | return NULL; | |
5953 | } | |
5954 | } | |
5955 | { | |
4268f798 | 5956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
5957 | _result = (int )wxProcessEvent_GetPid(_arg0); |
5958 | ||
4268f798 RD |
5959 | wxPyEndAllowThreads(__tstate); |
5960 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5961 | } _resultobj = Py_BuildValue("i",_result); |
5962 | return _resultobj; | |
5963 | } | |
5964 | ||
5965 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5966 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject * _resultobj; | |
5968 | int _result; | |
5969 | wxProcessEvent * _arg0; | |
5970 | PyObject * _argo0 = 0; | |
5971 | char *_kwnames[] = { "self", NULL }; | |
5972 | ||
5973 | self = self; | |
5974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5975 | return NULL; | |
5976 | if (_argo0) { | |
5977 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5978 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5979 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5980 | return NULL; | |
5981 | } | |
5982 | } | |
5983 | { | |
4268f798 | 5984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
5985 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
5986 | ||
4268f798 RD |
5987 | wxPyEndAllowThreads(__tstate); |
5988 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5989 | } _resultobj = Py_BuildValue("i",_result); |
5990 | return _resultobj; | |
5991 | } | |
5992 | ||
5993 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5994 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5995 | PyObject * _resultobj; | |
5996 | int _result; | |
5997 | wxProcessEvent * _arg0; | |
5998 | int _arg1; | |
5999 | PyObject * _argo0 = 0; | |
6000 | char *_kwnames[] = { "self","m_pid", NULL }; | |
6001 | ||
6002 | self = self; | |
6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
6004 | return NULL; | |
6005 | if (_argo0) { | |
6006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
6009 | return NULL; | |
6010 | } | |
6011 | } | |
6012 | { | |
4268f798 | 6013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6014 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
6015 | ||
4268f798 RD |
6016 | wxPyEndAllowThreads(__tstate); |
6017 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6018 | } _resultobj = Py_BuildValue("i",_result); |
6019 | return _resultobj; | |
6020 | } | |
6021 | ||
6022 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
6023 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6024 | PyObject * _resultobj; | |
6025 | int _result; | |
6026 | wxProcessEvent * _arg0; | |
6027 | PyObject * _argo0 = 0; | |
6028 | char *_kwnames[] = { "self", NULL }; | |
6029 | ||
6030 | self = self; | |
6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
6032 | return NULL; | |
6033 | if (_argo0) { | |
6034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
6037 | return NULL; | |
6038 | } | |
6039 | } | |
6040 | { | |
4268f798 | 6041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6042 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
6043 | ||
4268f798 RD |
6044 | wxPyEndAllowThreads(__tstate); |
6045 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6046 | } _resultobj = Py_BuildValue("i",_result); |
6047 | return _resultobj; | |
6048 | } | |
6049 | ||
6050 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
6051 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6052 | PyObject * _resultobj; | |
6053 | int _result; | |
6054 | wxProcessEvent * _arg0; | |
6055 | int _arg1; | |
6056 | PyObject * _argo0 = 0; | |
6057 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
6058 | ||
6059 | self = self; | |
6060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
6061 | return NULL; | |
6062 | if (_argo0) { | |
6063 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6064 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6065 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
6066 | return NULL; | |
6067 | } | |
6068 | } | |
6069 | { | |
4268f798 | 6070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6071 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
6072 | ||
4268f798 RD |
6073 | wxPyEndAllowThreads(__tstate); |
6074 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6075 | } _resultobj = Py_BuildValue("i",_result); |
6076 | return _resultobj; | |
6077 | } | |
6078 | ||
6079 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
6080 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6081 | PyObject * _resultobj; | |
6082 | int _result; | |
6083 | wxProcessEvent * _arg0; | |
6084 | PyObject * _argo0 = 0; | |
6085 | char *_kwnames[] = { "self", NULL }; | |
6086 | ||
6087 | self = self; | |
6088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
6089 | return NULL; | |
6090 | if (_argo0) { | |
6091 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6092 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6093 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6094 | return NULL; | |
6095 | } | |
6096 | } | |
6097 | { | |
4268f798 | 6098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6099 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
6100 | ||
4268f798 RD |
6101 | wxPyEndAllowThreads(__tstate); |
6102 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6103 | } _resultobj = Py_BuildValue("i",_result); |
6104 | return _resultobj; | |
6105 | } | |
6106 | ||
6107 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6108 | wxPyProcess *src; | |
6109 | wxEvtHandler *dest; | |
6110 | src = (wxPyProcess *) ptr; | |
6111 | dest = (wxEvtHandler *) src; | |
6112 | return (void *) dest; | |
6113 | } | |
6114 | ||
9416aa89 RD |
6115 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
6116 | wxPyProcess *src; | |
6117 | wxObject *dest; | |
6118 | src = (wxPyProcess *) ptr; | |
6119 | dest = (wxObject *) src; | |
6120 | return (void *) dest; | |
6121 | } | |
6122 | ||
c368d904 RD |
6123 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6124 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6125 | PyObject * _resultobj; | |
6126 | wxPyProcess * _result; | |
6127 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6128 | int _arg1 = (int ) -1; | |
6129 | PyObject * _argo0 = 0; | |
6130 | char *_kwnames[] = { "parent","id", NULL }; | |
6131 | char _ptemp[128]; | |
6132 | ||
6133 | self = self; | |
6134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6135 | return NULL; | |
6136 | if (_argo0) { | |
6137 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6138 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6139 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6140 | return NULL; | |
6141 | } | |
6142 | } | |
6143 | { | |
4268f798 | 6144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6145 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
6146 | ||
4268f798 RD |
6147 | wxPyEndAllowThreads(__tstate); |
6148 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6149 | } if (_result) { |
6150 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6151 | _resultobj = Py_BuildValue("s",_ptemp); | |
6152 | } else { | |
6153 | Py_INCREF(Py_None); | |
6154 | _resultobj = Py_None; | |
6155 | } | |
6156 | return _resultobj; | |
6157 | } | |
6158 | ||
6159 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6160 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6161 | PyObject * _resultobj; | |
6162 | wxPyProcess * _arg0; | |
6163 | PyObject * _argo0 = 0; | |
6164 | char *_kwnames[] = { "self", NULL }; | |
6165 | ||
6166 | self = self; | |
6167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6168 | return NULL; | |
6169 | if (_argo0) { | |
6170 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6171 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6172 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6173 | return NULL; | |
6174 | } | |
6175 | } | |
6176 | { | |
4268f798 | 6177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6178 | wxPyProcess_Destroy(_arg0); |
6179 | ||
4268f798 RD |
6180 | wxPyEndAllowThreads(__tstate); |
6181 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6182 | } Py_INCREF(Py_None); |
6183 | _resultobj = Py_None; | |
6184 | return _resultobj; | |
6185 | } | |
6186 | ||
0122b7e3 RD |
6187 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6188 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6189 | PyObject * _resultobj; |
6190 | wxPyProcess * _arg0; | |
6191 | PyObject * _arg1; | |
6192 | PyObject * _arg2; | |
6193 | PyObject * _argo0 = 0; | |
6194 | PyObject * _obj1 = 0; | |
6195 | PyObject * _obj2 = 0; | |
6196 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6197 | ||
6198 | self = self; | |
0122b7e3 | 6199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6200 | return NULL; |
6201 | if (_argo0) { | |
6202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6205 | return NULL; |
6206 | } | |
6207 | } | |
6208 | { | |
6209 | _arg1 = _obj1; | |
6210 | } | |
6211 | { | |
6212 | _arg2 = _obj2; | |
6213 | } | |
6214 | { | |
4268f798 | 6215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
0122b7e3 | 6216 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6217 | |
4268f798 RD |
6218 | wxPyEndAllowThreads(__tstate); |
6219 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6220 | } Py_INCREF(Py_None); |
6221 | _resultobj = Py_None; | |
6222 | return _resultobj; | |
6223 | } | |
6224 | ||
6225 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6226 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6227 | PyObject * _resultobj; | |
6228 | wxPyProcess * _arg0; | |
6229 | int _arg1; | |
6230 | int _arg2; | |
6231 | PyObject * _argo0 = 0; | |
6232 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6233 | ||
6234 | self = self; | |
6235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6236 | return NULL; | |
6237 | if (_argo0) { | |
6238 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6239 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6240 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6241 | return NULL; | |
6242 | } | |
6243 | } | |
6244 | { | |
4268f798 | 6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6246 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
6247 | ||
4268f798 RD |
6248 | wxPyEndAllowThreads(__tstate); |
6249 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6250 | } Py_INCREF(Py_None); |
6251 | _resultobj = Py_None; | |
6252 | return _resultobj; | |
6253 | } | |
6254 | ||
6255 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6256 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6257 | PyObject * _resultobj; | |
6258 | wxPyProcess * _arg0; | |
6259 | PyObject * _argo0 = 0; | |
6260 | char *_kwnames[] = { "self", NULL }; | |
6261 | ||
6262 | self = self; | |
6263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6264 | return NULL; | |
6265 | if (_argo0) { | |
6266 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6267 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6268 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6269 | return NULL; | |
6270 | } | |
6271 | } | |
6272 | { | |
4268f798 | 6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6274 | wxProcess_Redirect(_arg0); |
6275 | ||
4268f798 RD |
6276 | wxPyEndAllowThreads(__tstate); |
6277 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6278 | } Py_INCREF(Py_None); |
6279 | _resultobj = Py_None; | |
6280 | return _resultobj; | |
6281 | } | |
6282 | ||
6283 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6284 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6285 | PyObject * _resultobj; | |
6286 | bool _result; | |
6287 | wxPyProcess * _arg0; | |
6288 | PyObject * _argo0 = 0; | |
6289 | char *_kwnames[] = { "self", NULL }; | |
6290 | ||
6291 | self = self; | |
6292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6293 | return NULL; | |
6294 | if (_argo0) { | |
6295 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6296 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6297 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6298 | return NULL; | |
6299 | } | |
6300 | } | |
6301 | { | |
4268f798 | 6302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6303 | _result = (bool )wxProcess_IsRedirected(_arg0); |
6304 | ||
4268f798 RD |
6305 | wxPyEndAllowThreads(__tstate); |
6306 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6307 | } _resultobj = Py_BuildValue("i",_result); |
6308 | return _resultobj; | |
6309 | } | |
6310 | ||
6311 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6312 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6313 | PyObject * _resultobj; | |
6314 | wxPyProcess * _arg0; | |
6315 | PyObject * _argo0 = 0; | |
6316 | char *_kwnames[] = { "self", NULL }; | |
6317 | ||
6318 | self = self; | |
6319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6320 | return NULL; | |
6321 | if (_argo0) { | |
6322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6325 | return NULL; | |
6326 | } | |
6327 | } | |
6328 | { | |
4268f798 | 6329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6330 | wxProcess_Detach(_arg0); |
6331 | ||
4268f798 RD |
6332 | wxPyEndAllowThreads(__tstate); |
6333 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6334 | } Py_INCREF(Py_None); |
6335 | _resultobj = Py_None; | |
6336 | return _resultobj; | |
6337 | } | |
6338 | ||
6339 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6340 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6341 | PyObject * _resultobj; | |
6342 | wxInputStream * _result; | |
6343 | wxPyProcess * _arg0; | |
6344 | PyObject * _argo0 = 0; | |
6345 | char *_kwnames[] = { "self", NULL }; | |
6346 | ||
6347 | self = self; | |
6348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6349 | return NULL; | |
6350 | if (_argo0) { | |
6351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6354 | return NULL; | |
6355 | } | |
6356 | } | |
6357 | { | |
4268f798 | 6358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6359 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
6360 | ||
4268f798 RD |
6361 | wxPyEndAllowThreads(__tstate); |
6362 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6363 | }{ |
6364 | wxPyInputStream * _ptr = NULL; | |
6365 | ||
6366 | if (_result) { | |
6367 | _ptr = new wxPyInputStream(_result); | |
6368 | } | |
9416aa89 | 6369 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6370 | } |
6371 | return _resultobj; | |
6372 | } | |
6373 | ||
6374 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6375 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6376 | PyObject * _resultobj; | |
6377 | wxInputStream * _result; | |
6378 | wxPyProcess * _arg0; | |
6379 | PyObject * _argo0 = 0; | |
6380 | char *_kwnames[] = { "self", NULL }; | |
6381 | ||
6382 | self = self; | |
6383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6384 | return NULL; | |
6385 | if (_argo0) { | |
6386 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6387 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6389 | return NULL; | |
6390 | } | |
6391 | } | |
6392 | { | |
4268f798 | 6393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6394 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
6395 | ||
4268f798 RD |
6396 | wxPyEndAllowThreads(__tstate); |
6397 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6398 | }{ |
6399 | wxPyInputStream * _ptr = NULL; | |
6400 | ||
6401 | if (_result) { | |
6402 | _ptr = new wxPyInputStream(_result); | |
6403 | } | |
9416aa89 | 6404 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6405 | } |
6406 | return _resultobj; | |
6407 | } | |
6408 | ||
6409 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6410 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6411 | PyObject * _resultobj; | |
6412 | wxOutputStream * _result; | |
6413 | wxPyProcess * _arg0; | |
6414 | PyObject * _argo0 = 0; | |
6415 | char *_kwnames[] = { "self", NULL }; | |
6416 | char _ptemp[128]; | |
6417 | ||
6418 | self = self; | |
6419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6420 | return NULL; | |
6421 | if (_argo0) { | |
6422 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6423 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6424 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6425 | return NULL; | |
6426 | } | |
6427 | } | |
6428 | { | |
4268f798 | 6429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6430 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
6431 | ||
4268f798 RD |
6432 | wxPyEndAllowThreads(__tstate); |
6433 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6434 | } if (_result) { |
6435 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6436 | _resultobj = Py_BuildValue("s",_ptemp); | |
6437 | } else { | |
6438 | Py_INCREF(Py_None); | |
6439 | _resultobj = Py_None; | |
6440 | } | |
6441 | return _resultobj; | |
6442 | } | |
6443 | ||
6444 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6445 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6446 | PyObject * _resultobj; | |
6447 | wxPyProcess * _arg0; | |
6448 | PyObject * _argo0 = 0; | |
6449 | char *_kwnames[] = { "self", NULL }; | |
6450 | ||
6451 | self = self; | |
6452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6453 | return NULL; | |
6454 | if (_argo0) { | |
6455 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6456 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6457 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6458 | return NULL; | |
6459 | } | |
6460 | } | |
6461 | { | |
4268f798 | 6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c368d904 RD |
6463 | wxProcess_CloseOutput(_arg0); |
6464 | ||
4268f798 RD |
6465 | wxPyEndAllowThreads(__tstate); |
6466 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6467 | } Py_INCREF(Py_None); |
6468 | _resultobj = Py_None; | |
6469 | return _resultobj; | |
6470 | } | |
6471 | ||
9416aa89 RD |
6472 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6473 | wxJoystick *src; | |
6474 | wxObject *dest; | |
6475 | src = (wxJoystick *) ptr; | |
6476 | dest = (wxObject *) src; | |
6477 | return (void *) dest; | |
6478 | } | |
6479 | ||
185d7c3e RD |
6480 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6481 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6482 | PyObject * _resultobj; | |
6483 | wxJoystick * _result; | |
6484 | int _arg0 = (int ) wxJOYSTICK1; | |
6485 | char *_kwnames[] = { "joystick", NULL }; | |
6486 | char _ptemp[128]; | |
6487 | ||
6488 | self = self; | |
6489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6490 | return NULL; | |
6491 | { | |
4268f798 | 6492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6493 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
6494 | ||
4268f798 RD |
6495 | wxPyEndAllowThreads(__tstate); |
6496 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6497 | } if (_result) { |
6498 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6499 | _resultobj = Py_BuildValue("s",_ptemp); | |
6500 | } else { | |
6501 | Py_INCREF(Py_None); | |
6502 | _resultobj = Py_None; | |
6503 | } | |
6504 | return _resultobj; | |
6505 | } | |
6506 | ||
ac346f50 RD |
6507 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6508 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6509 | PyObject * _resultobj; | |
6510 | wxJoystick * _arg0; | |
6511 | PyObject * _argo0 = 0; | |
6512 | char *_kwnames[] = { "self", NULL }; | |
6513 | ||
6514 | self = self; | |
6515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6516 | return NULL; | |
6517 | if (_argo0) { | |
6518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6521 | return NULL; | |
6522 | } | |
6523 | } | |
6524 | { | |
4268f798 | 6525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
ac346f50 RD |
6526 | delete_wxJoystick(_arg0); |
6527 | ||
4268f798 RD |
6528 | wxPyEndAllowThreads(__tstate); |
6529 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6530 | } Py_INCREF(Py_None); |
6531 | _resultobj = Py_None; | |
6532 | return _resultobj; | |
6533 | } | |
6534 | ||
185d7c3e RD |
6535 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6536 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6537 | PyObject * _resultobj; | |
6538 | wxPoint * _result; | |
6539 | wxJoystick * _arg0; | |
6540 | PyObject * _argo0 = 0; | |
6541 | char *_kwnames[] = { "self", NULL }; | |
6542 | char _ptemp[128]; | |
6543 | ||
6544 | self = self; | |
6545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6546 | return NULL; | |
6547 | if (_argo0) { | |
6548 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6549 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6550 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6551 | return NULL; | |
6552 | } | |
6553 | } | |
6554 | { | |
4268f798 | 6555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6556 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
6557 | ||
4268f798 RD |
6558 | wxPyEndAllowThreads(__tstate); |
6559 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6560 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6561 | _resultobj = Py_BuildValue("s",_ptemp); | |
6562 | return _resultobj; | |
6563 | } | |
6564 | ||
6565 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6566 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6567 | PyObject * _resultobj; | |
6568 | int _result; | |
6569 | wxJoystick * _arg0; | |
6570 | PyObject * _argo0 = 0; | |
6571 | char *_kwnames[] = { "self", NULL }; | |
6572 | ||
6573 | self = self; | |
6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6575 | return NULL; | |
6576 | if (_argo0) { | |
6577 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6578 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6579 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6580 | return NULL; | |
6581 | } | |
6582 | } | |
6583 | { | |
4268f798 | 6584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6585 | _result = (int )wxJoystick_GetZPosition(_arg0); |
6586 | ||
4268f798 RD |
6587 | wxPyEndAllowThreads(__tstate); |
6588 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6589 | } _resultobj = Py_BuildValue("i",_result); |
6590 | return _resultobj; | |
6591 | } | |
6592 | ||
6593 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6594 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6595 | PyObject * _resultobj; | |
6596 | int _result; | |
6597 | wxJoystick * _arg0; | |
6598 | PyObject * _argo0 = 0; | |
6599 | char *_kwnames[] = { "self", NULL }; | |
6600 | ||
6601 | self = self; | |
6602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6603 | return NULL; | |
6604 | if (_argo0) { | |
6605 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6606 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6607 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6608 | return NULL; | |
6609 | } | |
6610 | } | |
6611 | { | |
4268f798 | 6612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6613 | _result = (int )wxJoystick_GetButtonState(_arg0); |
6614 | ||
4268f798 RD |
6615 | wxPyEndAllowThreads(__tstate); |
6616 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6617 | } _resultobj = Py_BuildValue("i",_result); |
6618 | return _resultobj; | |
6619 | } | |
6620 | ||
6621 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6622 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6623 | PyObject * _resultobj; | |
6624 | int _result; | |
6625 | wxJoystick * _arg0; | |
6626 | PyObject * _argo0 = 0; | |
6627 | char *_kwnames[] = { "self", NULL }; | |
6628 | ||
6629 | self = self; | |
6630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6631 | return NULL; | |
6632 | if (_argo0) { | |
6633 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6634 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6635 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6636 | return NULL; | |
6637 | } | |
6638 | } | |
6639 | { | |
4268f798 | 6640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6641 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
6642 | ||
4268f798 RD |
6643 | wxPyEndAllowThreads(__tstate); |
6644 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6645 | } _resultobj = Py_BuildValue("i",_result); |
6646 | return _resultobj; | |
6647 | } | |
6648 | ||
6649 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6650 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6651 | PyObject * _resultobj; | |
6652 | int _result; | |
6653 | wxJoystick * _arg0; | |
6654 | PyObject * _argo0 = 0; | |
6655 | char *_kwnames[] = { "self", NULL }; | |
6656 | ||
6657 | self = self; | |
6658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6659 | return NULL; | |
6660 | if (_argo0) { | |
6661 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6662 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6663 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6664 | return NULL; | |
6665 | } | |
6666 | } | |
6667 | { | |
4268f798 | 6668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6669 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
6670 | ||
4268f798 RD |
6671 | wxPyEndAllowThreads(__tstate); |
6672 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6673 | } _resultobj = Py_BuildValue("i",_result); |
6674 | return _resultobj; | |
6675 | } | |
6676 | ||
6677 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6678 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6679 | PyObject * _resultobj; | |
6680 | int _result; | |
6681 | wxJoystick * _arg0; | |
6682 | PyObject * _argo0 = 0; | |
6683 | char *_kwnames[] = { "self", NULL }; | |
6684 | ||
6685 | self = self; | |
6686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6687 | return NULL; | |
6688 | if (_argo0) { | |
6689 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6690 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6691 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6692 | return NULL; | |
6693 | } | |
6694 | } | |
6695 | { | |
4268f798 | 6696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6697 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
6698 | ||
4268f798 RD |
6699 | wxPyEndAllowThreads(__tstate); |
6700 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6701 | } _resultobj = Py_BuildValue("i",_result); |
6702 | return _resultobj; | |
6703 | } | |
6704 | ||
6705 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6706 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject * _resultobj; | |
6708 | int _result; | |
6709 | wxJoystick * _arg0; | |
6710 | PyObject * _argo0 = 0; | |
6711 | char *_kwnames[] = { "self", NULL }; | |
6712 | ||
6713 | self = self; | |
6714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6715 | return NULL; | |
6716 | if (_argo0) { | |
6717 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6718 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6719 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6720 | return NULL; | |
6721 | } | |
6722 | } | |
6723 | { | |
4268f798 | 6724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6725 | _result = (int )wxJoystick_GetUPosition(_arg0); |
6726 | ||
4268f798 RD |
6727 | wxPyEndAllowThreads(__tstate); |
6728 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6729 | } _resultobj = Py_BuildValue("i",_result); |
6730 | return _resultobj; | |
6731 | } | |
6732 | ||
6733 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6734 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6735 | PyObject * _resultobj; | |
6736 | int _result; | |
6737 | wxJoystick * _arg0; | |
6738 | PyObject * _argo0 = 0; | |
6739 | char *_kwnames[] = { "self", NULL }; | |
6740 | ||
6741 | self = self; | |
6742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6743 | return NULL; | |
6744 | if (_argo0) { | |
6745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6748 | return NULL; | |
6749 | } | |
6750 | } | |
6751 | { | |
4268f798 | 6752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6753 | _result = (int )wxJoystick_GetVPosition(_arg0); |
6754 | ||
4268f798 RD |
6755 | wxPyEndAllowThreads(__tstate); |
6756 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6757 | } _resultobj = Py_BuildValue("i",_result); |
6758 | return _resultobj; | |
6759 | } | |
6760 | ||
6761 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6762 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6763 | PyObject * _resultobj; | |
6764 | int _result; | |
6765 | wxJoystick * _arg0; | |
6766 | PyObject * _argo0 = 0; | |
6767 | char *_kwnames[] = { "self", NULL }; | |
6768 | ||
6769 | self = self; | |
6770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6771 | return NULL; | |
6772 | if (_argo0) { | |
6773 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6774 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6775 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6776 | return NULL; | |
6777 | } | |
6778 | } | |
6779 | { | |
4268f798 | 6780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6781 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
6782 | ||
4268f798 RD |
6783 | wxPyEndAllowThreads(__tstate); |
6784 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6785 | } _resultobj = Py_BuildValue("i",_result); |
6786 | return _resultobj; | |
6787 | } | |
6788 | ||
6789 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6790 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6791 | PyObject * _resultobj; | |
6792 | wxJoystick * _arg0; | |
6793 | int _arg1; | |
6794 | PyObject * _argo0 = 0; | |
6795 | char *_kwnames[] = { "self","threshold", NULL }; | |
6796 | ||
6797 | self = self; | |
6798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6799 | return NULL; | |
6800 | if (_argo0) { | |
6801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6804 | return NULL; | |
6805 | } | |
6806 | } | |
6807 | { | |
4268f798 | 6808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6809 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
6810 | ||
4268f798 RD |
6811 | wxPyEndAllowThreads(__tstate); |
6812 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6813 | } Py_INCREF(Py_None); |
6814 | _resultobj = Py_None; | |
6815 | return _resultobj; | |
6816 | } | |
6817 | ||
6818 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6819 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6820 | PyObject * _resultobj; | |
6821 | bool _result; | |
6822 | wxJoystick * _arg0; | |
6823 | PyObject * _argo0 = 0; | |
6824 | char *_kwnames[] = { "self", NULL }; | |
6825 | ||
6826 | self = self; | |
6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6828 | return NULL; | |
6829 | if (_argo0) { | |
6830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6833 | return NULL; | |
6834 | } | |
6835 | } | |
6836 | { | |
4268f798 | 6837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6838 | _result = (bool )wxJoystick_IsOk(_arg0); |
6839 | ||
4268f798 RD |
6840 | wxPyEndAllowThreads(__tstate); |
6841 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6842 | } _resultobj = Py_BuildValue("i",_result); |
6843 | return _resultobj; | |
6844 | } | |
6845 | ||
6846 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6847 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6848 | PyObject * _resultobj; | |
6849 | int _result; | |
6850 | wxJoystick * _arg0; | |
6851 | PyObject * _argo0 = 0; | |
6852 | char *_kwnames[] = { "self", NULL }; | |
6853 | ||
6854 | self = self; | |
6855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6856 | return NULL; | |
6857 | if (_argo0) { | |
6858 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6859 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6860 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6861 | return NULL; | |
6862 | } | |
6863 | } | |
6864 | { | |
4268f798 | 6865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6866 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
6867 | ||
4268f798 RD |
6868 | wxPyEndAllowThreads(__tstate); |
6869 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6870 | } _resultobj = Py_BuildValue("i",_result); |
6871 | return _resultobj; | |
6872 | } | |
6873 | ||
6874 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6875 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6876 | PyObject * _resultobj; | |
6877 | int _result; | |
6878 | wxJoystick * _arg0; | |
6879 | PyObject * _argo0 = 0; | |
6880 | char *_kwnames[] = { "self", NULL }; | |
6881 | ||
6882 | self = self; | |
6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6884 | return NULL; | |
6885 | if (_argo0) { | |
6886 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6887 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6888 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6889 | return NULL; | |
6890 | } | |
6891 | } | |
6892 | { | |
4268f798 | 6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6894 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
6895 | ||
4268f798 RD |
6896 | wxPyEndAllowThreads(__tstate); |
6897 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6898 | } _resultobj = Py_BuildValue("i",_result); |
6899 | return _resultobj; | |
6900 | } | |
6901 | ||
6902 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6903 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6904 | PyObject * _resultobj; | |
6905 | int _result; | |
6906 | wxJoystick * _arg0; | |
6907 | PyObject * _argo0 = 0; | |
6908 | char *_kwnames[] = { "self", NULL }; | |
6909 | ||
6910 | self = self; | |
6911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6912 | return NULL; | |
6913 | if (_argo0) { | |
6914 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6915 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6916 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6917 | return NULL; | |
6918 | } | |
6919 | } | |
6920 | { | |
4268f798 | 6921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6922 | _result = (int )wxJoystick_GetProductId(_arg0); |
6923 | ||
4268f798 RD |
6924 | wxPyEndAllowThreads(__tstate); |
6925 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6926 | } _resultobj = Py_BuildValue("i",_result); |
6927 | return _resultobj; | |
6928 | } | |
6929 | ||
6930 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6931 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6932 | PyObject * _resultobj; | |
6933 | wxString * _result; | |
6934 | wxJoystick * _arg0; | |
6935 | PyObject * _argo0 = 0; | |
6936 | char *_kwnames[] = { "self", NULL }; | |
6937 | ||
6938 | self = self; | |
6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6940 | return NULL; | |
6941 | if (_argo0) { | |
6942 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6943 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6944 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6945 | return NULL; | |
6946 | } | |
6947 | } | |
6948 | { | |
4268f798 | 6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6950 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
6951 | ||
4268f798 RD |
6952 | wxPyEndAllowThreads(__tstate); |
6953 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6954 | }{ |
6955 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
6956 | } | |
6957 | { | |
6958 | delete _result; | |
6959 | } | |
6960 | return _resultobj; | |
6961 | } | |
6962 | ||
6963 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6964 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject * _resultobj; | |
6966 | int _result; | |
6967 | wxJoystick * _arg0; | |
6968 | PyObject * _argo0 = 0; | |
6969 | char *_kwnames[] = { "self", NULL }; | |
6970 | ||
6971 | self = self; | |
6972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6973 | return NULL; | |
6974 | if (_argo0) { | |
6975 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6976 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6977 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6978 | return NULL; | |
6979 | } | |
6980 | } | |
6981 | { | |
4268f798 | 6982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
6983 | _result = (int )wxJoystick_GetXMin(_arg0); |
6984 | ||
4268f798 RD |
6985 | wxPyEndAllowThreads(__tstate); |
6986 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6987 | } _resultobj = Py_BuildValue("i",_result); |
6988 | return _resultobj; | |
6989 | } | |
6990 | ||
6991 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6992 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6993 | PyObject * _resultobj; | |
6994 | int _result; | |
6995 | wxJoystick * _arg0; | |
6996 | PyObject * _argo0 = 0; | |
6997 | char *_kwnames[] = { "self", NULL }; | |
6998 | ||
6999 | self = self; | |
7000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
7001 | return NULL; | |
7002 | if (_argo0) { | |
7003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
7006 | return NULL; | |
7007 | } | |
7008 | } | |
7009 | { | |
4268f798 | 7010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7011 | _result = (int )wxJoystick_GetYMin(_arg0); |
7012 | ||
4268f798 RD |
7013 | wxPyEndAllowThreads(__tstate); |
7014 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7015 | } _resultobj = Py_BuildValue("i",_result); |
7016 | return _resultobj; | |
7017 | } | |
7018 | ||
7019 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
7020 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7021 | PyObject * _resultobj; | |
7022 | int _result; | |
7023 | wxJoystick * _arg0; | |
7024 | PyObject * _argo0 = 0; | |
7025 | char *_kwnames[] = { "self", NULL }; | |
7026 | ||
7027 | self = self; | |
7028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
7029 | return NULL; | |
7030 | if (_argo0) { | |
7031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
7034 | return NULL; | |
7035 | } | |
7036 | } | |
7037 | { | |
4268f798 | 7038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7039 | _result = (int )wxJoystick_GetZMin(_arg0); |
7040 | ||
4268f798 RD |
7041 | wxPyEndAllowThreads(__tstate); |
7042 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7043 | } _resultobj = Py_BuildValue("i",_result); |
7044 | return _resultobj; | |
7045 | } | |
7046 | ||
7047 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
7048 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7049 | PyObject * _resultobj; | |
7050 | int _result; | |
7051 | wxJoystick * _arg0; | |
7052 | PyObject * _argo0 = 0; | |
7053 | char *_kwnames[] = { "self", NULL }; | |
7054 | ||
7055 | self = self; | |
7056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
7057 | return NULL; | |
7058 | if (_argo0) { | |
7059 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7060 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7061 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
7062 | return NULL; | |
7063 | } | |
7064 | } | |
7065 | { | |
4268f798 | 7066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7067 | _result = (int )wxJoystick_GetXMax(_arg0); |
7068 | ||
4268f798 RD |
7069 | wxPyEndAllowThreads(__tstate); |
7070 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7071 | } _resultobj = Py_BuildValue("i",_result); |
7072 | return _resultobj; | |
7073 | } | |
7074 | ||
7075 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
7076 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7077 | PyObject * _resultobj; | |
7078 | int _result; | |
7079 | wxJoystick * _arg0; | |
7080 | PyObject * _argo0 = 0; | |
7081 | char *_kwnames[] = { "self", NULL }; | |
7082 | ||
7083 | self = self; | |
7084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
7085 | return NULL; | |
7086 | if (_argo0) { | |
7087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7090 | return NULL; | |
7091 | } | |
7092 | } | |
7093 | { | |
4268f798 | 7094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7095 | _result = (int )wxJoystick_GetYMax(_arg0); |
7096 | ||
4268f798 RD |
7097 | wxPyEndAllowThreads(__tstate); |
7098 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7099 | } _resultobj = Py_BuildValue("i",_result); |
7100 | return _resultobj; | |
7101 | } | |
7102 | ||
7103 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7104 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7105 | PyObject * _resultobj; | |
7106 | int _result; | |
7107 | wxJoystick * _arg0; | |
7108 | PyObject * _argo0 = 0; | |
7109 | char *_kwnames[] = { "self", NULL }; | |
7110 | ||
7111 | self = self; | |
7112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7113 | return NULL; | |
7114 | if (_argo0) { | |
7115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7118 | return NULL; | |
7119 | } | |
7120 | } | |
7121 | { | |
4268f798 | 7122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7123 | _result = (int )wxJoystick_GetZMax(_arg0); |
7124 | ||
4268f798 RD |
7125 | wxPyEndAllowThreads(__tstate); |
7126 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7127 | } _resultobj = Py_BuildValue("i",_result); |
7128 | return _resultobj; | |
7129 | } | |
7130 | ||
7131 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7132 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7133 | PyObject * _resultobj; | |
7134 | int _result; | |
7135 | wxJoystick * _arg0; | |
7136 | PyObject * _argo0 = 0; | |
7137 | char *_kwnames[] = { "self", NULL }; | |
7138 | ||
7139 | self = self; | |
7140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7141 | return NULL; | |
7142 | if (_argo0) { | |
7143 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7144 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7145 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7146 | return NULL; | |
7147 | } | |
7148 | } | |
7149 | { | |
4268f798 | 7150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7151 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
7152 | ||
4268f798 RD |
7153 | wxPyEndAllowThreads(__tstate); |
7154 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7155 | } _resultobj = Py_BuildValue("i",_result); |
7156 | return _resultobj; | |
7157 | } | |
7158 | ||
7159 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7160 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7161 | PyObject * _resultobj; | |
7162 | int _result; | |
7163 | wxJoystick * _arg0; | |
7164 | PyObject * _argo0 = 0; | |
7165 | char *_kwnames[] = { "self", NULL }; | |
7166 | ||
7167 | self = self; | |
7168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7169 | return NULL; | |
7170 | if (_argo0) { | |
7171 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7172 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7173 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7174 | return NULL; | |
7175 | } | |
7176 | } | |
7177 | { | |
4268f798 | 7178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7179 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
7180 | ||
4268f798 RD |
7181 | wxPyEndAllowThreads(__tstate); |
7182 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7183 | } _resultobj = Py_BuildValue("i",_result); |
7184 | return _resultobj; | |
7185 | } | |
7186 | ||
7187 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7188 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7189 | PyObject * _resultobj; | |
7190 | int _result; | |
7191 | wxJoystick * _arg0; | |
7192 | PyObject * _argo0 = 0; | |
7193 | char *_kwnames[] = { "self", NULL }; | |
7194 | ||
7195 | self = self; | |
7196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7197 | return NULL; | |
7198 | if (_argo0) { | |
7199 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7200 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7201 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7202 | return NULL; | |
7203 | } | |
7204 | } | |
7205 | { | |
4268f798 | 7206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7207 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
7208 | ||
4268f798 RD |
7209 | wxPyEndAllowThreads(__tstate); |
7210 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7211 | } _resultobj = Py_BuildValue("i",_result); |
7212 | return _resultobj; | |
7213 | } | |
7214 | ||
7215 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7216 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7217 | PyObject * _resultobj; | |
7218 | int _result; | |
7219 | wxJoystick * _arg0; | |
7220 | PyObject * _argo0 = 0; | |
7221 | char *_kwnames[] = { "self", NULL }; | |
7222 | ||
7223 | self = self; | |
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7225 | return NULL; | |
7226 | if (_argo0) { | |
7227 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7228 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7229 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7230 | return NULL; | |
7231 | } | |
7232 | } | |
7233 | { | |
4268f798 | 7234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7235 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
7236 | ||
4268f798 RD |
7237 | wxPyEndAllowThreads(__tstate); |
7238 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7239 | } _resultobj = Py_BuildValue("i",_result); |
7240 | return _resultobj; | |
7241 | } | |
7242 | ||
7243 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7244 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7245 | PyObject * _resultobj; | |
7246 | int _result; | |
7247 | wxJoystick * _arg0; | |
7248 | PyObject * _argo0 = 0; | |
7249 | char *_kwnames[] = { "self", NULL }; | |
7250 | ||
7251 | self = self; | |
7252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7253 | return NULL; | |
7254 | if (_argo0) { | |
7255 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7256 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7257 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7258 | return NULL; | |
7259 | } | |
7260 | } | |
7261 | { | |
4268f798 | 7262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7263 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
7264 | ||
4268f798 RD |
7265 | wxPyEndAllowThreads(__tstate); |
7266 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7267 | } _resultobj = Py_BuildValue("i",_result); |
7268 | return _resultobj; | |
7269 | } | |
7270 | ||
7271 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7272 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7273 | PyObject * _resultobj; | |
7274 | int _result; | |
7275 | wxJoystick * _arg0; | |
7276 | PyObject * _argo0 = 0; | |
7277 | char *_kwnames[] = { "self", NULL }; | |
7278 | ||
7279 | self = self; | |
7280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7281 | return NULL; | |
7282 | if (_argo0) { | |
7283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7286 | return NULL; | |
7287 | } | |
7288 | } | |
7289 | { | |
4268f798 | 7290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7291 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
7292 | ||
4268f798 RD |
7293 | wxPyEndAllowThreads(__tstate); |
7294 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7295 | } _resultobj = Py_BuildValue("i",_result); |
7296 | return _resultobj; | |
7297 | } | |
7298 | ||
7299 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7300 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7301 | PyObject * _resultobj; | |
7302 | int _result; | |
7303 | wxJoystick * _arg0; | |
7304 | PyObject * _argo0 = 0; | |
7305 | char *_kwnames[] = { "self", NULL }; | |
7306 | ||
7307 | self = self; | |
7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7309 | return NULL; | |
7310 | if (_argo0) { | |
7311 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7312 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7313 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7314 | return NULL; | |
7315 | } | |
7316 | } | |
7317 | { | |
4268f798 | 7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7319 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
7320 | ||
4268f798 RD |
7321 | wxPyEndAllowThreads(__tstate); |
7322 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7323 | } _resultobj = Py_BuildValue("i",_result); |
7324 | return _resultobj; | |
7325 | } | |
7326 | ||
7327 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7328 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7329 | PyObject * _resultobj; | |
7330 | int _result; | |
7331 | wxJoystick * _arg0; | |
7332 | PyObject * _argo0 = 0; | |
7333 | char *_kwnames[] = { "self", NULL }; | |
7334 | ||
7335 | self = self; | |
7336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7337 | return NULL; | |
7338 | if (_argo0) { | |
7339 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7340 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7341 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7342 | return NULL; | |
7343 | } | |
7344 | } | |
7345 | { | |
4268f798 | 7346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7347 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
7348 | ||
4268f798 RD |
7349 | wxPyEndAllowThreads(__tstate); |
7350 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7351 | } _resultobj = Py_BuildValue("i",_result); |
7352 | return _resultobj; | |
7353 | } | |
7354 | ||
7355 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7356 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7357 | PyObject * _resultobj; | |
7358 | int _result; | |
7359 | wxJoystick * _arg0; | |
7360 | PyObject * _argo0 = 0; | |
7361 | char *_kwnames[] = { "self", NULL }; | |
7362 | ||
7363 | self = self; | |
7364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7365 | return NULL; | |
7366 | if (_argo0) { | |
7367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7370 | return NULL; | |
7371 | } | |
7372 | } | |
7373 | { | |
4268f798 | 7374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7375 | _result = (int )wxJoystick_GetUMin(_arg0); |
7376 | ||
4268f798 RD |
7377 | wxPyEndAllowThreads(__tstate); |
7378 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7379 | } _resultobj = Py_BuildValue("i",_result); |
7380 | return _resultobj; | |
7381 | } | |
7382 | ||
7383 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7384 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7385 | PyObject * _resultobj; | |
7386 | int _result; | |
7387 | wxJoystick * _arg0; | |
7388 | PyObject * _argo0 = 0; | |
7389 | char *_kwnames[] = { "self", NULL }; | |
7390 | ||
7391 | self = self; | |
7392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7393 | return NULL; | |
7394 | if (_argo0) { | |
7395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7398 | return NULL; | |
7399 | } | |
7400 | } | |
7401 | { | |
4268f798 | 7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7403 | _result = (int )wxJoystick_GetUMax(_arg0); |
7404 | ||
4268f798 RD |
7405 | wxPyEndAllowThreads(__tstate); |
7406 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7407 | } _resultobj = Py_BuildValue("i",_result); |
7408 | return _resultobj; | |
7409 | } | |
7410 | ||
7411 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7412 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7413 | PyObject * _resultobj; | |
7414 | int _result; | |
7415 | wxJoystick * _arg0; | |
7416 | PyObject * _argo0 = 0; | |
7417 | char *_kwnames[] = { "self", NULL }; | |
7418 | ||
7419 | self = self; | |
7420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7421 | return NULL; | |
7422 | if (_argo0) { | |
7423 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7424 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7425 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7426 | return NULL; | |
7427 | } | |
7428 | } | |
7429 | { | |
4268f798 | 7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7431 | _result = (int )wxJoystick_GetVMin(_arg0); |
7432 | ||
4268f798 RD |
7433 | wxPyEndAllowThreads(__tstate); |
7434 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7435 | } _resultobj = Py_BuildValue("i",_result); |
7436 | return _resultobj; | |
7437 | } | |
7438 | ||
7439 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7440 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7441 | PyObject * _resultobj; | |
7442 | int _result; | |
7443 | wxJoystick * _arg0; | |
7444 | PyObject * _argo0 = 0; | |
7445 | char *_kwnames[] = { "self", NULL }; | |
7446 | ||
7447 | self = self; | |
7448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7449 | return NULL; | |
7450 | if (_argo0) { | |
7451 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7452 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7453 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7454 | return NULL; | |
7455 | } | |
7456 | } | |
7457 | { | |
4268f798 | 7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7459 | _result = (int )wxJoystick_GetVMax(_arg0); |
7460 | ||
4268f798 RD |
7461 | wxPyEndAllowThreads(__tstate); |
7462 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7463 | } _resultobj = Py_BuildValue("i",_result); |
7464 | return _resultobj; | |
7465 | } | |
7466 | ||
7467 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7468 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7469 | PyObject * _resultobj; | |
7470 | bool _result; | |
7471 | wxJoystick * _arg0; | |
7472 | PyObject * _argo0 = 0; | |
7473 | char *_kwnames[] = { "self", NULL }; | |
7474 | ||
7475 | self = self; | |
7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7477 | return NULL; | |
7478 | if (_argo0) { | |
7479 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7480 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7481 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7482 | return NULL; | |
7483 | } | |
7484 | } | |
7485 | { | |
4268f798 | 7486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7487 | _result = (bool )wxJoystick_HasRudder(_arg0); |
7488 | ||
4268f798 RD |
7489 | wxPyEndAllowThreads(__tstate); |
7490 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7491 | } _resultobj = Py_BuildValue("i",_result); |
7492 | return _resultobj; | |
7493 | } | |
7494 | ||
7495 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7496 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7497 | PyObject * _resultobj; | |
7498 | bool _result; | |
7499 | wxJoystick * _arg0; | |
7500 | PyObject * _argo0 = 0; | |
7501 | char *_kwnames[] = { "self", NULL }; | |
7502 | ||
7503 | self = self; | |
7504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7505 | return NULL; | |
7506 | if (_argo0) { | |
7507 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7508 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7509 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7510 | return NULL; | |
7511 | } | |
7512 | } | |
7513 | { | |
4268f798 | 7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7515 | _result = (bool )wxJoystick_HasZ(_arg0); |
7516 | ||
4268f798 RD |
7517 | wxPyEndAllowThreads(__tstate); |
7518 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7519 | } _resultobj = Py_BuildValue("i",_result); |
7520 | return _resultobj; | |
7521 | } | |
7522 | ||
7523 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7524 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7525 | PyObject * _resultobj; | |
7526 | bool _result; | |
7527 | wxJoystick * _arg0; | |
7528 | PyObject * _argo0 = 0; | |
7529 | char *_kwnames[] = { "self", NULL }; | |
7530 | ||
7531 | self = self; | |
7532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7533 | return NULL; | |
7534 | if (_argo0) { | |
7535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7538 | return NULL; | |
7539 | } | |
7540 | } | |
7541 | { | |
4268f798 | 7542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7543 | _result = (bool )wxJoystick_HasU(_arg0); |
7544 | ||
4268f798 RD |
7545 | wxPyEndAllowThreads(__tstate); |
7546 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7547 | } _resultobj = Py_BuildValue("i",_result); |
7548 | return _resultobj; | |
7549 | } | |
7550 | ||
7551 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7552 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject * _resultobj; | |
7554 | bool _result; | |
7555 | wxJoystick * _arg0; | |
7556 | PyObject * _argo0 = 0; | |
7557 | char *_kwnames[] = { "self", NULL }; | |
7558 | ||
7559 | self = self; | |
7560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7561 | return NULL; | |
7562 | if (_argo0) { | |
7563 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7564 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7565 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7566 | return NULL; | |
7567 | } | |
7568 | } | |
7569 | { | |
4268f798 | 7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7571 | _result = (bool )wxJoystick_HasV(_arg0); |
7572 | ||
4268f798 RD |
7573 | wxPyEndAllowThreads(__tstate); |
7574 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7575 | } _resultobj = Py_BuildValue("i",_result); |
7576 | return _resultobj; | |
7577 | } | |
7578 | ||
7579 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7580 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7581 | PyObject * _resultobj; | |
7582 | bool _result; | |
7583 | wxJoystick * _arg0; | |
7584 | PyObject * _argo0 = 0; | |
7585 | char *_kwnames[] = { "self", NULL }; | |
7586 | ||
7587 | self = self; | |
7588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7589 | return NULL; | |
7590 | if (_argo0) { | |
7591 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7592 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7593 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7594 | return NULL; | |
7595 | } | |
7596 | } | |
7597 | { | |
4268f798 | 7598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7599 | _result = (bool )wxJoystick_HasPOV(_arg0); |
7600 | ||
4268f798 RD |
7601 | wxPyEndAllowThreads(__tstate); |
7602 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7603 | } _resultobj = Py_BuildValue("i",_result); |
7604 | return _resultobj; | |
7605 | } | |
7606 | ||
7607 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7608 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7609 | PyObject * _resultobj; | |
7610 | bool _result; | |
7611 | wxJoystick * _arg0; | |
7612 | PyObject * _argo0 = 0; | |
7613 | char *_kwnames[] = { "self", NULL }; | |
7614 | ||
7615 | self = self; | |
7616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7617 | return NULL; | |
7618 | if (_argo0) { | |
7619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7622 | return NULL; | |
7623 | } | |
7624 | } | |
7625 | { | |
4268f798 | 7626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7627 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
7628 | ||
4268f798 RD |
7629 | wxPyEndAllowThreads(__tstate); |
7630 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7631 | } _resultobj = Py_BuildValue("i",_result); |
7632 | return _resultobj; | |
7633 | } | |
7634 | ||
7635 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7636 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7637 | PyObject * _resultobj; | |
7638 | bool _result; | |
7639 | wxJoystick * _arg0; | |
7640 | PyObject * _argo0 = 0; | |
7641 | char *_kwnames[] = { "self", NULL }; | |
7642 | ||
7643 | self = self; | |
7644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7645 | return NULL; | |
7646 | if (_argo0) { | |
7647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7650 | return NULL; | |
7651 | } | |
7652 | } | |
7653 | { | |
4268f798 | 7654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7655 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
7656 | ||
4268f798 RD |
7657 | wxPyEndAllowThreads(__tstate); |
7658 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7659 | } _resultobj = Py_BuildValue("i",_result); |
7660 | return _resultobj; | |
7661 | } | |
7662 | ||
7663 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7664 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7665 | PyObject * _resultobj; | |
7666 | bool _result; | |
7667 | wxJoystick * _arg0; | |
7668 | wxWindow * _arg1; | |
7669 | int _arg2 = (int ) 0; | |
7670 | PyObject * _argo0 = 0; | |
7671 | PyObject * _argo1 = 0; | |
7672 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7673 | ||
7674 | self = self; | |
7675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7676 | return NULL; | |
7677 | if (_argo0) { | |
7678 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7679 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7680 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7681 | return NULL; | |
7682 | } | |
7683 | } | |
7684 | if (_argo1) { | |
7685 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7686 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7688 | return NULL; | |
7689 | } | |
7690 | } | |
7691 | { | |
4268f798 | 7692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7693 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
7694 | ||
4268f798 RD |
7695 | wxPyEndAllowThreads(__tstate); |
7696 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7697 | } _resultobj = Py_BuildValue("i",_result); |
7698 | return _resultobj; | |
7699 | } | |
7700 | ||
7701 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7702 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7703 | PyObject * _resultobj; | |
7704 | bool _result; | |
7705 | wxJoystick * _arg0; | |
7706 | PyObject * _argo0 = 0; | |
7707 | char *_kwnames[] = { "self", NULL }; | |
7708 | ||
7709 | self = self; | |
7710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7711 | return NULL; | |
7712 | if (_argo0) { | |
7713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7716 | return NULL; | |
7717 | } | |
7718 | } | |
7719 | { | |
4268f798 | 7720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
185d7c3e RD |
7721 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
7722 | ||
4268f798 RD |
7723 | wxPyEndAllowThreads(__tstate); |
7724 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7725 | } _resultobj = Py_BuildValue("i",_result); |
7726 | return _resultobj; | |
7727 | } | |
7728 | ||
493f1553 RD |
7729 | static void *SwigwxWaveTowxObject(void *ptr) { |
7730 | wxWave *src; | |
7731 | wxObject *dest; | |
7732 | src = (wxWave *) ptr; | |
7733 | dest = (wxObject *) src; | |
7734 | return (void *) dest; | |
7735 | } | |
7736 | ||
7737 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7738 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7739 | PyObject * _resultobj; | |
7740 | wxWave * _result; | |
7741 | wxString * _arg0; | |
7742 | bool _arg1 = (bool ) FALSE; | |
7743 | PyObject * _obj0 = 0; | |
7744 | int tempbool1 = (int) FALSE; | |
7745 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7746 | char _ptemp[128]; | |
7747 | ||
7748 | self = self; | |
7749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7750 | return NULL; | |
7751 | { | |
7752 | #if PYTHON_API_VERSION >= 1009 | |
7753 | char* tmpPtr; int tmpSize; | |
7754 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
7755 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7756 | return NULL; | |
7757 | } | |
7758 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
7759 | return NULL; | |
7760 | _arg0 = new wxString(tmpPtr, tmpSize); | |
7761 | #else | |
7762 | if (!PyString_Check(_obj0)) { | |
7763 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
7764 | return NULL; | |
7765 | } | |
7766 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
7767 | #endif | |
7768 | } | |
7769 | _arg1 = (bool ) tempbool1; | |
7770 | { | |
4268f798 | 7771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
7772 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
7773 | ||
4268f798 RD |
7774 | wxPyEndAllowThreads(__tstate); |
7775 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7776 | } if (_result) { |
7777 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7778 | _resultobj = Py_BuildValue("s",_ptemp); | |
7779 | } else { | |
7780 | Py_INCREF(Py_None); | |
7781 | _resultobj = Py_None; | |
7782 | } | |
7783 | { | |
7784 | if (_obj0) | |
7785 | delete _arg0; | |
7786 | } | |
7787 | return _resultobj; | |
7788 | } | |
7789 | ||
7790 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7791 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7792 | PyObject * _resultobj; | |
7793 | wxWave * _arg0; | |
7794 | PyObject * _argo0 = 0; | |
7795 | char *_kwnames[] = { "self", NULL }; | |
7796 | ||
7797 | self = self; | |
7798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7799 | return NULL; | |
7800 | if (_argo0) { | |
7801 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7802 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7803 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7804 | return NULL; | |
7805 | } | |
7806 | } | |
7807 | { | |
4268f798 | 7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
7809 | delete_wxWave(_arg0); |
7810 | ||
4268f798 RD |
7811 | wxPyEndAllowThreads(__tstate); |
7812 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7813 | } Py_INCREF(Py_None); |
7814 | _resultobj = Py_None; | |
7815 | return _resultobj; | |
7816 | } | |
7817 | ||
7818 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7819 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7820 | PyObject * _resultobj; | |
7821 | bool _result; | |
7822 | wxWave * _arg0; | |
7823 | PyObject * _argo0 = 0; | |
7824 | char *_kwnames[] = { "self", NULL }; | |
7825 | ||
7826 | self = self; | |
7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7828 | return NULL; | |
7829 | if (_argo0) { | |
7830 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7831 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7832 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7833 | return NULL; | |
7834 | } | |
7835 | } | |
7836 | { | |
4268f798 | 7837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
7838 | _result = (bool )wxWave_IsOk(_arg0); |
7839 | ||
4268f798 RD |
7840 | wxPyEndAllowThreads(__tstate); |
7841 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7842 | } _resultobj = Py_BuildValue("i",_result); |
7843 | return _resultobj; | |
7844 | } | |
7845 | ||
7846 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7847 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject * _resultobj; | |
7849 | bool _result; | |
7850 | wxWave * _arg0; | |
7851 | bool _arg1 = (bool ) TRUE; | |
7852 | bool _arg2 = (bool ) FALSE; | |
7853 | PyObject * _argo0 = 0; | |
7854 | int tempbool1 = (int) TRUE; | |
7855 | int tempbool2 = (int) FALSE; | |
7856 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7857 | ||
7858 | self = self; | |
7859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7860 | return NULL; | |
7861 | if (_argo0) { | |
7862 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7863 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7864 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7865 | return NULL; | |
7866 | } | |
7867 | } | |
7868 | _arg1 = (bool ) tempbool1; | |
7869 | _arg2 = (bool ) tempbool2; | |
7870 | { | |
4268f798 | 7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
493f1553 RD |
7872 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
7873 | ||
4268f798 RD |
7874 | wxPyEndAllowThreads(__tstate); |
7875 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7876 | } _resultobj = Py_BuildValue("i",_result); |
7877 | return _resultobj; | |
7878 | } | |
7879 | ||
b37c7e1d RD |
7880 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7881 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7882 | PyObject * _resultobj; | |
7883 | wxFileTypeInfo * _result; | |
7884 | char * _arg0; | |
7885 | char * _arg1; | |
7886 | char * _arg2; | |
7887 | char * _arg3; | |
7888 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7889 | char _ptemp[128]; | |
7890 | ||
7891 | self = self; | |
7892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7893 | return NULL; | |
7894 | { | |
4268f798 | 7895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
7896 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
7897 | ||
4268f798 RD |
7898 | wxPyEndAllowThreads(__tstate); |
7899 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7900 | } if (_result) { |
7901 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7902 | _resultobj = Py_BuildValue("s",_ptemp); | |
7903 | } else { | |
7904 | Py_INCREF(Py_None); | |
7905 | _resultobj = Py_None; | |
7906 | } | |
7907 | return _resultobj; | |
7908 | } | |
7909 | ||
7910 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7911 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7912 | PyObject * _resultobj; | |
7913 | wxFileTypeInfo * _result; | |
7914 | wxArrayString * _arg0; | |
7915 | PyObject * _obj0 = 0; | |
7916 | char *_kwnames[] = { "sArray", NULL }; | |
7917 | char _ptemp[128]; | |
7918 | ||
7919 | self = self; | |
7920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7921 | return NULL; | |
7922 | { | |
7923 | if (! PySequence_Check(_obj0)) { | |
7924 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7925 | return NULL; | |
7926 | } | |
7927 | _arg0 = new wxArrayString; | |
7928 | int i, len=PySequence_Length(_obj0); | |
7929 | for (i=0; i<len; i++) { | |
7930 | PyObject* item = PySequence_GetItem(_obj0, i); | |
7931 | PyObject* str = PyObject_Str(item); | |
7932 | _arg0->Add(PyString_AsString(item)); | |
7933 | Py_DECREF(item); | |
7934 | Py_DECREF(str); | |
7935 | } | |
7936 | } | |
7937 | { | |
4268f798 | 7938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
7939 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
7940 | ||
4268f798 RD |
7941 | wxPyEndAllowThreads(__tstate); |
7942 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7943 | } if (_result) { |
7944 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7945 | _resultobj = Py_BuildValue("s",_ptemp); | |
7946 | } else { | |
7947 | Py_INCREF(Py_None); | |
7948 | _resultobj = Py_None; | |
7949 | } | |
7950 | { | |
7951 | if (_obj0) | |
7952 | delete _arg0; | |
7953 | } | |
7954 | return _resultobj; | |
7955 | } | |
7956 | ||
7957 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7958 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7959 | PyObject * _resultobj; | |
7960 | wxFileTypeInfo * _result; | |
7961 | char *_kwnames[] = { NULL }; | |
7962 | char _ptemp[128]; | |
7963 | ||
7964 | self = self; | |
7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7966 | return NULL; | |
7967 | { | |
4268f798 | 7968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
7969 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
7970 | ||
4268f798 RD |
7971 | wxPyEndAllowThreads(__tstate); |
7972 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7973 | } if (_result) { |
7974 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7975 | _resultobj = Py_BuildValue("s",_ptemp); | |
7976 | } else { | |
7977 | Py_INCREF(Py_None); | |
7978 | _resultobj = Py_None; | |
7979 | } | |
7980 | return _resultobj; | |
7981 | } | |
7982 | ||
7983 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7984 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject * _resultobj; | |
7986 | bool _result; | |
7987 | wxFileTypeInfo * _arg0; | |
7988 | PyObject * _argo0 = 0; | |
7989 | char *_kwnames[] = { "self", NULL }; | |
7990 | ||
7991 | self = self; | |
7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7993 | return NULL; | |
7994 | if (_argo0) { | |
7995 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7996 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7997 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7998 | return NULL; | |
7999 | } | |
8000 | } | |
8001 | { | |
4268f798 | 8002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8003 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
8004 | ||
4268f798 RD |
8005 | wxPyEndAllowThreads(__tstate); |
8006 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8007 | } _resultobj = Py_BuildValue("i",_result); |
8008 | return _resultobj; | |
8009 | } | |
8010 | ||
8011 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
8012 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8013 | PyObject * _resultobj; | |
8014 | wxFileTypeInfo * _arg0; | |
8015 | wxString * _arg1; | |
8016 | int _arg2 = (int ) 0; | |
8017 | PyObject * _argo0 = 0; | |
8018 | PyObject * _obj1 = 0; | |
8019 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
8020 | ||
8021 | self = self; | |
8022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8023 | return NULL; | |
8024 | if (_argo0) { | |
8025 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8026 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8027 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
8028 | return NULL; | |
8029 | } | |
8030 | } | |
8031 | { | |
8032 | #if PYTHON_API_VERSION >= 1009 | |
8033 | char* tmpPtr; int tmpSize; | |
8034 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8035 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8036 | return NULL; | |
8037 | } | |
8038 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8039 | return NULL; | |
8040 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8041 | #else | |
8042 | if (!PyString_Check(_obj1)) { | |
8043 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8044 | return NULL; | |
8045 | } | |
8046 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8047 | #endif | |
8048 | } | |
8049 | { | |
4268f798 | 8050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8051 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
8052 | ||
4268f798 RD |
8053 | wxPyEndAllowThreads(__tstate); |
8054 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8055 | } Py_INCREF(Py_None); |
8056 | _resultobj = Py_None; | |
8057 | { | |
8058 | if (_obj1) | |
8059 | delete _arg1; | |
8060 | } | |
8061 | return _resultobj; | |
8062 | } | |
8063 | ||
8064 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
8065 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8066 | PyObject * _resultobj; | |
8067 | wxFileTypeInfo * _arg0; | |
8068 | wxString * _arg1; | |
8069 | PyObject * _argo0 = 0; | |
8070 | PyObject * _obj1 = 0; | |
8071 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
8072 | ||
8073 | self = self; | |
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
8075 | return NULL; | |
8076 | if (_argo0) { | |
8077 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8078 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8079 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
8080 | return NULL; | |
8081 | } | |
8082 | } | |
8083 | { | |
8084 | #if PYTHON_API_VERSION >= 1009 | |
8085 | char* tmpPtr; int tmpSize; | |
8086 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8087 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8088 | return NULL; | |
8089 | } | |
8090 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8091 | return NULL; | |
8092 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8093 | #else | |
8094 | if (!PyString_Check(_obj1)) { | |
8095 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8096 | return NULL; | |
8097 | } | |
8098 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8099 | #endif | |
8100 | } | |
8101 | { | |
4268f798 | 8102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8103 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
8104 | ||
4268f798 RD |
8105 | wxPyEndAllowThreads(__tstate); |
8106 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8107 | } Py_INCREF(Py_None); |
8108 | _resultobj = Py_None; | |
8109 | { | |
8110 | if (_obj1) | |
8111 | delete _arg1; | |
8112 | } | |
8113 | return _resultobj; | |
8114 | } | |
8115 | ||
8116 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
8117 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8118 | PyObject * _resultobj; | |
8119 | wxString * _result; | |
8120 | wxFileTypeInfo * _arg0; | |
8121 | PyObject * _argo0 = 0; | |
8122 | char *_kwnames[] = { "self", NULL }; | |
8123 | ||
8124 | self = self; | |
8125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8126 | return NULL; | |
8127 | if (_argo0) { | |
8128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8131 | return NULL; | |
8132 | } | |
8133 | } | |
8134 | { | |
4268f798 | 8135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8136 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
8137 | _result = (wxString *) &_result_ref; | |
8138 | ||
4268f798 RD |
8139 | wxPyEndAllowThreads(__tstate); |
8140 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8141 | }{ |
8142 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8143 | } | |
8144 | return _resultobj; | |
8145 | } | |
8146 | ||
8147 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8148 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8149 | PyObject * _resultobj; | |
8150 | wxString * _result; | |
8151 | wxFileTypeInfo * _arg0; | |
8152 | PyObject * _argo0 = 0; | |
8153 | char *_kwnames[] = { "self", NULL }; | |
8154 | ||
8155 | self = self; | |
8156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8157 | return NULL; | |
8158 | if (_argo0) { | |
8159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8162 | return NULL; | |
8163 | } | |
8164 | } | |
8165 | { | |
4268f798 | 8166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8167 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
8168 | _result = (wxString *) &_result_ref; | |
8169 | ||
4268f798 RD |
8170 | wxPyEndAllowThreads(__tstate); |
8171 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8172 | }{ |
8173 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8174 | } | |
8175 | return _resultobj; | |
8176 | } | |
8177 | ||
8178 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8179 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8180 | PyObject * _resultobj; | |
8181 | wxString * _result; | |
8182 | wxFileTypeInfo * _arg0; | |
8183 | PyObject * _argo0 = 0; | |
8184 | char *_kwnames[] = { "self", NULL }; | |
8185 | ||
8186 | self = self; | |
8187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8188 | return NULL; | |
8189 | if (_argo0) { | |
8190 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8191 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8192 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8193 | return NULL; | |
8194 | } | |
8195 | } | |
8196 | { | |
4268f798 | 8197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8198 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
8199 | _result = (wxString *) &_result_ref; | |
8200 | ||
4268f798 RD |
8201 | wxPyEndAllowThreads(__tstate); |
8202 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8203 | }{ |
8204 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8205 | } | |
8206 | return _resultobj; | |
8207 | } | |
8208 | ||
8209 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8210 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8211 | PyObject * _resultobj; | |
8212 | wxString * _result; | |
8213 | wxFileTypeInfo * _arg0; | |
8214 | PyObject * _argo0 = 0; | |
8215 | char *_kwnames[] = { "self", NULL }; | |
8216 | ||
8217 | self = self; | |
8218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8219 | return NULL; | |
8220 | if (_argo0) { | |
8221 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8222 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8224 | return NULL; | |
8225 | } | |
8226 | } | |
8227 | { | |
4268f798 | 8228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8229 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
8230 | _result = (wxString *) &_result_ref; | |
8231 | ||
4268f798 RD |
8232 | wxPyEndAllowThreads(__tstate); |
8233 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8234 | }{ |
8235 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8236 | } | |
8237 | return _resultobj; | |
8238 | } | |
8239 | ||
8240 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8241 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8242 | PyObject * _resultobj; | |
8243 | wxString * _result; | |
8244 | wxFileTypeInfo * _arg0; | |
8245 | PyObject * _argo0 = 0; | |
8246 | char *_kwnames[] = { "self", NULL }; | |
8247 | ||
8248 | self = self; | |
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8250 | return NULL; | |
8251 | if (_argo0) { | |
8252 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8253 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8254 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8255 | return NULL; | |
8256 | } | |
8257 | } | |
8258 | { | |
4268f798 | 8259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8260 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
8261 | _result = (wxString *) &_result_ref; | |
8262 | ||
4268f798 RD |
8263 | wxPyEndAllowThreads(__tstate); |
8264 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8265 | }{ |
8266 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8267 | } | |
8268 | return _resultobj; | |
8269 | } | |
8270 | ||
8271 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8272 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8273 | return wxArrayString2PyList_helper(arr); | |
8274 | } | |
8275 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8276 | PyObject * _resultobj; | |
8277 | PyObject * _result; | |
8278 | wxFileTypeInfo * _arg0; | |
8279 | PyObject * _argo0 = 0; | |
8280 | char *_kwnames[] = { "self", NULL }; | |
8281 | ||
8282 | self = self; | |
8283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8284 | return NULL; | |
8285 | if (_argo0) { | |
8286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8289 | return NULL; | |
8290 | } | |
8291 | } | |
8292 | { | |
4268f798 | 8293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8294 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
8295 | ||
4268f798 RD |
8296 | wxPyEndAllowThreads(__tstate); |
8297 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8298 | }{ |
8299 | _resultobj = _result; | |
8300 | } | |
8301 | return _resultobj; | |
8302 | } | |
8303 | ||
8304 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8305 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8306 | PyObject * _resultobj; | |
8307 | int _result; | |
8308 | wxFileTypeInfo * _arg0; | |
8309 | PyObject * _argo0 = 0; | |
8310 | char *_kwnames[] = { "self", NULL }; | |
8311 | ||
8312 | self = self; | |
8313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8314 | return NULL; | |
8315 | if (_argo0) { | |
8316 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8317 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8318 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8319 | return NULL; | |
8320 | } | |
8321 | } | |
8322 | { | |
4268f798 | 8323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8324 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
8325 | ||
4268f798 RD |
8326 | wxPyEndAllowThreads(__tstate); |
8327 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8328 | } _resultobj = Py_BuildValue("i",_result); |
8329 | return _resultobj; | |
8330 | } | |
8331 | ||
8332 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8333 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8334 | PyObject * _resultobj; | |
8335 | wxString * _result; | |
8336 | wxFileTypeInfo * _arg0; | |
8337 | PyObject * _argo0 = 0; | |
8338 | char *_kwnames[] = { "self", NULL }; | |
8339 | ||
8340 | self = self; | |
8341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8342 | return NULL; | |
8343 | if (_argo0) { | |
8344 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8345 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8346 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8347 | return NULL; | |
8348 | } | |
8349 | } | |
8350 | { | |
4268f798 | 8351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8352 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
8353 | _result = (wxString *) &_result_ref; | |
8354 | ||
4268f798 RD |
8355 | wxPyEndAllowThreads(__tstate); |
8356 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8357 | }{ |
8358 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
8359 | } | |
8360 | return _resultobj; | |
8361 | } | |
8362 | ||
8363 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8364 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8365 | PyObject * _resultobj; | |
8366 | int _result; | |
8367 | wxFileTypeInfo * _arg0; | |
8368 | PyObject * _argo0 = 0; | |
8369 | char *_kwnames[] = { "self", NULL }; | |
8370 | ||
8371 | self = self; | |
8372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8373 | return NULL; | |
8374 | if (_argo0) { | |
8375 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8376 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8377 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8378 | return NULL; | |
8379 | } | |
8380 | } | |
8381 | { | |
4268f798 | 8382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8383 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
8384 | ||
4268f798 RD |
8385 | wxPyEndAllowThreads(__tstate); |
8386 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8387 | } _resultobj = Py_BuildValue("i",_result); |
8388 | return _resultobj; | |
8389 | } | |
8390 | ||
8391 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8392 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8393 | PyObject * _resultobj; | |
8394 | wxFileType * _result; | |
8395 | wxFileTypeInfo * _arg0; | |
8396 | PyObject * _argo0 = 0; | |
8397 | char *_kwnames[] = { "ftInfo", NULL }; | |
8398 | char _ptemp[128]; | |
8399 | ||
8400 | self = self; | |
8401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8402 | return NULL; | |
8403 | if (_argo0) { | |
8404 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8405 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8406 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8407 | return NULL; | |
8408 | } | |
8409 | } | |
8410 | { | |
4268f798 | 8411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8412 | _result = (wxFileType *)new_wxFileType(*_arg0); |
8413 | ||
4268f798 RD |
8414 | wxPyEndAllowThreads(__tstate); |
8415 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8416 | } if (_result) { |
8417 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8418 | _resultobj = Py_BuildValue("s",_ptemp); | |
8419 | } else { | |
8420 | Py_INCREF(Py_None); | |
8421 | _resultobj = Py_None; | |
8422 | } | |
8423 | return _resultobj; | |
8424 | } | |
8425 | ||
8426 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8427 | wxString str; | |
8428 | if (self->GetMimeType(&str)) | |
8429 | return PyString_FromString(str.c_str()); | |
8430 | else | |
8431 | RETURN_NONE(); | |
8432 | } | |
8433 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8434 | PyObject * _resultobj; | |
8435 | PyObject * _result; | |
8436 | wxFileType * _arg0; | |
8437 | PyObject * _argo0 = 0; | |
8438 | char *_kwnames[] = { "self", NULL }; | |
8439 | ||
8440 | self = self; | |
8441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8442 | return NULL; | |
8443 | if (_argo0) { | |
8444 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8445 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8446 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8447 | return NULL; | |
8448 | } | |
8449 | } | |
8450 | { | |
4268f798 | 8451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8452 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
8453 | ||
4268f798 RD |
8454 | wxPyEndAllowThreads(__tstate); |
8455 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8456 | }{ |
8457 | _resultobj = _result; | |
8458 | } | |
8459 | return _resultobj; | |
8460 | } | |
8461 | ||
8462 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8463 | wxArrayString arr; | |
8464 | if (self->GetMimeTypes(arr)) | |
8465 | return wxArrayString2PyList_helper(arr); | |
8466 | else | |
8467 | RETURN_NONE(); | |
8468 | } | |
8469 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8470 | PyObject * _resultobj; | |
8471 | PyObject * _result; | |
8472 | wxFileType * _arg0; | |
8473 | PyObject * _argo0 = 0; | |
8474 | char *_kwnames[] = { "self", NULL }; | |
8475 | ||
8476 | self = self; | |
8477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8478 | return NULL; | |
8479 | if (_argo0) { | |
8480 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8481 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8482 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8483 | return NULL; | |
8484 | } | |
8485 | } | |
8486 | { | |
4268f798 | 8487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8488 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
8489 | ||
4268f798 RD |
8490 | wxPyEndAllowThreads(__tstate); |
8491 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8492 | }{ |
8493 | _resultobj = _result; | |
8494 | } | |
8495 | return _resultobj; | |
8496 | } | |
8497 | ||
8498 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8499 | wxArrayString arr; | |
8500 | if (self->GetExtensions(arr)) | |
8501 | return wxArrayString2PyList_helper(arr); | |
8502 | else | |
8503 | RETURN_NONE(); | |
8504 | } | |
8505 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8506 | PyObject * _resultobj; | |
8507 | PyObject * _result; | |
8508 | wxFileType * _arg0; | |
8509 | PyObject * _argo0 = 0; | |
8510 | char *_kwnames[] = { "self", NULL }; | |
8511 | ||
8512 | self = self; | |
8513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8514 | return NULL; | |
8515 | if (_argo0) { | |
8516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8519 | return NULL; | |
8520 | } | |
8521 | } | |
8522 | { | |
4268f798 | 8523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8524 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
8525 | ||
4268f798 RD |
8526 | wxPyEndAllowThreads(__tstate); |
8527 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8528 | }{ |
8529 | _resultobj = _result; | |
8530 | } | |
8531 | return _resultobj; | |
8532 | } | |
8533 | ||
8534 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8535 | wxIcon icon; | |
8536 | if (self->GetIcon(&icon)) | |
8537 | return new wxIcon(icon); | |
8538 | else | |
8539 | return NULL; | |
8540 | } | |
8541 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8542 | PyObject * _resultobj; | |
8543 | wxIcon * _result; | |
8544 | wxFileType * _arg0; | |
8545 | PyObject * _argo0 = 0; | |
8546 | char *_kwnames[] = { "self", NULL }; | |
8547 | char _ptemp[128]; | |
8548 | ||
8549 | self = self; | |
8550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8551 | return NULL; | |
8552 | if (_argo0) { | |
8553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8556 | return NULL; | |
8557 | } | |
8558 | } | |
8559 | { | |
4268f798 | 8560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8561 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
8562 | ||
4268f798 RD |
8563 | wxPyEndAllowThreads(__tstate); |
8564 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8565 | } if (_result) { |
8566 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8567 | _resultobj = Py_BuildValue("s",_ptemp); | |
8568 | } else { | |
8569 | Py_INCREF(Py_None); | |
8570 | _resultobj = Py_None; | |
8571 | } | |
8572 | return _resultobj; | |
8573 | } | |
8574 | ||
8575 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8576 | wxIcon icon; | |
8577 | wxString iconFile; | |
8578 | int iconIndex; | |
8579 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
4268f798 | 8580 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8581 | PyObject* tuple = PyTuple_New(3); |
8582 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8583 | "wxIcon", TRUE)); | |
8584 | PyTuple_SetItem(tuple, 1, PyString_FromString(iconFile.c_str())); | |
8585 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); | |
4268f798 | 8586 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8587 | return tuple; |
8588 | } | |
8589 | else | |
8590 | RETURN_NONE(); | |
8591 | } | |
8592 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8593 | PyObject * _resultobj; | |
8594 | PyObject * _result; | |
8595 | wxFileType * _arg0; | |
8596 | PyObject * _argo0 = 0; | |
8597 | char *_kwnames[] = { "self", NULL }; | |
8598 | ||
8599 | self = self; | |
8600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8601 | return NULL; | |
8602 | if (_argo0) { | |
8603 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8604 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8605 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8606 | return NULL; | |
8607 | } | |
8608 | } | |
8609 | { | |
4268f798 | 8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8611 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
8612 | ||
4268f798 RD |
8613 | wxPyEndAllowThreads(__tstate); |
8614 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8615 | }{ |
8616 | _resultobj = _result; | |
8617 | } | |
8618 | return _resultobj; | |
8619 | } | |
8620 | ||
8621 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8622 | wxString str; | |
8623 | if (self->GetDescription(&str)) | |
8624 | return PyString_FromString(str.c_str()); | |
8625 | else | |
8626 | RETURN_NONE(); | |
8627 | } | |
8628 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8629 | PyObject * _resultobj; | |
8630 | PyObject * _result; | |
8631 | wxFileType * _arg0; | |
8632 | PyObject * _argo0 = 0; | |
8633 | char *_kwnames[] = { "self", NULL }; | |
8634 | ||
8635 | self = self; | |
8636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8637 | return NULL; | |
8638 | if (_argo0) { | |
8639 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8640 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8641 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8642 | return NULL; | |
8643 | } | |
8644 | } | |
8645 | { | |
4268f798 | 8646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8647 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
8648 | ||
4268f798 RD |
8649 | wxPyEndAllowThreads(__tstate); |
8650 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8651 | }{ |
8652 | _resultobj = _result; | |
8653 | } | |
8654 | return _resultobj; | |
8655 | } | |
8656 | ||
8657 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8658 | wxString str; | |
8659 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8660 | return PyString_FromString(str.c_str()); | |
8661 | else | |
8662 | RETURN_NONE(); | |
8663 | } | |
8664 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8665 | PyObject * _resultobj; | |
8666 | PyObject * _result; | |
8667 | wxFileType * _arg0; | |
8668 | wxString * _arg1; | |
8669 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8670 | PyObject * _argo0 = 0; | |
8671 | PyObject * _obj1 = 0; | |
8672 | PyObject * _obj2 = 0; | |
8673 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8674 | ||
8675 | self = self; | |
8676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8677 | return NULL; | |
8678 | if (_argo0) { | |
8679 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8680 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8681 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8682 | return NULL; | |
8683 | } | |
8684 | } | |
8685 | { | |
8686 | #if PYTHON_API_VERSION >= 1009 | |
8687 | char* tmpPtr; int tmpSize; | |
8688 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8689 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8690 | return NULL; | |
8691 | } | |
8692 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8693 | return NULL; | |
8694 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8695 | #else | |
8696 | if (!PyString_Check(_obj1)) { | |
8697 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8698 | return NULL; | |
8699 | } | |
8700 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8701 | #endif | |
8702 | } | |
8703 | if (_obj2) | |
8704 | { | |
8705 | #if PYTHON_API_VERSION >= 1009 | |
8706 | char* tmpPtr; int tmpSize; | |
8707 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8708 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8709 | return NULL; | |
8710 | } | |
8711 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8712 | return NULL; | |
8713 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8714 | #else | |
8715 | if (!PyString_Check(_obj2)) { | |
8716 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8717 | return NULL; | |
8718 | } | |
8719 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8720 | #endif | |
8721 | } | |
8722 | { | |
4268f798 | 8723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8724 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
8725 | ||
4268f798 RD |
8726 | wxPyEndAllowThreads(__tstate); |
8727 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8728 | }{ |
8729 | _resultobj = _result; | |
8730 | } | |
8731 | { | |
8732 | if (_obj1) | |
8733 | delete _arg1; | |
8734 | } | |
8735 | { | |
8736 | if (_obj2) | |
8737 | delete _arg2; | |
8738 | } | |
8739 | return _resultobj; | |
8740 | } | |
8741 | ||
8742 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8743 | wxString str; | |
8744 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) | |
8745 | return PyString_FromString(str.c_str()); | |
8746 | else | |
8747 | RETURN_NONE(); | |
8748 | } | |
8749 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8750 | PyObject * _resultobj; | |
8751 | PyObject * _result; | |
8752 | wxFileType * _arg0; | |
8753 | wxString * _arg1; | |
8754 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8755 | PyObject * _argo0 = 0; | |
8756 | PyObject * _obj1 = 0; | |
8757 | PyObject * _obj2 = 0; | |
8758 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8759 | ||
8760 | self = self; | |
8761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8762 | return NULL; | |
8763 | if (_argo0) { | |
8764 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8765 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8766 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8767 | return NULL; | |
8768 | } | |
8769 | } | |
8770 | { | |
8771 | #if PYTHON_API_VERSION >= 1009 | |
8772 | char* tmpPtr; int tmpSize; | |
8773 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8774 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8775 | return NULL; | |
8776 | } | |
8777 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8778 | return NULL; | |
8779 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8780 | #else | |
8781 | if (!PyString_Check(_obj1)) { | |
8782 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8783 | return NULL; | |
8784 | } | |
8785 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8786 | #endif | |
8787 | } | |
8788 | if (_obj2) | |
8789 | { | |
8790 | #if PYTHON_API_VERSION >= 1009 | |
8791 | char* tmpPtr; int tmpSize; | |
8792 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8793 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8794 | return NULL; | |
8795 | } | |
8796 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8797 | return NULL; | |
8798 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8799 | #else | |
8800 | if (!PyString_Check(_obj2)) { | |
8801 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8802 | return NULL; | |
8803 | } | |
8804 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8805 | #endif | |
8806 | } | |
8807 | { | |
4268f798 | 8808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8809 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
8810 | ||
4268f798 RD |
8811 | wxPyEndAllowThreads(__tstate); |
8812 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8813 | }{ |
8814 | _resultobj = _result; | |
8815 | } | |
8816 | { | |
8817 | if (_obj1) | |
8818 | delete _arg1; | |
8819 | } | |
8820 | { | |
8821 | if (_obj2) | |
8822 | delete _arg2; | |
8823 | } | |
8824 | return _resultobj; | |
8825 | } | |
8826 | ||
8827 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8828 | wxArrayString verbs; | |
8829 | wxArrayString commands; | |
8830 | if (self->GetAllCommands(&verbs, &commands, | |
8831 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 8832 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8833 | PyObject* tuple = PyTuple_New(2); |
8834 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8835 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 8836 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8837 | return tuple; |
8838 | } | |
8839 | else | |
8840 | RETURN_NONE(); | |
8841 | } | |
8842 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8843 | PyObject * _resultobj; | |
8844 | PyObject * _result; | |
8845 | wxFileType * _arg0; | |
8846 | wxString * _arg1; | |
8847 | wxString * _arg2 = (wxString *) &wxPyEmptyStr; | |
8848 | PyObject * _argo0 = 0; | |
8849 | PyObject * _obj1 = 0; | |
8850 | PyObject * _obj2 = 0; | |
8851 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8852 | ||
8853 | self = self; | |
8854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8855 | return NULL; | |
8856 | if (_argo0) { | |
8857 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8858 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8859 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8860 | return NULL; | |
8861 | } | |
8862 | } | |
8863 | { | |
8864 | #if PYTHON_API_VERSION >= 1009 | |
8865 | char* tmpPtr; int tmpSize; | |
8866 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8867 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8868 | return NULL; | |
8869 | } | |
8870 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8871 | return NULL; | |
8872 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8873 | #else | |
8874 | if (!PyString_Check(_obj1)) { | |
8875 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8876 | return NULL; | |
8877 | } | |
8878 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8879 | #endif | |
8880 | } | |
8881 | if (_obj2) | |
8882 | { | |
8883 | #if PYTHON_API_VERSION >= 1009 | |
8884 | char* tmpPtr; int tmpSize; | |
8885 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8886 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8887 | return NULL; | |
8888 | } | |
8889 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8890 | return NULL; | |
8891 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8892 | #else | |
8893 | if (!PyString_Check(_obj2)) { | |
8894 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8895 | return NULL; | |
8896 | } | |
8897 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8898 | #endif | |
8899 | } | |
8900 | { | |
4268f798 | 8901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8902 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
8903 | ||
4268f798 RD |
8904 | wxPyEndAllowThreads(__tstate); |
8905 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8906 | }{ |
8907 | _resultobj = _result; | |
8908 | } | |
8909 | { | |
8910 | if (_obj1) | |
8911 | delete _arg1; | |
8912 | } | |
8913 | { | |
8914 | if (_obj2) | |
8915 | delete _arg2; | |
8916 | } | |
8917 | return _resultobj; | |
8918 | } | |
8919 | ||
8920 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8921 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8922 | PyObject * _resultobj; | |
8923 | bool _result; | |
8924 | wxFileType * _arg0; | |
8925 | wxString * _arg1; | |
8926 | wxString * _arg2; | |
8927 | bool _arg3 = (bool ) TRUE; | |
8928 | PyObject * _argo0 = 0; | |
8929 | PyObject * _obj1 = 0; | |
8930 | PyObject * _obj2 = 0; | |
8931 | int tempbool3 = (int) TRUE; | |
8932 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8933 | ||
8934 | self = self; | |
8935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8936 | return NULL; | |
8937 | if (_argo0) { | |
8938 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8939 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8940 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8941 | return NULL; | |
8942 | } | |
8943 | } | |
8944 | { | |
8945 | #if PYTHON_API_VERSION >= 1009 | |
8946 | char* tmpPtr; int tmpSize; | |
8947 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
8948 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8949 | return NULL; | |
8950 | } | |
8951 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
8952 | return NULL; | |
8953 | _arg1 = new wxString(tmpPtr, tmpSize); | |
8954 | #else | |
8955 | if (!PyString_Check(_obj1)) { | |
8956 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8957 | return NULL; | |
8958 | } | |
8959 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
8960 | #endif | |
8961 | } | |
8962 | { | |
8963 | #if PYTHON_API_VERSION >= 1009 | |
8964 | char* tmpPtr; int tmpSize; | |
8965 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
8966 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8967 | return NULL; | |
8968 | } | |
8969 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
8970 | return NULL; | |
8971 | _arg2 = new wxString(tmpPtr, tmpSize); | |
8972 | #else | |
8973 | if (!PyString_Check(_obj2)) { | |
8974 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
8975 | return NULL; | |
8976 | } | |
8977 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
8978 | #endif | |
8979 | } | |
8980 | _arg3 = (bool ) tempbool3; | |
8981 | { | |
4268f798 | 8982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
8983 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
8984 | ||
4268f798 RD |
8985 | wxPyEndAllowThreads(__tstate); |
8986 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8987 | } _resultobj = Py_BuildValue("i",_result); |
8988 | { | |
8989 | if (_obj1) | |
8990 | delete _arg1; | |
8991 | } | |
8992 | { | |
8993 | if (_obj2) | |
8994 | delete _arg2; | |
8995 | } | |
8996 | return _resultobj; | |
8997 | } | |
8998 | ||
8999 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
9000 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9001 | PyObject * _resultobj; | |
9002 | bool _result; | |
9003 | wxFileType * _arg0; | |
9004 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
9005 | int _arg2 = (int ) 0; | |
9006 | PyObject * _argo0 = 0; | |
9007 | PyObject * _obj1 = 0; | |
9008 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
9009 | ||
9010 | self = self; | |
9011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
9012 | return NULL; | |
9013 | if (_argo0) { | |
9014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
9017 | return NULL; | |
9018 | } | |
9019 | } | |
9020 | if (_obj1) | |
9021 | { | |
9022 | #if PYTHON_API_VERSION >= 1009 | |
9023 | char* tmpPtr; int tmpSize; | |
9024 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9025 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9026 | return NULL; | |
9027 | } | |
9028 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9029 | return NULL; | |
9030 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9031 | #else | |
9032 | if (!PyString_Check(_obj1)) { | |
9033 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9034 | return NULL; | |
9035 | } | |
9036 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9037 | #endif | |
9038 | } | |
9039 | { | |
4268f798 | 9040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9041 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
9042 | ||
4268f798 RD |
9043 | wxPyEndAllowThreads(__tstate); |
9044 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9045 | } _resultobj = Py_BuildValue("i",_result); |
9046 | { | |
9047 | if (_obj1) | |
9048 | delete _arg1; | |
9049 | } | |
9050 | return _resultobj; | |
9051 | } | |
9052 | ||
9053 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
9054 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9055 | PyObject * _resultobj; | |
9056 | bool _result; | |
9057 | wxFileType * _arg0; | |
9058 | PyObject * _argo0 = 0; | |
9059 | char *_kwnames[] = { "self", NULL }; | |
9060 | ||
9061 | self = self; | |
9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
9063 | return NULL; | |
9064 | if (_argo0) { | |
9065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
9068 | return NULL; | |
9069 | } | |
9070 | } | |
9071 | { | |
4268f798 | 9072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9073 | _result = (bool )wxFileType_Unassociate(_arg0); |
9074 | ||
4268f798 RD |
9075 | wxPyEndAllowThreads(__tstate); |
9076 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9077 | } _resultobj = Py_BuildValue("i",_result); |
9078 | return _resultobj; | |
9079 | } | |
9080 | ||
9081 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9082 | PyObject * _resultobj; | |
9083 | wxString * _result; | |
9084 | wxString * _arg0; | |
9085 | wxFileType::MessageParameters * _arg1; | |
9086 | PyObject * _obj0 = 0; | |
9087 | PyObject * _argo1 = 0; | |
9088 | char *_kwnames[] = { "command","params", NULL }; | |
9089 | ||
9090 | self = self; | |
9091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
9092 | return NULL; | |
9093 | { | |
9094 | #if PYTHON_API_VERSION >= 1009 | |
9095 | char* tmpPtr; int tmpSize; | |
9096 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9097 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9098 | return NULL; | |
9099 | } | |
9100 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9101 | return NULL; | |
9102 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9103 | #else | |
9104 | if (!PyString_Check(_obj0)) { | |
9105 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9106 | return NULL; | |
9107 | } | |
9108 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9109 | #endif | |
9110 | } | |
9111 | if (_argo1) { | |
9112 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9113 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
9114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
9115 | return NULL; | |
9116 | } | |
9117 | } | |
9118 | { | |
4268f798 | 9119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9120 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
9121 | ||
4268f798 RD |
9122 | wxPyEndAllowThreads(__tstate); |
9123 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9124 | }{ |
9125 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
9126 | } | |
9127 | { | |
9128 | if (_obj0) | |
9129 | delete _arg0; | |
9130 | } | |
9131 | { | |
9132 | delete _result; | |
9133 | } | |
9134 | return _resultobj; | |
9135 | } | |
9136 | ||
9137 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
9138 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9139 | PyObject * _resultobj; | |
9140 | wxFileType * _arg0; | |
9141 | PyObject * _argo0 = 0; | |
9142 | char *_kwnames[] = { "self", NULL }; | |
9143 | ||
9144 | self = self; | |
9145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
9146 | return NULL; | |
9147 | if (_argo0) { | |
9148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
9151 | return NULL; | |
9152 | } | |
9153 | } | |
9154 | { | |
4268f798 | 9155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9156 | delete_wxFileType(_arg0); |
9157 | ||
4268f798 RD |
9158 | wxPyEndAllowThreads(__tstate); |
9159 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9160 | } Py_INCREF(Py_None); |
9161 | _resultobj = Py_None; | |
9162 | return _resultobj; | |
9163 | } | |
9164 | ||
9165 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9166 | PyObject * _resultobj; | |
9167 | bool _result; | |
9168 | wxString * _arg0; | |
9169 | wxString * _arg1; | |
9170 | PyObject * _obj0 = 0; | |
9171 | PyObject * _obj1 = 0; | |
9172 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
9173 | ||
9174 | self = self; | |
9175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
9176 | return NULL; | |
9177 | { | |
9178 | #if PYTHON_API_VERSION >= 1009 | |
9179 | char* tmpPtr; int tmpSize; | |
9180 | if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) { | |
9181 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9182 | return NULL; | |
9183 | } | |
9184 | if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1) | |
9185 | return NULL; | |
9186 | _arg0 = new wxString(tmpPtr, tmpSize); | |
9187 | #else | |
9188 | if (!PyString_Check(_obj0)) { | |
9189 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9190 | return NULL; | |
9191 | } | |
9192 | _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0)); | |
9193 | #endif | |
9194 | } | |
9195 | { | |
9196 | #if PYTHON_API_VERSION >= 1009 | |
9197 | char* tmpPtr; int tmpSize; | |
9198 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9199 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9200 | return NULL; | |
9201 | } | |
9202 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9203 | return NULL; | |
9204 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9205 | #else | |
9206 | if (!PyString_Check(_obj1)) { | |
9207 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9208 | return NULL; | |
9209 | } | |
9210 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9211 | #endif | |
9212 | } | |
9213 | { | |
4268f798 | 9214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9215 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
9216 | ||
4268f798 RD |
9217 | wxPyEndAllowThreads(__tstate); |
9218 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9219 | } _resultobj = Py_BuildValue("i",_result); |
9220 | { | |
9221 | if (_obj0) | |
9222 | delete _arg0; | |
9223 | } | |
9224 | { | |
9225 | if (_obj1) | |
9226 | delete _arg1; | |
9227 | } | |
9228 | return _resultobj; | |
9229 | } | |
9230 | ||
9231 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9232 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9233 | PyObject * _resultobj; | |
9234 | wxMimeTypesManager * _result; | |
9235 | char *_kwnames[] = { NULL }; | |
9236 | char _ptemp[128]; | |
9237 | ||
9238 | self = self; | |
9239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9240 | return NULL; | |
9241 | { | |
4268f798 | 9242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9243 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
9244 | ||
4268f798 RD |
9245 | wxPyEndAllowThreads(__tstate); |
9246 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9247 | } if (_result) { |
9248 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9249 | _resultobj = Py_BuildValue("s",_ptemp); | |
9250 | } else { | |
9251 | Py_INCREF(Py_None); | |
9252 | _resultobj = Py_None; | |
9253 | } | |
9254 | return _resultobj; | |
9255 | } | |
9256 | ||
9257 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9258 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9259 | PyObject * _resultobj; | |
9260 | wxMimeTypesManager * _arg0; | |
9261 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
9262 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
9263 | PyObject * _argo0 = 0; | |
9264 | PyObject * _obj2 = 0; | |
9265 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9266 | ||
9267 | self = self; | |
9268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9269 | return NULL; | |
9270 | if (_argo0) { | |
9271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9274 | return NULL; | |
9275 | } | |
9276 | } | |
9277 | if (_obj2) | |
9278 | { | |
9279 | #if PYTHON_API_VERSION >= 1009 | |
9280 | char* tmpPtr; int tmpSize; | |
9281 | if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) { | |
9282 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9283 | return NULL; | |
9284 | } | |
9285 | if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1) | |
9286 | return NULL; | |
9287 | _arg2 = new wxString(tmpPtr, tmpSize); | |
9288 | #else | |
9289 | if (!PyString_Check(_obj2)) { | |
9290 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9291 | return NULL; | |
9292 | } | |
9293 | _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2)); | |
9294 | #endif | |
9295 | } | |
9296 | { | |
4268f798 | 9297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9298 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
9299 | ||
4268f798 RD |
9300 | wxPyEndAllowThreads(__tstate); |
9301 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9302 | } Py_INCREF(Py_None); |
9303 | _resultobj = Py_None; | |
9304 | { | |
9305 | if (_obj2) | |
9306 | delete _arg2; | |
9307 | } | |
9308 | return _resultobj; | |
9309 | } | |
9310 | ||
9311 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9312 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9313 | PyObject * _resultobj; | |
9314 | wxMimeTypesManager * _arg0; | |
9315 | PyObject * _argo0 = 0; | |
9316 | char *_kwnames[] = { "self", NULL }; | |
9317 | ||
9318 | self = self; | |
9319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9320 | return NULL; | |
9321 | if (_argo0) { | |
9322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9325 | return NULL; | |
9326 | } | |
9327 | } | |
9328 | { | |
4268f798 | 9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9330 | wxMimeTypesManager_ClearData(_arg0); |
9331 | ||
4268f798 RD |
9332 | wxPyEndAllowThreads(__tstate); |
9333 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9334 | } Py_INCREF(Py_None); |
9335 | _resultobj = Py_None; | |
9336 | return _resultobj; | |
9337 | } | |
9338 | ||
9339 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9340 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9341 | PyObject * _resultobj; | |
9342 | wxFileType * _result; | |
9343 | wxMimeTypesManager * _arg0; | |
9344 | wxString * _arg1; | |
9345 | PyObject * _argo0 = 0; | |
9346 | PyObject * _obj1 = 0; | |
9347 | char *_kwnames[] = { "self","ext", NULL }; | |
9348 | char _ptemp[128]; | |
9349 | ||
9350 | self = self; | |
9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9352 | return NULL; | |
9353 | if (_argo0) { | |
9354 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9355 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9356 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9357 | return NULL; | |
9358 | } | |
9359 | } | |
9360 | { | |
9361 | #if PYTHON_API_VERSION >= 1009 | |
9362 | char* tmpPtr; int tmpSize; | |
9363 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9364 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9365 | return NULL; | |
9366 | } | |
9367 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9368 | return NULL; | |
9369 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9370 | #else | |
9371 | if (!PyString_Check(_obj1)) { | |
9372 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9373 | return NULL; | |
9374 | } | |
9375 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9376 | #endif | |
9377 | } | |
9378 | { | |
4268f798 | 9379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9380 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
9381 | ||
4268f798 RD |
9382 | wxPyEndAllowThreads(__tstate); |
9383 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9384 | } if (_result) { |
9385 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9386 | _resultobj = Py_BuildValue("s",_ptemp); | |
9387 | } else { | |
9388 | Py_INCREF(Py_None); | |
9389 | _resultobj = Py_None; | |
9390 | } | |
9391 | { | |
9392 | if (_obj1) | |
9393 | delete _arg1; | |
9394 | } | |
9395 | return _resultobj; | |
9396 | } | |
9397 | ||
9398 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9399 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9400 | PyObject * _resultobj; | |
9401 | wxFileType * _result; | |
9402 | wxMimeTypesManager * _arg0; | |
9403 | wxString * _arg1; | |
9404 | PyObject * _argo0 = 0; | |
9405 | PyObject * _obj1 = 0; | |
9406 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9407 | char _ptemp[128]; | |
9408 | ||
9409 | self = self; | |
9410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9411 | return NULL; | |
9412 | if (_argo0) { | |
9413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9416 | return NULL; | |
9417 | } | |
9418 | } | |
9419 | { | |
9420 | #if PYTHON_API_VERSION >= 1009 | |
9421 | char* tmpPtr; int tmpSize; | |
9422 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9423 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9424 | return NULL; | |
9425 | } | |
9426 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9427 | return NULL; | |
9428 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9429 | #else | |
9430 | if (!PyString_Check(_obj1)) { | |
9431 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9432 | return NULL; | |
9433 | } | |
9434 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9435 | #endif | |
9436 | } | |
9437 | { | |
4268f798 | 9438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9439 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
9440 | ||
4268f798 RD |
9441 | wxPyEndAllowThreads(__tstate); |
9442 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9443 | } if (_result) { |
9444 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9445 | _resultobj = Py_BuildValue("s",_ptemp); | |
9446 | } else { | |
9447 | Py_INCREF(Py_None); | |
9448 | _resultobj = Py_None; | |
9449 | } | |
9450 | { | |
9451 | if (_obj1) | |
9452 | delete _arg1; | |
9453 | } | |
9454 | return _resultobj; | |
9455 | } | |
9456 | ||
9457 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9458 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9459 | PyObject * _resultobj; | |
9460 | bool _result; | |
9461 | wxMimeTypesManager * _arg0; | |
9462 | wxString * _arg1; | |
9463 | bool _arg2 = (bool ) FALSE; | |
9464 | PyObject * _argo0 = 0; | |
9465 | PyObject * _obj1 = 0; | |
9466 | int tempbool2 = (int) FALSE; | |
9467 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9468 | ||
9469 | self = self; | |
9470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9471 | return NULL; | |
9472 | if (_argo0) { | |
9473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9476 | return NULL; | |
9477 | } | |
9478 | } | |
9479 | { | |
9480 | #if PYTHON_API_VERSION >= 1009 | |
9481 | char* tmpPtr; int tmpSize; | |
9482 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9483 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9484 | return NULL; | |
9485 | } | |
9486 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9487 | return NULL; | |
9488 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9489 | #else | |
9490 | if (!PyString_Check(_obj1)) { | |
9491 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9492 | return NULL; | |
9493 | } | |
9494 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9495 | #endif | |
9496 | } | |
9497 | _arg2 = (bool ) tempbool2; | |
9498 | { | |
4268f798 | 9499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9500 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
9501 | ||
4268f798 RD |
9502 | wxPyEndAllowThreads(__tstate); |
9503 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9504 | } _resultobj = Py_BuildValue("i",_result); |
9505 | { | |
9506 | if (_obj1) | |
9507 | delete _arg1; | |
9508 | } | |
9509 | return _resultobj; | |
9510 | } | |
9511 | ||
9512 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9513 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9514 | PyObject * _resultobj; | |
9515 | bool _result; | |
9516 | wxMimeTypesManager * _arg0; | |
9517 | wxString * _arg1; | |
9518 | PyObject * _argo0 = 0; | |
9519 | PyObject * _obj1 = 0; | |
9520 | char *_kwnames[] = { "self","filename", NULL }; | |
9521 | ||
9522 | self = self; | |
9523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9524 | return NULL; | |
9525 | if (_argo0) { | |
9526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9529 | return NULL; | |
9530 | } | |
9531 | } | |
9532 | { | |
9533 | #if PYTHON_API_VERSION >= 1009 | |
9534 | char* tmpPtr; int tmpSize; | |
9535 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9536 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9537 | return NULL; | |
9538 | } | |
9539 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9540 | return NULL; | |
9541 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9542 | #else | |
9543 | if (!PyString_Check(_obj1)) { | |
9544 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9545 | return NULL; | |
9546 | } | |
9547 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9548 | #endif | |
9549 | } | |
9550 | { | |
4268f798 | 9551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9552 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
9553 | ||
4268f798 RD |
9554 | wxPyEndAllowThreads(__tstate); |
9555 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9556 | } _resultobj = Py_BuildValue("i",_result); |
9557 | { | |
9558 | if (_obj1) | |
9559 | delete _arg1; | |
9560 | } | |
9561 | return _resultobj; | |
9562 | } | |
9563 | ||
9564 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9565 | wxArrayString arr; | |
9566 | self->EnumAllFileTypes(arr); | |
9567 | return wxArrayString2PyList_helper(arr); | |
9568 | } | |
9569 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject * _resultobj; | |
9571 | PyObject * _result; | |
9572 | wxMimeTypesManager * _arg0; | |
9573 | PyObject * _argo0 = 0; | |
9574 | char *_kwnames[] = { "self", NULL }; | |
9575 | ||
9576 | self = self; | |
9577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9578 | return NULL; | |
9579 | if (_argo0) { | |
9580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9583 | return NULL; | |
9584 | } | |
9585 | } | |
9586 | { | |
4268f798 | 9587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9588 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
9589 | ||
4268f798 RD |
9590 | wxPyEndAllowThreads(__tstate); |
9591 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9592 | }{ |
9593 | _resultobj = _result; | |
9594 | } | |
9595 | return _resultobj; | |
9596 | } | |
9597 | ||
9598 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9599 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9600 | PyObject * _resultobj; | |
9601 | wxMimeTypesManager * _arg0; | |
9602 | wxFileTypeInfo * _arg1; | |
9603 | PyObject * _argo0 = 0; | |
9604 | PyObject * _argo1 = 0; | |
9605 | char *_kwnames[] = { "self","ft", NULL }; | |
9606 | ||
9607 | self = self; | |
9608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9609 | return NULL; | |
9610 | if (_argo0) { | |
9611 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9612 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9613 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9614 | return NULL; | |
9615 | } | |
9616 | } | |
9617 | if (_argo1) { | |
9618 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9619 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9620 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9621 | return NULL; | |
9622 | } | |
9623 | } | |
9624 | { | |
4268f798 | 9625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9626 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
9627 | ||
4268f798 RD |
9628 | wxPyEndAllowThreads(__tstate); |
9629 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9630 | } Py_INCREF(Py_None); |
9631 | _resultobj = Py_None; | |
9632 | return _resultobj; | |
9633 | } | |
9634 | ||
9635 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9636 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject * _resultobj; | |
9638 | wxFileType * _result; | |
9639 | wxMimeTypesManager * _arg0; | |
9640 | wxFileTypeInfo * _arg1; | |
9641 | PyObject * _argo0 = 0; | |
9642 | PyObject * _argo1 = 0; | |
9643 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9644 | char _ptemp[128]; | |
9645 | ||
9646 | self = self; | |
9647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9648 | return NULL; | |
9649 | if (_argo0) { | |
9650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9653 | return NULL; | |
9654 | } | |
9655 | } | |
9656 | if (_argo1) { | |
9657 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9658 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9659 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9660 | return NULL; | |
9661 | } | |
9662 | } | |
9663 | { | |
4268f798 | 9664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9665 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
9666 | ||
4268f798 RD |
9667 | wxPyEndAllowThreads(__tstate); |
9668 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9669 | } if (_result) { |
9670 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9671 | _resultobj = Py_BuildValue("s",_ptemp); | |
9672 | } else { | |
9673 | Py_INCREF(Py_None); | |
9674 | _resultobj = Py_None; | |
9675 | } | |
9676 | return _resultobj; | |
9677 | } | |
9678 | ||
9679 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9680 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9681 | PyObject * _resultobj; | |
9682 | bool _result; | |
9683 | wxMimeTypesManager * _arg0; | |
9684 | wxFileType * _arg1; | |
9685 | PyObject * _argo0 = 0; | |
9686 | PyObject * _argo1 = 0; | |
9687 | char *_kwnames[] = { "self","ft", NULL }; | |
9688 | ||
9689 | self = self; | |
9690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9691 | return NULL; | |
9692 | if (_argo0) { | |
9693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9696 | return NULL; | |
9697 | } | |
9698 | } | |
9699 | if (_argo1) { | |
9700 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9701 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9702 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9703 | return NULL; | |
9704 | } | |
9705 | } | |
9706 | { | |
4268f798 | 9707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9708 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
9709 | ||
4268f798 RD |
9710 | wxPyEndAllowThreads(__tstate); |
9711 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9712 | } _resultobj = Py_BuildValue("i",_result); |
9713 | return _resultobj; | |
9714 | } | |
9715 | ||
9716 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9717 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9718 | PyObject * _resultobj; | |
9719 | wxMimeTypesManager * _arg0; | |
9720 | PyObject * _argo0 = 0; | |
9721 | char *_kwnames[] = { "self", NULL }; | |
9722 | ||
9723 | self = self; | |
9724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9725 | return NULL; | |
9726 | if (_argo0) { | |
9727 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9728 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9729 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9730 | return NULL; | |
9731 | } | |
9732 | } | |
9733 | { | |
4268f798 | 9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
b37c7e1d RD |
9735 | delete_wxMimeTypesManager(_arg0); |
9736 | ||
4268f798 RD |
9737 | wxPyEndAllowThreads(__tstate); |
9738 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9739 | } Py_INCREF(Py_None); |
9740 | _resultobj = Py_None; | |
9741 | return _resultobj; | |
9742 | } | |
9743 | ||
7dbce44a RD |
9744 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9745 | wxFileHistory *src; | |
9746 | wxObject *dest; | |
9747 | src = (wxFileHistory *) ptr; | |
9748 | dest = (wxObject *) src; | |
9749 | return (void *) dest; | |
9750 | } | |
9751 | ||
9752 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9753 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9754 | PyObject * _resultobj; | |
9755 | wxFileHistory * _result; | |
9756 | int _arg0 = (int ) 9; | |
9757 | char *_kwnames[] = { "maxFiles", NULL }; | |
9758 | char _ptemp[128]; | |
9759 | ||
9760 | self = self; | |
9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9762 | return NULL; | |
9763 | { | |
4268f798 | 9764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
9765 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
9766 | ||
4268f798 RD |
9767 | wxPyEndAllowThreads(__tstate); |
9768 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9769 | } if (_result) { |
9770 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9771 | _resultobj = Py_BuildValue("s",_ptemp); | |
9772 | } else { | |
9773 | Py_INCREF(Py_None); | |
9774 | _resultobj = Py_None; | |
9775 | } | |
9776 | return _resultobj; | |
9777 | } | |
9778 | ||
9779 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9780 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9781 | PyObject * _resultobj; | |
9782 | wxFileHistory * _arg0; | |
9783 | PyObject * _argo0 = 0; | |
9784 | char *_kwnames[] = { "self", NULL }; | |
9785 | ||
9786 | self = self; | |
9787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9788 | return NULL; | |
9789 | if (_argo0) { | |
9790 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9791 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9792 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9793 | return NULL; | |
9794 | } | |
9795 | } | |
9796 | { | |
4268f798 | 9797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
9798 | delete_wxFileHistory(_arg0); |
9799 | ||
4268f798 RD |
9800 | wxPyEndAllowThreads(__tstate); |
9801 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9802 | } Py_INCREF(Py_None); |
9803 | _resultobj = Py_None; | |
9804 | return _resultobj; | |
9805 | } | |
9806 | ||
9807 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9808 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9809 | PyObject * _resultobj; | |
9810 | wxFileHistory * _arg0; | |
9811 | wxString * _arg1; | |
9812 | PyObject * _argo0 = 0; | |
9813 | PyObject * _obj1 = 0; | |
9814 | char *_kwnames[] = { "self","file", NULL }; | |
9815 | ||
9816 | self = self; | |
9817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9818 | return NULL; | |
9819 | if (_argo0) { | |
9820 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9821 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9822 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9823 | return NULL; | |
9824 | } | |
9825 | } | |
9826 | { | |
9827 | #if PYTHON_API_VERSION >= 1009 | |
9828 | char* tmpPtr; int tmpSize; | |
9829 | if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) { | |
9830 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9831 | return NULL; | |
9832 | } | |
9833 | if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1) | |
9834 | return NULL; | |
9835 | _arg1 = new wxString(tmpPtr, tmpSize); | |
9836 | #else | |
9837 | if (!PyString_Check(_obj1)) { | |
9838 | PyErr_SetString(PyExc_TypeError, wxStringErrorMsg); | |
9839 | return NULL; | |
9840 | } | |
9841 | _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1)); | |
9842 | #endif | |
9843 | } | |
9844 | { | |
4268f798 | 9845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
9846 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
9847 | ||
4268f798 RD |
9848 | wxPyEndAllowThreads(__tstate); |
9849 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9850 | } Py_INCREF(Py_None); |
9851 | _resultobj = Py_None; | |
9852 | { | |
9853 | if (_obj1) | |
9854 | delete _arg1; | |
9855 | } | |
9856 | return _resultobj; | |
9857 | } | |
9858 | ||
9859 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9860 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9861 | PyObject * _resultobj; | |
9862 | wxFileHistory * _arg0; | |
9863 | int _arg1; | |
9864 | PyObject * _argo0 = 0; | |
9865 | char *_kwnames[] = { "self","i", NULL }; | |
9866 | ||
9867 | self = self; | |
9868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9869 | return NULL; | |
9870 | if (_argo0) { | |
9871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9874 | return NULL; | |
9875 | } | |
9876 | } | |
9877 | { | |
4268f798 | 9878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
9879 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
9880 | ||
4268f798 RD |
9881 | wxPyEndAllowThreads(__tstate); |
9882 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9883 | } Py_INCREF(Py_None); |
9884 | _resultobj = Py_None; | |
9885 | return _resultobj; | |
9886 | } | |
9887 | ||
9888 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9889 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9890 | PyObject * _resultobj; | |
9891 | int _result; | |
9892 | wxFileHistory * _arg0; | |
9893 | PyObject * _argo0 = 0; | |
9894 | char *_kwnames[] = { "self", NULL }; | |
9895 | ||
9896 | self = self; | |
9897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9898 | return NULL; | |
9899 | if (_argo0) { | |
9900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9903 | return NULL; | |
9904 | } | |
9905 | } | |
9906 | { | |
4268f798 | 9907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
9908 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
9909 | ||
4268f798 RD |
9910 | wxPyEndAllowThreads(__tstate); |
9911 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9912 | } _resultobj = Py_BuildValue("i",_result); |
9913 | return _resultobj; | |
9914 | } | |
9915 | ||
9916 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9917 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9918 | PyObject * _resultobj; | |
9919 | wxFileHistory * _arg0; | |
9920 | wxMenu * _arg1; | |
9921 | PyObject * _argo0 = 0; | |
9922 | PyObject * _argo1 = 0; | |
9923 | char *_kwnames[] = { "self","menu", NULL }; | |
9924 | ||
9925 | self = self; | |
9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9927 | return NULL; | |
9928 | if (_argo0) { | |
9929 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9930 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9931 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9932 | return NULL; | |
9933 | } | |
9934 | } | |
9935 | if (_argo1) { | |
9936 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9937 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9939 | return NULL; | |
9940 | } | |
9941 | } | |
9942 | { | |
4268f798 | 9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
9944 | wxFileHistory_UseMenu(_arg0,_arg1); |
9945 | ||
4268f798 RD |
9946 | wxPyEndAllowThreads(__tstate); |
9947 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9948 | } Py_INCREF(Py_None); |
9949 | _resultobj = Py_None; | |
9950 | return _resultobj; | |
9951 | } | |
9952 | ||
9953 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9954 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9955 | PyObject * _resultobj; | |
9956 | wxFileHistory * _arg0; | |
9957 | wxMenu * _arg1; | |
9958 | PyObject * _argo0 = 0; | |
9959 | PyObject * _argo1 = 0; | |
9960 | char *_kwnames[] = { "self","menu", NULL }; | |
9961 | ||
9962 | self = self; | |
9963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9964 | return NULL; | |
9965 | if (_argo0) { | |
9966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9969 | return NULL; | |
9970 | } | |
9971 | } | |
9972 | if (_argo1) { | |
9973 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9974 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9976 | return NULL; | |
9977 | } | |
9978 | } | |
9979 | { | |
4268f798 | 9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
9981 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
9982 | ||
4268f798 RD |
9983 | wxPyEndAllowThreads(__tstate); |
9984 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9985 | } Py_INCREF(Py_None); |
9986 | _resultobj = Py_None; | |
9987 | return _resultobj; | |
9988 | } | |
9989 | ||
9990 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9991 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9992 | PyObject * _resultobj; | |
9993 | wxFileHistory * _arg0; | |
9994 | wxConfigBase * _arg1; | |
9995 | PyObject * _argo0 = 0; | |
9996 | PyObject * _argo1 = 0; | |
9997 | char *_kwnames[] = { "self","config", NULL }; | |
9998 | ||
9999 | self = self; | |
10000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
10001 | return NULL; | |
10002 | if (_argo0) { | |
10003 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10004 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10005 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
10006 | return NULL; | |
10007 | } | |
10008 | } | |
10009 | if (_argo1) { | |
10010 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10011 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10012 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
10013 | return NULL; | |
10014 | } | |
10015 | } | |
10016 | { | |
4268f798 | 10017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
10018 | wxFileHistory_Load(_arg0,*_arg1); |
10019 | ||
4268f798 RD |
10020 | wxPyEndAllowThreads(__tstate); |
10021 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10022 | } Py_INCREF(Py_None); |
10023 | _resultobj = Py_None; | |
10024 | return _resultobj; | |
10025 | } | |
10026 | ||
10027 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
10028 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10029 | PyObject * _resultobj; | |
10030 | wxFileHistory * _arg0; | |
10031 | wxConfigBase * _arg1; | |
10032 | PyObject * _argo0 = 0; | |
10033 | PyObject * _argo1 = 0; | |
10034 | char *_kwnames[] = { "self","config", NULL }; | |
10035 | ||
10036 | self = self; | |
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
10038 | return NULL; | |
10039 | if (_argo0) { | |
10040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10043 | return NULL; | |
10044 | } | |
10045 | } | |
10046 | if (_argo1) { | |
10047 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10048 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
10049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
10050 | return NULL; | |
10051 | } | |
10052 | } | |
10053 | { | |
4268f798 | 10054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
10055 | wxFileHistory_Save(_arg0,*_arg1); |
10056 | ||
4268f798 RD |
10057 | wxPyEndAllowThreads(__tstate); |
10058 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10059 | } Py_INCREF(Py_None); |
10060 | _resultobj = Py_None; | |
10061 | return _resultobj; | |
10062 | } | |
10063 | ||
10064 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10065 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10066 | PyObject * _resultobj; | |
10067 | wxFileHistory * _arg0; | |
10068 | PyObject * _argo0 = 0; | |
10069 | char *_kwnames[] = { "self", NULL }; | |
10070 | ||
10071 | self = self; | |
10072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10073 | return NULL; | |
10074 | if (_argo0) { | |
10075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10078 | return NULL; | |
10079 | } | |
10080 | } | |
10081 | { | |
4268f798 | 10082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
10083 | wxFileHistory_AddFilesToMenu(_arg0); |
10084 | ||
4268f798 RD |
10085 | wxPyEndAllowThreads(__tstate); |
10086 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10087 | } Py_INCREF(Py_None); |
10088 | _resultobj = Py_None; | |
10089 | return _resultobj; | |
10090 | } | |
10091 | ||
10092 | #define wxFileHistory_AddFilesToSingleMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) | |
10093 | static PyObject *_wrap_wxFileHistory_AddFilesToSingleMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10094 | PyObject * _resultobj; | |
10095 | wxFileHistory * _arg0; | |
10096 | wxMenu * _arg1; | |
10097 | PyObject * _argo0 = 0; | |
10098 | PyObject * _argo1 = 0; | |
10099 | char *_kwnames[] = { "self","menu", NULL }; | |
10100 | ||
10101 | self = self; | |
10102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToSingleMenu",_kwnames,&_argo0,&_argo1)) | |
10103 | return NULL; | |
10104 | if (_argo0) { | |
10105 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10106 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10107 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToSingleMenu. Expected _wxFileHistory_p."); | |
10108 | return NULL; | |
10109 | } | |
10110 | } | |
10111 | if (_argo1) { | |
10112 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10113 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10114 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToSingleMenu. Expected _wxMenu_p."); | |
10115 | return NULL; | |
10116 | } | |
10117 | } | |
10118 | { | |
4268f798 | 10119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
10120 | wxFileHistory_AddFilesToSingleMenu(_arg0,_arg1); |
10121 | ||
4268f798 RD |
10122 | wxPyEndAllowThreads(__tstate); |
10123 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10124 | } Py_INCREF(Py_None); |
10125 | _resultobj = Py_None; | |
10126 | return _resultobj; | |
10127 | } | |
10128 | ||
10129 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10130 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10131 | PyObject * _resultobj; | |
10132 | wxString * _result; | |
10133 | wxFileHistory * _arg0; | |
10134 | int _arg1; | |
10135 | PyObject * _argo0 = 0; | |
10136 | char *_kwnames[] = { "self","i", NULL }; | |
10137 | ||
10138 | self = self; | |
10139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10140 | return NULL; | |
10141 | if (_argo0) { | |
10142 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10143 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10145 | return NULL; | |
10146 | } | |
10147 | } | |
10148 | { | |
4268f798 | 10149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
10150 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
10151 | ||
4268f798 RD |
10152 | wxPyEndAllowThreads(__tstate); |
10153 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10154 | }{ |
10155 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
10156 | } | |
10157 | { | |
10158 | delete _result; | |
10159 | } | |
10160 | return _resultobj; | |
10161 | } | |
10162 | ||
10163 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10164 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10165 | PyObject * _resultobj; | |
10166 | int _result; | |
10167 | wxFileHistory * _arg0; | |
10168 | PyObject * _argo0 = 0; | |
10169 | char *_kwnames[] = { "self", NULL }; | |
10170 | ||
10171 | self = self; | |
10172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10173 | return NULL; | |
10174 | if (_argo0) { | |
10175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10178 | return NULL; | |
10179 | } | |
10180 | } | |
10181 | { | |
4268f798 | 10182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
10183 | _result = (int )wxFileHistory_GetCount(_arg0); |
10184 | ||
4268f798 RD |
10185 | wxPyEndAllowThreads(__tstate); |
10186 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10187 | } _resultobj = Py_BuildValue("i",_result); |
10188 | return _resultobj; | |
10189 | } | |
10190 | ||
10191 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
10192 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10193 | PyObject * _resultobj; | |
10194 | int _result; | |
10195 | wxFileHistory * _arg0; | |
10196 | PyObject * _argo0 = 0; | |
10197 | char *_kwnames[] = { "self", NULL }; | |
10198 | ||
10199 | self = self; | |
10200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
10201 | return NULL; | |
10202 | if (_argo0) { | |
10203 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10204 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10205 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
10206 | return NULL; | |
10207 | } | |
10208 | } | |
10209 | { | |
4268f798 | 10210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7dbce44a RD |
10211 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
10212 | ||
4268f798 RD |
10213 | wxPyEndAllowThreads(__tstate); |
10214 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10215 | } _resultobj = Py_BuildValue("i",_result); |
10216 | return _resultobj; | |
10217 | } | |
10218 | ||
bb0054cd | 10219 | static PyMethodDef misc2cMethods[] = { |
7dbce44a RD |
10220 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
10221 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
10222 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
10223 | { "wxFileHistory_AddFilesToSingleMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToSingleMenu, METH_VARARGS | METH_KEYWORDS }, | |
10224 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
10225 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
10226 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
10227 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
10228 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
10229 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
10230 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
10231 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
10232 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
10233 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10234 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
10235 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10236 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
10237 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
10238 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
10239 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10240 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
10241 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10242 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
10243 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
10244 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
10245 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
10246 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
10247 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10248 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
10249 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
10250 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
10251 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
10252 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
10253 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10254 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10255 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10256 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
10257 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10258 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10259 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
10260 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10261 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
10262 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
10263 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
10264 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
10265 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
10266 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
10267 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10268 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
10269 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
10270 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
10271 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
10272 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
10273 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
10274 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
10275 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
10276 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
10277 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
10278 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10279 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
10280 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
10281 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
10282 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
10283 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
10284 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
10285 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
10286 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
10287 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
10288 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
10289 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
10290 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
10291 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
10292 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
10293 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
10294 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
10295 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
10296 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
10297 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
10298 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
10299 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
10300 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
10301 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
10302 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
10303 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
10304 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
10305 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
10306 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
10307 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
10308 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
10309 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
10310 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
10311 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
10312 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10313 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10314 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
10315 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10316 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
10317 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
10318 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
10319 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
10320 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
10321 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
10322 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 10323 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 10324 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10325 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
10326 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
10327 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
10328 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
10329 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
10330 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
10331 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
10332 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10333 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
10334 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
10335 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
10336 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
10337 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
10338 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
10339 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
10340 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
10341 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
10342 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10343 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10344 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 RD |
10345 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
10346 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10347 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10348 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10349 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
10350 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10351 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
10352 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
10353 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10354 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10355 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10356 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
10357 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10358 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
10359 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
10360 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10361 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10362 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10363 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10364 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10365 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10366 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
10367 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
10368 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10369 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10370 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10371 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10372 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
10373 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10374 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10375 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
10376 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10377 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10378 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
10379 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10380 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
10381 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
10382 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
10383 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10384 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10385 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
10386 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10387 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
10388 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
10389 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10390 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
10391 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
10392 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
10393 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
10394 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
10395 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
10396 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10397 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10398 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
10399 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
10400 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10401 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
10402 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
10403 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
10404 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
10405 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 10406 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10407 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
10408 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
10409 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
10410 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
10411 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10412 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
10413 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10414 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
10415 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10416 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10417 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
10418 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
10419 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
10420 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
10421 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
10422 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
65dd82cb RD |
10423 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, |
10424 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10425 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, |
10426 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10427 | { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10428 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, |
10429 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10430 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
10431 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10432 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10433 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10434 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
10435 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10436 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10437 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10438 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10439 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10440 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10441 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10442 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10443 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10444 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
10445 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
10446 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10447 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
10448 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10449 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10450 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
10451 | { "wxSystemSettings_GetSystemMetric", (PyCFunction) _wrap_wxSystemSettings_GetSystemMetric, METH_VARARGS | METH_KEYWORDS }, |
10452 | { "wxSystemSettings_GetSystemFont", (PyCFunction) _wrap_wxSystemSettings_GetSystemFont, METH_VARARGS | METH_KEYWORDS }, | |
10453 | { "wxSystemSettings_GetSystemColour", (PyCFunction) _wrap_wxSystemSettings_GetSystemColour, METH_VARARGS | METH_KEYWORDS }, | |
10454 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, | |
10455 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
10456 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10457 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 10458 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10459 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10460 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
10461 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10462 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10463 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10464 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10465 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10466 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10467 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10468 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10469 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10470 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10471 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
10472 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10473 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
10474 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10475 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10476 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10477 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10478 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 10479 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
10480 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
10481 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10482 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
10483 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10484 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10485 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10486 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10487 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10488 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10489 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10490 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
25832b3f | 10491 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
10492 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
10493 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10494 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10495 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
10496 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10497 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
10498 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10499 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
10500 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
10501 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
10502 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
10503 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10504 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10505 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10506 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10507 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
10508 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10509 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10510 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10511 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10512 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10513 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 RD |
10514 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
10515 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
bb0054cd RD |
10516 | { NULL, NULL } |
10517 | }; | |
1d99702e RD |
10518 | #ifdef __cplusplus |
10519 | } | |
10520 | #endif | |
10521 | /* | |
10522 | * This table is used by the pointer type-checker | |
10523 | */ | |
10524 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 10525 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 10526 | { "_signed_long","_long",0}, |
b1462dfa | 10527 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10528 | { "_wxPrintQuality","_int",0}, |
10529 | { "_wxPrintQuality","_signed_int",0}, | |
10530 | { "_wxPrintQuality","_unsigned_int",0}, | |
10531 | { "_wxPrintQuality","_wxWindowID",0}, | |
10532 | { "_wxPrintQuality","_uint",0}, | |
10533 | { "_wxPrintQuality","_EBool",0}, | |
10534 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10535 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
10536 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
10537 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 10538 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 10539 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 10540 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 10541 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 10542 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10543 | { "_long","_unsigned_long",0}, |
10544 | { "_long","_signed_long",0}, | |
b1462dfa | 10545 | { "_size_t","_wxCoord",0}, |
1d99702e | 10546 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10547 | { "_size_t","_time_t",0}, |
1d99702e RD |
10548 | { "_size_t","_unsigned_int",0}, |
10549 | { "_size_t","_int",0}, | |
10550 | { "_size_t","_wxWindowID",0}, | |
10551 | { "_size_t","_uint",0}, | |
b1462dfa | 10552 | { "_uint","_wxCoord",0}, |
1d99702e | 10553 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10554 | { "_uint","_time_t",0}, |
1d99702e RD |
10555 | { "_uint","_size_t",0}, |
10556 | { "_uint","_unsigned_int",0}, | |
10557 | { "_uint","_int",0}, | |
10558 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10559 | { "_wxChar","_char",0}, |
f6bcfd97 | 10560 | { "_char","_wxChar",0}, |
cdf14688 | 10561 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10562 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10563 | { "_EBool","_wxPrintQuality",0}, |
10564 | { "_EBool","_signed_int",0}, | |
10565 | { "_EBool","_int",0}, | |
10566 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10567 | { "_unsigned_long","_long",0}, |
cdf14688 | 10568 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10569 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10570 | { "_signed_int","_wxPrintQuality",0}, |
10571 | { "_signed_int","_EBool",0}, | |
10572 | { "_signed_int","_wxWindowID",0}, | |
10573 | { "_signed_int","_int",0}, | |
7dbce44a | 10574 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
10575 | { "_WXTYPE","_short",0}, |
10576 | { "_WXTYPE","_signed_short",0}, | |
10577 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 10578 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 10579 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
10580 | { "_unsigned_short","_WXTYPE",0}, |
10581 | { "_unsigned_short","_short",0}, | |
7dbce44a | 10582 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
493f1553 | 10583 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 10584 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 10585 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 10586 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 10587 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 10588 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 10589 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
10590 | { "_signed_short","_WXTYPE",0}, |
10591 | { "_signed_short","_short",0}, | |
1d99702e | 10592 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10593 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10594 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10595 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10596 | { "_unsigned_int","_size_t",0}, |
10597 | { "_unsigned_int","_uint",0}, | |
10598 | { "_unsigned_int","_wxWindowID",0}, | |
10599 | { "_unsigned_int","_int",0}, | |
7dbce44a | 10600 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
10601 | { "_short","_WXTYPE",0}, |
10602 | { "_short","_unsigned_short",0}, | |
10603 | { "_short","_signed_short",0}, | |
b1462dfa | 10604 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10605 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10606 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10607 | { "_wxWindowID","_size_t",0}, |
10608 | { "_wxWindowID","_EBool",0}, | |
10609 | { "_wxWindowID","_uint",0}, | |
10610 | { "_wxWindowID","_int",0}, | |
10611 | { "_wxWindowID","_signed_int",0}, | |
10612 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10613 | { "_int","_wxCoord",0}, |
1d99702e | 10614 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10615 | { "_int","_time_t",0}, |
1d99702e RD |
10616 | { "_int","_size_t",0}, |
10617 | { "_int","_EBool",0}, | |
10618 | { "_int","_uint",0}, | |
10619 | { "_int","_wxWindowID",0}, | |
10620 | { "_int","_unsigned_int",0}, | |
10621 | { "_int","_signed_int",0}, | |
7dbce44a RD |
10622 | { "_wxDateTime_t","_unsigned_short",0}, |
10623 | { "_wxDateTime_t","_short",0}, | |
10624 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
10625 | { "_time_t","_wxCoord",0}, |
10626 | { "_time_t","_wxPrintQuality",0}, | |
10627 | { "_time_t","_unsigned_int",0}, | |
10628 | { "_time_t","_int",0}, | |
10629 | { "_time_t","_wxWindowID",0}, | |
10630 | { "_time_t","_uint",0}, | |
10631 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10632 | { "_wxCoord","_int",0}, |
10633 | { "_wxCoord","_signed_int",0}, | |
10634 | { "_wxCoord","_unsigned_int",0}, | |
10635 | { "_wxCoord","_wxWindowID",0}, | |
10636 | { "_wxCoord","_uint",0}, | |
10637 | { "_wxCoord","_EBool",0}, | |
10638 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10639 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10640 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 10641 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
10642 | {0,0,0}}; |
10643 | ||
bb0054cd RD |
10644 | static PyObject *SWIG_globals; |
10645 | #ifdef __cplusplus | |
10646 | extern "C" | |
10647 | #endif | |
1d99702e | 10648 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
10649 | PyObject *m, *d; |
10650 | SWIG_globals = SWIG_newvarlink(); | |
10651 | m = Py_InitModule("misc2c", misc2cMethods); | |
10652 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
10653 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
10654 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10655 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10656 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10657 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10658 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10659 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10660 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10661 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10662 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
10663 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); | |
10664 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10665 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10666 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10667 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10668 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10669 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10670 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10671 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10672 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10673 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10674 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10675 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10676 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
10677 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); | |
10678 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); | |
10679 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10680 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10681 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
10682 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); | |
10683 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10684 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10685 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 10686 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
06c0fba4 RD |
10687 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
10688 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); | |
10689 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); | |
10690 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10691 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
10692 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); | |
10693 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); | |
10694 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10695 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10696 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10697 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10698 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10699 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10700 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10701 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10702 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10703 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10704 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10705 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10706 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10707 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10708 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10709 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10710 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10711 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10712 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10713 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10714 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10715 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10716 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10717 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10718 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10719 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10720 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10721 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10722 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10723 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10724 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10725 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10726 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10727 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10728 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10729 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
10730 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
10731 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
f6bcfd97 BP |
10732 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
10733 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10734 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10735 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10736 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10737 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10738 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10739 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10740 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10741 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
1b62f00d | 10742 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
b37c7e1d RD |
10743 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10744 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10745 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10746 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10747 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10748 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10749 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9416aa89 RD |
10750 | |
10751 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
10752 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
10753 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
1d99702e RD |
10754 | { |
10755 | int i; | |
10756 | for (i = 0; _swig_mapping[i].n1; i++) | |
10757 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10758 | } | |
bb0054cd | 10759 | } |