]>
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" | |
5ae76026 | 59 | #include "pyistream.h" |
bb0054cd RD |
60 | #include <wx/resource.h> |
61 | #include <wx/tooltip.h> | |
f0261a72 RD |
62 | #include <wx/caret.h> |
63 | #include <wx/fontenum.h> | |
f6bcfd97 | 64 | #include <wx/tipdlg.h> |
c368d904 | 65 | #include <wx/process.h> |
493f1553 RD |
66 | |
67 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
185d7c3e | 68 | #include <wx/joystick.h> |
e0672e2f | 69 | #endif |
bb0054cd | 70 | |
493f1553 RD |
71 | #if wxUSE_WAVE || defined(__WXMSW__) |
72 | #include <wx/wave.h> | |
73 | #endif | |
74 | ||
b37c7e1d RD |
75 | #include <wx/mimetype.h> |
76 | ||
bb0054cd RD |
77 | |
78 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
79 | PyObject* o2; | |
80 | PyObject* o3; | |
81 | ||
6e18ca6c | 82 | if (!target) { |
bb0054cd | 83 | target = o; |
6e18ca6c | 84 | } else if (target == Py_None) { |
bb0054cd RD |
85 | Py_DECREF(Py_None); |
86 | target = o; | |
6e18ca6c | 87 | } else { |
bb0054cd RD |
88 | if (!PyTuple_Check(target)) { |
89 | o2 = target; | |
90 | target = PyTuple_New(1); | |
91 | PyTuple_SetItem(target, 0, o2); | |
92 | } | |
6e18ca6c RD |
93 | o3 = PyTuple_New(1); |
94 | PyTuple_SetItem(o3, 0, o); | |
bb0054cd RD |
95 | |
96 | o2 = target; | |
6e18ca6c RD |
97 | target = PySequence_Concat(o2, o3); |
98 | Py_DECREF(o2); | |
bb0054cd RD |
99 | Py_DECREF(o3); |
100 | } | |
101 | return target; | |
102 | } | |
103 | ||
06c0fba4 RD |
104 | int wxCaret_GetBlinkTime() { |
105 | return wxCaret::GetBlinkTime(); | |
106 | } | |
107 | ||
108 | void wxCaret_SetBlinkTime(int milliseconds) { | |
109 | wxCaret::SetBlinkTime(milliseconds); | |
110 | } | |
b1462dfa RD |
111 | |
112 | class wxPyFontEnumerator : public wxFontEnumerator { | |
113 | public: | |
114 | wxPyFontEnumerator() {} | |
115 | ~wxPyFontEnumerator() {} | |
116 | ||
117 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
118 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
119 | ||
120 | PYPRIVATE; | |
121 | }; | |
122 | ||
123 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
124 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
125 | ||
f6bcfd97 | 126 | |
6e18ca6c | 127 | bool wxThread_IsMain() { |
00ca6262 | 128 | #ifdef WXP_WITH_THREAD |
6e18ca6c | 129 | return wxThread::IsMain(); |
00ca6262 RD |
130 | #else |
131 | return TRUE; | |
132 | #endif | |
6e18ca6c RD |
133 | } |
134 | ||
f6bcfd97 BP |
135 | class wxPyTipProvider : public wxTipProvider { |
136 | public: | |
137 | wxPyTipProvider(size_t currentTip) | |
138 | : wxTipProvider(currentTip) {} | |
139 | ||
140 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
141 | ||
142 | PYPRIVATE; | |
143 | }; | |
144 | ||
145 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
146 | ||
147 | ||
148 | #include <wx/generic/dragimgg.h> | |
76bfdc78 RD |
149 | |
150 | // A Log class that can be derived from in wxPython | |
151 | class wxPyLog : public wxLog { | |
152 | public: | |
153 | wxPyLog() : wxLog() {} | |
154 | ||
155 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
156 | bool found; | |
4268f798 | 157 | wxPyBeginBlockThreads(); |
76bfdc78 | 158 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) |
a541c325 RD |
159 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, |
160 | wx2PyString(szString), t)); | |
4268f798 | 161 | wxPyEndBlockThreads(); |
76bfdc78 RD |
162 | if (! found) |
163 | wxLog::DoLog(level, szString, t); | |
164 | } | |
165 | ||
166 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
167 | bool found; | |
4268f798 | 168 | wxPyBeginBlockThreads(); |
76bfdc78 | 169 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) |
a541c325 RD |
170 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", |
171 | wx2PyString(szString), t)); | |
4268f798 | 172 | wxPyEndBlockThreads(); |
76bfdc78 RD |
173 | if (! found) |
174 | wxLog::DoLogString(szString, t); | |
175 | } | |
176 | ||
177 | PYPRIVATE; | |
178 | }; | |
c368d904 RD |
179 | // C++ version of wxProcess derived class |
180 | ||
181 | class wxPyProcess : public wxProcess { | |
182 | public: | |
183 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
184 | : wxProcess(parent, id) | |
185 | {} | |
186 | ||
187 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
188 | ||
189 | PYPRIVATE; | |
190 | }; | |
191 | ||
192 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 193 | |
19a97bd6 | 194 | |
493f1553 RD |
195 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
196 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
197 | class wxJoystick : public wxObject { | |
198 | public: | |
199 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 200 | wxPyBeginBlockThreads(); |
493f1553 | 201 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 202 | wxPyEndBlockThreads(); |
493f1553 RD |
203 | } |
204 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
205 | int GetZPosition() { return -1; } | |
206 | int GetButtonState() { return -1; } | |
207 | int GetPOVPosition() { return -1; } | |
208 | int GetPOVCTSPosition() { return -1; } | |
209 | int GetRudderPosition() { return -1; } | |
210 | int GetUPosition() { return -1; } | |
211 | int GetVPosition() { return -1; } | |
212 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 213 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
214 | |
215 | bool IsOk(void) { return FALSE; } | |
216 | int GetNumberJoysticks() { return -1; } | |
217 | int GetManufacturerId() { return -1; } | |
218 | int GetProductId() { return -1; } | |
219 | wxString GetProductName() { return ""; } | |
220 | int GetXMin() { return -1; } | |
221 | int GetYMin() { return -1; } | |
222 | int GetZMin() { return -1; } | |
223 | int GetXMax() { return -1; } | |
224 | int GetYMax() { return -1; } | |
225 | int GetZMax() { return -1; } | |
226 | int GetNumberButtons() { return -1; } | |
227 | int GetNumberAxes() { return -1; } | |
228 | int GetMaxButtons() { return -1; } | |
229 | int GetMaxAxes() { return -1; } | |
230 | int GetPollingMin() { return -1; } | |
231 | int GetPollingMax() { return -1; } | |
232 | int GetRudderMin() { return -1; } | |
233 | int GetRudderMax() { return -1; } | |
234 | int GetUMin() { return -1; } | |
235 | int GetUMax() { return -1; } | |
236 | int GetVMin() { return -1; } | |
237 | int GetVMax() { return -1; } | |
238 | ||
239 | bool HasRudder() { return FALSE; } | |
240 | bool HasZ() { return FALSE; } | |
241 | bool HasU() { return FALSE; } | |
242 | bool HasV() { return FALSE; } | |
243 | bool HasPOV() { return FALSE; } | |
244 | bool HasPOV4Dir() { return FALSE; } | |
245 | bool HasPOVCTS() { return FALSE; } | |
246 | ||
247 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
248 | bool ReleaseCapture() { return FALSE; } | |
249 | }; | |
250 | #endif | |
251 | ||
0adbc166 | 252 | #if !wxUSE_WAVE |
493f1553 RD |
253 | // A C++ stub class for wxWave for platforms that don't have it. |
254 | class wxWave : public wxObject | |
255 | { | |
256 | public: | |
257 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 258 | wxPyBeginBlockThreads(); |
493f1553 | 259 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 260 | wxPyEndBlockThreads(); |
493f1553 RD |
261 | } |
262 | wxWave(int size, const wxByte* data) { | |
4268f798 | 263 | wxPyBeginBlockThreads(); |
493f1553 | 264 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 265 | wxPyEndBlockThreads(); |
493f1553 RD |
266 | } |
267 | ||
268 | ~wxWave() {} | |
269 | ||
270 | bool IsOk() const { return FALSE; } | |
271 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
272 | }; | |
273 | ||
274 | #endif | |
275 | // Implementations of some alternate "constructors" | |
276 | wxWave* wxWaveData(const wxString& data) { | |
277 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
278 | } | |
b37c7e1d RD |
279 | |
280 | #if 0 | |
281 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
282 | ||
283 | #endif | |
7dbce44a RD |
284 | |
285 | #include <wx/docview.h> | |
06c0fba4 RD |
286 | #ifdef __cplusplus |
287 | extern "C" { | |
288 | #endif | |
289 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
290 | PyObject * _resultobj; | |
291 | wxString * _result; | |
a541c325 RD |
292 | wxChar * _arg0 = (wxChar *) wxFileSelectorPromptStr; |
293 | wxChar * _arg1 = (wxChar *) NULL; | |
294 | wxChar * _arg2 = (wxChar *) NULL; | |
295 | wxChar * _arg3 = (wxChar *) NULL; | |
296 | wxChar * _arg4 = (wxChar *) wxFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
297 | int _arg5 = (int ) 0; |
298 | wxWindow * _arg6 = (wxWindow *) NULL; | |
299 | int _arg7 = (int ) -1; | |
300 | int _arg8 = (int ) -1; | |
301 | PyObject * _argo6 = 0; | |
302 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
303 | ||
304 | self = self; | |
c8bc7bb8 | 305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|sssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 RD |
306 | return NULL; |
307 | if (_argo6) { | |
308 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
309 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
311 | return NULL; | |
312 | } | |
313 | } | |
314 | { | |
4268f798 | 315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 316 | _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 317 | |
4268f798 RD |
318 | wxPyEndAllowThreads(__tstate); |
319 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 320 | }{ |
c8bc7bb8 RD |
321 | #if wxUSE_UNICODE |
322 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
323 | #else | |
eec92d76 | 324 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 325 | #endif |
06c0fba4 RD |
326 | } |
327 | { | |
328 | delete _result; | |
329 | } | |
330 | return _resultobj; | |
331 | } | |
332 | ||
a541c325 RD |
333 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
334 | PyObject * _resultobj; | |
335 | wxString * _result; | |
336 | wxChar * _arg0; | |
337 | wxChar * _arg1; | |
338 | wxChar * _arg2 = (wxChar *) NULL; | |
339 | wxWindow * _arg3 = (wxWindow *) NULL; | |
340 | PyObject * _argo3 = 0; | |
341 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
342 | ||
343 | self = self; | |
344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ss|sO:wxLoadFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_argo3)) | |
345 | return NULL; | |
346 | if (_argo3) { | |
347 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
348 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
349 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
350 | return NULL; | |
351 | } | |
352 | } | |
353 | { | |
354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
355 | _result = new wxString (wxLoadFileSelector(_arg0,_arg1,_arg2,_arg3)); | |
356 | ||
357 | wxPyEndAllowThreads(__tstate); | |
358 | if (PyErr_Occurred()) return NULL; | |
359 | }{ | |
360 | #if wxUSE_UNICODE | |
361 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
362 | #else | |
363 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
364 | #endif | |
365 | } | |
366 | { | |
367 | delete _result; | |
368 | } | |
369 | return _resultobj; | |
370 | } | |
371 | ||
372 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
373 | PyObject * _resultobj; | |
374 | wxString * _result; | |
375 | wxChar * _arg0; | |
376 | wxChar * _arg1; | |
377 | wxChar * _arg2 = (wxChar *) NULL; | |
378 | wxWindow * _arg3 = (wxWindow *) NULL; | |
379 | PyObject * _argo3 = 0; | |
380 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
381 | ||
382 | self = self; | |
383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ss|sO:wxSaveFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_argo3)) | |
384 | return NULL; | |
385 | if (_argo3) { | |
386 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
387 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
388 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
389 | return NULL; | |
390 | } | |
391 | } | |
392 | { | |
393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
394 | _result = new wxString (wxSaveFileSelector(_arg0,_arg1,_arg2,_arg3)); | |
395 | ||
396 | wxPyEndAllowThreads(__tstate); | |
397 | if (PyErr_Occurred()) return NULL; | |
398 | }{ | |
399 | #if wxUSE_UNICODE | |
400 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
401 | #else | |
402 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
403 | #endif | |
404 | } | |
405 | { | |
406 | delete _result; | |
407 | } | |
408 | return _resultobj; | |
409 | } | |
410 | ||
06c0fba4 RD |
411 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
412 | PyObject * _resultobj; | |
413 | wxString * _result; | |
414 | wxString * _arg0; | |
23bed520 RD |
415 | wxString * _arg1 = (wxString *) &wxEmptyString; |
416 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
06c0fba4 RD |
417 | wxWindow * _arg3 = (wxWindow *) NULL; |
418 | int _arg4 = (int ) -1; | |
419 | int _arg5 = (int ) -1; | |
420 | bool _arg6 = (bool ) TRUE; | |
421 | PyObject * _obj0 = 0; | |
422 | PyObject * _obj1 = 0; | |
423 | PyObject * _obj2 = 0; | |
424 | PyObject * _argo3 = 0; | |
425 | int tempbool6 = (int) TRUE; | |
426 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
427 | ||
428 | self = self; | |
429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
430 | return NULL; | |
431 | { | |
c8bc7bb8 RD |
432 | _arg0 = wxString_in_helper(_obj0); |
433 | if (_arg0 == NULL) | |
185d7c3e | 434 | return NULL; |
06c0fba4 RD |
435 | } |
436 | if (_obj1) | |
437 | { | |
c8bc7bb8 RD |
438 | _arg1 = wxString_in_helper(_obj1); |
439 | if (_arg1 == NULL) | |
185d7c3e | 440 | return NULL; |
06c0fba4 RD |
441 | } |
442 | if (_obj2) | |
443 | { | |
c8bc7bb8 RD |
444 | _arg2 = wxString_in_helper(_obj2); |
445 | if (_arg2 == NULL) | |
06c0fba4 | 446 | return NULL; |
06c0fba4 RD |
447 | } |
448 | if (_argo3) { | |
449 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
450 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
452 | return NULL; | |
453 | } | |
454 | } | |
455 | _arg6 = (bool ) tempbool6; | |
456 | { | |
4268f798 | 457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 458 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 459 | |
4268f798 RD |
460 | wxPyEndAllowThreads(__tstate); |
461 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 462 | }{ |
c8bc7bb8 RD |
463 | #if wxUSE_UNICODE |
464 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
465 | #else | |
eec92d76 | 466 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 467 | #endif |
06c0fba4 RD |
468 | } |
469 | { | |
470 | if (_obj0) | |
471 | delete _arg0; | |
472 | } | |
473 | { | |
474 | if (_obj1) | |
475 | delete _arg1; | |
476 | } | |
477 | { | |
478 | if (_obj2) | |
479 | delete _arg2; | |
480 | } | |
481 | { | |
482 | delete _result; | |
483 | } | |
484 | return _resultobj; | |
485 | } | |
486 | ||
1b62f00d RD |
487 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
488 | PyObject * _resultobj; | |
489 | wxString * _result; | |
490 | wxString * _arg0; | |
23bed520 RD |
491 | wxString * _arg1 = (wxString *) &wxEmptyString; |
492 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
1b62f00d RD |
493 | wxWindow * _arg3 = (wxWindow *) NULL; |
494 | PyObject * _obj0 = 0; | |
495 | PyObject * _obj1 = 0; | |
496 | PyObject * _obj2 = 0; | |
497 | PyObject * _argo3 = 0; | |
498 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
499 | ||
500 | self = self; | |
501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
502 | return NULL; | |
503 | { | |
c8bc7bb8 RD |
504 | _arg0 = wxString_in_helper(_obj0); |
505 | if (_arg0 == NULL) | |
1b62f00d | 506 | return NULL; |
1b62f00d RD |
507 | } |
508 | if (_obj1) | |
509 | { | |
c8bc7bb8 RD |
510 | _arg1 = wxString_in_helper(_obj1); |
511 | if (_arg1 == NULL) | |
1b62f00d | 512 | return NULL; |
1b62f00d RD |
513 | } |
514 | if (_obj2) | |
515 | { | |
c8bc7bb8 RD |
516 | _arg2 = wxString_in_helper(_obj2); |
517 | if (_arg2 == NULL) | |
1b62f00d | 518 | return NULL; |
1b62f00d RD |
519 | } |
520 | if (_argo3) { | |
521 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
522 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
523 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
524 | return NULL; | |
525 | } | |
526 | } | |
527 | { | |
4268f798 | 528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 529 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 530 | |
4268f798 RD |
531 | wxPyEndAllowThreads(__tstate); |
532 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 533 | }{ |
c8bc7bb8 RD |
534 | #if wxUSE_UNICODE |
535 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
536 | #else | |
1b62f00d | 537 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 538 | #endif |
1b62f00d RD |
539 | } |
540 | { | |
541 | if (_obj0) | |
542 | delete _arg0; | |
543 | } | |
544 | { | |
545 | if (_obj1) | |
546 | delete _arg1; | |
547 | } | |
548 | { | |
549 | if (_obj2) | |
550 | delete _arg2; | |
551 | } | |
552 | { | |
553 | delete _result; | |
554 | } | |
555 | return _resultobj; | |
556 | } | |
557 | ||
06c0fba4 RD |
558 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
559 | PyObject * _resultobj; | |
560 | wxString * _result; | |
561 | wxString * _arg0; | |
562 | wxString * _arg1; | |
563 | int _arg2; | |
564 | wxString * _arg3; | |
565 | wxWindow * _arg4 = (wxWindow *) NULL; | |
566 | int _arg5 = (int ) -1; | |
567 | int _arg6 = (int ) -1; | |
568 | bool _arg7 = (bool ) TRUE; | |
569 | int _arg8 = (int ) 150; | |
570 | int _arg9 = (int ) 200; | |
571 | PyObject * _obj0 = 0; | |
572 | PyObject * _obj1 = 0; | |
573 | PyObject * _obj3 = 0; | |
574 | PyObject * _argo4 = 0; | |
575 | int tempbool7 = (int) TRUE; | |
eec92d76 | 576 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
577 | |
578 | self = self; | |
579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
580 | return NULL; | |
581 | { | |
c8bc7bb8 RD |
582 | _arg0 = wxString_in_helper(_obj0); |
583 | if (_arg0 == NULL) | |
185d7c3e | 584 | return NULL; |
06c0fba4 RD |
585 | } |
586 | { | |
c8bc7bb8 RD |
587 | _arg1 = wxString_in_helper(_obj1); |
588 | if (_arg1 == NULL) | |
185d7c3e | 589 | return NULL; |
06c0fba4 RD |
590 | } |
591 | if (_obj3) | |
592 | { | |
593 | _arg3 = wxString_LIST_helper(_obj3); | |
594 | if (_arg3 == NULL) { | |
595 | return NULL; | |
596 | } | |
597 | } | |
598 | if (_argo4) { | |
599 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
600 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
601 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
602 | return NULL; | |
603 | } | |
604 | } | |
605 | _arg7 = (bool ) tempbool7; | |
606 | { | |
607 | if (_obj3) { | |
608 | _arg2 = PyList_Size(_obj3); | |
609 | } | |
610 | else { | |
611 | _arg2 = 0; | |
612 | } | |
613 | } | |
614 | { | |
4268f798 | 615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 616 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 617 | |
4268f798 RD |
618 | wxPyEndAllowThreads(__tstate); |
619 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 620 | }{ |
c8bc7bb8 RD |
621 | #if wxUSE_UNICODE |
622 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
623 | #else | |
eec92d76 | 624 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 625 | #endif |
06c0fba4 RD |
626 | } |
627 | { | |
628 | if (_obj0) | |
629 | delete _arg0; | |
630 | } | |
631 | { | |
632 | if (_obj1) | |
633 | delete _arg1; | |
634 | } | |
635 | { | |
636 | delete [] _arg3; | |
637 | } | |
638 | { | |
639 | delete _result; | |
640 | } | |
641 | return _resultobj; | |
642 | } | |
643 | ||
644 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
645 | PyObject * _resultobj; | |
646 | int _result; | |
647 | wxString * _arg0; | |
648 | wxString * _arg1; | |
649 | int _arg2; | |
650 | wxString * _arg3; | |
651 | wxWindow * _arg4 = (wxWindow *) NULL; | |
652 | int _arg5 = (int ) -1; | |
653 | int _arg6 = (int ) -1; | |
654 | bool _arg7 = (bool ) TRUE; | |
655 | int _arg8 = (int ) 150; | |
656 | int _arg9 = (int ) 200; | |
657 | PyObject * _obj0 = 0; | |
658 | PyObject * _obj1 = 0; | |
659 | PyObject * _obj3 = 0; | |
660 | PyObject * _argo4 = 0; | |
661 | int tempbool7 = (int) TRUE; | |
eec92d76 | 662 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
663 | |
664 | self = self; | |
665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
666 | return NULL; | |
667 | { | |
c8bc7bb8 RD |
668 | _arg0 = wxString_in_helper(_obj0); |
669 | if (_arg0 == NULL) | |
185d7c3e | 670 | return NULL; |
06c0fba4 RD |
671 | } |
672 | { | |
c8bc7bb8 RD |
673 | _arg1 = wxString_in_helper(_obj1); |
674 | if (_arg1 == NULL) | |
185d7c3e | 675 | return NULL; |
06c0fba4 RD |
676 | } |
677 | if (_obj3) | |
678 | { | |
679 | _arg3 = wxString_LIST_helper(_obj3); | |
680 | if (_arg3 == NULL) { | |
681 | return NULL; | |
682 | } | |
683 | } | |
684 | if (_argo4) { | |
685 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
686 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
688 | return NULL; | |
689 | } | |
690 | } | |
691 | _arg7 = (bool ) tempbool7; | |
692 | { | |
693 | if (_obj3) { | |
694 | _arg2 = PyList_Size(_obj3); | |
695 | } | |
696 | else { | |
697 | _arg2 = 0; | |
698 | } | |
699 | } | |
700 | { | |
4268f798 | 701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 702 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 703 | |
4268f798 RD |
704 | wxPyEndAllowThreads(__tstate); |
705 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
706 | } _resultobj = Py_BuildValue("i",_result); |
707 | { | |
708 | if (_obj0) | |
709 | delete _arg0; | |
710 | } | |
711 | { | |
712 | if (_obj1) | |
713 | delete _arg1; | |
714 | } | |
715 | { | |
716 | delete [] _arg3; | |
717 | } | |
718 | return _resultobj; | |
719 | } | |
720 | ||
721 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
722 | PyObject * _resultobj; | |
723 | int _result; | |
724 | wxString * _arg0; | |
23bed520 | 725 | wxString * _arg1 = (wxString *) &wxEmptyString; |
06c0fba4 RD |
726 | int _arg2 = (int ) wxOK|wxCENTRE; |
727 | wxWindow * _arg3 = (wxWindow *) NULL; | |
728 | int _arg4 = (int ) -1; | |
729 | int _arg5 = (int ) -1; | |
730 | PyObject * _obj0 = 0; | |
731 | PyObject * _obj1 = 0; | |
732 | PyObject * _argo3 = 0; | |
733 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
734 | ||
735 | self = self; | |
736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
737 | return NULL; | |
738 | { | |
c8bc7bb8 RD |
739 | _arg0 = wxString_in_helper(_obj0); |
740 | if (_arg0 == NULL) | |
185d7c3e | 741 | return NULL; |
06c0fba4 RD |
742 | } |
743 | if (_obj1) | |
744 | { | |
c8bc7bb8 RD |
745 | _arg1 = wxString_in_helper(_obj1); |
746 | if (_arg1 == NULL) | |
185d7c3e | 747 | return NULL; |
06c0fba4 RD |
748 | } |
749 | if (_argo3) { | |
750 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
751 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
752 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
753 | return NULL; | |
754 | } | |
755 | } | |
756 | { | |
4268f798 | 757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 758 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 759 | |
4268f798 RD |
760 | wxPyEndAllowThreads(__tstate); |
761 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
762 | } _resultobj = Py_BuildValue("i",_result); |
763 | { | |
764 | if (_obj0) | |
765 | delete _arg0; | |
766 | } | |
767 | { | |
768 | if (_obj1) | |
769 | delete _arg1; | |
770 | } | |
771 | return _resultobj; | |
772 | } | |
773 | ||
774 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
775 | PyObject * _resultobj; | |
776 | long _result; | |
777 | wxString * _arg0; | |
778 | wxString * _arg1; | |
779 | wxString * _arg2; | |
780 | long _arg3; | |
781 | long _arg4 = (long ) 0; | |
782 | long _arg5 = (long ) 100; | |
783 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 784 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
785 | PyObject * _obj0 = 0; |
786 | PyObject * _obj1 = 0; | |
787 | PyObject * _obj2 = 0; | |
788 | PyObject * _argo6 = 0; | |
789 | wxPoint temp; | |
790 | PyObject * _obj7 = 0; | |
791 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
792 | ||
793 | self = self; | |
794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
795 | return NULL; | |
796 | { | |
c8bc7bb8 RD |
797 | _arg0 = wxString_in_helper(_obj0); |
798 | if (_arg0 == NULL) | |
185d7c3e | 799 | return NULL; |
06c0fba4 RD |
800 | } |
801 | { | |
c8bc7bb8 RD |
802 | _arg1 = wxString_in_helper(_obj1); |
803 | if (_arg1 == NULL) | |
06c0fba4 | 804 | return NULL; |
06c0fba4 RD |
805 | } |
806 | { | |
c8bc7bb8 RD |
807 | _arg2 = wxString_in_helper(_obj2); |
808 | if (_arg2 == NULL) | |
185d7c3e | 809 | return NULL; |
06c0fba4 RD |
810 | } |
811 | if (_argo6) { | |
812 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
813 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
814 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
815 | return NULL; | |
816 | } | |
817 | } | |
818 | if (_obj7) | |
819 | { | |
820 | _arg7 = &temp; | |
821 | if (! wxPoint_helper(_obj7, &_arg7)) | |
822 | return NULL; | |
823 | } | |
824 | { | |
4268f798 | 825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 826 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 827 | |
4268f798 RD |
828 | wxPyEndAllowThreads(__tstate); |
829 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
830 | } _resultobj = Py_BuildValue("l",_result); |
831 | { | |
832 | if (_obj0) | |
833 | delete _arg0; | |
834 | } | |
835 | { | |
836 | if (_obj1) | |
837 | delete _arg1; | |
838 | } | |
839 | { | |
840 | if (_obj2) | |
841 | delete _arg2; | |
842 | } | |
843 | return _resultobj; | |
844 | } | |
845 | ||
846 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
847 | PyObject * _resultobj; | |
848 | bool _result; | |
849 | char *_kwnames[] = { NULL }; | |
850 | ||
851 | self = self; | |
852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
853 | return NULL; | |
854 | { | |
4268f798 | 855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 856 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 857 | |
4268f798 RD |
858 | wxPyEndAllowThreads(__tstate); |
859 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
860 | } _resultobj = Py_BuildValue("i",_result); |
861 | return _resultobj; | |
862 | } | |
863 | ||
864 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
865 | PyObject * _resultobj; | |
866 | int _result; | |
867 | char *_kwnames[] = { NULL }; | |
868 | ||
869 | self = self; | |
870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
871 | return NULL; | |
872 | { | |
4268f798 | 873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 874 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 875 | |
4268f798 RD |
876 | wxPyEndAllowThreads(__tstate); |
877 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
878 | } _resultobj = Py_BuildValue("i",_result); |
879 | return _resultobj; | |
880 | } | |
f0261a72 | 881 | |
1e7ecb7b RD |
882 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
883 | PyObject * _resultobj; | |
884 | int _result; | |
885 | char *_kwnames[] = { NULL }; | |
886 | ||
887 | self = self; | |
888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
889 | return NULL; | |
890 | { | |
4268f798 | 891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 892 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 893 | |
4268f798 RD |
894 | wxPyEndAllowThreads(__tstate); |
895 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
896 | } _resultobj = Py_BuildValue("i",_result); |
897 | return _resultobj; | |
898 | } | |
899 | ||
900 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
901 | PyObject * _resultobj; | |
902 | int * _arg0; | |
903 | int temp; | |
904 | int * _arg1; | |
905 | int temp0; | |
906 | char *_kwnames[] = { NULL }; | |
907 | ||
908 | self = self; | |
909 | { | |
910 | _arg0 = &temp; | |
911 | } | |
912 | { | |
913 | _arg1 = &temp0; | |
914 | } | |
915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
916 | return NULL; | |
917 | { | |
4268f798 | 918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 919 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 920 | |
4268f798 RD |
921 | wxPyEndAllowThreads(__tstate); |
922 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
923 | } Py_INCREF(Py_None); |
924 | _resultobj = Py_None; | |
925 | { | |
926 | PyObject *o; | |
927 | o = PyInt_FromLong((long) (*_arg0)); | |
928 | _resultobj = t_output_helper(_resultobj, o); | |
929 | } | |
930 | { | |
931 | PyObject *o; | |
932 | o = PyInt_FromLong((long) (*_arg1)); | |
933 | _resultobj = t_output_helper(_resultobj, o); | |
934 | } | |
935 | return _resultobj; | |
936 | } | |
937 | ||
938 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
939 | PyObject * _resultobj; | |
940 | wxSize * _result; | |
941 | char *_kwnames[] = { NULL }; | |
942 | char _ptemp[128]; | |
943 | ||
944 | self = self; | |
945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
946 | return NULL; | |
947 | { | |
4268f798 | 948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 949 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 950 | |
4268f798 RD |
951 | wxPyEndAllowThreads(__tstate); |
952 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
953 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
954 | _resultobj = Py_BuildValue("s",_ptemp); | |
955 | return _resultobj; | |
956 | } | |
957 | ||
958 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
959 | PyObject * _resultobj; | |
960 | int * _arg0; | |
961 | int temp; | |
962 | int * _arg1; | |
963 | int temp0; | |
964 | char *_kwnames[] = { NULL }; | |
965 | ||
966 | self = self; | |
967 | { | |
968 | _arg0 = &temp; | |
969 | } | |
970 | { | |
971 | _arg1 = &temp0; | |
972 | } | |
973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
974 | return NULL; | |
975 | { | |
4268f798 | 976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 977 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 978 | |
4268f798 RD |
979 | wxPyEndAllowThreads(__tstate); |
980 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
981 | } Py_INCREF(Py_None); |
982 | _resultobj = Py_None; | |
983 | { | |
984 | PyObject *o; | |
985 | o = PyInt_FromLong((long) (*_arg0)); | |
986 | _resultobj = t_output_helper(_resultobj, o); | |
987 | } | |
988 | { | |
989 | PyObject *o; | |
990 | o = PyInt_FromLong((long) (*_arg1)); | |
991 | _resultobj = t_output_helper(_resultobj, o); | |
992 | } | |
993 | return _resultobj; | |
994 | } | |
995 | ||
996 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
997 | PyObject * _resultobj; | |
998 | wxSize * _result; | |
999 | char *_kwnames[] = { NULL }; | |
1000 | char _ptemp[128]; | |
1001 | ||
1002 | self = self; | |
1003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1004 | return NULL; | |
1005 | { | |
4268f798 | 1006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1007 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1008 | |
4268f798 RD |
1009 | wxPyEndAllowThreads(__tstate); |
1010 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1011 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1012 | _resultobj = Py_BuildValue("s",_ptemp); | |
1013 | return _resultobj; | |
1014 | } | |
1015 | ||
91c41b30 RD |
1016 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1017 | PyObject * _resultobj; | |
1018 | int * _arg0; | |
1019 | int temp; | |
1020 | int * _arg1; | |
1021 | int temp0; | |
1022 | int * _arg2; | |
1023 | int temp1; | |
1024 | int * _arg3; | |
1025 | int temp2; | |
1026 | char *_kwnames[] = { NULL }; | |
1027 | ||
1028 | self = self; | |
1029 | { | |
1030 | _arg0 = &temp; | |
1031 | } | |
1032 | { | |
1033 | _arg1 = &temp0; | |
1034 | } | |
1035 | { | |
1036 | _arg2 = &temp1; | |
1037 | } | |
1038 | { | |
1039 | _arg3 = &temp2; | |
1040 | } | |
1041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1042 | return NULL; | |
1043 | { | |
4268f798 | 1044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1045 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1046 | |
4268f798 RD |
1047 | wxPyEndAllowThreads(__tstate); |
1048 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1049 | } Py_INCREF(Py_None); |
1050 | _resultobj = Py_None; | |
1051 | { | |
1052 | PyObject *o; | |
1053 | o = PyInt_FromLong((long) (*_arg0)); | |
1054 | _resultobj = t_output_helper(_resultobj, o); | |
1055 | } | |
1056 | { | |
1057 | PyObject *o; | |
1058 | o = PyInt_FromLong((long) (*_arg1)); | |
1059 | _resultobj = t_output_helper(_resultobj, o); | |
1060 | } | |
1061 | { | |
1062 | PyObject *o; | |
1063 | o = PyInt_FromLong((long) (*_arg2)); | |
1064 | _resultobj = t_output_helper(_resultobj, o); | |
1065 | } | |
1066 | { | |
1067 | PyObject *o; | |
1068 | o = PyInt_FromLong((long) (*_arg3)); | |
1069 | _resultobj = t_output_helper(_resultobj, o); | |
1070 | } | |
1071 | return _resultobj; | |
1072 | } | |
1073 | ||
1074 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1075 | PyObject * _resultobj; | |
1076 | wxRect * _result; | |
1077 | char *_kwnames[] = { NULL }; | |
1078 | char _ptemp[128]; | |
1079 | ||
1080 | self = self; | |
1081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1082 | return NULL; | |
1083 | { | |
4268f798 | 1084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1085 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1086 | |
4268f798 RD |
1087 | wxPyEndAllowThreads(__tstate); |
1088 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1089 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1090 | _resultobj = Py_BuildValue("s",_ptemp); | |
1091 | return _resultobj; | |
1092 | } | |
1093 | ||
06c0fba4 RD |
1094 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1095 | PyObject * _resultobj; | |
1096 | wxCursor * _arg0; | |
1097 | PyObject * _argo0 = 0; | |
1098 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1099 | |
06c0fba4 RD |
1100 | self = self; |
1101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1102 | return NULL; | |
1103 | if (_argo0) { | |
1104 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1105 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1106 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); | |
1107 | return NULL; | |
1108 | } | |
f0261a72 | 1109 | } |
06c0fba4 | 1110 | { |
4268f798 | 1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1112 | wxSetCursor(*_arg0); |
06c0fba4 | 1113 | |
4268f798 RD |
1114 | wxPyEndAllowThreads(__tstate); |
1115 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1116 | } Py_INCREF(Py_None); |
1117 | _resultobj = Py_None; | |
1118 | return _resultobj; | |
1119 | } | |
1120 | ||
efc5f224 | 1121 | static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1122 | PyObject * _resultobj; |
1123 | wxWindow * _result; | |
1124 | wxString * _arg0; | |
1d99702e | 1125 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1126 | PyObject * _obj0 = 0; |
1d99702e | 1127 | PyObject * _argo1 = 0; |
efc5f224 | 1128 | char *_kwnames[] = { "label","parent", NULL }; |
bb0054cd RD |
1129 | |
1130 | self = self; | |
efc5f224 | 1131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1132 | return NULL; |
1133 | { | |
c8bc7bb8 RD |
1134 | _arg0 = wxString_in_helper(_obj0); |
1135 | if (_arg0 == NULL) | |
185d7c3e | 1136 | return NULL; |
bb0054cd | 1137 | } |
1d99702e RD |
1138 | if (_argo1) { |
1139 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1140 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1141 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p."); |
1142 | return NULL; | |
1143 | } | |
1144 | } | |
1145 | { | |
4268f798 | 1146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1147 | _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1); |
bb0054cd | 1148 | |
4268f798 RD |
1149 | wxPyEndAllowThreads(__tstate); |
1150 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1151 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1152 | { |
1153 | if (_obj0) | |
1154 | delete _arg0; | |
1155 | } | |
1156 | return _resultobj; | |
1157 | } | |
1158 | ||
efc5f224 | 1159 | static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd RD |
1160 | PyObject * _resultobj; |
1161 | wxWindow * _result; | |
1162 | wxString * _arg0; | |
1d99702e | 1163 | wxWindow * _arg1 = (wxWindow *) NULL; |
bb0054cd | 1164 | PyObject * _obj0 = 0; |
1d99702e | 1165 | PyObject * _argo1 = 0; |
efc5f224 | 1166 | char *_kwnames[] = { "name","parent", NULL }; |
bb0054cd RD |
1167 | |
1168 | self = self; | |
efc5f224 | 1169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1)) |
bb0054cd RD |
1170 | return NULL; |
1171 | { | |
c8bc7bb8 RD |
1172 | _arg0 = wxString_in_helper(_obj0); |
1173 | if (_arg0 == NULL) | |
185d7c3e | 1174 | return NULL; |
bb0054cd | 1175 | } |
1d99702e RD |
1176 | if (_argo1) { |
1177 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1178 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
bb0054cd RD |
1179 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p."); |
1180 | return NULL; | |
1181 | } | |
1182 | } | |
1183 | { | |
4268f798 | 1184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1185 | _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1); |
bb0054cd | 1186 | |
4268f798 RD |
1187 | wxPyEndAllowThreads(__tstate); |
1188 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1189 | }{ _resultobj = wxPyMake_wxObject(_result); } |
bb0054cd RD |
1190 | { |
1191 | if (_obj0) | |
1192 | delete _arg0; | |
1193 | } | |
1194 | return _resultobj; | |
1195 | } | |
1196 | ||
06c0fba4 RD |
1197 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1198 | PyObject * _resultobj; | |
1199 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1200 | PyObject * _argo0 = 0; | |
1201 | char *_kwnames[] = { "cursor", NULL }; | |
1202 | ||
1203 | self = self; | |
1204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1205 | return NULL; | |
1206 | if (_argo0) { | |
1207 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1208 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1209 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1210 | return NULL; | |
1211 | } | |
1212 | } | |
1213 | { | |
4268f798 | 1214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1215 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1216 | |
4268f798 RD |
1217 | wxPyEndAllowThreads(__tstate); |
1218 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1219 | } Py_INCREF(Py_None); |
1220 | _resultobj = Py_None; | |
1221 | return _resultobj; | |
1222 | } | |
1223 | ||
1224 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1225 | PyObject * _resultobj; | |
1226 | wxWindow * _result; | |
1227 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1228 | |
1229 | self = self; | |
1230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1231 | return NULL; | |
1232 | { | |
4268f798 | 1233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1234 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1235 | |
4268f798 RD |
1236 | wxPyEndAllowThreads(__tstate); |
1237 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1238 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1239 | return _resultobj; |
1240 | } | |
1241 | ||
493f1553 RD |
1242 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1243 | PyObject * _resultobj; | |
1244 | wxWindow * _result; | |
1245 | wxPoint * _arg0; | |
1246 | wxPoint temp; | |
1247 | PyObject * _obj0 = 0; | |
1248 | char *_kwnames[] = { "pt", NULL }; | |
1249 | ||
1250 | self = self; | |
1251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1252 | return NULL; | |
1253 | { | |
1254 | _arg0 = &temp; | |
1255 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1256 | return NULL; | |
1257 | } | |
1258 | { | |
4268f798 | 1259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1260 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1261 | |
4268f798 RD |
1262 | wxPyEndAllowThreads(__tstate); |
1263 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1264 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1265 | return _resultobj; | |
1266 | } | |
1267 | ||
1268 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1269 | PyObject * _resultobj; | |
1270 | wxWindow * _result; | |
1271 | wxPoint * _arg0; | |
1272 | wxPoint temp; | |
1273 | PyObject * _obj0 = 0; | |
1274 | char *_kwnames[] = { "pt", NULL }; | |
1275 | ||
1276 | self = self; | |
1277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1278 | return NULL; | |
1279 | { | |
1280 | _arg0 = &temp; | |
1281 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1282 | return NULL; | |
1283 | } | |
1284 | { | |
4268f798 | 1285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1286 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1287 | |
4268f798 RD |
1288 | wxPyEndAllowThreads(__tstate); |
1289 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1290 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1291 | return _resultobj; | |
1292 | } | |
1293 | ||
1294 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1295 | PyObject * _resultobj; | |
1296 | bool _result; | |
1297 | wxWindow * _arg0; | |
1298 | PyObject * _argo0 = 0; | |
1299 | char *_kwnames[] = { "wnd", NULL }; | |
1300 | ||
1301 | self = self; | |
1302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1303 | return NULL; | |
1304 | if (_argo0) { | |
1305 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1306 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1307 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1308 | return NULL; | |
1309 | } | |
1310 | } | |
1311 | { | |
4268f798 | 1312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1313 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1314 | |
4268f798 RD |
1315 | wxPyEndAllowThreads(__tstate); |
1316 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1317 | } _resultobj = Py_BuildValue("i",_result); |
1318 | return _resultobj; | |
1319 | } | |
1320 | ||
25832b3f RD |
1321 | static PyObject *_wrap_wxFlushEvents(PyObject *self, PyObject *args, PyObject *kwargs) { |
1322 | PyObject * _resultobj; | |
1323 | char *_kwnames[] = { NULL }; | |
1324 | ||
1325 | self = self; | |
1326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFlushEvents",_kwnames)) | |
1327 | return NULL; | |
1328 | { | |
4268f798 | 1329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1330 | wxFlushEvents(); |
25832b3f | 1331 | |
4268f798 RD |
1332 | wxPyEndAllowThreads(__tstate); |
1333 | if (PyErr_Occurred()) return NULL; | |
25832b3f RD |
1334 | } Py_INCREF(Py_None); |
1335 | _resultobj = Py_None; | |
1336 | return _resultobj; | |
1337 | } | |
1338 | ||
06c0fba4 RD |
1339 | static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { |
1340 | PyObject * _resultobj; | |
1341 | bool _result; | |
1342 | char * _arg0; | |
1343 | int _arg1; | |
1344 | char *_kwnames[] = { "name","value", NULL }; | |
1345 | ||
1346 | self = self; | |
1347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1)) | |
1348 | return NULL; | |
1349 | { | |
4268f798 | 1350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1351 | _result = (bool )wxResourceAddIdentifier(_arg0,_arg1); |
06c0fba4 | 1352 | |
4268f798 RD |
1353 | wxPyEndAllowThreads(__tstate); |
1354 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1355 | } _resultobj = Py_BuildValue("i",_result); |
1356 | return _resultobj; | |
1357 | } | |
1358 | ||
1359 | static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1360 | PyObject * _resultobj; | |
1361 | char *_kwnames[] = { NULL }; | |
1362 | ||
1363 | self = self; | |
1364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames)) | |
1365 | return NULL; | |
1366 | { | |
4268f798 | 1367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1368 | wxResourceClear(); |
06c0fba4 | 1369 | |
4268f798 RD |
1370 | wxPyEndAllowThreads(__tstate); |
1371 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1372 | } Py_INCREF(Py_None); |
1373 | _resultobj = Py_None; | |
1374 | return _resultobj; | |
1375 | } | |
1376 | ||
1377 | static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject * _resultobj; | |
1379 | wxBitmap * _result; | |
1380 | char * _arg0; | |
1381 | char *_kwnames[] = { "resource", NULL }; | |
1382 | char _ptemp[128]; | |
1383 | ||
1384 | self = self; | |
1385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0)) | |
1386 | return NULL; | |
1387 | { | |
4268f798 | 1388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1389 | _result = new wxBitmap (wxResourceCreateBitmap(_arg0)); |
06c0fba4 | 1390 | |
4268f798 RD |
1391 | wxPyEndAllowThreads(__tstate); |
1392 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1393 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); |
1394 | _resultobj = Py_BuildValue("s",_ptemp); | |
1395 | return _resultobj; | |
1396 | } | |
1397 | ||
1398 | static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1399 | PyObject * _resultobj; | |
1400 | wxIcon * _result; | |
1401 | char * _arg0; | |
1402 | char *_kwnames[] = { "resource", NULL }; | |
1403 | char _ptemp[128]; | |
1404 | ||
1405 | self = self; | |
1406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0)) | |
1407 | return NULL; | |
1408 | { | |
4268f798 | 1409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1410 | _result = new wxIcon (wxResourceCreateIcon(_arg0)); |
06c0fba4 | 1411 | |
4268f798 RD |
1412 | wxPyEndAllowThreads(__tstate); |
1413 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1414 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); |
1415 | _resultobj = Py_BuildValue("s",_ptemp); | |
1416 | return _resultobj; | |
1417 | } | |
1418 | ||
1419 | static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1420 | PyObject * _resultobj; | |
1421 | wxMenuBar * _result; | |
1422 | char * _arg0; | |
1423 | char *_kwnames[] = { "resource", NULL }; | |
06c0fba4 RD |
1424 | |
1425 | self = self; | |
1426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0)) | |
1427 | return NULL; | |
1428 | { | |
4268f798 | 1429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1430 | _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0); |
06c0fba4 | 1431 | |
4268f798 RD |
1432 | wxPyEndAllowThreads(__tstate); |
1433 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1434 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1435 | return _resultobj; |
1436 | } | |
1437 | ||
1438 | static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1439 | PyObject * _resultobj; | |
1440 | int _result; | |
1441 | char * _arg0; | |
1442 | char *_kwnames[] = { "name", NULL }; | |
1443 | ||
1444 | self = self; | |
1445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0)) | |
1446 | return NULL; | |
1447 | { | |
4268f798 | 1448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1449 | _result = (int )wxResourceGetIdentifier(_arg0); |
06c0fba4 | 1450 | |
4268f798 RD |
1451 | wxPyEndAllowThreads(__tstate); |
1452 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1453 | } _resultobj = Py_BuildValue("i",_result); |
1454 | return _resultobj; | |
1455 | } | |
1456 | ||
1457 | static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1458 | PyObject * _resultobj; | |
1459 | bool _result; | |
1460 | char * _arg0; | |
1461 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1462 | PyObject * _argo1 = 0; | |
1463 | char *_kwnames[] = { "resource","table", NULL }; | |
1464 | ||
1465 | self = self; | |
1466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1)) | |
1467 | return NULL; | |
1468 | if (_argo1) { | |
1469 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1470 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p."); | |
1472 | return NULL; | |
1473 | } | |
1474 | } | |
1475 | { | |
4268f798 | 1476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1477 | _result = (bool )wxResourceParseData(_arg0,_arg1); |
06c0fba4 | 1478 | |
4268f798 RD |
1479 | wxPyEndAllowThreads(__tstate); |
1480 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1481 | } _resultobj = Py_BuildValue("i",_result); |
1482 | return _resultobj; | |
1483 | } | |
1484 | ||
1485 | static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1486 | PyObject * _resultobj; | |
1487 | bool _result; | |
1488 | char * _arg0; | |
1489 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1490 | PyObject * _argo1 = 0; | |
1491 | char *_kwnames[] = { "filename","table", NULL }; | |
1492 | ||
1493 | self = self; | |
1494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1)) | |
1495 | return NULL; | |
1496 | if (_argo1) { | |
1497 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1498 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1499 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p."); | |
1500 | return NULL; | |
1501 | } | |
1502 | } | |
1503 | { | |
4268f798 | 1504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1505 | _result = (bool )wxResourceParseFile(_arg0,_arg1); |
06c0fba4 | 1506 | |
4268f798 RD |
1507 | wxPyEndAllowThreads(__tstate); |
1508 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1509 | } _resultobj = Py_BuildValue("i",_result); |
1510 | return _resultobj; | |
1511 | } | |
1512 | ||
1513 | static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1514 | PyObject * _resultobj; | |
1515 | bool _result; | |
1516 | char * _arg0; | |
1517 | wxResourceTable * _arg1 = (wxResourceTable *) NULL; | |
1518 | PyObject * _argo1 = 0; | |
1519 | char *_kwnames[] = { "resource","table", NULL }; | |
1520 | ||
1521 | self = self; | |
1522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1)) | |
1523 | return NULL; | |
1524 | if (_argo1) { | |
1525 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1526 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) { | |
1527 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p."); | |
1528 | return NULL; | |
1529 | } | |
1530 | } | |
1531 | { | |
4268f798 | 1532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1533 | _result = (bool )wxResourceParseString(_arg0,_arg1); |
06c0fba4 | 1534 | |
4268f798 RD |
1535 | wxPyEndAllowThreads(__tstate); |
1536 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1537 | } _resultobj = Py_BuildValue("i",_result); |
1538 | return _resultobj; | |
1539 | } | |
1540 | ||
f0261a72 RD |
1541 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1542 | PyObject * _resultobj; | |
1543 | int _result; | |
1544 | char *_kwnames[] = { NULL }; | |
1545 | ||
1546 | self = self; | |
1547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1548 | return NULL; | |
1549 | { | |
4268f798 | 1550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1551 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1552 | |
4268f798 RD |
1553 | wxPyEndAllowThreads(__tstate); |
1554 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1555 | } _resultobj = Py_BuildValue("i",_result); |
1556 | return _resultobj; | |
1557 | } | |
1558 | ||
1559 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1560 | PyObject * _resultobj; | |
1561 | int _arg0; | |
1562 | char *_kwnames[] = { "milliseconds", NULL }; | |
1563 | ||
1564 | self = self; | |
1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1566 | return NULL; | |
1567 | { | |
4268f798 | 1568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1569 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1570 | |
4268f798 RD |
1571 | wxPyEndAllowThreads(__tstate); |
1572 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1573 | } Py_INCREF(Py_None); |
1574 | _resultobj = Py_None; | |
1575 | return _resultobj; | |
1576 | } | |
1577 | ||
6e18ca6c RD |
1578 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1579 | PyObject * _resultobj; | |
1580 | bool _result; | |
1581 | wxWindow * _arg0 = (wxWindow *) NULL; | |
1582 | PyObject * _argo0 = 0; | |
1583 | char *_kwnames[] = { "win", NULL }; | |
1584 | ||
1585 | self = self; | |
1586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0)) | |
1587 | return NULL; | |
1588 | if (_argo0) { | |
1589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1592 | return NULL; | |
1593 | } | |
1594 | } | |
1595 | { | |
4268f798 | 1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1597 | _result = (bool )wxSafeYield(_arg0); |
6e18ca6c | 1598 | |
4268f798 RD |
1599 | wxPyEndAllowThreads(__tstate); |
1600 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1601 | } _resultobj = Py_BuildValue("i",_result); |
1602 | return _resultobj; | |
1603 | } | |
1604 | ||
b1462dfa RD |
1605 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1606 | PyObject * _resultobj; | |
1607 | wxEvtHandler * _arg0; | |
1608 | wxEvent * _arg1; | |
1609 | PyObject * _argo0 = 0; | |
1610 | PyObject * _argo1 = 0; | |
1611 | char *_kwnames[] = { "dest","event", NULL }; | |
1612 | ||
1613 | self = self; | |
1614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1615 | return NULL; | |
1616 | if (_argo0) { | |
1617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1620 | return NULL; | |
1621 | } | |
1622 | } | |
1623 | if (_argo1) { | |
1624 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1625 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { | |
1626 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); | |
1627 | return NULL; | |
1628 | } | |
1629 | } | |
1630 | { | |
4268f798 | 1631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1632 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1633 | |
4268f798 RD |
1634 | wxPyEndAllowThreads(__tstate); |
1635 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1636 | } Py_INCREF(Py_None); |
1637 | _resultobj = Py_None; | |
1638 | return _resultobj; | |
1639 | } | |
1640 | ||
694759cf RD |
1641 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1642 | PyObject * _resultobj; | |
1643 | char *_kwnames[] = { NULL }; | |
1644 | ||
1645 | self = self; | |
1646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1647 | return NULL; | |
1648 | { | |
4268f798 | 1649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1650 | wxWakeUpIdle(); |
694759cf | 1651 | |
4268f798 RD |
1652 | wxPyEndAllowThreads(__tstate); |
1653 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1654 | } Py_INCREF(Py_None); |
1655 | _resultobj = Py_None; | |
1656 | return _resultobj; | |
1657 | } | |
1658 | ||
6e18ca6c | 1659 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1660 | PyObject * _resultobj; |
6e18ca6c | 1661 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1662 | |
1663 | self = self; | |
6e18ca6c | 1664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1665 | return NULL; |
6e18ca6c | 1666 | { |
4268f798 | 1667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1668 | wxWakeUpMainThread(); |
6e18ca6c | 1669 | |
4268f798 RD |
1670 | wxPyEndAllowThreads(__tstate); |
1671 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1672 | } Py_INCREF(Py_None); |
1673 | _resultobj = Py_None; | |
1674 | return _resultobj; | |
1675 | } | |
1676 | ||
1677 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1678 | PyObject * _resultobj; | |
1679 | char *_kwnames[] = { NULL }; | |
1680 | ||
1681 | self = self; | |
1682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1683 | return NULL; |
c368d904 | 1684 | { |
4268f798 | 1685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1686 | wxMutexGuiEnter(); |
6e18ca6c | 1687 | |
4268f798 RD |
1688 | wxPyEndAllowThreads(__tstate); |
1689 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1690 | } Py_INCREF(Py_None); |
1691 | _resultobj = Py_None; | |
1692 | return _resultobj; | |
1693 | } | |
1694 | ||
1695 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1696 | PyObject * _resultobj; | |
1697 | char *_kwnames[] = { NULL }; | |
1698 | ||
1699 | self = self; | |
1700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1701 | return NULL; | |
1702 | { | |
4268f798 | 1703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1704 | wxMutexGuiLeave(); |
6e18ca6c | 1705 | |
4268f798 RD |
1706 | wxPyEndAllowThreads(__tstate); |
1707 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1708 | } Py_INCREF(Py_None); |
1709 | _resultobj = Py_None; | |
1710 | return _resultobj; | |
1711 | } | |
1712 | ||
1713 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1714 | PyObject * _resultobj; | |
1715 | bool _result; | |
1716 | char *_kwnames[] = { NULL }; | |
1717 | ||
1718 | self = self; | |
1719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1720 | return NULL; | |
1721 | { | |
4268f798 | 1722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1723 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1724 | |
4268f798 RD |
1725 | wxPyEndAllowThreads(__tstate); |
1726 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1727 | } _resultobj = Py_BuildValue("i",_result); |
1728 | return _resultobj; | |
1729 | } | |
1730 | ||
f6bcfd97 | 1731 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1732 | PyObject * _resultobj; |
f6bcfd97 BP |
1733 | bool _result; |
1734 | wxWindow * _arg0; | |
1735 | wxTipProvider * _arg1; | |
1736 | bool _arg2 = (bool ) TRUE; | |
1737 | PyObject * _argo0 = 0; | |
1738 | PyObject * _argo1 = 0; | |
1739 | int tempbool2 = (int) TRUE; | |
1740 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1741 | ||
1742 | self = self; | |
1743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1744 | return NULL; | |
1745 | if (_argo0) { | |
1746 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1747 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1748 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1749 | return NULL; | |
1750 | } | |
1751 | } | |
1752 | if (_argo1) { | |
1753 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1754 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1755 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1756 | return NULL; | |
1757 | } | |
1758 | } | |
1759 | _arg2 = (bool ) tempbool2; | |
1760 | { | |
4268f798 | 1761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1762 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1763 | |
4268f798 RD |
1764 | wxPyEndAllowThreads(__tstate); |
1765 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1766 | } _resultobj = Py_BuildValue("i",_result); |
1767 | return _resultobj; | |
1768 | } | |
1769 | ||
1770 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1771 | PyObject * _resultobj; | |
1772 | wxTipProvider * _result; | |
bb0054cd | 1773 | wxString * _arg0; |
f6bcfd97 | 1774 | size_t _arg1; |
bb0054cd | 1775 | PyObject * _obj0 = 0; |
f6bcfd97 | 1776 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1777 | char _ptemp[128]; |
1778 | ||
1779 | self = self; | |
f6bcfd97 | 1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1781 | return NULL; |
1782 | { | |
c8bc7bb8 RD |
1783 | _arg0 = wxString_in_helper(_obj0); |
1784 | if (_arg0 == NULL) | |
185d7c3e | 1785 | return NULL; |
bb0054cd RD |
1786 | } |
1787 | { | |
4268f798 | 1788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1789 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1790 | |
4268f798 RD |
1791 | wxPyEndAllowThreads(__tstate); |
1792 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1793 | } if (_result) { |
f6bcfd97 | 1794 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1795 | _resultobj = Py_BuildValue("s",_ptemp); |
1796 | } else { | |
1797 | Py_INCREF(Py_None); | |
1798 | _resultobj = Py_None; | |
1799 | } | |
bb0054cd RD |
1800 | { |
1801 | if (_obj0) | |
1802 | delete _arg0; | |
1803 | } | |
1804 | return _resultobj; | |
1805 | } | |
1806 | ||
f6bcfd97 | 1807 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1808 | PyObject * _resultobj; |
f6bcfd97 BP |
1809 | unsigned long _result; |
1810 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1811 | |
1812 | self = self; | |
f6bcfd97 | 1813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1814 | return NULL; |
f0261a72 | 1815 | { |
4268f798 | 1816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1817 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1818 | |
4268f798 RD |
1819 | wxPyEndAllowThreads(__tstate); |
1820 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1821 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1822 | return _resultobj; |
1823 | } | |
1824 | ||
f6bcfd97 | 1825 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1826 | PyObject * _resultobj; |
c8bc7bb8 | 1827 | wxString * _result; |
f6bcfd97 BP |
1828 | unsigned long _arg0 = (unsigned long ) 0; |
1829 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1830 | |
1831 | self = self; | |
f6bcfd97 | 1832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 1833 | return NULL; |
f0261a72 | 1834 | { |
4268f798 | 1835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1836 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 1837 | |
4268f798 RD |
1838 | wxPyEndAllowThreads(__tstate); |
1839 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
1840 | }{ |
1841 | #if wxUSE_UNICODE | |
1842 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
1843 | #else | |
1844 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1845 | #endif | |
1846 | } | |
1847 | { | |
1848 | delete _result; | |
1849 | } | |
f0261a72 RD |
1850 | return _resultobj; |
1851 | } | |
1852 | ||
f6bcfd97 | 1853 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1854 | PyObject * _resultobj; |
c8bc7bb8 RD |
1855 | wxString * _arg0; |
1856 | PyObject * _obj0 = 0; | |
f6bcfd97 | 1857 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
1858 | |
1859 | self = self; | |
c8bc7bb8 | 1860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 1861 | return NULL; |
c8bc7bb8 RD |
1862 | { |
1863 | _arg0 = wxString_in_helper(_obj0); | |
1864 | if (_arg0 == NULL) | |
1865 | return NULL; | |
1866 | } | |
f0261a72 | 1867 | { |
4268f798 | 1868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1869 | wxLogFatalError(*_arg0); |
f0261a72 | 1870 | |
4268f798 RD |
1871 | wxPyEndAllowThreads(__tstate); |
1872 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1873 | } Py_INCREF(Py_None); |
1874 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1875 | { |
1876 | if (_obj0) | |
1877 | delete _arg0; | |
1878 | } | |
f0261a72 RD |
1879 | return _resultobj; |
1880 | } | |
1881 | ||
f6bcfd97 | 1882 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1883 | PyObject * _resultobj; |
c8bc7bb8 RD |
1884 | wxString * _arg0; |
1885 | PyObject * _obj0 = 0; | |
f6bcfd97 | 1886 | char *_kwnames[] = { "szFormat", NULL }; |
f0261a72 RD |
1887 | |
1888 | self = self; | |
c8bc7bb8 | 1889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 1890 | return NULL; |
c8bc7bb8 RD |
1891 | { |
1892 | _arg0 = wxString_in_helper(_obj0); | |
1893 | if (_arg0 == NULL) | |
1894 | return NULL; | |
1895 | } | |
f0261a72 | 1896 | { |
4268f798 | 1897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1898 | wxLogError(*_arg0); |
f0261a72 | 1899 | |
4268f798 RD |
1900 | wxPyEndAllowThreads(__tstate); |
1901 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1902 | } Py_INCREF(Py_None); |
1903 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1904 | { |
1905 | if (_obj0) | |
1906 | delete _arg0; | |
1907 | } | |
f0261a72 RD |
1908 | return _resultobj; |
1909 | } | |
1910 | ||
f6bcfd97 BP |
1911 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
1912 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1913 | wxString * _arg0; |
1914 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
1915 | char *_kwnames[] = { "szFormat", NULL }; |
1916 | ||
1917 | self = self; | |
c8bc7bb8 | 1918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 1919 | return NULL; |
c8bc7bb8 RD |
1920 | { |
1921 | _arg0 = wxString_in_helper(_obj0); | |
1922 | if (_arg0 == NULL) | |
1923 | return NULL; | |
1924 | } | |
f6bcfd97 | 1925 | { |
4268f798 | 1926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1927 | wxLogWarning(*_arg0); |
f6bcfd97 | 1928 | |
4268f798 RD |
1929 | wxPyEndAllowThreads(__tstate); |
1930 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1931 | } Py_INCREF(Py_None); |
1932 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1933 | { |
1934 | if (_obj0) | |
1935 | delete _arg0; | |
1936 | } | |
f6bcfd97 BP |
1937 | return _resultobj; |
1938 | } | |
1939 | ||
1940 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1941 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1942 | wxString * _arg0; |
1943 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
1944 | char *_kwnames[] = { "szFormat", NULL }; |
1945 | ||
1946 | self = self; | |
c8bc7bb8 RD |
1947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
1948 | return NULL; | |
1949 | { | |
1950 | _arg0 = wxString_in_helper(_obj0); | |
1951 | if (_arg0 == NULL) | |
f6bcfd97 | 1952 | return NULL; |
c8bc7bb8 | 1953 | } |
f6bcfd97 | 1954 | { |
4268f798 | 1955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1956 | wxLogMessage(*_arg0); |
f6bcfd97 | 1957 | |
4268f798 RD |
1958 | wxPyEndAllowThreads(__tstate); |
1959 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1960 | } Py_INCREF(Py_None); |
1961 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1962 | { |
1963 | if (_obj0) | |
1964 | delete _arg0; | |
1965 | } | |
f6bcfd97 BP |
1966 | return _resultobj; |
1967 | } | |
1968 | ||
1969 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1970 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1971 | wxString * _arg0; |
1972 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
1973 | char *_kwnames[] = { "szFormat", NULL }; |
1974 | ||
1975 | self = self; | |
c8bc7bb8 RD |
1976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
1977 | return NULL; | |
1978 | { | |
1979 | _arg0 = wxString_in_helper(_obj0); | |
1980 | if (_arg0 == NULL) | |
f6bcfd97 | 1981 | return NULL; |
c8bc7bb8 | 1982 | } |
f6bcfd97 | 1983 | { |
4268f798 | 1984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1985 | wxLogInfo(*_arg0); |
f6bcfd97 | 1986 | |
4268f798 RD |
1987 | wxPyEndAllowThreads(__tstate); |
1988 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1989 | } Py_INCREF(Py_None); |
1990 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1991 | { |
1992 | if (_obj0) | |
1993 | delete _arg0; | |
1994 | } | |
f6bcfd97 BP |
1995 | return _resultobj; |
1996 | } | |
1997 | ||
1998 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1999 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2000 | wxString * _arg0; |
2001 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2002 | char *_kwnames[] = { "szFormat", NULL }; |
2003 | ||
2004 | self = self; | |
c8bc7bb8 | 2005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 2006 | return NULL; |
c8bc7bb8 RD |
2007 | { |
2008 | _arg0 = wxString_in_helper(_obj0); | |
2009 | if (_arg0 == NULL) | |
2010 | return NULL; | |
2011 | } | |
f6bcfd97 | 2012 | { |
4268f798 | 2013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2014 | wxLogVerbose(*_arg0); |
f6bcfd97 | 2015 | |
4268f798 RD |
2016 | wxPyEndAllowThreads(__tstate); |
2017 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2018 | } Py_INCREF(Py_None); |
2019 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2020 | { |
2021 | if (_obj0) | |
2022 | delete _arg0; | |
2023 | } | |
f6bcfd97 BP |
2024 | return _resultobj; |
2025 | } | |
2026 | ||
2027 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2028 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2029 | wxString * _arg0; |
2030 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2031 | char *_kwnames[] = { "szFormat", NULL }; |
2032 | ||
2033 | self = self; | |
c8bc7bb8 RD |
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2035 | return NULL; | |
2036 | { | |
2037 | _arg0 = wxString_in_helper(_obj0); | |
2038 | if (_arg0 == NULL) | |
f6bcfd97 | 2039 | return NULL; |
c8bc7bb8 | 2040 | } |
f6bcfd97 | 2041 | { |
4268f798 | 2042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2043 | wxLogStatus(*_arg0); |
f6bcfd97 | 2044 | |
4268f798 RD |
2045 | wxPyEndAllowThreads(__tstate); |
2046 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2047 | } Py_INCREF(Py_None); |
2048 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2049 | { |
2050 | if (_obj0) | |
2051 | delete _arg0; | |
2052 | } | |
f6bcfd97 BP |
2053 | return _resultobj; |
2054 | } | |
2055 | ||
2056 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2057 | PyObject * _resultobj; | |
2058 | wxFrame * _arg0; | |
c8bc7bb8 | 2059 | wxString * _arg1; |
f6bcfd97 | 2060 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2061 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
2062 | char *_kwnames[] = { "pFrame","szFormat", NULL }; |
2063 | ||
2064 | self = self; | |
c8bc7bb8 | 2065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2066 | return NULL; |
2067 | if (_argo0) { | |
2068 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2069 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2070 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2071 | return NULL; | |
2072 | } | |
2073 | } | |
c8bc7bb8 RD |
2074 | { |
2075 | _arg1 = wxString_in_helper(_obj1); | |
2076 | if (_arg1 == NULL) | |
2077 | return NULL; | |
2078 | } | |
f6bcfd97 | 2079 | { |
4268f798 | 2080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2081 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2082 | |
4268f798 RD |
2083 | wxPyEndAllowThreads(__tstate); |
2084 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2085 | } Py_INCREF(Py_None); |
2086 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2087 | { |
2088 | if (_obj1) | |
2089 | delete _arg1; | |
2090 | } | |
f6bcfd97 BP |
2091 | return _resultobj; |
2092 | } | |
2093 | ||
2094 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2095 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2096 | wxString * _arg0; |
2097 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
2098 | char *_kwnames[] = { "szFormat", NULL }; |
2099 | ||
2100 | self = self; | |
c8bc7bb8 RD |
2101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2102 | return NULL; | |
2103 | { | |
2104 | _arg0 = wxString_in_helper(_obj0); | |
2105 | if (_arg0 == NULL) | |
f6bcfd97 | 2106 | return NULL; |
c8bc7bb8 | 2107 | } |
f6bcfd97 | 2108 | { |
4268f798 | 2109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2110 | wxLogSysError(*_arg0); |
f6bcfd97 | 2111 | |
4268f798 RD |
2112 | wxPyEndAllowThreads(__tstate); |
2113 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2114 | } Py_INCREF(Py_None); |
2115 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2116 | { |
2117 | if (_obj0) | |
2118 | delete _arg0; | |
2119 | } | |
f6bcfd97 BP |
2120 | return _resultobj; |
2121 | } | |
2122 | ||
c368d904 RD |
2123 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2124 | PyObject * _resultobj; | |
2125 | long _result; | |
2126 | wxString * _arg0; | |
2127 | int _arg1 = (int ) FALSE; | |
2128 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; | |
2129 | PyObject * _obj0 = 0; | |
2130 | PyObject * _argo2 = 0; | |
2131 | char *_kwnames[] = { "command","sync","process", NULL }; | |
2132 | ||
2133 | self = self; | |
2134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2135 | return NULL; | |
2136 | { | |
c8bc7bb8 RD |
2137 | _arg0 = wxString_in_helper(_obj0); |
2138 | if (_arg0 == NULL) | |
185d7c3e | 2139 | return NULL; |
c368d904 RD |
2140 | } |
2141 | if (_argo2) { | |
2142 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2143 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2144 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2145 | return NULL; | |
2146 | } | |
2147 | } | |
2148 | { | |
4268f798 | 2149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2150 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2151 | |
4268f798 RD |
2152 | wxPyEndAllowThreads(__tstate); |
2153 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2154 | } _resultobj = Py_BuildValue("l",_result); |
2155 | { | |
2156 | if (_obj0) | |
2157 | delete _arg0; | |
2158 | } | |
2159 | return _resultobj; | |
2160 | } | |
2161 | ||
493f1553 RD |
2162 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2163 | PyObject * _resultobj; | |
2164 | wxWave * _result; | |
2165 | wxString * _arg0; | |
2166 | PyObject * _obj0 = 0; | |
2167 | char *_kwnames[] = { "data", NULL }; | |
2168 | char _ptemp[128]; | |
2169 | ||
2170 | self = self; | |
2171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2172 | return NULL; | |
2173 | { | |
c8bc7bb8 RD |
2174 | _arg0 = wxString_in_helper(_obj0); |
2175 | if (_arg0 == NULL) | |
493f1553 | 2176 | return NULL; |
493f1553 RD |
2177 | } |
2178 | { | |
4268f798 | 2179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2180 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2181 | |
4268f798 RD |
2182 | wxPyEndAllowThreads(__tstate); |
2183 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2184 | } if (_result) { |
2185 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2186 | _resultobj = Py_BuildValue("s",_ptemp); | |
2187 | } else { | |
2188 | Py_INCREF(Py_None); | |
2189 | _resultobj = Py_None; | |
2190 | } | |
2191 | { | |
2192 | if (_obj0) | |
2193 | delete _arg0; | |
2194 | } | |
2195 | return _resultobj; | |
2196 | } | |
2197 | ||
b37c7e1d RD |
2198 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2199 | ||
2200 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2201 | return 1; | |
2202 | } | |
2203 | ||
2204 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2205 | PyObject * pyobj; | |
2206 | char ptemp[128]; | |
2207 | ||
2208 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2209 | pyobj = PyString_FromString(ptemp); | |
2210 | return pyobj; | |
2211 | } | |
2212 | ||
b5a5d647 RD |
2213 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2214 | PyObject * _resultobj; | |
2215 | wxColour * _result; | |
2216 | wxSystemColour _arg0; | |
2217 | char *_kwnames[] = { "index", NULL }; | |
2218 | char _ptemp[128]; | |
2219 | ||
2220 | self = self; | |
2221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2222 | return NULL; | |
2223 | { | |
2224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2225 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2226 | |
2227 | wxPyEndAllowThreads(__tstate); | |
2228 | if (PyErr_Occurred()) return NULL; | |
2229 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2230 | _resultobj = Py_BuildValue("s",_ptemp); | |
2231 | return _resultobj; | |
2232 | } | |
2233 | ||
2234 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2235 | PyObject * _resultobj; | |
2236 | wxFont * _result; | |
2237 | wxSystemFont _arg0; | |
2238 | char *_kwnames[] = { "index", NULL }; | |
2239 | char _ptemp[128]; | |
2240 | ||
2241 | self = self; | |
2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2243 | return NULL; | |
2244 | { | |
2245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2246 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2247 | |
2248 | wxPyEndAllowThreads(__tstate); | |
2249 | if (PyErr_Occurred()) return NULL; | |
2250 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2251 | _resultobj = Py_BuildValue("s",_ptemp); | |
2252 | return _resultobj; | |
2253 | } | |
2254 | ||
2255 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2256 | PyObject * _resultobj; | |
2257 | int _result; | |
2258 | wxSystemMetric _arg0; | |
2259 | char *_kwnames[] = { "index", NULL }; | |
2260 | ||
2261 | self = self; | |
2262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2263 | return NULL; | |
2264 | { | |
2265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2266 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2267 | |
2268 | wxPyEndAllowThreads(__tstate); | |
2269 | if (PyErr_Occurred()) return NULL; | |
2270 | } _resultobj = Py_BuildValue("i",_result); | |
2271 | return _resultobj; | |
2272 | } | |
2273 | ||
2274 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2275 | PyObject * _resultobj; | |
2276 | bool _result; | |
2277 | wxSystemFeature _arg0; | |
2278 | char *_kwnames[] = { "index", NULL }; | |
2279 | ||
2280 | self = self; | |
2281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2282 | return NULL; | |
2283 | { | |
2284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2285 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2286 | |
2287 | wxPyEndAllowThreads(__tstate); | |
2288 | if (PyErr_Occurred()) return NULL; | |
2289 | } _resultobj = Py_BuildValue("i",_result); | |
2290 | return _resultobj; | |
2291 | } | |
2292 | ||
9416aa89 RD |
2293 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2294 | wxToolTip *src; | |
2295 | wxObject *dest; | |
2296 | src = (wxToolTip *) ptr; | |
2297 | dest = (wxObject *) src; | |
2298 | return (void *) dest; | |
2299 | } | |
2300 | ||
f6bcfd97 BP |
2301 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2302 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2303 | PyObject * _resultobj; | |
2304 | wxToolTip * _result; | |
2305 | wxString * _arg0; | |
2306 | PyObject * _obj0 = 0; | |
2307 | char *_kwnames[] = { "tip", NULL }; | |
2308 | char _ptemp[128]; | |
2309 | ||
2310 | self = self; | |
2311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2312 | return NULL; | |
2313 | { | |
c8bc7bb8 RD |
2314 | _arg0 = wxString_in_helper(_obj0); |
2315 | if (_arg0 == NULL) | |
f6bcfd97 | 2316 | return NULL; |
f6bcfd97 BP |
2317 | } |
2318 | { | |
4268f798 | 2319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2320 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2321 | |
4268f798 RD |
2322 | wxPyEndAllowThreads(__tstate); |
2323 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2324 | } if (_result) { |
2325 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2326 | _resultobj = Py_BuildValue("s",_ptemp); | |
2327 | } else { | |
2328 | Py_INCREF(Py_None); | |
2329 | _resultobj = Py_None; | |
2330 | } | |
2331 | { | |
2332 | if (_obj0) | |
2333 | delete _arg0; | |
2334 | } | |
2335 | return _resultobj; | |
2336 | } | |
2337 | ||
2338 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2339 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2340 | PyObject * _resultobj; | |
2341 | wxToolTip * _arg0; | |
2342 | wxString * _arg1; | |
2343 | PyObject * _argo0 = 0; | |
2344 | PyObject * _obj1 = 0; | |
2345 | char *_kwnames[] = { "self","tip", NULL }; | |
2346 | ||
2347 | self = self; | |
2348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2349 | return NULL; | |
2350 | if (_argo0) { | |
2351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2354 | return NULL; | |
2355 | } | |
2356 | } | |
2357 | { | |
c8bc7bb8 RD |
2358 | _arg1 = wxString_in_helper(_obj1); |
2359 | if (_arg1 == NULL) | |
185d7c3e | 2360 | return NULL; |
f6bcfd97 BP |
2361 | } |
2362 | { | |
4268f798 | 2363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2364 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2365 | |
4268f798 RD |
2366 | wxPyEndAllowThreads(__tstate); |
2367 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2368 | } Py_INCREF(Py_None); |
2369 | _resultobj = Py_None; | |
2370 | { | |
2371 | if (_obj1) | |
2372 | delete _arg1; | |
2373 | } | |
2374 | return _resultobj; | |
2375 | } | |
2376 | ||
2377 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2378 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2379 | PyObject * _resultobj; | |
2380 | wxString * _result; | |
2381 | wxToolTip * _arg0; | |
2382 | PyObject * _argo0 = 0; | |
2383 | char *_kwnames[] = { "self", NULL }; | |
2384 | ||
2385 | self = self; | |
2386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2387 | return NULL; | |
2388 | if (_argo0) { | |
2389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2392 | return NULL; | |
2393 | } | |
2394 | } | |
2395 | { | |
4268f798 | 2396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2397 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2398 | |
4268f798 RD |
2399 | wxPyEndAllowThreads(__tstate); |
2400 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2401 | }{ |
c8bc7bb8 RD |
2402 | #if wxUSE_UNICODE |
2403 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
2404 | #else | |
f6bcfd97 | 2405 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2406 | #endif |
f6bcfd97 BP |
2407 | } |
2408 | { | |
2409 | delete _result; | |
2410 | } | |
2411 | return _resultobj; | |
2412 | } | |
2413 | ||
2414 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2415 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2416 | PyObject * _resultobj; | |
2417 | wxWindow * _result; | |
2418 | wxToolTip * _arg0; | |
2419 | PyObject * _argo0 = 0; | |
2420 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2421 | |
2422 | self = self; | |
2423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2424 | return NULL; | |
2425 | if (_argo0) { | |
2426 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2427 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2428 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2429 | return NULL; | |
2430 | } | |
2431 | } | |
2432 | { | |
4268f798 | 2433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2434 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2435 | |
4268f798 RD |
2436 | wxPyEndAllowThreads(__tstate); |
2437 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2438 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2439 | return _resultobj; |
2440 | } | |
2441 | ||
edf2f43e RD |
2442 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2443 | PyObject * _resultobj; | |
2444 | bool _arg0; | |
2445 | int tempbool0; | |
2446 | char *_kwnames[] = { "flag", NULL }; | |
2447 | ||
2448 | self = self; | |
2449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2450 | return NULL; | |
2451 | _arg0 = (bool ) tempbool0; | |
2452 | { | |
4268f798 | 2453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2454 | wxToolTip::Enable(_arg0); |
edf2f43e | 2455 | |
4268f798 RD |
2456 | wxPyEndAllowThreads(__tstate); |
2457 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2458 | } Py_INCREF(Py_None); |
2459 | _resultobj = Py_None; | |
2460 | return _resultobj; | |
2461 | } | |
2462 | ||
2463 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2464 | PyObject * _resultobj; | |
2465 | long _arg0; | |
2466 | char *_kwnames[] = { "milliseconds", NULL }; | |
2467 | ||
2468 | self = self; | |
2469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2470 | return NULL; | |
2471 | { | |
4268f798 | 2472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2473 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2474 | |
4268f798 RD |
2475 | wxPyEndAllowThreads(__tstate); |
2476 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2477 | } Py_INCREF(Py_None); |
2478 | _resultobj = Py_None; | |
2479 | return _resultobj; | |
2480 | } | |
2481 | ||
f6bcfd97 BP |
2482 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2483 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2484 | PyObject * _resultobj; | |
2485 | wxCaret * _result; | |
2486 | wxWindow * _arg0; | |
2487 | wxSize * _arg1; | |
2488 | PyObject * _argo0 = 0; | |
2489 | wxSize temp; | |
2490 | PyObject * _obj1 = 0; | |
2491 | char *_kwnames[] = { "window","size", NULL }; | |
2492 | char _ptemp[128]; | |
2493 | ||
2494 | self = self; | |
2495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2496 | return NULL; | |
2497 | if (_argo0) { | |
2498 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2499 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2500 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2501 | return NULL; | |
2502 | } | |
2503 | } | |
2504 | { | |
2505 | _arg1 = &temp; | |
2506 | if (! wxSize_helper(_obj1, &_arg1)) | |
2507 | return NULL; | |
2508 | } | |
2509 | { | |
4268f798 | 2510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2511 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2512 | |
4268f798 RD |
2513 | wxPyEndAllowThreads(__tstate); |
2514 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2515 | } if (_result) { |
2516 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2517 | _resultobj = Py_BuildValue("s",_ptemp); | |
2518 | } else { | |
2519 | Py_INCREF(Py_None); | |
2520 | _resultobj = Py_None; | |
2521 | } | |
2522 | return _resultobj; | |
2523 | } | |
2524 | ||
2525 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2526 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2527 | PyObject * _resultobj; | |
2528 | wxCaret * _arg0; | |
2529 | PyObject * _argo0 = 0; | |
2530 | char *_kwnames[] = { "self", NULL }; | |
2531 | ||
2532 | self = self; | |
2533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
2534 | return NULL; | |
2535 | if (_argo0) { | |
2536 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2537 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2538 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
2539 | return NULL; | |
2540 | } | |
2541 | } | |
2542 | { | |
4268f798 | 2543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2544 | delete_wxCaret(_arg0); |
f6bcfd97 | 2545 | |
4268f798 RD |
2546 | wxPyEndAllowThreads(__tstate); |
2547 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2548 | } Py_INCREF(Py_None); |
2549 | _resultobj = Py_None; | |
2550 | return _resultobj; | |
2551 | } | |
2552 | ||
2553 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
2554 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2555 | PyObject * _resultobj; | |
2556 | bool _result; | |
2557 | wxCaret * _arg0; | |
2558 | PyObject * _argo0 = 0; | |
2559 | char *_kwnames[] = { "self", NULL }; | |
2560 | ||
2561 | self = self; | |
2562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
2563 | return NULL; | |
2564 | if (_argo0) { | |
2565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
2568 | return NULL; | |
2569 | } | |
2570 | } | |
2571 | { | |
4268f798 | 2572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2573 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 2574 | |
4268f798 RD |
2575 | wxPyEndAllowThreads(__tstate); |
2576 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2577 | } _resultobj = Py_BuildValue("i",_result); |
2578 | return _resultobj; | |
2579 | } | |
2580 | ||
2581 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
2582 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2583 | PyObject * _resultobj; | |
2584 | bool _result; | |
2585 | wxCaret * _arg0; | |
2586 | PyObject * _argo0 = 0; | |
2587 | char *_kwnames[] = { "self", NULL }; | |
2588 | ||
2589 | self = self; | |
2590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
2591 | return NULL; | |
2592 | if (_argo0) { | |
2593 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2594 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
2596 | return NULL; | |
2597 | } | |
2598 | } | |
2599 | { | |
4268f798 | 2600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2601 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 2602 | |
4268f798 RD |
2603 | wxPyEndAllowThreads(__tstate); |
2604 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2605 | } _resultobj = Py_BuildValue("i",_result); |
2606 | return _resultobj; | |
2607 | } | |
2608 | ||
2609 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
2610 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2611 | PyObject * _resultobj; | |
2612 | wxCaret * _arg0; | |
2613 | int * _arg1; | |
2614 | int temp; | |
2615 | int * _arg2; | |
2616 | int temp0; | |
2617 | PyObject * _argo0 = 0; | |
2618 | char *_kwnames[] = { "self", NULL }; | |
2619 | ||
2620 | self = self; | |
2621 | { | |
2622 | _arg1 = &temp; | |
2623 | } | |
2624 | { | |
2625 | _arg2 = &temp0; | |
2626 | } | |
2627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
2628 | return NULL; | |
2629 | if (_argo0) { | |
2630 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2631 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
2633 | return NULL; | |
2634 | } | |
2635 | } | |
2636 | { | |
4268f798 | 2637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2638 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2639 | |
4268f798 RD |
2640 | wxPyEndAllowThreads(__tstate); |
2641 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2642 | } Py_INCREF(Py_None); |
2643 | _resultobj = Py_None; | |
2644 | { | |
2645 | PyObject *o; | |
2646 | o = PyInt_FromLong((long) (*_arg1)); | |
2647 | _resultobj = t_output_helper(_resultobj, o); | |
2648 | } | |
2649 | { | |
2650 | PyObject *o; | |
2651 | o = PyInt_FromLong((long) (*_arg2)); | |
2652 | _resultobj = t_output_helper(_resultobj, o); | |
2653 | } | |
2654 | return _resultobj; | |
2655 | } | |
2656 | ||
2657 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
2658 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
2659 | PyObject * _resultobj; | |
f6bcfd97 BP |
2660 | wxPoint * _result; |
2661 | wxCaret * _arg0; | |
2662 | PyObject * _argo0 = 0; | |
2663 | char *_kwnames[] = { "self", NULL }; | |
2664 | char _ptemp[128]; | |
2665 | ||
2666 | self = self; | |
2667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
2668 | return NULL; | |
2669 | if (_argo0) { | |
2670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
2673 | return NULL; | |
2674 | } | |
2675 | } | |
2676 | { | |
4268f798 | 2677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2678 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 2679 | |
4268f798 RD |
2680 | wxPyEndAllowThreads(__tstate); |
2681 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2682 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
2683 | _resultobj = Py_BuildValue("s",_ptemp); | |
2684 | return _resultobj; | |
2685 | } | |
2686 | ||
2687 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
2688 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2689 | PyObject * _resultobj; | |
2690 | wxCaret * _arg0; | |
2691 | int * _arg1; | |
2692 | int temp; | |
2693 | int * _arg2; | |
2694 | int temp0; | |
2695 | PyObject * _argo0 = 0; | |
2696 | char *_kwnames[] = { "self", NULL }; | |
2697 | ||
2698 | self = self; | |
2699 | { | |
2700 | _arg1 = &temp; | |
2701 | } | |
2702 | { | |
2703 | _arg2 = &temp0; | |
2704 | } | |
2705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
2706 | return NULL; | |
2707 | if (_argo0) { | |
2708 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2709 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2710 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
2711 | return NULL; | |
2712 | } | |
2713 | } | |
2714 | { | |
4268f798 | 2715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2716 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 2717 | |
4268f798 RD |
2718 | wxPyEndAllowThreads(__tstate); |
2719 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2720 | } Py_INCREF(Py_None); |
2721 | _resultobj = Py_None; | |
2722 | { | |
2723 | PyObject *o; | |
2724 | o = PyInt_FromLong((long) (*_arg1)); | |
2725 | _resultobj = t_output_helper(_resultobj, o); | |
2726 | } | |
2727 | { | |
2728 | PyObject *o; | |
2729 | o = PyInt_FromLong((long) (*_arg2)); | |
2730 | _resultobj = t_output_helper(_resultobj, o); | |
2731 | } | |
2732 | return _resultobj; | |
2733 | } | |
2734 | ||
2735 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
2736 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2737 | PyObject * _resultobj; | |
2738 | wxSize * _result; | |
2739 | wxCaret * _arg0; | |
2740 | PyObject * _argo0 = 0; | |
2741 | char *_kwnames[] = { "self", NULL }; | |
2742 | char _ptemp[128]; | |
2743 | ||
2744 | self = self; | |
2745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_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_GetSize. Expected _wxCaret_p."); | |
2751 | return NULL; | |
2752 | } | |
2753 | } | |
2754 | { | |
4268f798 | 2755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2756 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 2757 | |
4268f798 RD |
2758 | wxPyEndAllowThreads(__tstate); |
2759 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2760 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
2761 | _resultobj = Py_BuildValue("s",_ptemp); | |
2762 | return _resultobj; | |
2763 | } | |
2764 | ||
2765 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2766 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2767 | PyObject * _resultobj; | |
2768 | wxWindow * _result; | |
2769 | wxCaret * _arg0; | |
2770 | PyObject * _argo0 = 0; | |
2771 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2772 | |
2773 | self = self; | |
2774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
2775 | return NULL; | |
2776 | if (_argo0) { | |
2777 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2778 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2779 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
2780 | return NULL; | |
2781 | } | |
2782 | } | |
2783 | { | |
4268f798 | 2784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2785 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 2786 | |
4268f798 RD |
2787 | wxPyEndAllowThreads(__tstate); |
2788 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2789 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2790 | return _resultobj; |
2791 | } | |
2792 | ||
2793 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
2794 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2795 | PyObject * _resultobj; | |
2796 | wxCaret * _arg0; | |
2797 | int _arg1; | |
2798 | int _arg2; | |
2799 | PyObject * _argo0 = 0; | |
2800 | char *_kwnames[] = { "self","x","y", NULL }; | |
2801 | ||
2802 | self = self; | |
2803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2804 | return NULL; | |
2805 | if (_argo0) { | |
2806 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2807 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2808 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
2809 | return NULL; | |
2810 | } | |
2811 | } | |
2812 | { | |
4268f798 | 2813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2814 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 2815 | |
4268f798 RD |
2816 | wxPyEndAllowThreads(__tstate); |
2817 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2818 | } Py_INCREF(Py_None); |
2819 | _resultobj = Py_None; | |
2820 | return _resultobj; | |
2821 | } | |
2822 | ||
2823 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
2824 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2825 | PyObject * _resultobj; | |
2826 | wxCaret * _arg0; | |
2827 | wxPoint * _arg1; | |
2828 | PyObject * _argo0 = 0; | |
2829 | wxPoint temp; | |
2830 | PyObject * _obj1 = 0; | |
2831 | char *_kwnames[] = { "self","pt", NULL }; | |
2832 | ||
2833 | self = self; | |
2834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
2835 | return NULL; | |
2836 | if (_argo0) { | |
2837 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2838 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2839 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
2840 | return NULL; | |
2841 | } | |
2842 | } | |
2843 | { | |
2844 | _arg1 = &temp; | |
2845 | if (! wxPoint_helper(_obj1, &_arg1)) | |
2846 | return NULL; | |
2847 | } | |
2848 | { | |
4268f798 | 2849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2850 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 2851 | |
4268f798 RD |
2852 | wxPyEndAllowThreads(__tstate); |
2853 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2854 | } Py_INCREF(Py_None); |
2855 | _resultobj = Py_None; | |
2856 | return _resultobj; | |
2857 | } | |
2858 | ||
2859 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
2860 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2861 | PyObject * _resultobj; | |
2862 | wxCaret * _arg0; | |
2863 | int _arg1; | |
2864 | int _arg2; | |
2865 | PyObject * _argo0 = 0; | |
2866 | char *_kwnames[] = { "self","width","height", NULL }; | |
2867 | ||
2868 | self = self; | |
2869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
2870 | return NULL; | |
2871 | if (_argo0) { | |
2872 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2873 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2874 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
2875 | return NULL; | |
2876 | } | |
2877 | } | |
2878 | { | |
4268f798 | 2879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2880 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 2881 | |
4268f798 RD |
2882 | wxPyEndAllowThreads(__tstate); |
2883 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2884 | } Py_INCREF(Py_None); |
2885 | _resultobj = Py_None; | |
2886 | return _resultobj; | |
2887 | } | |
2888 | ||
2889 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
2890 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2891 | PyObject * _resultobj; | |
2892 | wxCaret * _arg0; | |
2893 | wxSize * _arg1; | |
2894 | PyObject * _argo0 = 0; | |
2895 | wxSize temp; | |
2896 | PyObject * _obj1 = 0; | |
2897 | char *_kwnames[] = { "self","size", NULL }; | |
2898 | ||
2899 | self = self; | |
2900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
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_SetSize. Expected _wxCaret_p."); | |
2906 | return NULL; | |
2907 | } | |
2908 | } | |
2909 | { | |
2910 | _arg1 = &temp; | |
2911 | if (! wxSize_helper(_obj1, &_arg1)) | |
2912 | return NULL; | |
2913 | } | |
2914 | { | |
4268f798 | 2915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2916 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 2917 | |
4268f798 RD |
2918 | wxPyEndAllowThreads(__tstate); |
2919 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2920 | } Py_INCREF(Py_None); |
2921 | _resultobj = Py_None; | |
2922 | return _resultobj; | |
2923 | } | |
2924 | ||
2925 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
2926 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2927 | PyObject * _resultobj; | |
2928 | wxCaret * _arg0; | |
2929 | int _arg1 = (int ) TRUE; | |
2930 | PyObject * _argo0 = 0; | |
2931 | char *_kwnames[] = { "self","show", NULL }; | |
2932 | ||
2933 | self = self; | |
2934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
2935 | return NULL; | |
2936 | if (_argo0) { | |
2937 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2938 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2939 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
2940 | return NULL; | |
2941 | } | |
2942 | } | |
2943 | { | |
4268f798 | 2944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2945 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 2946 | |
4268f798 RD |
2947 | wxPyEndAllowThreads(__tstate); |
2948 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2949 | } Py_INCREF(Py_None); |
2950 | _resultobj = Py_None; | |
2951 | return _resultobj; | |
2952 | } | |
2953 | ||
2954 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
2955 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2956 | PyObject * _resultobj; | |
2957 | wxCaret * _arg0; | |
2958 | PyObject * _argo0 = 0; | |
2959 | char *_kwnames[] = { "self", NULL }; | |
2960 | ||
2961 | self = self; | |
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
2963 | return NULL; | |
2964 | if (_argo0) { | |
2965 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2966 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
2967 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
2968 | return NULL; | |
2969 | } | |
2970 | } | |
2971 | { | |
4268f798 | 2972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2973 | wxCaret_Hide(_arg0); |
f6bcfd97 | 2974 | |
4268f798 RD |
2975 | wxPyEndAllowThreads(__tstate); |
2976 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2977 | } Py_INCREF(Py_None); |
2978 | _resultobj = Py_None; | |
2979 | return _resultobj; | |
2980 | } | |
2981 | ||
2982 | #define new_wxFontEnumerator() (new wxPyFontEnumerator()) | |
2983 | static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2984 | PyObject * _resultobj; | |
2985 | wxPyFontEnumerator * _result; | |
2986 | char *_kwnames[] = { NULL }; | |
2987 | char _ptemp[128]; | |
2988 | ||
2989 | self = self; | |
2990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames)) | |
2991 | return NULL; | |
2992 | { | |
4268f798 | 2993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2994 | _result = (wxPyFontEnumerator *)new_wxFontEnumerator(); |
f6bcfd97 | 2995 | |
4268f798 RD |
2996 | wxPyEndAllowThreads(__tstate); |
2997 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2998 | } if (_result) { |
2999 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p"); | |
3000 | _resultobj = Py_BuildValue("s",_ptemp); | |
3001 | } else { | |
3002 | Py_INCREF(Py_None); | |
3003 | _resultobj = Py_None; | |
3004 | } | |
3005 | return _resultobj; | |
3006 | } | |
3007 | ||
3008 | #define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj) | |
3009 | static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3010 | PyObject * _resultobj; | |
3011 | wxPyFontEnumerator * _arg0; | |
3012 | PyObject * _argo0 = 0; | |
3013 | char *_kwnames[] = { "self", NULL }; | |
3014 | ||
3015 | self = self; | |
3016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0)) | |
3017 | return NULL; | |
3018 | if (_argo0) { | |
3019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p."); | |
3022 | return NULL; | |
3023 | } | |
3024 | } | |
3025 | { | |
4268f798 | 3026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3027 | delete_wxPyFontEnumerator(_arg0); |
f6bcfd97 | 3028 | |
4268f798 RD |
3029 | wxPyEndAllowThreads(__tstate); |
3030 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3031 | } Py_INCREF(Py_None); |
3032 | _resultobj = Py_None; | |
3033 | return _resultobj; | |
3034 | } | |
3035 | ||
8af26133 | 3036 | #define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2)) |
0122b7e3 | 3037 | static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
f6bcfd97 BP |
3038 | PyObject * _resultobj; |
3039 | wxPyFontEnumerator * _arg0; | |
3040 | PyObject * _arg1; | |
3041 | PyObject * _arg2; | |
8af26133 | 3042 | bool _arg3; |
f6bcfd97 BP |
3043 | PyObject * _argo0 = 0; |
3044 | PyObject * _obj1 = 0; | |
3045 | PyObject * _obj2 = 0; | |
8af26133 RD |
3046 | int tempbool3; |
3047 | char *_kwnames[] = { "self","self","_class","incref", NULL }; | |
f6bcfd97 BP |
3048 | |
3049 | self = self; | |
8af26133 | 3050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) |
f6bcfd97 BP |
3051 | return NULL; |
3052 | if (_argo0) { | |
3053 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3054 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
0122b7e3 | 3055 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p."); |
f6bcfd97 BP |
3056 | return NULL; |
3057 | } | |
3058 | } | |
3059 | { | |
3060 | _arg1 = _obj1; | |
3061 | } | |
3062 | { | |
3063 | _arg2 = _obj2; | |
3064 | } | |
8af26133 | 3065 | _arg3 = (bool ) tempbool3; |
f6bcfd97 | 3066 | { |
4268f798 | 3067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3068 | wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3); |
f6bcfd97 | 3069 | |
4268f798 RD |
3070 | wxPyEndAllowThreads(__tstate); |
3071 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3072 | } Py_INCREF(Py_None); |
3073 | _resultobj = Py_None; | |
3074 | return _resultobj; | |
3075 | } | |
3076 | ||
3077 | #define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1)) | |
3078 | static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3079 | PyObject * _resultobj; | |
3080 | bool _result; | |
3081 | wxPyFontEnumerator * _arg0; | |
3082 | wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM; | |
3083 | bool _arg2 = (bool ) FALSE; | |
3084 | PyObject * _argo0 = 0; | |
3085 | int tempbool2 = (int) FALSE; | |
3086 | char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL }; | |
3087 | ||
3088 | self = self; | |
3089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2)) | |
3090 | return NULL; | |
3091 | if (_argo0) { | |
3092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p."); | |
3095 | return NULL; | |
3096 | } | |
3097 | } | |
3098 | _arg2 = (bool ) tempbool2; | |
3099 | { | |
4268f798 | 3100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3101 | _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2); |
f6bcfd97 | 3102 | |
4268f798 RD |
3103 | wxPyEndAllowThreads(__tstate); |
3104 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3105 | } _resultobj = Py_BuildValue("i",_result); |
3106 | return _resultobj; | |
3107 | } | |
3108 | ||
3109 | #define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0)) | |
3110 | static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3111 | PyObject * _resultobj; | |
3112 | bool _result; | |
3113 | wxPyFontEnumerator * _arg0; | |
3114 | char * _arg1 = (char *) ""; | |
3115 | PyObject * _argo0 = 0; | |
3116 | char *_kwnames[] = { "self","facename", NULL }; | |
3117 | ||
3118 | self = self; | |
3119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1)) | |
3120 | return NULL; | |
3121 | if (_argo0) { | |
3122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p."); | |
3125 | return NULL; | |
3126 | } | |
3127 | } | |
3128 | { | |
4268f798 | 3129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3130 | _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1); |
f6bcfd97 | 3131 | |
4268f798 RD |
3132 | wxPyEndAllowThreads(__tstate); |
3133 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3134 | } _resultobj = Py_BuildValue("i",_result); |
3135 | return _resultobj; | |
3136 | } | |
3137 | ||
3138 | static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) { | |
3139 | wxArrayString* arr = self->GetEncodings(); | |
8af26133 | 3140 | return wxArrayString2PyList_helper(*arr); |
f6bcfd97 BP |
3141 | } |
3142 | static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3143 | PyObject * _resultobj; | |
3144 | PyObject * _result; | |
3145 | wxPyFontEnumerator * _arg0; | |
3146 | PyObject * _argo0 = 0; | |
3147 | char *_kwnames[] = { "self", NULL }; | |
3148 | ||
3149 | self = self; | |
3150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0)) | |
3151 | return NULL; | |
3152 | if (_argo0) { | |
3153 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3154 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3155 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p."); | |
3156 | return NULL; | |
3157 | } | |
3158 | } | |
3159 | { | |
4268f798 | 3160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3161 | _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0); |
f6bcfd97 | 3162 | |
4268f798 RD |
3163 | wxPyEndAllowThreads(__tstate); |
3164 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3165 | }{ |
3166 | _resultobj = _result; | |
3167 | } | |
3168 | return _resultobj; | |
3169 | } | |
3170 | ||
3171 | static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) { | |
3172 | wxArrayString* arr = self->GetFacenames(); | |
8af26133 | 3173 | return wxArrayString2PyList_helper(*arr); |
f6bcfd97 BP |
3174 | } |
3175 | static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject * _resultobj; | |
3177 | PyObject * _result; | |
3178 | wxPyFontEnumerator * _arg0; | |
3179 | PyObject * _argo0 = 0; | |
3180 | char *_kwnames[] = { "self", NULL }; | |
3181 | ||
3182 | self = self; | |
3183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0)) | |
3184 | return NULL; | |
3185 | if (_argo0) { | |
3186 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3187 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) { | |
3188 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p."); | |
3189 | return NULL; | |
3190 | } | |
3191 | } | |
3192 | { | |
4268f798 | 3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3194 | _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0); |
f6bcfd97 | 3195 | |
4268f798 RD |
3196 | wxPyEndAllowThreads(__tstate); |
3197 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3198 | }{ |
3199 | _resultobj = _result; | |
3200 | } | |
3201 | return _resultobj; | |
3202 | } | |
3203 | ||
3204 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) | |
3205 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3206 | PyObject * _resultobj; | |
3207 | wxBusyCursor * _result; | |
3208 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3209 | PyObject * _argo0 = 0; | |
3210 | char *_kwnames[] = { "cursor", NULL }; | |
3211 | char _ptemp[128]; | |
3212 | ||
3213 | self = self; | |
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3215 | return NULL; | |
3216 | if (_argo0) { | |
3217 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3218 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3219 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3220 | return NULL; | |
3221 | } | |
3222 | } | |
3223 | { | |
4268f798 | 3224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3225 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3226 | |
4268f798 RD |
3227 | wxPyEndAllowThreads(__tstate); |
3228 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3229 | } if (_result) { |
3230 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3231 | _resultobj = Py_BuildValue("s",_ptemp); | |
3232 | } else { | |
3233 | Py_INCREF(Py_None); | |
3234 | _resultobj = Py_None; | |
3235 | } | |
3236 | return _resultobj; | |
3237 | } | |
3238 | ||
3239 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3240 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3241 | PyObject * _resultobj; | |
3242 | wxBusyCursor * _arg0; | |
3243 | PyObject * _argo0 = 0; | |
3244 | char *_kwnames[] = { "self", NULL }; | |
3245 | ||
3246 | self = self; | |
3247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3248 | return NULL; | |
3249 | if (_argo0) { | |
3250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3253 | return NULL; | |
3254 | } | |
3255 | } | |
3256 | { | |
4268f798 | 3257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3258 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3259 | |
4268f798 RD |
3260 | wxPyEndAllowThreads(__tstate); |
3261 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3262 | } Py_INCREF(Py_None); |
3263 | _resultobj = Py_None; | |
3264 | return _resultobj; | |
3265 | } | |
3266 | ||
c368d904 RD |
3267 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3268 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3269 | PyObject * _resultobj; | |
3270 | wxWindowDisabler * _result; | |
3271 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3272 | PyObject * _argo0 = 0; | |
3273 | char *_kwnames[] = { "winToSkip", NULL }; | |
3274 | char _ptemp[128]; | |
3275 | ||
3276 | self = self; | |
3277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3278 | return NULL; | |
3279 | if (_argo0) { | |
3280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3283 | return NULL; | |
3284 | } | |
3285 | } | |
3286 | { | |
4268f798 | 3287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3288 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3289 | |
4268f798 RD |
3290 | wxPyEndAllowThreads(__tstate); |
3291 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3292 | } if (_result) { |
3293 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3294 | _resultobj = Py_BuildValue("s",_ptemp); | |
3295 | } else { | |
3296 | Py_INCREF(Py_None); | |
3297 | _resultobj = Py_None; | |
3298 | } | |
3299 | return _resultobj; | |
3300 | } | |
3301 | ||
3302 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3303 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3304 | PyObject * _resultobj; | |
3305 | wxWindowDisabler * _arg0; | |
3306 | PyObject * _argo0 = 0; | |
3307 | char *_kwnames[] = { "self", NULL }; | |
3308 | ||
3309 | self = self; | |
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3311 | return NULL; | |
3312 | if (_argo0) { | |
3313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3316 | return NULL; | |
3317 | } | |
3318 | } | |
3319 | { | |
4268f798 | 3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3321 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3322 | |
4268f798 RD |
3323 | wxPyEndAllowThreads(__tstate); |
3324 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3325 | } Py_INCREF(Py_None); |
3326 | _resultobj = Py_None; | |
3327 | return _resultobj; | |
3328 | } | |
3329 | ||
6e18ca6c RD |
3330 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3331 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3332 | PyObject * _resultobj; | |
3333 | wxMutexGuiLocker * _result; | |
3334 | char *_kwnames[] = { NULL }; | |
3335 | char _ptemp[128]; | |
3336 | ||
3337 | self = self; | |
3338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3339 | return NULL; | |
3340 | { | |
4268f798 | 3341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3342 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3343 | |
4268f798 RD |
3344 | wxPyEndAllowThreads(__tstate); |
3345 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3346 | } if (_result) { |
3347 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3348 | _resultobj = Py_BuildValue("s",_ptemp); | |
3349 | } else { | |
3350 | Py_INCREF(Py_None); | |
3351 | _resultobj = Py_None; | |
3352 | } | |
3353 | return _resultobj; | |
3354 | } | |
3355 | ||
3356 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3357 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3358 | PyObject * _resultobj; | |
3359 | wxMutexGuiLocker * _arg0; | |
3360 | PyObject * _argo0 = 0; | |
3361 | char *_kwnames[] = { "self", NULL }; | |
3362 | ||
3363 | self = self; | |
3364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3365 | return NULL; | |
3366 | if (_argo0) { | |
3367 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3368 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3369 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3370 | return NULL; | |
3371 | } | |
3372 | } | |
3373 | { | |
4268f798 | 3374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3375 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3376 | |
4268f798 RD |
3377 | wxPyEndAllowThreads(__tstate); |
3378 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3379 | } Py_INCREF(Py_None); |
3380 | _resultobj = Py_None; | |
3381 | return _resultobj; | |
3382 | } | |
3383 | ||
f6bcfd97 BP |
3384 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3385 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3386 | PyObject * _resultobj; | |
3387 | wxTipProvider * _arg0; | |
3388 | PyObject * _argo0 = 0; | |
3389 | char *_kwnames[] = { "self", NULL }; | |
3390 | ||
3391 | self = self; | |
3392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3393 | return NULL; | |
3394 | if (_argo0) { | |
3395 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3396 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3397 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3398 | return NULL; | |
3399 | } | |
3400 | } | |
3401 | { | |
4268f798 | 3402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3403 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3404 | |
4268f798 RD |
3405 | wxPyEndAllowThreads(__tstate); |
3406 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3407 | } Py_INCREF(Py_None); |
3408 | _resultobj = Py_None; | |
3409 | return _resultobj; | |
3410 | } | |
3411 | ||
3412 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3413 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3414 | PyObject * _resultobj; | |
3415 | wxString * _result; | |
3416 | wxTipProvider * _arg0; | |
3417 | PyObject * _argo0 = 0; | |
3418 | char *_kwnames[] = { "self", NULL }; | |
3419 | ||
3420 | self = self; | |
3421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3422 | return NULL; | |
3423 | if (_argo0) { | |
3424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3427 | return NULL; | |
3428 | } | |
3429 | } | |
3430 | { | |
4268f798 | 3431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3432 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3433 | |
4268f798 RD |
3434 | wxPyEndAllowThreads(__tstate); |
3435 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3436 | }{ |
c8bc7bb8 RD |
3437 | #if wxUSE_UNICODE |
3438 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
3439 | #else | |
f6bcfd97 | 3440 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3441 | #endif |
f6bcfd97 BP |
3442 | } |
3443 | { | |
3444 | delete _result; | |
3445 | } | |
3446 | return _resultobj; | |
3447 | } | |
3448 | ||
3449 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3450 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3451 | PyObject * _resultobj; | |
3452 | size_t _result; | |
3453 | wxTipProvider * _arg0; | |
3454 | PyObject * _argo0 = 0; | |
3455 | char *_kwnames[] = { "self", NULL }; | |
3456 | ||
3457 | self = self; | |
3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3459 | return NULL; | |
3460 | if (_argo0) { | |
3461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3464 | return NULL; | |
3465 | } | |
3466 | } | |
3467 | { | |
4268f798 | 3468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3469 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3470 | |
4268f798 RD |
3471 | wxPyEndAllowThreads(__tstate); |
3472 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3473 | } _resultobj = Py_BuildValue("i",_result); |
3474 | return _resultobj; | |
3475 | } | |
3476 | ||
3477 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { | |
3478 | wxPyTipProvider *src; | |
3479 | wxTipProvider *dest; | |
3480 | src = (wxPyTipProvider *) ptr; | |
3481 | dest = (wxTipProvider *) src; | |
3482 | return (void *) dest; | |
3483 | } | |
3484 | ||
3485 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3486 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3487 | PyObject * _resultobj; | |
3488 | wxPyTipProvider * _result; | |
3489 | size_t _arg0; | |
3490 | char *_kwnames[] = { "currentTip", NULL }; | |
3491 | char _ptemp[128]; | |
3492 | ||
3493 | self = self; | |
3494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3495 | return NULL; | |
3496 | { | |
4268f798 | 3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3498 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3499 | |
4268f798 RD |
3500 | wxPyEndAllowThreads(__tstate); |
3501 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3502 | } if (_result) { |
3503 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3504 | _resultobj = Py_BuildValue("s",_ptemp); | |
3505 | } else { | |
3506 | Py_INCREF(Py_None); | |
3507 | _resultobj = Py_None; | |
3508 | } | |
3509 | return _resultobj; | |
3510 | } | |
3511 | ||
9416aa89 RD |
3512 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3513 | wxGenericDragImage *src; | |
3514 | wxObject *dest; | |
3515 | src = (wxGenericDragImage *) ptr; | |
3516 | dest = (wxObject *) src; | |
3517 | return (void *) dest; | |
3518 | } | |
3519 | ||
10e07c70 | 3520 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3521 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3522 | PyObject * _resultobj; | |
3523 | wxGenericDragImage * _result; | |
3524 | wxBitmap * _arg0; | |
3525 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3526 | PyObject * _argo0 = 0; |
3527 | PyObject * _argo1 = 0; | |
10e07c70 | 3528 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3529 | char _ptemp[128]; |
3530 | ||
3531 | self = self; | |
10e07c70 | 3532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3533 | return NULL; |
3534 | if (_argo0) { | |
3535 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3536 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { | |
3537 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); | |
3538 | return NULL; | |
3539 | } | |
3540 | } | |
3541 | if (_argo1) { | |
3542 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3543 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3544 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); | |
3545 | return NULL; | |
3546 | } | |
3547 | } | |
f6bcfd97 | 3548 | { |
4268f798 | 3549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3550 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3551 | |
4268f798 RD |
3552 | wxPyEndAllowThreads(__tstate); |
3553 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3554 | } if (_result) { |
3555 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3556 | _resultobj = Py_BuildValue("s",_ptemp); | |
3557 | } else { | |
3558 | Py_INCREF(Py_None); | |
3559 | _resultobj = Py_None; | |
3560 | } | |
3561 | return _resultobj; | |
3562 | } | |
3563 | ||
cdf14688 RD |
3564 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3565 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3566 | PyObject * _resultobj; | |
3567 | wxGenericDragImage * _result; | |
3568 | wxIcon * _arg0; | |
3569 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3570 | PyObject * _argo0 = 0; | |
3571 | PyObject * _argo1 = 0; | |
3572 | char *_kwnames[] = { "image","cursor", NULL }; | |
3573 | char _ptemp[128]; | |
3574 | ||
3575 | self = self; | |
3576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3577 | return NULL; | |
3578 | if (_argo0) { | |
3579 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3580 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { | |
3581 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); | |
3582 | return NULL; | |
3583 | } | |
3584 | } | |
3585 | if (_argo1) { | |
3586 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3587 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); | |
3589 | return NULL; | |
3590 | } | |
3591 | } | |
3592 | { | |
4268f798 | 3593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3594 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3595 | |
4268f798 RD |
3596 | wxPyEndAllowThreads(__tstate); |
3597 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3598 | } if (_result) { |
3599 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3600 | _resultobj = Py_BuildValue("s",_ptemp); | |
3601 | } else { | |
3602 | Py_INCREF(Py_None); | |
3603 | _resultobj = Py_None; | |
3604 | } | |
3605 | return _resultobj; | |
3606 | } | |
3607 | ||
3608 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3609 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3610 | PyObject * _resultobj; | |
3611 | wxGenericDragImage * _result; | |
3612 | wxString * _arg0; | |
3613 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3614 | PyObject * _obj0 = 0; | |
3615 | PyObject * _argo1 = 0; | |
3616 | char *_kwnames[] = { "str","cursor", NULL }; | |
3617 | char _ptemp[128]; | |
3618 | ||
3619 | self = self; | |
3620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3621 | return NULL; | |
3622 | { | |
c8bc7bb8 RD |
3623 | _arg0 = wxString_in_helper(_obj0); |
3624 | if (_arg0 == NULL) | |
cdf14688 | 3625 | return NULL; |
cdf14688 RD |
3626 | } |
3627 | if (_argo1) { | |
3628 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3629 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { | |
3630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); | |
3631 | return NULL; | |
3632 | } | |
3633 | } | |
3634 | { | |
4268f798 | 3635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3636 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3637 | |
4268f798 RD |
3638 | wxPyEndAllowThreads(__tstate); |
3639 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3640 | } if (_result) { |
3641 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3642 | _resultobj = Py_BuildValue("s",_ptemp); | |
3643 | } else { | |
3644 | Py_INCREF(Py_None); | |
3645 | _resultobj = Py_None; | |
3646 | } | |
3647 | { | |
3648 | if (_obj0) | |
3649 | delete _arg0; | |
3650 | } | |
3651 | return _resultobj; | |
3652 | } | |
3653 | ||
3654 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3655 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3656 | PyObject * _resultobj; | |
3657 | wxGenericDragImage * _result; | |
3658 | wxTreeCtrl * _arg0; | |
3659 | wxTreeItemId * _arg1; | |
3660 | PyObject * _argo0 = 0; | |
3661 | PyObject * _argo1 = 0; | |
3662 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3663 | char _ptemp[128]; | |
3664 | ||
3665 | self = self; | |
3666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3667 | return NULL; | |
3668 | if (_argo0) { | |
3669 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3670 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { | |
3671 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); | |
3672 | return NULL; | |
3673 | } | |
3674 | } | |
3675 | if (_argo1) { | |
3676 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3677 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { | |
3678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); | |
3679 | return NULL; | |
3680 | } | |
3681 | } | |
3682 | { | |
4268f798 | 3683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3684 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 3685 | |
4268f798 RD |
3686 | wxPyEndAllowThreads(__tstate); |
3687 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3688 | } if (_result) { |
3689 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3690 | _resultobj = Py_BuildValue("s",_ptemp); | |
3691 | } else { | |
3692 | Py_INCREF(Py_None); | |
3693 | _resultobj = Py_None; | |
3694 | } | |
3695 | return _resultobj; | |
3696 | } | |
3697 | ||
3698 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3699 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3700 | PyObject * _resultobj; | |
3701 | wxGenericDragImage * _result; | |
3702 | wxListCtrl * _arg0; | |
3703 | long _arg1; | |
3704 | PyObject * _argo0 = 0; | |
3705 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
3706 | char _ptemp[128]; | |
3707 | ||
3708 | self = self; | |
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
3710 | return NULL; | |
3711 | if (_argo0) { | |
3712 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3713 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { | |
3714 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); | |
3715 | return NULL; | |
3716 | } | |
3717 | } | |
3718 | { | |
4268f798 | 3719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3720 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
cdf14688 | 3721 | |
4268f798 RD |
3722 | wxPyEndAllowThreads(__tstate); |
3723 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3724 | } if (_result) { |
3725 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3726 | _resultobj = Py_BuildValue("s",_ptemp); | |
3727 | } else { | |
3728 | Py_INCREF(Py_None); | |
3729 | _resultobj = Py_None; | |
3730 | } | |
3731 | return _resultobj; | |
3732 | } | |
3733 | ||
f6bcfd97 BP |
3734 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
3735 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3736 | PyObject * _resultobj; | |
3737 | wxGenericDragImage * _arg0; | |
3738 | PyObject * _argo0 = 0; | |
3739 | char *_kwnames[] = { "self", NULL }; | |
3740 | ||
3741 | self = self; | |
3742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
3743 | return NULL; | |
3744 | if (_argo0) { | |
3745 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3746 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3747 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
3748 | return NULL; | |
3749 | } | |
3750 | } | |
3751 | { | |
4268f798 | 3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3753 | delete_wxGenericDragImage(_arg0); |
f6bcfd97 | 3754 | |
4268f798 RD |
3755 | wxPyEndAllowThreads(__tstate); |
3756 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3757 | } Py_INCREF(Py_None); |
3758 | _resultobj = Py_None; | |
3759 | return _resultobj; | |
3760 | } | |
3761 | ||
10e07c70 RD |
3762 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
3763 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3764 | PyObject * _resultobj; | |
3765 | wxGenericDragImage * _arg0; | |
3766 | wxBitmap * _arg1; | |
3767 | PyObject * _argo0 = 0; | |
3768 | PyObject * _argo1 = 0; | |
3769 | char *_kwnames[] = { "self","bitmap", NULL }; | |
3770 | ||
3771 | self = self; | |
3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
3773 | return NULL; | |
3774 | if (_argo0) { | |
3775 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3776 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3777 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
3778 | return NULL; | |
3779 | } | |
3780 | } | |
3781 | if (_argo1) { | |
3782 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
3783 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
3784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
3785 | return NULL; | |
3786 | } | |
3787 | } | |
3788 | { | |
4268f798 | 3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3790 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
10e07c70 | 3791 | |
4268f798 RD |
3792 | wxPyEndAllowThreads(__tstate); |
3793 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
3794 | } Py_INCREF(Py_None); |
3795 | _resultobj = Py_None; | |
3796 | return _resultobj; | |
3797 | } | |
3798 | ||
f6bcfd97 BP |
3799 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
3800 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3801 | PyObject * _resultobj; | |
3802 | bool _result; | |
3803 | wxGenericDragImage * _arg0; | |
3804 | wxPoint * _arg1; | |
3805 | wxWindow * _arg2; | |
3806 | bool _arg3 = (bool ) FALSE; | |
3807 | wxRect * _arg4 = (wxRect *) NULL; | |
3808 | PyObject * _argo0 = 0; | |
3809 | wxPoint temp; | |
3810 | PyObject * _obj1 = 0; | |
3811 | PyObject * _argo2 = 0; | |
3812 | int tempbool3 = (int) FALSE; | |
3813 | wxRect temp0; | |
3814 | PyObject * _obj4 = 0; | |
3815 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
3816 | ||
3817 | self = self; | |
3818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
3819 | return NULL; | |
3820 | if (_argo0) { | |
3821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
3824 | return NULL; | |
3825 | } | |
3826 | } | |
3827 | { | |
3828 | _arg1 = &temp; | |
3829 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3830 | return NULL; | |
3831 | } | |
3832 | if (_argo2) { | |
3833 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3834 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
3836 | return NULL; | |
3837 | } | |
3838 | } | |
3839 | _arg3 = (bool ) tempbool3; | |
3840 | if (_obj4) | |
3841 | { | |
3842 | _arg4 = &temp0; | |
3843 | if (! wxRect_helper(_obj4, &_arg4)) | |
3844 | return NULL; | |
3845 | } | |
3846 | { | |
4268f798 | 3847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3848 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
f6bcfd97 | 3849 | |
4268f798 RD |
3850 | wxPyEndAllowThreads(__tstate); |
3851 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3852 | } _resultobj = Py_BuildValue("i",_result); |
3853 | return _resultobj; | |
3854 | } | |
3855 | ||
3856 | #define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) | |
3857 | static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3858 | PyObject * _resultobj; | |
3859 | bool _result; | |
3860 | wxGenericDragImage * _arg0; | |
3861 | wxPoint * _arg1; | |
3862 | wxWindow * _arg2; | |
3863 | wxWindow * _arg3; | |
3864 | PyObject * _argo0 = 0; | |
3865 | wxPoint temp; | |
3866 | PyObject * _obj1 = 0; | |
3867 | PyObject * _argo2 = 0; | |
3868 | PyObject * _argo3 = 0; | |
3869 | char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL }; | |
3870 | ||
3871 | self = self; | |
3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
3873 | return NULL; | |
3874 | if (_argo0) { | |
3875 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3876 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p."); | |
3878 | return NULL; | |
3879 | } | |
3880 | } | |
3881 | { | |
3882 | _arg1 = &temp; | |
3883 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3884 | return NULL; | |
3885 | } | |
3886 | if (_argo2) { | |
3887 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
3888 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
3889 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3890 | return NULL; | |
3891 | } | |
3892 | } | |
3893 | if (_argo3) { | |
3894 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
3895 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
3896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p."); | |
3897 | return NULL; | |
3898 | } | |
3899 | } | |
3900 | { | |
4268f798 | 3901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3902 | _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3); |
f6bcfd97 | 3903 | |
4268f798 RD |
3904 | wxPyEndAllowThreads(__tstate); |
3905 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3906 | } _resultobj = Py_BuildValue("i",_result); |
3907 | return _resultobj; | |
3908 | } | |
3909 | ||
3910 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
3911 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3912 | PyObject * _resultobj; | |
3913 | bool _result; | |
3914 | wxGenericDragImage * _arg0; | |
3915 | PyObject * _argo0 = 0; | |
3916 | char *_kwnames[] = { "self", NULL }; | |
3917 | ||
3918 | self = self; | |
3919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
3920 | return NULL; | |
3921 | if (_argo0) { | |
3922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
3925 | return NULL; | |
3926 | } | |
3927 | } | |
3928 | { | |
4268f798 | 3929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3930 | _result = (bool )wxDragImage_EndDrag(_arg0); |
f6bcfd97 | 3931 | |
4268f798 RD |
3932 | wxPyEndAllowThreads(__tstate); |
3933 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3934 | } _resultobj = Py_BuildValue("i",_result); |
3935 | return _resultobj; | |
3936 | } | |
3937 | ||
3938 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3939 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3940 | PyObject * _resultobj; | |
3941 | bool _result; | |
3942 | wxGenericDragImage * _arg0; | |
3943 | wxPoint * _arg1; | |
3944 | PyObject * _argo0 = 0; | |
3945 | wxPoint temp; | |
3946 | PyObject * _obj1 = 0; | |
3947 | char *_kwnames[] = { "self","pt", NULL }; | |
3948 | ||
3949 | self = self; | |
3950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
3951 | return NULL; | |
3952 | if (_argo0) { | |
3953 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3954 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3955 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
3956 | return NULL; | |
3957 | } | |
3958 | } | |
3959 | { | |
3960 | _arg1 = &temp; | |
3961 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3962 | return NULL; | |
3963 | } | |
3964 | { | |
4268f798 | 3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3966 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
f6bcfd97 | 3967 | |
4268f798 RD |
3968 | wxPyEndAllowThreads(__tstate); |
3969 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3970 | } _resultobj = Py_BuildValue("i",_result); |
3971 | return _resultobj; | |
3972 | } | |
3973 | ||
3974 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
3975 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3976 | PyObject * _resultobj; | |
3977 | bool _result; | |
3978 | wxGenericDragImage * _arg0; | |
3979 | PyObject * _argo0 = 0; | |
3980 | char *_kwnames[] = { "self", NULL }; | |
3981 | ||
3982 | self = self; | |
3983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
3984 | return NULL; | |
3985 | if (_argo0) { | |
3986 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3987 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
3988 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
3989 | return NULL; | |
3990 | } | |
3991 | } | |
3992 | { | |
4268f798 | 3993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3994 | _result = (bool )wxDragImage_Show(_arg0); |
f6bcfd97 | 3995 | |
4268f798 RD |
3996 | wxPyEndAllowThreads(__tstate); |
3997 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3998 | } _resultobj = Py_BuildValue("i",_result); |
3999 | return _resultobj; | |
4000 | } | |
4001 | ||
4002 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4003 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4004 | PyObject * _resultobj; | |
4005 | bool _result; | |
4006 | wxGenericDragImage * _arg0; | |
4007 | PyObject * _argo0 = 0; | |
4008 | char *_kwnames[] = { "self", NULL }; | |
4009 | ||
4010 | self = self; | |
4011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4012 | return NULL; | |
4013 | if (_argo0) { | |
4014 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4015 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4016 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4017 | return NULL; | |
4018 | } | |
4019 | } | |
4020 | { | |
4268f798 | 4021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4022 | _result = (bool )wxDragImage_Hide(_arg0); |
f6bcfd97 | 4023 | |
4268f798 RD |
4024 | wxPyEndAllowThreads(__tstate); |
4025 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4026 | } _resultobj = Py_BuildValue("i",_result); |
4027 | return _resultobj; | |
4028 | } | |
4029 | ||
4030 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4031 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4032 | PyObject * _resultobj; | |
4033 | wxRect * _result; | |
4034 | wxGenericDragImage * _arg0; | |
4035 | wxPoint * _arg1; | |
4036 | PyObject * _argo0 = 0; | |
4037 | wxPoint temp; | |
4038 | PyObject * _obj1 = 0; | |
4039 | char *_kwnames[] = { "self","pos", NULL }; | |
4040 | char _ptemp[128]; | |
4041 | ||
4042 | self = self; | |
4043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4044 | return NULL; | |
4045 | if (_argo0) { | |
4046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4049 | return NULL; | |
4050 | } | |
4051 | } | |
4052 | { | |
4053 | _arg1 = &temp; | |
4054 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4055 | return NULL; | |
4056 | } | |
4057 | { | |
4268f798 | 4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4059 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
f6bcfd97 | 4060 | |
4268f798 RD |
4061 | wxPyEndAllowThreads(__tstate); |
4062 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4063 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4064 | _resultobj = Py_BuildValue("s",_ptemp); | |
4065 | return _resultobj; | |
4066 | } | |
4067 | ||
4068 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4069 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4070 | PyObject * _resultobj; | |
4071 | bool _result; | |
4072 | wxGenericDragImage * _arg0; | |
4073 | wxPoint * _arg1; | |
4074 | wxPoint * _arg2; | |
4075 | bool _arg3; | |
4076 | bool _arg4; | |
4077 | PyObject * _argo0 = 0; | |
4078 | wxPoint temp; | |
4079 | PyObject * _obj1 = 0; | |
4080 | wxPoint temp0; | |
4081 | PyObject * _obj2 = 0; | |
4082 | int tempbool3; | |
4083 | int tempbool4; | |
4084 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4085 | ||
4086 | self = self; | |
4087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4088 | return NULL; | |
4089 | if (_argo0) { | |
4090 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4091 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4092 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4093 | return NULL; | |
4094 | } | |
4095 | } | |
4096 | { | |
4097 | _arg1 = &temp; | |
4098 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4099 | return NULL; | |
4100 | } | |
4101 | { | |
4102 | _arg2 = &temp0; | |
4103 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4104 | return NULL; | |
4105 | } | |
4106 | _arg3 = (bool ) tempbool3; | |
4107 | _arg4 = (bool ) tempbool4; | |
4108 | { | |
4268f798 | 4109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4110 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
f6bcfd97 | 4111 | |
4268f798 RD |
4112 | wxPyEndAllowThreads(__tstate); |
4113 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4114 | } _resultobj = Py_BuildValue("i",_result); |
4115 | return _resultobj; | |
4116 | } | |
4117 | ||
9416aa89 RD |
4118 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4119 | wxPyTimer *src; | |
4120 | wxObject *dest; | |
4121 | src = (wxPyTimer *) ptr; | |
4122 | dest = (wxObject *) src; | |
4123 | return (void *) dest; | |
4124 | } | |
4125 | ||
f6bcfd97 BP |
4126 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4127 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4128 | PyObject * _resultobj; | |
4129 | wxPyTimer * _result; | |
4130 | PyObject * _arg0; | |
4131 | PyObject * _obj0 = 0; | |
4132 | char *_kwnames[] = { "notify", NULL }; | |
4133 | char _ptemp[128]; | |
4134 | ||
4135 | self = self; | |
4136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4137 | return NULL; | |
4138 | { | |
4139 | _arg0 = _obj0; | |
4140 | } | |
4141 | { | |
4268f798 | 4142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4143 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
f6bcfd97 | 4144 | |
4268f798 RD |
4145 | wxPyEndAllowThreads(__tstate); |
4146 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4147 | } if (_result) { |
4148 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4149 | _resultobj = Py_BuildValue("s",_ptemp); | |
4150 | } else { | |
4151 | Py_INCREF(Py_None); | |
4152 | _resultobj = Py_None; | |
4153 | } | |
4154 | return _resultobj; | |
4155 | } | |
4156 | ||
4157 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4158 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4159 | PyObject * _resultobj; | |
4160 | wxPyTimer * _arg0; | |
4161 | PyObject * _argo0 = 0; | |
4162 | char *_kwnames[] = { "self", NULL }; | |
4163 | ||
4164 | self = self; | |
4165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4166 | return NULL; | |
4167 | if (_argo0) { | |
4168 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4169 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4170 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4171 | return NULL; | |
4172 | } | |
4173 | } | |
4174 | { | |
4268f798 | 4175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4176 | delete_wxPyTimer(_arg0); |
f6bcfd97 | 4177 | |
4268f798 RD |
4178 | wxPyEndAllowThreads(__tstate); |
4179 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4180 | } Py_INCREF(Py_None); |
4181 | _resultobj = Py_None; | |
4182 | return _resultobj; | |
4183 | } | |
4184 | ||
4185 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4186 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4187 | PyObject * _resultobj; | |
4188 | int _result; | |
4189 | wxPyTimer * _arg0; | |
4190 | PyObject * _argo0 = 0; | |
4191 | char *_kwnames[] = { "self", NULL }; | |
4192 | ||
4193 | self = self; | |
4194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4195 | return NULL; | |
4196 | if (_argo0) { | |
4197 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4198 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4199 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4200 | return NULL; | |
4201 | } | |
4202 | } | |
4203 | { | |
4268f798 | 4204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4205 | _result = (int )wxPyTimer_GetInterval(_arg0); |
f6bcfd97 | 4206 | |
4268f798 RD |
4207 | wxPyEndAllowThreads(__tstate); |
4208 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4209 | } _resultobj = Py_BuildValue("i",_result); |
4210 | return _resultobj; | |
4211 | } | |
4212 | ||
4213 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4214 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4215 | PyObject * _resultobj; | |
4216 | bool _result; | |
4217 | wxPyTimer * _arg0; | |
4218 | PyObject * _argo0 = 0; | |
4219 | char *_kwnames[] = { "self", NULL }; | |
4220 | ||
4221 | self = self; | |
4222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4223 | return NULL; | |
4224 | if (_argo0) { | |
4225 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4226 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4227 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4228 | return NULL; | |
4229 | } | |
4230 | } | |
4231 | { | |
4268f798 | 4232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4233 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
f6bcfd97 | 4234 | |
4268f798 RD |
4235 | wxPyEndAllowThreads(__tstate); |
4236 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4237 | } _resultobj = Py_BuildValue("i",_result); |
4238 | return _resultobj; | |
4239 | } | |
4240 | ||
4241 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4242 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4243 | PyObject * _resultobj; | |
4244 | bool _result; | |
4245 | wxPyTimer * _arg0; | |
4246 | PyObject * _argo0 = 0; | |
4247 | char *_kwnames[] = { "self", NULL }; | |
4248 | ||
4249 | self = self; | |
4250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4251 | return NULL; | |
4252 | if (_argo0) { | |
4253 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4254 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4255 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4256 | return NULL; | |
4257 | } | |
4258 | } | |
4259 | { | |
4268f798 | 4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4261 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
f6bcfd97 | 4262 | |
4268f798 RD |
4263 | wxPyEndAllowThreads(__tstate); |
4264 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4265 | } _resultobj = Py_BuildValue("i",_result); |
4266 | return _resultobj; | |
4267 | } | |
4268 | ||
4269 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4270 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4271 | PyObject * _resultobj; | |
4272 | wxPyTimer * _arg0; | |
4273 | wxEvtHandler * _arg1; | |
4274 | int _arg2 = (int ) -1; | |
4275 | PyObject * _argo0 = 0; | |
4276 | PyObject * _argo1 = 0; | |
4277 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4278 | ||
4279 | self = self; | |
4280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4281 | return NULL; | |
4282 | if (_argo0) { | |
4283 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4284 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4285 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4286 | return NULL; | |
4287 | } | |
4288 | } | |
4289 | if (_argo1) { | |
4290 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4291 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4292 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4293 | return NULL; | |
4294 | } | |
4295 | } | |
4296 | { | |
4268f798 | 4297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4298 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
f6bcfd97 | 4299 | |
4268f798 RD |
4300 | wxPyEndAllowThreads(__tstate); |
4301 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4302 | } Py_INCREF(Py_None); |
4303 | _resultobj = Py_None; | |
4304 | return _resultobj; | |
4305 | } | |
4306 | ||
4307 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4308 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4309 | PyObject * _resultobj; | |
4310 | wxPyTimer * _arg0; | |
4311 | int _arg1 = (int ) -1; | |
4312 | int _arg2 = (int ) FALSE; | |
4313 | PyObject * _argo0 = 0; | |
4314 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4315 | ||
4316 | self = self; | |
4317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4318 | return NULL; | |
4319 | if (_argo0) { | |
4320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4323 | return NULL; | |
4324 | } | |
4325 | } | |
4326 | { | |
4268f798 | 4327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4328 | wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4329 | |
4268f798 RD |
4330 | wxPyEndAllowThreads(__tstate); |
4331 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4332 | } Py_INCREF(Py_None); |
4333 | _resultobj = Py_None; | |
4334 | return _resultobj; | |
4335 | } | |
4336 | ||
4337 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4338 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4339 | PyObject * _resultobj; | |
4340 | wxPyTimer * _arg0; | |
f0261a72 RD |
4341 | PyObject * _argo0 = 0; |
4342 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4343 | |
4344 | self = self; | |
f6bcfd97 | 4345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4346 | return NULL; |
4347 | if (_argo0) { | |
4348 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4349 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4350 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4351 | return NULL; |
4352 | } | |
4353 | } | |
4354 | { | |
4268f798 | 4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4356 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4357 | |
4268f798 RD |
4358 | wxPyEndAllowThreads(__tstate); |
4359 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4360 | } Py_INCREF(Py_None); |
4361 | _resultobj = Py_None; | |
f0261a72 RD |
4362 | return _resultobj; |
4363 | } | |
4364 | ||
b37c7e1d RD |
4365 | #define new_wxStopWatch() (new wxStopWatch()) |
4366 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4367 | PyObject * _resultobj; | |
4368 | wxStopWatch * _result; | |
4369 | char *_kwnames[] = { NULL }; | |
4370 | char _ptemp[128]; | |
4371 | ||
4372 | self = self; | |
4373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4374 | return NULL; | |
4375 | { | |
4268f798 | 4376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4377 | _result = (wxStopWatch *)new_wxStopWatch(); |
b37c7e1d | 4378 | |
4268f798 RD |
4379 | wxPyEndAllowThreads(__tstate); |
4380 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4381 | } if (_result) { |
4382 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4383 | _resultobj = Py_BuildValue("s",_ptemp); | |
4384 | } else { | |
4385 | Py_INCREF(Py_None); | |
4386 | _resultobj = Py_None; | |
4387 | } | |
4388 | return _resultobj; | |
4389 | } | |
4390 | ||
68320e40 RD |
4391 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4392 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4393 | PyObject * _resultobj; | |
4394 | wxStopWatch * _arg0; | |
4395 | PyObject * _argo0 = 0; | |
4396 | char *_kwnames[] = { "self", NULL }; | |
4397 | ||
4398 | self = self; | |
4399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4400 | return NULL; | |
4401 | if (_argo0) { | |
4402 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4403 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4404 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4405 | return NULL; | |
4406 | } | |
4407 | } | |
4408 | { | |
4409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4410 | delete_wxStopWatch(_arg0); |
68320e40 RD |
4411 | |
4412 | wxPyEndAllowThreads(__tstate); | |
4413 | if (PyErr_Occurred()) return NULL; | |
4414 | } Py_INCREF(Py_None); | |
4415 | _resultobj = Py_None; | |
4416 | return _resultobj; | |
4417 | } | |
4418 | ||
b37c7e1d RD |
4419 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4420 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4421 | PyObject * _resultobj; | |
4422 | wxStopWatch * _arg0; | |
4423 | long _arg1 = (long ) 0; | |
4424 | PyObject * _argo0 = 0; | |
4425 | char *_kwnames[] = { "self","t", NULL }; | |
4426 | ||
4427 | self = self; | |
4428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4429 | return NULL; | |
4430 | if (_argo0) { | |
4431 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4432 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4433 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4434 | return NULL; | |
4435 | } | |
4436 | } | |
4437 | { | |
4268f798 | 4438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4439 | wxStopWatch_Start(_arg0,_arg1); |
b37c7e1d | 4440 | |
4268f798 RD |
4441 | wxPyEndAllowThreads(__tstate); |
4442 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4443 | } Py_INCREF(Py_None); |
4444 | _resultobj = Py_None; | |
4445 | return _resultobj; | |
4446 | } | |
4447 | ||
4448 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4449 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4450 | PyObject * _resultobj; | |
4451 | wxStopWatch * _arg0; | |
4452 | PyObject * _argo0 = 0; | |
4453 | char *_kwnames[] = { "self", NULL }; | |
4454 | ||
4455 | self = self; | |
4456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4457 | return NULL; | |
4458 | if (_argo0) { | |
4459 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4460 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4461 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4462 | return NULL; | |
4463 | } | |
4464 | } | |
4465 | { | |
4268f798 | 4466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4467 | wxStopWatch_Pause(_arg0); |
b37c7e1d | 4468 | |
4268f798 RD |
4469 | wxPyEndAllowThreads(__tstate); |
4470 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4471 | } Py_INCREF(Py_None); |
4472 | _resultobj = Py_None; | |
4473 | return _resultobj; | |
4474 | } | |
4475 | ||
4476 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4477 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4478 | PyObject * _resultobj; | |
4479 | wxStopWatch * _arg0; | |
4480 | PyObject * _argo0 = 0; | |
4481 | char *_kwnames[] = { "self", NULL }; | |
4482 | ||
4483 | self = self; | |
4484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4485 | return NULL; | |
4486 | if (_argo0) { | |
4487 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4488 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4489 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4490 | return NULL; | |
4491 | } | |
4492 | } | |
4493 | { | |
4268f798 | 4494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4495 | wxStopWatch_Resume(_arg0); |
b37c7e1d | 4496 | |
4268f798 RD |
4497 | wxPyEndAllowThreads(__tstate); |
4498 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4499 | } Py_INCREF(Py_None); |
4500 | _resultobj = Py_None; | |
4501 | return _resultobj; | |
4502 | } | |
4503 | ||
4504 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4505 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4506 | PyObject * _resultobj; | |
4507 | long _result; | |
4508 | wxStopWatch * _arg0; | |
4509 | PyObject * _argo0 = 0; | |
4510 | char *_kwnames[] = { "self", NULL }; | |
4511 | ||
4512 | self = self; | |
4513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4514 | return NULL; | |
4515 | if (_argo0) { | |
4516 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4517 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4518 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4519 | return NULL; | |
4520 | } | |
4521 | } | |
4522 | { | |
4268f798 | 4523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4524 | _result = (long )wxStopWatch_Time(_arg0); |
b37c7e1d | 4525 | |
4268f798 RD |
4526 | wxPyEndAllowThreads(__tstate); |
4527 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4528 | } _resultobj = Py_BuildValue("l",_result); |
4529 | return _resultobj; | |
4530 | } | |
4531 | ||
f6bcfd97 BP |
4532 | #define new_wxLog() (new wxLog()) |
4533 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4534 | PyObject * _resultobj; |
f6bcfd97 BP |
4535 | wxLog * _result; |
4536 | char *_kwnames[] = { NULL }; | |
4537 | char _ptemp[128]; | |
f0261a72 RD |
4538 | |
4539 | self = self; | |
f6bcfd97 BP |
4540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4541 | return NULL; | |
f0261a72 | 4542 | { |
4268f798 | 4543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4544 | _result = (wxLog *)new_wxLog(); |
f6bcfd97 | 4545 | |
4268f798 RD |
4546 | wxPyEndAllowThreads(__tstate); |
4547 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4548 | } if (_result) { |
4549 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4550 | _resultobj = Py_BuildValue("s",_ptemp); | |
4551 | } else { | |
4552 | Py_INCREF(Py_None); | |
4553 | _resultobj = Py_None; | |
4554 | } | |
4555 | return _resultobj; | |
f0261a72 | 4556 | } |
f6bcfd97 BP |
4557 | |
4558 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4559 | PyObject * _resultobj; | |
4560 | bool _result; | |
4561 | char *_kwnames[] = { NULL }; | |
4562 | ||
4563 | self = self; | |
4564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4565 | return NULL; | |
f0261a72 | 4566 | { |
4268f798 | 4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4568 | _result = (bool )wxLog::IsEnabled(); |
f6bcfd97 | 4569 | |
4268f798 RD |
4570 | wxPyEndAllowThreads(__tstate); |
4571 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4572 | } _resultobj = Py_BuildValue("i",_result); |
4573 | return _resultobj; | |
f0261a72 | 4574 | } |
f6bcfd97 BP |
4575 | |
4576 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4577 | PyObject * _resultobj; | |
4578 | bool _result; | |
4579 | bool _arg0 = (bool ) TRUE; | |
4580 | int tempbool0 = (int) TRUE; | |
4581 | char *_kwnames[] = { "doIt", NULL }; | |
4582 | ||
4583 | self = self; | |
4584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4585 | return NULL; | |
4586 | _arg0 = (bool ) tempbool0; | |
4587 | { | |
4268f798 | 4588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4589 | _result = (bool )wxLog::EnableLogging(_arg0); |
f6bcfd97 | 4590 | |
4268f798 RD |
4591 | wxPyEndAllowThreads(__tstate); |
4592 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4593 | } _resultobj = Py_BuildValue("i",_result); |
4594 | return _resultobj; | |
4595 | } | |
4596 | ||
4597 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4598 | PyObject * _resultobj; | |
4599 | wxLogLevel * _arg0; | |
c8bc7bb8 | 4600 | wxString * _arg1; |
f6bcfd97 BP |
4601 | int _arg2 = (int ) 0; |
4602 | PyObject * _argo0 = 0; | |
c8bc7bb8 | 4603 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
4604 | char *_kwnames[] = { "level","szString","t", NULL }; |
4605 | ||
4606 | self = self; | |
c8bc7bb8 | 4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxLog_OnLog",_kwnames,&_argo0,&_obj1,&_arg2)) |
f0261a72 RD |
4608 | return NULL; |
4609 | if (_argo0) { | |
4610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) { |
4612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p."); | |
f0261a72 RD |
4613 | return NULL; |
4614 | } | |
4615 | } | |
c8bc7bb8 RD |
4616 | { |
4617 | _arg1 = wxString_in_helper(_obj1); | |
4618 | if (_arg1 == NULL) | |
4619 | return NULL; | |
4620 | } | |
f0261a72 | 4621 | { |
4268f798 | 4622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4623 | wxLog::OnLog(*_arg0,*_arg1,_arg2); |
f0261a72 | 4624 | |
4268f798 RD |
4625 | wxPyEndAllowThreads(__tstate); |
4626 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4627 | } Py_INCREF(Py_None); |
4628 | _resultobj = Py_None; | |
c8bc7bb8 RD |
4629 | { |
4630 | if (_obj1) | |
4631 | delete _arg1; | |
4632 | } | |
f6bcfd97 | 4633 | return _resultobj; |
f0261a72 | 4634 | } |
f6bcfd97 BP |
4635 | |
4636 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4637 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4638 | PyObject * _resultobj; | |
4639 | wxLog * _arg0; | |
4640 | PyObject * _argo0 = 0; | |
4641 | char *_kwnames[] = { "self", NULL }; | |
4642 | ||
4643 | self = self; | |
4644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4645 | return NULL; | |
4646 | if (_argo0) { | |
4647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4650 | return NULL; | |
4651 | } | |
4652 | } | |
f0261a72 | 4653 | { |
4268f798 | 4654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4655 | wxLog_Flush(_arg0); |
f6bcfd97 | 4656 | |
4268f798 RD |
4657 | wxPyEndAllowThreads(__tstate); |
4658 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4659 | } Py_INCREF(Py_None); |
4660 | _resultobj = Py_None; | |
f0261a72 RD |
4661 | return _resultobj; |
4662 | } | |
4663 | ||
f6bcfd97 BP |
4664 | #define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages()) |
4665 | static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4666 | PyObject * _resultobj; |
f6bcfd97 BP |
4667 | bool _result; |
4668 | wxLog * _arg0; | |
f0261a72 RD |
4669 | PyObject * _argo0 = 0; |
4670 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4671 | |
4672 | self = self; | |
f6bcfd97 | 4673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0)) |
f0261a72 RD |
4674 | return NULL; |
4675 | if (_argo0) { | |
4676 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4677 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p."); | |
f0261a72 RD |
4679 | return NULL; |
4680 | } | |
4681 | } | |
4682 | { | |
4268f798 | 4683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4684 | _result = (bool )wxLog_HasPendingMessages(_arg0); |
f0261a72 | 4685 | |
4268f798 RD |
4686 | wxPyEndAllowThreads(__tstate); |
4687 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 4688 | } _resultobj = Py_BuildValue("i",_result); |
f0261a72 RD |
4689 | return _resultobj; |
4690 | } | |
4691 | ||
f6bcfd97 | 4692 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4693 | PyObject * _resultobj; |
f6bcfd97 BP |
4694 | char *_kwnames[] = { NULL }; |
4695 | ||
4696 | self = self; | |
4697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4698 | return NULL; | |
4699 | { | |
4268f798 | 4700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4701 | wxLog::FlushActive(); |
f6bcfd97 | 4702 | |
4268f798 RD |
4703 | wxPyEndAllowThreads(__tstate); |
4704 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4705 | } Py_INCREF(Py_None); |
4706 | _resultobj = Py_None; | |
4707 | return _resultobj; | |
4708 | } | |
4709 | ||
4710 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4711 | PyObject * _resultobj; | |
4712 | wxLog * _result; | |
4713 | char *_kwnames[] = { NULL }; | |
4714 | char _ptemp[128]; | |
4715 | ||
4716 | self = self; | |
4717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
4718 | return NULL; | |
4719 | { | |
4268f798 | 4720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4721 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 4722 | |
4268f798 RD |
4723 | wxPyEndAllowThreads(__tstate); |
4724 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4725 | } if (_result) { |
4726 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4727 | _resultobj = Py_BuildValue("s",_ptemp); | |
4728 | } else { | |
4729 | Py_INCREF(Py_None); | |
4730 | _resultobj = Py_None; | |
4731 | } | |
4732 | return _resultobj; | |
4733 | } | |
4734 | ||
4735 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4736 | PyObject * _resultobj; | |
4737 | wxLog * _result; | |
4738 | wxLog * _arg0; | |
f0261a72 | 4739 | PyObject * _argo0 = 0; |
f6bcfd97 | 4740 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
4741 | char _ptemp[128]; |
4742 | ||
4743 | self = self; | |
f6bcfd97 | 4744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
4745 | return NULL; |
4746 | if (_argo0) { | |
4747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
4750 | return NULL; |
4751 | } | |
4752 | } | |
4753 | { | |
4268f798 | 4754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4755 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 4756 | |
4268f798 RD |
4757 | wxPyEndAllowThreads(__tstate); |
4758 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 4759 | } if (_result) { |
f6bcfd97 | 4760 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
4761 | _resultobj = Py_BuildValue("s",_ptemp); |
4762 | } else { | |
4763 | Py_INCREF(Py_None); | |
4764 | _resultobj = Py_None; | |
4765 | } | |
4766 | return _resultobj; | |
4767 | } | |
4768 | ||
f6bcfd97 | 4769 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4770 | PyObject * _resultobj; |
f6bcfd97 BP |
4771 | char *_kwnames[] = { NULL }; |
4772 | ||
4773 | self = self; | |
4774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
4775 | return NULL; | |
4776 | { | |
4268f798 | 4777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4778 | wxLog::Suspend(); |
f6bcfd97 | 4779 | |
4268f798 RD |
4780 | wxPyEndAllowThreads(__tstate); |
4781 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4782 | } Py_INCREF(Py_None); |
4783 | _resultobj = Py_None; | |
4784 | return _resultobj; | |
4785 | } | |
4786 | ||
4787 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4788 | PyObject * _resultobj; | |
4789 | char *_kwnames[] = { NULL }; | |
4790 | ||
4791 | self = self; | |
4792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
4793 | return NULL; | |
4794 | { | |
4268f798 | 4795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4796 | wxLog::Resume(); |
f6bcfd97 | 4797 | |
4268f798 RD |
4798 | wxPyEndAllowThreads(__tstate); |
4799 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4800 | } Py_INCREF(Py_None); |
4801 | _resultobj = Py_None; | |
4802 | return _resultobj; | |
4803 | } | |
4804 | ||
4805 | #define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0)) | |
4806 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4807 | PyObject * _resultobj; | |
4808 | wxLog * _arg0; | |
4809 | bool _arg1 = (bool ) TRUE; | |
f0261a72 | 4810 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
4811 | int tempbool1 = (int) TRUE; |
4812 | char *_kwnames[] = { "self","bVerbose", NULL }; | |
f0261a72 RD |
4813 | |
4814 | self = self; | |
f6bcfd97 | 4815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1)) |
f0261a72 RD |
4816 | return NULL; |
4817 | if (_argo0) { | |
4818 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4819 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
4820 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p."); | |
f0261a72 RD |
4821 | return NULL; |
4822 | } | |
4823 | } | |
f6bcfd97 | 4824 | _arg1 = (bool ) tempbool1; |
f0261a72 | 4825 | { |
4268f798 | 4826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4827 | wxLog_SetVerbose(_arg0,_arg1); |
f0261a72 | 4828 | |
4268f798 RD |
4829 | wxPyEndAllowThreads(__tstate); |
4830 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4831 | } Py_INCREF(Py_None); |
4832 | _resultobj = Py_None; | |
4833 | return _resultobj; | |
4834 | } | |
4835 | ||
f6bcfd97 | 4836 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4837 | PyObject * _resultobj; |
f6bcfd97 BP |
4838 | char *_kwnames[] = { NULL }; |
4839 | ||
4840 | self = self; | |
4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
4842 | return NULL; | |
4843 | { | |
4268f798 | 4844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4845 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 4846 | |
4268f798 RD |
4847 | wxPyEndAllowThreads(__tstate); |
4848 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4849 | } Py_INCREF(Py_None); |
4850 | _resultobj = Py_None; | |
4851 | return _resultobj; | |
4852 | } | |
4853 | ||
4854 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4855 | PyObject * _resultobj; | |
4856 | wxTraceMask * _arg0; | |
f0261a72 | 4857 | PyObject * _argo0 = 0; |
f6bcfd97 | 4858 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
4859 | |
4860 | self = self; | |
f6bcfd97 | 4861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0)) |
f0261a72 RD |
4862 | return NULL; |
4863 | if (_argo0) { | |
4864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) { |
4866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p."); | |
4867 | return NULL; | |
4868 | } | |
4869 | } | |
4870 | { | |
4268f798 | 4871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4872 | wxLog::SetTraceMask(*_arg0); |
f6bcfd97 | 4873 | |
4268f798 RD |
4874 | wxPyEndAllowThreads(__tstate); |
4875 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4876 | } Py_INCREF(Py_None); |
4877 | _resultobj = Py_None; | |
4878 | return _resultobj; | |
4879 | } | |
4880 | ||
4881 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4882 | PyObject * _resultobj; | |
4883 | wxString * _arg0; | |
4884 | PyObject * _obj0 = 0; | |
4885 | char *_kwnames[] = { "str", NULL }; | |
4886 | ||
4887 | self = self; | |
4888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
4889 | return NULL; | |
4890 | { | |
c8bc7bb8 RD |
4891 | _arg0 = wxString_in_helper(_obj0); |
4892 | if (_arg0 == NULL) | |
f6bcfd97 | 4893 | return NULL; |
f6bcfd97 BP |
4894 | } |
4895 | { | |
4268f798 | 4896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4897 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 4898 | |
4268f798 RD |
4899 | wxPyEndAllowThreads(__tstate); |
4900 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4901 | } Py_INCREF(Py_None); |
4902 | _resultobj = Py_None; | |
4903 | { | |
4904 | if (_obj0) | |
4905 | delete _arg0; | |
4906 | } | |
4907 | return _resultobj; | |
4908 | } | |
4909 | ||
4910 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4911 | PyObject * _resultobj; | |
4912 | wxString * _arg0; | |
4913 | PyObject * _obj0 = 0; | |
4914 | char *_kwnames[] = { "str", NULL }; | |
4915 | ||
4916 | self = self; | |
4917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 4918 | return NULL; |
f0261a72 | 4919 | { |
c8bc7bb8 RD |
4920 | _arg0 = wxString_in_helper(_obj0); |
4921 | if (_arg0 == NULL) | |
185d7c3e | 4922 | return NULL; |
f0261a72 RD |
4923 | } |
4924 | { | |
4268f798 | 4925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4926 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 4927 | |
4268f798 RD |
4928 | wxPyEndAllowThreads(__tstate); |
4929 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4930 | } Py_INCREF(Py_None); |
4931 | _resultobj = Py_None; | |
f6bcfd97 BP |
4932 | { |
4933 | if (_obj0) | |
4934 | delete _arg0; | |
4935 | } | |
f0261a72 RD |
4936 | return _resultobj; |
4937 | } | |
4938 | ||
76bfdc78 RD |
4939 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
4940 | PyObject * _resultobj; | |
4941 | char *_kwnames[] = { NULL }; | |
4942 | ||
4943 | self = self; | |
4944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
4945 | return NULL; | |
4946 | { | |
4268f798 | 4947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4948 | wxLog::ClearTraceMasks(); |
76bfdc78 | 4949 | |
4268f798 RD |
4950 | wxPyEndAllowThreads(__tstate); |
4951 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4952 | } Py_INCREF(Py_None); |
4953 | _resultobj = Py_None; | |
4954 | return _resultobj; | |
4955 | } | |
4956 | ||
4957 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4958 | PyObject * _resultobj; | |
4959 | wxChar * _arg0; | |
4960 | char *_kwnames[] = { "ts", NULL }; | |
4961 | ||
4962 | self = self; | |
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0)) | |
4964 | return NULL; | |
4965 | { | |
4268f798 | 4966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4967 | wxLog::SetTimestamp(_arg0); |
76bfdc78 | 4968 | |
4268f798 RD |
4969 | wxPyEndAllowThreads(__tstate); |
4970 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4971 | } Py_INCREF(Py_None); |
4972 | _resultobj = Py_None; | |
4973 | return _resultobj; | |
4974 | } | |
4975 | ||
4976 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4977 | PyObject * _resultobj; | |
4978 | wxChar * _result; | |
4979 | char *_kwnames[] = { NULL }; | |
4980 | ||
4981 | self = self; | |
4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
4983 | return NULL; | |
4984 | { | |
4268f798 | 4985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4986 | _result = (wxChar *)wxLog::GetTimestamp(); |
76bfdc78 | 4987 | |
4268f798 RD |
4988 | wxPyEndAllowThreads(__tstate); |
4989 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
4990 | } _resultobj = Py_BuildValue("s", _result); |
4991 | return _resultobj; | |
4992 | } | |
4993 | ||
f6bcfd97 BP |
4994 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
4995 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 4996 | PyObject * _resultobj; |
f6bcfd97 BP |
4997 | bool _result; |
4998 | wxLog * _arg0; | |
a1df7a95 | 4999 | PyObject * _argo0 = 0; |
f6bcfd97 | 5000 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5001 | |
5002 | self = self; | |
f6bcfd97 | 5003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5004 | return NULL; |
5005 | if (_argo0) { | |
5006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5009 | return NULL; |
5010 | } | |
5011 | } | |
5012 | { | |
4268f798 | 5013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5014 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5015 | |
4268f798 RD |
5016 | wxPyEndAllowThreads(__tstate); |
5017 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5018 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5019 | return _resultobj; |
5020 | } | |
5021 | ||
f6bcfd97 | 5022 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5023 | PyObject * _resultobj; |
f6bcfd97 BP |
5024 | wxTraceMask * _result; |
5025 | char *_kwnames[] = { NULL }; | |
5026 | char _ptemp[128]; | |
a1df7a95 RD |
5027 | |
5028 | self = self; | |
f6bcfd97 | 5029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5030 | return NULL; |
a1df7a95 | 5031 | { |
4268f798 | 5032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5033 | _result = new wxTraceMask (wxLog::GetTraceMask()); |
f6bcfd97 | 5034 | |
4268f798 RD |
5035 | wxPyEndAllowThreads(__tstate); |
5036 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5037 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p"); |
5038 | _resultobj = Py_BuildValue("s",_ptemp); | |
5039 | return _resultobj; | |
a1df7a95 | 5040 | } |
f6bcfd97 BP |
5041 | |
5042 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5043 | PyObject * _resultobj; | |
5044 | bool _result; | |
c8bc7bb8 RD |
5045 | wxString * _arg0; |
5046 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5047 | char *_kwnames[] = { "mask", NULL }; |
5048 | ||
5049 | self = self; | |
c8bc7bb8 | 5050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5051 | return NULL; |
c8bc7bb8 RD |
5052 | { |
5053 | _arg0 = wxString_in_helper(_obj0); | |
5054 | if (_arg0 == NULL) | |
5055 | return NULL; | |
5056 | } | |
a1df7a95 | 5057 | { |
4268f798 | 5058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5059 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5060 | |
4268f798 RD |
5061 | wxPyEndAllowThreads(__tstate); |
5062 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5063 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5064 | { |
5065 | if (_obj0) | |
5066 | delete _arg0; | |
5067 | } | |
a1df7a95 RD |
5068 | return _resultobj; |
5069 | } | |
5070 | ||
76bfdc78 RD |
5071 | static wxString wxLog_TimeStamp(wxLog *self) { |
5072 | wxString msg; | |
5073 | wxLog::TimeStamp(&msg); | |
5074 | return msg; | |
5075 | } | |
5076 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject * _resultobj; | |
5078 | wxString * _result; | |
5079 | wxLog * _arg0; | |
5080 | PyObject * _argo0 = 0; | |
5081 | char *_kwnames[] = { "self", NULL }; | |
5082 | ||
5083 | self = self; | |
5084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5085 | return NULL; | |
5086 | if (_argo0) { | |
5087 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5088 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5089 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5090 | return NULL; | |
5091 | } | |
5092 | } | |
5093 | { | |
4268f798 | 5094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5095 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5096 | |
4268f798 RD |
5097 | wxPyEndAllowThreads(__tstate); |
5098 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5099 | }{ |
c8bc7bb8 RD |
5100 | #if wxUSE_UNICODE |
5101 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
5102 | #else | |
76bfdc78 | 5103 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5104 | #endif |
76bfdc78 RD |
5105 | } |
5106 | { | |
5107 | delete _result; | |
5108 | } | |
5109 | return _resultobj; | |
5110 | } | |
5111 | ||
f6bcfd97 BP |
5112 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5113 | wxLogStderr *src; | |
5114 | wxLog *dest; | |
5115 | src = (wxLogStderr *) ptr; | |
5116 | dest = (wxLog *) src; | |
5117 | return (void *) dest; | |
5118 | } | |
5119 | ||
5120 | #define new_wxLogStderr() (new wxLogStderr()) | |
5121 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5122 | PyObject * _resultobj; |
f6bcfd97 BP |
5123 | wxLogStderr * _result; |
5124 | char *_kwnames[] = { NULL }; | |
5125 | char _ptemp[128]; | |
f0261a72 RD |
5126 | |
5127 | self = self; | |
f6bcfd97 | 5128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5129 | return NULL; |
f0261a72 | 5130 | { |
4268f798 | 5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5132 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5133 | |
4268f798 RD |
5134 | wxPyEndAllowThreads(__tstate); |
5135 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5136 | } if (_result) { |
5137 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5138 | _resultobj = Py_BuildValue("s",_ptemp); | |
5139 | } else { | |
5140 | Py_INCREF(Py_None); | |
5141 | _resultobj = Py_None; | |
5142 | } | |
f0261a72 RD |
5143 | return _resultobj; |
5144 | } | |
5145 | ||
f6bcfd97 BP |
5146 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5147 | wxLogTextCtrl *src; | |
5148 | wxLog *dest; | |
5149 | src = (wxLogTextCtrl *) ptr; | |
5150 | dest = (wxLog *) src; | |
5151 | return (void *) dest; | |
5152 | } | |
5153 | ||
5154 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5155 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5156 | PyObject * _resultobj; |
f6bcfd97 BP |
5157 | wxLogTextCtrl * _result; |
5158 | wxTextCtrl * _arg0; | |
f0261a72 | 5159 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5160 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5161 | char _ptemp[128]; | |
f0261a72 RD |
5162 | |
5163 | self = self; | |
f6bcfd97 | 5164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5165 | return NULL; |
5166 | if (_argo0) { | |
5167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5170 | return NULL; |
5171 | } | |
5172 | } | |
5173 | { | |
4268f798 | 5174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5175 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5176 | |
4268f798 RD |
5177 | wxPyEndAllowThreads(__tstate); |
5178 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5179 | } if (_result) { |
5180 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5181 | _resultobj = Py_BuildValue("s",_ptemp); | |
5182 | } else { | |
5183 | Py_INCREF(Py_None); | |
5184 | _resultobj = Py_None; | |
5185 | } | |
f0261a72 RD |
5186 | return _resultobj; |
5187 | } | |
5188 | ||
f6bcfd97 BP |
5189 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5190 | wxLogGui *src; | |
5191 | wxLog *dest; | |
5192 | src = (wxLogGui *) ptr; | |
5193 | dest = (wxLog *) src; | |
5194 | return (void *) dest; | |
5195 | } | |
5196 | ||
5197 | #define new_wxLogGui() (new wxLogGui()) | |
5198 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5199 | PyObject * _resultobj; |
f6bcfd97 | 5200 | wxLogGui * _result; |
b1462dfa RD |
5201 | char *_kwnames[] = { NULL }; |
5202 | char _ptemp[128]; | |
5203 | ||
5204 | self = self; | |
f6bcfd97 | 5205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5206 | return NULL; |
5207 | { | |
4268f798 | 5208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5209 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5210 | |
4268f798 RD |
5211 | wxPyEndAllowThreads(__tstate); |
5212 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5213 | } if (_result) { |
f6bcfd97 | 5214 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5215 | _resultobj = Py_BuildValue("s",_ptemp); |
5216 | } else { | |
5217 | Py_INCREF(Py_None); | |
5218 | _resultobj = Py_None; | |
5219 | } | |
5220 | return _resultobj; | |
5221 | } | |
5222 | ||
f6bcfd97 BP |
5223 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5224 | wxLogWindow *src; | |
5225 | wxLog *dest; | |
5226 | src = (wxLogWindow *) ptr; | |
5227 | dest = (wxLog *) src; | |
5228 | return (void *) dest; | |
5229 | } | |
5230 | ||
5231 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5232 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5233 | PyObject * _resultobj; |
f6bcfd97 BP |
5234 | wxLogWindow * _result; |
5235 | wxFrame * _arg0; | |
c8bc7bb8 | 5236 | wxString * _arg1; |
f6bcfd97 BP |
5237 | bool _arg2 = (bool ) TRUE; |
5238 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5239 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5240 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5241 | int tempbool2 = (int) TRUE; |
5242 | int tempbool3 = (int) TRUE; | |
5243 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5244 | char _ptemp[128]; | |
b1462dfa RD |
5245 | |
5246 | self = self; | |
c8bc7bb8 | 5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5248 | return NULL; |
5249 | if (_argo0) { | |
5250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5253 | return NULL; |
5254 | } | |
5255 | } | |
c8bc7bb8 RD |
5256 | { |
5257 | _arg1 = wxString_in_helper(_obj1); | |
5258 | if (_arg1 == NULL) | |
5259 | return NULL; | |
5260 | } | |
f6bcfd97 BP |
5261 | _arg2 = (bool ) tempbool2; |
5262 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5263 | { |
4268f798 | 5264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5265 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5266 | |
4268f798 RD |
5267 | wxPyEndAllowThreads(__tstate); |
5268 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5269 | } if (_result) { |
5270 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5271 | _resultobj = Py_BuildValue("s",_ptemp); | |
5272 | } else { | |
5273 | Py_INCREF(Py_None); | |
5274 | _resultobj = Py_None; | |
5275 | } | |
c8bc7bb8 RD |
5276 | { |
5277 | if (_obj1) | |
5278 | delete _arg1; | |
5279 | } | |
b1462dfa RD |
5280 | return _resultobj; |
5281 | } | |
5282 | ||
f6bcfd97 BP |
5283 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5284 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5285 | PyObject * _resultobj; |
f6bcfd97 BP |
5286 | wxLogWindow * _arg0; |
5287 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5288 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5289 | int tempbool1 = (int) TRUE; |
5290 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5291 | |
5292 | self = self; | |
f6bcfd97 | 5293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5294 | return NULL; |
5295 | if (_argo0) { | |
5296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5299 | return NULL; |
5300 | } | |
5301 | } | |
f6bcfd97 | 5302 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5303 | { |
4268f798 | 5304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5305 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5306 | |
4268f798 RD |
5307 | wxPyEndAllowThreads(__tstate); |
5308 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5309 | } Py_INCREF(Py_None); |
5310 | _resultobj = Py_None; | |
5311 | return _resultobj; | |
5312 | } | |
5313 | ||
f6bcfd97 BP |
5314 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5315 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5316 | PyObject * _resultobj; |
f6bcfd97 BP |
5317 | wxFrame * _result; |
5318 | wxLogWindow * _arg0; | |
b1462dfa | 5319 | PyObject * _argo0 = 0; |
f6bcfd97 | 5320 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5321 | |
5322 | self = self; | |
f6bcfd97 | 5323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5324 | return NULL; |
5325 | if (_argo0) { | |
5326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5329 | return NULL; |
5330 | } | |
5331 | } | |
b1462dfa | 5332 | { |
4268f798 | 5333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5334 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5335 | |
4268f798 RD |
5336 | wxPyEndAllowThreads(__tstate); |
5337 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5338 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5339 | return _resultobj; |
5340 | } | |
5341 | ||
f6bcfd97 BP |
5342 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5343 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5344 | PyObject * _resultobj; |
f6bcfd97 BP |
5345 | wxLog * _result; |
5346 | wxLogWindow * _arg0; | |
b1462dfa | 5347 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5348 | char *_kwnames[] = { "self", NULL }; |
5349 | char _ptemp[128]; | |
b1462dfa RD |
5350 | |
5351 | self = self; | |
f6bcfd97 | 5352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5353 | return NULL; |
5354 | if (_argo0) { | |
5355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5358 | return NULL; |
5359 | } | |
5360 | } | |
5361 | { | |
4268f798 | 5362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5363 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5364 | |
4268f798 RD |
5365 | wxPyEndAllowThreads(__tstate); |
5366 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5367 | } if (_result) { |
5368 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5369 | _resultobj = Py_BuildValue("s",_ptemp); | |
5370 | } else { | |
5371 | Py_INCREF(Py_None); | |
5372 | _resultobj = Py_None; | |
5373 | } | |
b1462dfa RD |
5374 | return _resultobj; |
5375 | } | |
5376 | ||
f6bcfd97 BP |
5377 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5378 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5379 | PyObject * _resultobj; |
f6bcfd97 BP |
5380 | bool _result; |
5381 | wxLogWindow * _arg0; | |
65dd82cb RD |
5382 | PyObject * _argo0 = 0; |
5383 | char *_kwnames[] = { "self", NULL }; | |
5384 | ||
5385 | self = self; | |
f6bcfd97 | 5386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5387 | return NULL; |
5388 | if (_argo0) { | |
5389 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5390 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5391 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5392 | return NULL; |
5393 | } | |
5394 | } | |
5395 | { | |
4268f798 | 5396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5397 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5398 | |
4268f798 RD |
5399 | wxPyEndAllowThreads(__tstate); |
5400 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5401 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5402 | return _resultobj; |
5403 | } | |
5404 | ||
f6bcfd97 BP |
5405 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5406 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5407 | PyObject * _resultobj; |
f6bcfd97 BP |
5408 | wxLogWindow * _arg0; |
5409 | bool _arg1; | |
65dd82cb | 5410 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5411 | int tempbool1; |
5412 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5413 | |
5414 | self = self; | |
f6bcfd97 | 5415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5416 | return NULL; |
5417 | if (_argo0) { | |
5418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5421 | return NULL; |
5422 | } | |
5423 | } | |
f6bcfd97 | 5424 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5425 | { |
4268f798 | 5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5427 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5428 | |
4268f798 RD |
5429 | wxPyEndAllowThreads(__tstate); |
5430 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5431 | } Py_INCREF(Py_None); |
5432 | _resultobj = Py_None; | |
65dd82cb RD |
5433 | return _resultobj; |
5434 | } | |
5435 | ||
f6bcfd97 BP |
5436 | #define new_wxLogNull() (new wxLogNull()) |
5437 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 5438 | PyObject * _resultobj; |
f6bcfd97 BP |
5439 | wxLogNull * _result; |
5440 | char *_kwnames[] = { NULL }; | |
2abc0a0f RD |
5441 | char _ptemp[128]; |
5442 | ||
5443 | self = self; | |
f6bcfd97 | 5444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) |
2abc0a0f | 5445 | return NULL; |
2abc0a0f | 5446 | { |
4268f798 | 5447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5448 | _result = (wxLogNull *)new_wxLogNull(); |
2abc0a0f | 5449 | |
4268f798 RD |
5450 | wxPyEndAllowThreads(__tstate); |
5451 | if (PyErr_Occurred()) return NULL; | |
2abc0a0f | 5452 | } if (_result) { |
f6bcfd97 | 5453 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); |
2abc0a0f RD |
5454 | _resultobj = Py_BuildValue("s",_ptemp); |
5455 | } else { | |
5456 | Py_INCREF(Py_None); | |
5457 | _resultobj = Py_None; | |
5458 | } | |
5459 | return _resultobj; | |
5460 | } | |
5461 | ||
f6bcfd97 BP |
5462 | #define delete_wxLogNull(_swigobj) (delete _swigobj) |
5463 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2abc0a0f | 5464 | PyObject * _resultobj; |
f6bcfd97 | 5465 | wxLogNull * _arg0; |
2abc0a0f RD |
5466 | PyObject * _argo0 = 0; |
5467 | char *_kwnames[] = { "self", NULL }; | |
5468 | ||
5469 | self = self; | |
f6bcfd97 | 5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) |
2abc0a0f RD |
5471 | return NULL; |
5472 | if (_argo0) { | |
5473 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5474 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { |
5475 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
2abc0a0f RD |
5476 | return NULL; |
5477 | } | |
5478 | } | |
5479 | { | |
4268f798 | 5480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5481 | delete_wxLogNull(_arg0); |
2abc0a0f | 5482 | |
4268f798 RD |
5483 | wxPyEndAllowThreads(__tstate); |
5484 | if (PyErr_Occurred()) return NULL; | |
2abc0a0f RD |
5485 | } Py_INCREF(Py_None); |
5486 | _resultobj = Py_None; | |
5487 | return _resultobj; | |
5488 | } | |
5489 | ||
76bfdc78 RD |
5490 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5491 | wxLogChain *src; | |
5492 | wxLog *dest; | |
5493 | src = (wxLogChain *) ptr; | |
5494 | dest = (wxLog *) src; | |
5495 | return (void *) dest; | |
5496 | } | |
5497 | ||
5498 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5499 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5500 | PyObject * _resultobj; | |
5501 | wxLogChain * _result; | |
5502 | wxLog * _arg0; | |
5503 | PyObject * _argo0 = 0; | |
5504 | char *_kwnames[] = { "logger", NULL }; | |
5505 | char _ptemp[128]; | |
5506 | ||
5507 | self = self; | |
5508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5509 | return NULL; | |
5510 | if (_argo0) { | |
5511 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5512 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5513 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5514 | return NULL; | |
5515 | } | |
5516 | } | |
5517 | { | |
4268f798 | 5518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5519 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5520 | |
4268f798 RD |
5521 | wxPyEndAllowThreads(__tstate); |
5522 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5523 | } if (_result) { |
5524 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5525 | _resultobj = Py_BuildValue("s",_ptemp); | |
5526 | } else { | |
5527 | Py_INCREF(Py_None); | |
5528 | _resultobj = Py_None; | |
5529 | } | |
5530 | return _resultobj; | |
5531 | } | |
5532 | ||
5533 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5534 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5535 | PyObject * _resultobj; | |
5536 | wxLogChain * _arg0; | |
5537 | wxLog * _arg1; | |
5538 | PyObject * _argo0 = 0; | |
5539 | PyObject * _argo1 = 0; | |
5540 | char *_kwnames[] = { "self","logger", NULL }; | |
5541 | ||
5542 | self = self; | |
5543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5544 | return NULL; | |
5545 | if (_argo0) { | |
5546 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5547 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5548 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5549 | return NULL; | |
5550 | } | |
5551 | } | |
5552 | if (_argo1) { | |
5553 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5554 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5556 | return NULL; | |
5557 | } | |
5558 | } | |
5559 | { | |
4268f798 | 5560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5561 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5562 | |
4268f798 RD |
5563 | wxPyEndAllowThreads(__tstate); |
5564 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5565 | } Py_INCREF(Py_None); |
5566 | _resultobj = Py_None; | |
5567 | return _resultobj; | |
5568 | } | |
5569 | ||
5570 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5571 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5572 | PyObject * _resultobj; | |
5573 | wxLogChain * _arg0; | |
5574 | bool _arg1; | |
5575 | PyObject * _argo0 = 0; | |
5576 | int tempbool1; | |
5577 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5578 | ||
5579 | self = self; | |
5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5581 | return NULL; | |
5582 | if (_argo0) { | |
5583 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5584 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5585 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5586 | return NULL; | |
5587 | } | |
5588 | } | |
5589 | _arg1 = (bool ) tempbool1; | |
5590 | { | |
4268f798 | 5591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5592 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5593 | |
4268f798 RD |
5594 | wxPyEndAllowThreads(__tstate); |
5595 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5596 | } Py_INCREF(Py_None); |
5597 | _resultobj = Py_None; | |
5598 | return _resultobj; | |
5599 | } | |
5600 | ||
5601 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5602 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5603 | PyObject * _resultobj; | |
5604 | bool _result; | |
5605 | wxLogChain * _arg0; | |
5606 | PyObject * _argo0 = 0; | |
5607 | char *_kwnames[] = { "self", NULL }; | |
5608 | ||
5609 | self = self; | |
5610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5611 | return NULL; | |
5612 | if (_argo0) { | |
5613 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5614 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5615 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5616 | return NULL; | |
5617 | } | |
5618 | } | |
5619 | { | |
4268f798 | 5620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5621 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5622 | |
4268f798 RD |
5623 | wxPyEndAllowThreads(__tstate); |
5624 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5625 | } _resultobj = Py_BuildValue("i",_result); |
5626 | return _resultobj; | |
5627 | } | |
5628 | ||
5629 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5630 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5631 | PyObject * _resultobj; | |
5632 | wxLog * _result; | |
5633 | wxLogChain * _arg0; | |
5634 | PyObject * _argo0 = 0; | |
5635 | char *_kwnames[] = { "self", NULL }; | |
5636 | char _ptemp[128]; | |
5637 | ||
5638 | self = self; | |
5639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5640 | return NULL; | |
5641 | if (_argo0) { | |
5642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5645 | return NULL; | |
5646 | } | |
5647 | } | |
5648 | { | |
4268f798 | 5649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5650 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5651 | |
4268f798 RD |
5652 | wxPyEndAllowThreads(__tstate); |
5653 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5654 | } if (_result) { |
5655 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5656 | _resultobj = Py_BuildValue("s",_ptemp); | |
5657 | } else { | |
5658 | Py_INCREF(Py_None); | |
5659 | _resultobj = Py_None; | |
5660 | } | |
5661 | return _resultobj; | |
5662 | } | |
5663 | ||
5664 | static void *SwigwxPyLogTowxLog(void *ptr) { | |
5665 | wxPyLog *src; | |
5666 | wxLog *dest; | |
5667 | src = (wxPyLog *) ptr; | |
5668 | dest = (wxLog *) src; | |
5669 | return (void *) dest; | |
5670 | } | |
5671 | ||
5672 | #define new_wxPyLog() (new wxPyLog()) | |
5673 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5674 | PyObject * _resultobj; | |
5675 | wxPyLog * _result; | |
5676 | char *_kwnames[] = { NULL }; | |
5677 | char _ptemp[128]; | |
5678 | ||
5679 | self = self; | |
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
5681 | return NULL; | |
5682 | { | |
4268f798 | 5683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5684 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 5685 | |
4268f798 RD |
5686 | wxPyEndAllowThreads(__tstate); |
5687 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5688 | } if (_result) { |
5689 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
5690 | _resultobj = Py_BuildValue("s",_ptemp); | |
5691 | } else { | |
5692 | Py_INCREF(Py_None); | |
5693 | _resultobj = Py_None; | |
5694 | } | |
5695 | return _resultobj; | |
5696 | } | |
5697 | ||
0122b7e3 RD |
5698 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
5699 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
5700 | PyObject * _resultobj; |
5701 | wxPyLog * _arg0; | |
5702 | PyObject * _arg1; | |
5703 | PyObject * _arg2; | |
5704 | PyObject * _argo0 = 0; | |
5705 | PyObject * _obj1 = 0; | |
5706 | PyObject * _obj2 = 0; | |
5707 | char *_kwnames[] = { "self","self","_class", NULL }; | |
5708 | ||
5709 | self = self; | |
0122b7e3 | 5710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
5711 | return NULL; |
5712 | if (_argo0) { | |
5713 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5714 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 5715 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
5716 | return NULL; |
5717 | } | |
5718 | } | |
5719 | { | |
5720 | _arg1 = _obj1; | |
5721 | } | |
5722 | { | |
5723 | _arg2 = _obj2; | |
5724 | } | |
5725 | { | |
4268f798 | 5726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5727 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 5728 | |
4268f798 RD |
5729 | wxPyEndAllowThreads(__tstate); |
5730 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5731 | } Py_INCREF(Py_None); |
5732 | _resultobj = Py_None; | |
5733 | return _resultobj; | |
5734 | } | |
5735 | ||
5736 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
5737 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5738 | PyObject * _resultobj; | |
5739 | wxPyLog * _arg0; | |
5740 | PyObject * _argo0 = 0; | |
5741 | char *_kwnames[] = { "self", NULL }; | |
5742 | ||
5743 | self = self; | |
5744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
5745 | return NULL; | |
5746 | if (_argo0) { | |
5747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
5749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
5750 | return NULL; | |
5751 | } | |
5752 | } | |
5753 | { | |
4268f798 | 5754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5755 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 5756 | |
4268f798 RD |
5757 | wxPyEndAllowThreads(__tstate); |
5758 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5759 | } Py_INCREF(Py_None); |
5760 | _resultobj = Py_None; | |
5761 | return _resultobj; | |
5762 | } | |
5763 | ||
c368d904 RD |
5764 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
5765 | wxProcessEvent *src; | |
5766 | wxEvent *dest; | |
5767 | src = (wxProcessEvent *) ptr; | |
5768 | dest = (wxEvent *) src; | |
5769 | return (void *) dest; | |
5770 | } | |
5771 | ||
9416aa89 RD |
5772 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
5773 | wxProcessEvent *src; | |
5774 | wxObject *dest; | |
5775 | src = (wxProcessEvent *) ptr; | |
5776 | dest = (wxObject *) src; | |
5777 | return (void *) dest; | |
5778 | } | |
5779 | ||
c368d904 RD |
5780 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
5781 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5782 | PyObject * _resultobj; | |
5783 | wxProcessEvent * _result; | |
5784 | int _arg0 = (int ) 0; | |
5785 | int _arg1 = (int ) 0; | |
5786 | int _arg2 = (int ) 0; | |
5787 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
5788 | char _ptemp[128]; | |
5789 | ||
5790 | self = self; | |
5791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
5792 | return NULL; | |
5793 | { | |
4268f798 | 5794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5795 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 5796 | |
4268f798 RD |
5797 | wxPyEndAllowThreads(__tstate); |
5798 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5799 | } if (_result) { |
5800 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
5801 | _resultobj = Py_BuildValue("s",_ptemp); | |
5802 | } else { | |
5803 | Py_INCREF(Py_None); | |
5804 | _resultobj = Py_None; | |
5805 | } | |
5806 | return _resultobj; | |
5807 | } | |
5808 | ||
5809 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
5810 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5811 | PyObject * _resultobj; | |
5812 | int _result; | |
5813 | wxProcessEvent * _arg0; | |
5814 | PyObject * _argo0 = 0; | |
5815 | char *_kwnames[] = { "self", NULL }; | |
5816 | ||
5817 | self = self; | |
5818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
5819 | return NULL; | |
5820 | if (_argo0) { | |
5821 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5822 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5823 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
5824 | return NULL; | |
5825 | } | |
5826 | } | |
5827 | { | |
4268f798 | 5828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5829 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 5830 | |
4268f798 RD |
5831 | wxPyEndAllowThreads(__tstate); |
5832 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5833 | } _resultobj = Py_BuildValue("i",_result); |
5834 | return _resultobj; | |
5835 | } | |
5836 | ||
5837 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
5838 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject * _resultobj; | |
5840 | int _result; | |
5841 | wxProcessEvent * _arg0; | |
5842 | PyObject * _argo0 = 0; | |
5843 | char *_kwnames[] = { "self", NULL }; | |
5844 | ||
5845 | self = self; | |
5846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
5847 | return NULL; | |
5848 | if (_argo0) { | |
5849 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5850 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5851 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
5852 | return NULL; | |
5853 | } | |
5854 | } | |
5855 | { | |
4268f798 | 5856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5857 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 5858 | |
4268f798 RD |
5859 | wxPyEndAllowThreads(__tstate); |
5860 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5861 | } _resultobj = Py_BuildValue("i",_result); |
5862 | return _resultobj; | |
5863 | } | |
5864 | ||
5865 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
5866 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5867 | PyObject * _resultobj; | |
5868 | int _result; | |
5869 | wxProcessEvent * _arg0; | |
5870 | int _arg1; | |
5871 | PyObject * _argo0 = 0; | |
5872 | char *_kwnames[] = { "self","m_pid", NULL }; | |
5873 | ||
5874 | self = self; | |
5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
5876 | return NULL; | |
5877 | if (_argo0) { | |
5878 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5879 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5880 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
5881 | return NULL; | |
5882 | } | |
5883 | } | |
5884 | { | |
4268f798 | 5885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5886 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 5887 | |
4268f798 RD |
5888 | wxPyEndAllowThreads(__tstate); |
5889 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5890 | } _resultobj = Py_BuildValue("i",_result); |
5891 | return _resultobj; | |
5892 | } | |
5893 | ||
5894 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
5895 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5896 | PyObject * _resultobj; | |
5897 | int _result; | |
5898 | wxProcessEvent * _arg0; | |
5899 | PyObject * _argo0 = 0; | |
5900 | char *_kwnames[] = { "self", NULL }; | |
5901 | ||
5902 | self = self; | |
5903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
5904 | return NULL; | |
5905 | if (_argo0) { | |
5906 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5907 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5908 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
5909 | return NULL; | |
5910 | } | |
5911 | } | |
5912 | { | |
4268f798 | 5913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5914 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 5915 | |
4268f798 RD |
5916 | wxPyEndAllowThreads(__tstate); |
5917 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5918 | } _resultobj = Py_BuildValue("i",_result); |
5919 | return _resultobj; | |
5920 | } | |
5921 | ||
5922 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
5923 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5924 | PyObject * _resultobj; | |
5925 | int _result; | |
5926 | wxProcessEvent * _arg0; | |
5927 | int _arg1; | |
5928 | PyObject * _argo0 = 0; | |
5929 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
5930 | ||
5931 | self = self; | |
5932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
5933 | return NULL; | |
5934 | if (_argo0) { | |
5935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
5938 | return NULL; | |
5939 | } | |
5940 | } | |
5941 | { | |
4268f798 | 5942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5943 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 5944 | |
4268f798 RD |
5945 | wxPyEndAllowThreads(__tstate); |
5946 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5947 | } _resultobj = Py_BuildValue("i",_result); |
5948 | return _resultobj; | |
5949 | } | |
5950 | ||
5951 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
5952 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5953 | PyObject * _resultobj; | |
5954 | int _result; | |
5955 | wxProcessEvent * _arg0; | |
5956 | PyObject * _argo0 = 0; | |
5957 | char *_kwnames[] = { "self", NULL }; | |
5958 | ||
5959 | self = self; | |
5960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
5961 | return NULL; | |
5962 | if (_argo0) { | |
5963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
5965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
5966 | return NULL; | |
5967 | } | |
5968 | } | |
5969 | { | |
4268f798 | 5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5971 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 5972 | |
4268f798 RD |
5973 | wxPyEndAllowThreads(__tstate); |
5974 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
5975 | } _resultobj = Py_BuildValue("i",_result); |
5976 | return _resultobj; | |
5977 | } | |
5978 | ||
5979 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
5980 | wxPyProcess *src; | |
5981 | wxEvtHandler *dest; | |
5982 | src = (wxPyProcess *) ptr; | |
5983 | dest = (wxEvtHandler *) src; | |
5984 | return (void *) dest; | |
5985 | } | |
5986 | ||
9416aa89 RD |
5987 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
5988 | wxPyProcess *src; | |
5989 | wxObject *dest; | |
5990 | src = (wxPyProcess *) ptr; | |
5991 | dest = (wxObject *) src; | |
5992 | return (void *) dest; | |
5993 | } | |
5994 | ||
c368d904 RD |
5995 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
5996 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5997 | PyObject * _resultobj; | |
5998 | wxPyProcess * _result; | |
5999 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6000 | int _arg1 = (int ) -1; | |
6001 | PyObject * _argo0 = 0; | |
6002 | char *_kwnames[] = { "parent","id", NULL }; | |
6003 | char _ptemp[128]; | |
6004 | ||
6005 | self = self; | |
6006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6007 | return NULL; | |
6008 | if (_argo0) { | |
6009 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6010 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6011 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6012 | return NULL; | |
6013 | } | |
6014 | } | |
6015 | { | |
4268f798 | 6016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6017 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 6018 | |
4268f798 RD |
6019 | wxPyEndAllowThreads(__tstate); |
6020 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6021 | } if (_result) { |
6022 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6023 | _resultobj = Py_BuildValue("s",_ptemp); | |
6024 | } else { | |
6025 | Py_INCREF(Py_None); | |
6026 | _resultobj = Py_None; | |
6027 | } | |
6028 | return _resultobj; | |
6029 | } | |
6030 | ||
6031 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6032 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6033 | PyObject * _resultobj; | |
6034 | wxPyProcess * _arg0; | |
6035 | PyObject * _argo0 = 0; | |
6036 | char *_kwnames[] = { "self", NULL }; | |
6037 | ||
6038 | self = self; | |
6039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6040 | return NULL; | |
6041 | if (_argo0) { | |
6042 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6043 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6044 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6045 | return NULL; | |
6046 | } | |
6047 | } | |
6048 | { | |
4268f798 | 6049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6050 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6051 | |
4268f798 RD |
6052 | wxPyEndAllowThreads(__tstate); |
6053 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6054 | } Py_INCREF(Py_None); |
6055 | _resultobj = Py_None; | |
6056 | return _resultobj; | |
6057 | } | |
6058 | ||
0122b7e3 RD |
6059 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6060 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6061 | PyObject * _resultobj; |
6062 | wxPyProcess * _arg0; | |
6063 | PyObject * _arg1; | |
6064 | PyObject * _arg2; | |
6065 | PyObject * _argo0 = 0; | |
6066 | PyObject * _obj1 = 0; | |
6067 | PyObject * _obj2 = 0; | |
6068 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6069 | ||
6070 | self = self; | |
0122b7e3 | 6071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6072 | return NULL; |
6073 | if (_argo0) { | |
6074 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6075 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6076 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6077 | return NULL; |
6078 | } | |
6079 | } | |
6080 | { | |
6081 | _arg1 = _obj1; | |
6082 | } | |
6083 | { | |
6084 | _arg2 = _obj2; | |
6085 | } | |
6086 | { | |
4268f798 | 6087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6088 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6089 | |
4268f798 RD |
6090 | wxPyEndAllowThreads(__tstate); |
6091 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6092 | } Py_INCREF(Py_None); |
6093 | _resultobj = Py_None; | |
6094 | return _resultobj; | |
6095 | } | |
6096 | ||
6097 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6098 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6099 | PyObject * _resultobj; | |
6100 | wxPyProcess * _arg0; | |
6101 | int _arg1; | |
6102 | int _arg2; | |
6103 | PyObject * _argo0 = 0; | |
6104 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6105 | ||
6106 | self = self; | |
6107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6108 | return NULL; | |
6109 | if (_argo0) { | |
6110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6113 | return NULL; | |
6114 | } | |
6115 | } | |
6116 | { | |
4268f798 | 6117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6118 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6119 | |
4268f798 RD |
6120 | wxPyEndAllowThreads(__tstate); |
6121 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6122 | } Py_INCREF(Py_None); |
6123 | _resultobj = Py_None; | |
6124 | return _resultobj; | |
6125 | } | |
6126 | ||
6127 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6128 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6129 | PyObject * _resultobj; | |
6130 | wxPyProcess * _arg0; | |
6131 | PyObject * _argo0 = 0; | |
6132 | char *_kwnames[] = { "self", NULL }; | |
6133 | ||
6134 | self = self; | |
6135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6136 | return NULL; | |
6137 | if (_argo0) { | |
6138 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6139 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6140 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6141 | return NULL; | |
6142 | } | |
6143 | } | |
6144 | { | |
4268f798 | 6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6146 | wxProcess_Redirect(_arg0); |
c368d904 | 6147 | |
4268f798 RD |
6148 | wxPyEndAllowThreads(__tstate); |
6149 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6150 | } Py_INCREF(Py_None); |
6151 | _resultobj = Py_None; | |
6152 | return _resultobj; | |
6153 | } | |
6154 | ||
6155 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6156 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6157 | PyObject * _resultobj; | |
6158 | bool _result; | |
6159 | wxPyProcess * _arg0; | |
6160 | PyObject * _argo0 = 0; | |
6161 | char *_kwnames[] = { "self", NULL }; | |
6162 | ||
6163 | self = self; | |
6164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6165 | return NULL; | |
6166 | if (_argo0) { | |
6167 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6168 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6169 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6170 | return NULL; | |
6171 | } | |
6172 | } | |
6173 | { | |
4268f798 | 6174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6175 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6176 | |
4268f798 RD |
6177 | wxPyEndAllowThreads(__tstate); |
6178 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6179 | } _resultobj = Py_BuildValue("i",_result); |
6180 | return _resultobj; | |
6181 | } | |
6182 | ||
6183 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6184 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6185 | PyObject * _resultobj; | |
6186 | wxPyProcess * _arg0; | |
6187 | PyObject * _argo0 = 0; | |
6188 | char *_kwnames[] = { "self", NULL }; | |
6189 | ||
6190 | self = self; | |
6191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6192 | return NULL; | |
6193 | if (_argo0) { | |
6194 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6195 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6196 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6197 | return NULL; | |
6198 | } | |
6199 | } | |
6200 | { | |
4268f798 | 6201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6202 | wxProcess_Detach(_arg0); |
c368d904 | 6203 | |
4268f798 RD |
6204 | wxPyEndAllowThreads(__tstate); |
6205 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6206 | } Py_INCREF(Py_None); |
6207 | _resultobj = Py_None; | |
6208 | return _resultobj; | |
6209 | } | |
6210 | ||
6211 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6212 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6213 | PyObject * _resultobj; | |
6214 | wxInputStream * _result; | |
6215 | wxPyProcess * _arg0; | |
6216 | PyObject * _argo0 = 0; | |
6217 | char *_kwnames[] = { "self", NULL }; | |
6218 | ||
6219 | self = self; | |
6220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6221 | return NULL; | |
6222 | if (_argo0) { | |
6223 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6224 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6225 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6226 | return NULL; | |
6227 | } | |
6228 | } | |
6229 | { | |
4268f798 | 6230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6231 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6232 | |
4268f798 RD |
6233 | wxPyEndAllowThreads(__tstate); |
6234 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6235 | }{ |
6236 | wxPyInputStream * _ptr = NULL; | |
6237 | ||
6238 | if (_result) { | |
6239 | _ptr = new wxPyInputStream(_result); | |
6240 | } | |
9416aa89 | 6241 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6242 | } |
6243 | return _resultobj; | |
6244 | } | |
6245 | ||
6246 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6247 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6248 | PyObject * _resultobj; | |
6249 | wxInputStream * _result; | |
6250 | wxPyProcess * _arg0; | |
6251 | PyObject * _argo0 = 0; | |
6252 | char *_kwnames[] = { "self", NULL }; | |
6253 | ||
6254 | self = self; | |
6255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6256 | return NULL; | |
6257 | if (_argo0) { | |
6258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6261 | return NULL; | |
6262 | } | |
6263 | } | |
6264 | { | |
4268f798 | 6265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6266 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6267 | |
4268f798 RD |
6268 | wxPyEndAllowThreads(__tstate); |
6269 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6270 | }{ |
6271 | wxPyInputStream * _ptr = NULL; | |
6272 | ||
6273 | if (_result) { | |
6274 | _ptr = new wxPyInputStream(_result); | |
6275 | } | |
9416aa89 | 6276 | _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE); |
c368d904 RD |
6277 | } |
6278 | return _resultobj; | |
6279 | } | |
6280 | ||
6281 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6282 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6283 | PyObject * _resultobj; | |
6284 | wxOutputStream * _result; | |
6285 | wxPyProcess * _arg0; | |
6286 | PyObject * _argo0 = 0; | |
6287 | char *_kwnames[] = { "self", NULL }; | |
6288 | char _ptemp[128]; | |
6289 | ||
6290 | self = self; | |
6291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6292 | return NULL; | |
6293 | if (_argo0) { | |
6294 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6295 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6296 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6297 | return NULL; | |
6298 | } | |
6299 | } | |
6300 | { | |
4268f798 | 6301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6302 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6303 | |
4268f798 RD |
6304 | wxPyEndAllowThreads(__tstate); |
6305 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6306 | } if (_result) { |
6307 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6308 | _resultobj = Py_BuildValue("s",_ptemp); | |
6309 | } else { | |
6310 | Py_INCREF(Py_None); | |
6311 | _resultobj = Py_None; | |
6312 | } | |
6313 | return _resultobj; | |
6314 | } | |
6315 | ||
6316 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6317 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6318 | PyObject * _resultobj; | |
6319 | wxPyProcess * _arg0; | |
6320 | PyObject * _argo0 = 0; | |
6321 | char *_kwnames[] = { "self", NULL }; | |
6322 | ||
6323 | self = self; | |
6324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6325 | return NULL; | |
6326 | if (_argo0) { | |
6327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6330 | return NULL; | |
6331 | } | |
6332 | } | |
6333 | { | |
4268f798 | 6334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6335 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6336 | |
4268f798 RD |
6337 | wxPyEndAllowThreads(__tstate); |
6338 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6339 | } Py_INCREF(Py_None); |
6340 | _resultobj = Py_None; | |
6341 | return _resultobj; | |
6342 | } | |
6343 | ||
9416aa89 RD |
6344 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6345 | wxJoystick *src; | |
6346 | wxObject *dest; | |
6347 | src = (wxJoystick *) ptr; | |
6348 | dest = (wxObject *) src; | |
6349 | return (void *) dest; | |
6350 | } | |
6351 | ||
185d7c3e RD |
6352 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6353 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6354 | PyObject * _resultobj; | |
6355 | wxJoystick * _result; | |
6356 | int _arg0 = (int ) wxJOYSTICK1; | |
6357 | char *_kwnames[] = { "joystick", NULL }; | |
6358 | char _ptemp[128]; | |
6359 | ||
6360 | self = self; | |
6361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6362 | return NULL; | |
6363 | { | |
4268f798 | 6364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6365 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6366 | |
4268f798 RD |
6367 | wxPyEndAllowThreads(__tstate); |
6368 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6369 | } if (_result) { |
6370 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6371 | _resultobj = Py_BuildValue("s",_ptemp); | |
6372 | } else { | |
6373 | Py_INCREF(Py_None); | |
6374 | _resultobj = Py_None; | |
6375 | } | |
6376 | return _resultobj; | |
6377 | } | |
6378 | ||
ac346f50 RD |
6379 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6380 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6381 | PyObject * _resultobj; | |
6382 | wxJoystick * _arg0; | |
6383 | PyObject * _argo0 = 0; | |
6384 | char *_kwnames[] = { "self", NULL }; | |
6385 | ||
6386 | self = self; | |
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6388 | return NULL; | |
6389 | if (_argo0) { | |
6390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6393 | return NULL; | |
6394 | } | |
6395 | } | |
6396 | { | |
4268f798 | 6397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6398 | delete_wxJoystick(_arg0); |
ac346f50 | 6399 | |
4268f798 RD |
6400 | wxPyEndAllowThreads(__tstate); |
6401 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6402 | } Py_INCREF(Py_None); |
6403 | _resultobj = Py_None; | |
6404 | return _resultobj; | |
6405 | } | |
6406 | ||
185d7c3e RD |
6407 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6408 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6409 | PyObject * _resultobj; | |
6410 | wxPoint * _result; | |
6411 | wxJoystick * _arg0; | |
6412 | PyObject * _argo0 = 0; | |
6413 | char *_kwnames[] = { "self", NULL }; | |
6414 | char _ptemp[128]; | |
6415 | ||
6416 | self = self; | |
6417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6418 | return NULL; | |
6419 | if (_argo0) { | |
6420 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6421 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6422 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6423 | return NULL; | |
6424 | } | |
6425 | } | |
6426 | { | |
4268f798 | 6427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6428 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6429 | |
4268f798 RD |
6430 | wxPyEndAllowThreads(__tstate); |
6431 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6432 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6433 | _resultobj = Py_BuildValue("s",_ptemp); | |
6434 | return _resultobj; | |
6435 | } | |
6436 | ||
6437 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6438 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6439 | PyObject * _resultobj; | |
6440 | int _result; | |
6441 | wxJoystick * _arg0; | |
6442 | PyObject * _argo0 = 0; | |
6443 | char *_kwnames[] = { "self", NULL }; | |
6444 | ||
6445 | self = self; | |
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6447 | return NULL; | |
6448 | if (_argo0) { | |
6449 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6450 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6451 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6452 | return NULL; | |
6453 | } | |
6454 | } | |
6455 | { | |
4268f798 | 6456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6457 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6458 | |
4268f798 RD |
6459 | wxPyEndAllowThreads(__tstate); |
6460 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6461 | } _resultobj = Py_BuildValue("i",_result); |
6462 | return _resultobj; | |
6463 | } | |
6464 | ||
6465 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6466 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6467 | PyObject * _resultobj; | |
6468 | int _result; | |
6469 | wxJoystick * _arg0; | |
6470 | PyObject * _argo0 = 0; | |
6471 | char *_kwnames[] = { "self", NULL }; | |
6472 | ||
6473 | self = self; | |
6474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6475 | return NULL; | |
6476 | if (_argo0) { | |
6477 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6478 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6479 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6480 | return NULL; | |
6481 | } | |
6482 | } | |
6483 | { | |
4268f798 | 6484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6485 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6486 | |
4268f798 RD |
6487 | wxPyEndAllowThreads(__tstate); |
6488 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6489 | } _resultobj = Py_BuildValue("i",_result); |
6490 | return _resultobj; | |
6491 | } | |
6492 | ||
6493 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
6494 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6495 | PyObject * _resultobj; | |
6496 | int _result; | |
6497 | wxJoystick * _arg0; | |
6498 | PyObject * _argo0 = 0; | |
6499 | char *_kwnames[] = { "self", NULL }; | |
6500 | ||
6501 | self = self; | |
6502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
6503 | return NULL; | |
6504 | if (_argo0) { | |
6505 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6506 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6507 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
6508 | return NULL; | |
6509 | } | |
6510 | } | |
6511 | { | |
4268f798 | 6512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6513 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 6514 | |
4268f798 RD |
6515 | wxPyEndAllowThreads(__tstate); |
6516 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6517 | } _resultobj = Py_BuildValue("i",_result); |
6518 | return _resultobj; | |
6519 | } | |
6520 | ||
6521 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
6522 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6523 | PyObject * _resultobj; | |
6524 | int _result; | |
6525 | wxJoystick * _arg0; | |
6526 | PyObject * _argo0 = 0; | |
6527 | char *_kwnames[] = { "self", NULL }; | |
6528 | ||
6529 | self = self; | |
6530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
6531 | return NULL; | |
6532 | if (_argo0) { | |
6533 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6534 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6535 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
6536 | return NULL; | |
6537 | } | |
6538 | } | |
6539 | { | |
4268f798 | 6540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6541 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 6542 | |
4268f798 RD |
6543 | wxPyEndAllowThreads(__tstate); |
6544 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6545 | } _resultobj = Py_BuildValue("i",_result); |
6546 | return _resultobj; | |
6547 | } | |
6548 | ||
6549 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
6550 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6551 | PyObject * _resultobj; | |
6552 | int _result; | |
6553 | wxJoystick * _arg0; | |
6554 | PyObject * _argo0 = 0; | |
6555 | char *_kwnames[] = { "self", NULL }; | |
6556 | ||
6557 | self = self; | |
6558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
6559 | return NULL; | |
6560 | if (_argo0) { | |
6561 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6562 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
6564 | return NULL; | |
6565 | } | |
6566 | } | |
6567 | { | |
4268f798 | 6568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6569 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 6570 | |
4268f798 RD |
6571 | wxPyEndAllowThreads(__tstate); |
6572 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6573 | } _resultobj = Py_BuildValue("i",_result); |
6574 | return _resultobj; | |
6575 | } | |
6576 | ||
6577 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
6578 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6579 | PyObject * _resultobj; | |
6580 | int _result; | |
6581 | wxJoystick * _arg0; | |
6582 | PyObject * _argo0 = 0; | |
6583 | char *_kwnames[] = { "self", NULL }; | |
6584 | ||
6585 | self = self; | |
6586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
6587 | return NULL; | |
6588 | if (_argo0) { | |
6589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
6592 | return NULL; | |
6593 | } | |
6594 | } | |
6595 | { | |
4268f798 | 6596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6597 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 6598 | |
4268f798 RD |
6599 | wxPyEndAllowThreads(__tstate); |
6600 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6601 | } _resultobj = Py_BuildValue("i",_result); |
6602 | return _resultobj; | |
6603 | } | |
6604 | ||
6605 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
6606 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6607 | PyObject * _resultobj; | |
6608 | int _result; | |
6609 | wxJoystick * _arg0; | |
6610 | PyObject * _argo0 = 0; | |
6611 | char *_kwnames[] = { "self", NULL }; | |
6612 | ||
6613 | self = self; | |
6614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
6615 | return NULL; | |
6616 | if (_argo0) { | |
6617 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6618 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
6620 | return NULL; | |
6621 | } | |
6622 | } | |
6623 | { | |
4268f798 | 6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6625 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 6626 | |
4268f798 RD |
6627 | wxPyEndAllowThreads(__tstate); |
6628 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6629 | } _resultobj = Py_BuildValue("i",_result); |
6630 | return _resultobj; | |
6631 | } | |
6632 | ||
6633 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
6634 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6635 | PyObject * _resultobj; | |
6636 | int _result; | |
6637 | wxJoystick * _arg0; | |
6638 | PyObject * _argo0 = 0; | |
6639 | char *_kwnames[] = { "self", NULL }; | |
6640 | ||
6641 | self = self; | |
6642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
6643 | return NULL; | |
6644 | if (_argo0) { | |
6645 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6646 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6647 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
6648 | return NULL; | |
6649 | } | |
6650 | } | |
6651 | { | |
4268f798 | 6652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6653 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 6654 | |
4268f798 RD |
6655 | wxPyEndAllowThreads(__tstate); |
6656 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6657 | } _resultobj = Py_BuildValue("i",_result); |
6658 | return _resultobj; | |
6659 | } | |
6660 | ||
6661 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
6662 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6663 | PyObject * _resultobj; | |
6664 | wxJoystick * _arg0; | |
6665 | int _arg1; | |
6666 | PyObject * _argo0 = 0; | |
6667 | char *_kwnames[] = { "self","threshold", NULL }; | |
6668 | ||
6669 | self = self; | |
6670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
6671 | return NULL; | |
6672 | if (_argo0) { | |
6673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
6676 | return NULL; | |
6677 | } | |
6678 | } | |
6679 | { | |
4268f798 | 6680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6681 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 6682 | |
4268f798 RD |
6683 | wxPyEndAllowThreads(__tstate); |
6684 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6685 | } Py_INCREF(Py_None); |
6686 | _resultobj = Py_None; | |
6687 | return _resultobj; | |
6688 | } | |
6689 | ||
6690 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
6691 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6692 | PyObject * _resultobj; | |
6693 | bool _result; | |
6694 | wxJoystick * _arg0; | |
6695 | PyObject * _argo0 = 0; | |
6696 | char *_kwnames[] = { "self", NULL }; | |
6697 | ||
6698 | self = self; | |
6699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
6700 | return NULL; | |
6701 | if (_argo0) { | |
6702 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6703 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6704 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
6705 | return NULL; | |
6706 | } | |
6707 | } | |
6708 | { | |
4268f798 | 6709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6710 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 6711 | |
4268f798 RD |
6712 | wxPyEndAllowThreads(__tstate); |
6713 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6714 | } _resultobj = Py_BuildValue("i",_result); |
6715 | return _resultobj; | |
6716 | } | |
6717 | ||
6718 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
6719 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6720 | PyObject * _resultobj; | |
6721 | int _result; | |
6722 | wxJoystick * _arg0; | |
6723 | PyObject * _argo0 = 0; | |
6724 | char *_kwnames[] = { "self", NULL }; | |
6725 | ||
6726 | self = self; | |
6727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
6728 | return NULL; | |
6729 | if (_argo0) { | |
6730 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6731 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6732 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
6733 | return NULL; | |
6734 | } | |
6735 | } | |
6736 | { | |
4268f798 | 6737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6738 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 6739 | |
4268f798 RD |
6740 | wxPyEndAllowThreads(__tstate); |
6741 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6742 | } _resultobj = Py_BuildValue("i",_result); |
6743 | return _resultobj; | |
6744 | } | |
6745 | ||
6746 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
6747 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6748 | PyObject * _resultobj; | |
6749 | int _result; | |
6750 | wxJoystick * _arg0; | |
6751 | PyObject * _argo0 = 0; | |
6752 | char *_kwnames[] = { "self", NULL }; | |
6753 | ||
6754 | self = self; | |
6755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
6756 | return NULL; | |
6757 | if (_argo0) { | |
6758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
6761 | return NULL; | |
6762 | } | |
6763 | } | |
6764 | { | |
4268f798 | 6765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6766 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 6767 | |
4268f798 RD |
6768 | wxPyEndAllowThreads(__tstate); |
6769 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6770 | } _resultobj = Py_BuildValue("i",_result); |
6771 | return _resultobj; | |
6772 | } | |
6773 | ||
6774 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
6775 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject * _resultobj; | |
6777 | int _result; | |
6778 | wxJoystick * _arg0; | |
6779 | PyObject * _argo0 = 0; | |
6780 | char *_kwnames[] = { "self", NULL }; | |
6781 | ||
6782 | self = self; | |
6783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
6784 | return NULL; | |
6785 | if (_argo0) { | |
6786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
6789 | return NULL; | |
6790 | } | |
6791 | } | |
6792 | { | |
4268f798 | 6793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6794 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 6795 | |
4268f798 RD |
6796 | wxPyEndAllowThreads(__tstate); |
6797 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6798 | } _resultobj = Py_BuildValue("i",_result); |
6799 | return _resultobj; | |
6800 | } | |
6801 | ||
6802 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
6803 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6804 | PyObject * _resultobj; | |
6805 | wxString * _result; | |
6806 | wxJoystick * _arg0; | |
6807 | PyObject * _argo0 = 0; | |
6808 | char *_kwnames[] = { "self", NULL }; | |
6809 | ||
6810 | self = self; | |
6811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
6812 | return NULL; | |
6813 | if (_argo0) { | |
6814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
6817 | return NULL; | |
6818 | } | |
6819 | } | |
6820 | { | |
4268f798 | 6821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6822 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 6823 | |
4268f798 RD |
6824 | wxPyEndAllowThreads(__tstate); |
6825 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 6826 | }{ |
c8bc7bb8 RD |
6827 | #if wxUSE_UNICODE |
6828 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
6829 | #else | |
185d7c3e | 6830 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 6831 | #endif |
185d7c3e RD |
6832 | } |
6833 | { | |
6834 | delete _result; | |
6835 | } | |
6836 | return _resultobj; | |
6837 | } | |
6838 | ||
6839 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
6840 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6841 | PyObject * _resultobj; | |
6842 | int _result; | |
6843 | wxJoystick * _arg0; | |
6844 | PyObject * _argo0 = 0; | |
6845 | char *_kwnames[] = { "self", NULL }; | |
6846 | ||
6847 | self = self; | |
6848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
6849 | return NULL; | |
6850 | if (_argo0) { | |
6851 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6852 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6853 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
6854 | return NULL; | |
6855 | } | |
6856 | } | |
6857 | { | |
4268f798 | 6858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6859 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 6860 | |
4268f798 RD |
6861 | wxPyEndAllowThreads(__tstate); |
6862 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6863 | } _resultobj = Py_BuildValue("i",_result); |
6864 | return _resultobj; | |
6865 | } | |
6866 | ||
6867 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
6868 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6869 | PyObject * _resultobj; | |
6870 | int _result; | |
6871 | wxJoystick * _arg0; | |
6872 | PyObject * _argo0 = 0; | |
6873 | char *_kwnames[] = { "self", NULL }; | |
6874 | ||
6875 | self = self; | |
6876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
6877 | return NULL; | |
6878 | if (_argo0) { | |
6879 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6880 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6881 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
6882 | return NULL; | |
6883 | } | |
6884 | } | |
6885 | { | |
4268f798 | 6886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6887 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 6888 | |
4268f798 RD |
6889 | wxPyEndAllowThreads(__tstate); |
6890 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6891 | } _resultobj = Py_BuildValue("i",_result); |
6892 | return _resultobj; | |
6893 | } | |
6894 | ||
6895 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
6896 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6897 | PyObject * _resultobj; | |
6898 | int _result; | |
6899 | wxJoystick * _arg0; | |
6900 | PyObject * _argo0 = 0; | |
6901 | char *_kwnames[] = { "self", NULL }; | |
6902 | ||
6903 | self = self; | |
6904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
6905 | return NULL; | |
6906 | if (_argo0) { | |
6907 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6908 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6909 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
6910 | return NULL; | |
6911 | } | |
6912 | } | |
6913 | { | |
4268f798 | 6914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6915 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 6916 | |
4268f798 RD |
6917 | wxPyEndAllowThreads(__tstate); |
6918 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6919 | } _resultobj = Py_BuildValue("i",_result); |
6920 | return _resultobj; | |
6921 | } | |
6922 | ||
6923 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
6924 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6925 | PyObject * _resultobj; | |
6926 | int _result; | |
6927 | wxJoystick * _arg0; | |
6928 | PyObject * _argo0 = 0; | |
6929 | char *_kwnames[] = { "self", NULL }; | |
6930 | ||
6931 | self = self; | |
6932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
6933 | return NULL; | |
6934 | if (_argo0) { | |
6935 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6936 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6937 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
6938 | return NULL; | |
6939 | } | |
6940 | } | |
6941 | { | |
4268f798 | 6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6943 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 6944 | |
4268f798 RD |
6945 | wxPyEndAllowThreads(__tstate); |
6946 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6947 | } _resultobj = Py_BuildValue("i",_result); |
6948 | return _resultobj; | |
6949 | } | |
6950 | ||
6951 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
6952 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6953 | PyObject * _resultobj; | |
6954 | int _result; | |
6955 | wxJoystick * _arg0; | |
6956 | PyObject * _argo0 = 0; | |
6957 | char *_kwnames[] = { "self", NULL }; | |
6958 | ||
6959 | self = self; | |
6960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
6961 | return NULL; | |
6962 | if (_argo0) { | |
6963 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6964 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6965 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
6966 | return NULL; | |
6967 | } | |
6968 | } | |
6969 | { | |
4268f798 | 6970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6971 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 6972 | |
4268f798 RD |
6973 | wxPyEndAllowThreads(__tstate); |
6974 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6975 | } _resultobj = Py_BuildValue("i",_result); |
6976 | return _resultobj; | |
6977 | } | |
6978 | ||
6979 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
6980 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6981 | PyObject * _resultobj; | |
6982 | int _result; | |
6983 | wxJoystick * _arg0; | |
6984 | PyObject * _argo0 = 0; | |
6985 | char *_kwnames[] = { "self", NULL }; | |
6986 | ||
6987 | self = self; | |
6988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
6989 | return NULL; | |
6990 | if (_argo0) { | |
6991 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6992 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6993 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
6994 | return NULL; | |
6995 | } | |
6996 | } | |
6997 | { | |
4268f798 | 6998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6999 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 7000 | |
4268f798 RD |
7001 | wxPyEndAllowThreads(__tstate); |
7002 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7003 | } _resultobj = Py_BuildValue("i",_result); |
7004 | return _resultobj; | |
7005 | } | |
7006 | ||
7007 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7008 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7009 | PyObject * _resultobj; | |
7010 | int _result; | |
7011 | wxJoystick * _arg0; | |
7012 | PyObject * _argo0 = 0; | |
7013 | char *_kwnames[] = { "self", NULL }; | |
7014 | ||
7015 | self = self; | |
7016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7017 | return NULL; | |
7018 | if (_argo0) { | |
7019 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7020 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7021 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7022 | return NULL; | |
7023 | } | |
7024 | } | |
7025 | { | |
4268f798 | 7026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7027 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 7028 | |
4268f798 RD |
7029 | wxPyEndAllowThreads(__tstate); |
7030 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7031 | } _resultobj = Py_BuildValue("i",_result); |
7032 | return _resultobj; | |
7033 | } | |
7034 | ||
7035 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7036 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7037 | PyObject * _resultobj; | |
7038 | int _result; | |
7039 | wxJoystick * _arg0; | |
7040 | PyObject * _argo0 = 0; | |
7041 | char *_kwnames[] = { "self", NULL }; | |
7042 | ||
7043 | self = self; | |
7044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7045 | return NULL; | |
7046 | if (_argo0) { | |
7047 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7048 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7049 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7050 | return NULL; | |
7051 | } | |
7052 | } | |
7053 | { | |
4268f798 | 7054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7055 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7056 | |
4268f798 RD |
7057 | wxPyEndAllowThreads(__tstate); |
7058 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7059 | } _resultobj = Py_BuildValue("i",_result); |
7060 | return _resultobj; | |
7061 | } | |
7062 | ||
7063 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7064 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject * _resultobj; | |
7066 | int _result; | |
7067 | wxJoystick * _arg0; | |
7068 | PyObject * _argo0 = 0; | |
7069 | char *_kwnames[] = { "self", NULL }; | |
7070 | ||
7071 | self = self; | |
7072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7073 | return NULL; | |
7074 | if (_argo0) { | |
7075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7078 | return NULL; | |
7079 | } | |
7080 | } | |
7081 | { | |
4268f798 | 7082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7083 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7084 | |
4268f798 RD |
7085 | wxPyEndAllowThreads(__tstate); |
7086 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7087 | } _resultobj = Py_BuildValue("i",_result); |
7088 | return _resultobj; | |
7089 | } | |
7090 | ||
7091 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7092 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7093 | PyObject * _resultobj; | |
7094 | int _result; | |
7095 | wxJoystick * _arg0; | |
7096 | PyObject * _argo0 = 0; | |
7097 | char *_kwnames[] = { "self", NULL }; | |
7098 | ||
7099 | self = self; | |
7100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7101 | return NULL; | |
7102 | if (_argo0) { | |
7103 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7104 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7106 | return NULL; | |
7107 | } | |
7108 | } | |
7109 | { | |
4268f798 | 7110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7111 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7112 | |
4268f798 RD |
7113 | wxPyEndAllowThreads(__tstate); |
7114 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7115 | } _resultobj = Py_BuildValue("i",_result); |
7116 | return _resultobj; | |
7117 | } | |
7118 | ||
7119 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7120 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7121 | PyObject * _resultobj; | |
7122 | int _result; | |
7123 | wxJoystick * _arg0; | |
7124 | PyObject * _argo0 = 0; | |
7125 | char *_kwnames[] = { "self", NULL }; | |
7126 | ||
7127 | self = self; | |
7128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7129 | return NULL; | |
7130 | if (_argo0) { | |
7131 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7132 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7133 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7134 | return NULL; | |
7135 | } | |
7136 | } | |
7137 | { | |
4268f798 | 7138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7139 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7140 | |
4268f798 RD |
7141 | wxPyEndAllowThreads(__tstate); |
7142 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7143 | } _resultobj = Py_BuildValue("i",_result); |
7144 | return _resultobj; | |
7145 | } | |
7146 | ||
7147 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7148 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7149 | PyObject * _resultobj; | |
7150 | int _result; | |
7151 | wxJoystick * _arg0; | |
7152 | PyObject * _argo0 = 0; | |
7153 | char *_kwnames[] = { "self", NULL }; | |
7154 | ||
7155 | self = self; | |
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7157 | return NULL; | |
7158 | if (_argo0) { | |
7159 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7160 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7161 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7162 | return NULL; | |
7163 | } | |
7164 | } | |
7165 | { | |
4268f798 | 7166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7167 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7168 | |
4268f798 RD |
7169 | wxPyEndAllowThreads(__tstate); |
7170 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7171 | } _resultobj = Py_BuildValue("i",_result); |
7172 | return _resultobj; | |
7173 | } | |
7174 | ||
7175 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7176 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject * _resultobj; | |
7178 | int _result; | |
7179 | wxJoystick * _arg0; | |
7180 | PyObject * _argo0 = 0; | |
7181 | char *_kwnames[] = { "self", NULL }; | |
7182 | ||
7183 | self = self; | |
7184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7185 | return NULL; | |
7186 | if (_argo0) { | |
7187 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7188 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7189 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7190 | return NULL; | |
7191 | } | |
7192 | } | |
7193 | { | |
4268f798 | 7194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7195 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7196 | |
4268f798 RD |
7197 | wxPyEndAllowThreads(__tstate); |
7198 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7199 | } _resultobj = Py_BuildValue("i",_result); |
7200 | return _resultobj; | |
7201 | } | |
7202 | ||
7203 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7204 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7205 | PyObject * _resultobj; | |
7206 | int _result; | |
7207 | wxJoystick * _arg0; | |
7208 | PyObject * _argo0 = 0; | |
7209 | char *_kwnames[] = { "self", NULL }; | |
7210 | ||
7211 | self = self; | |
7212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7213 | return NULL; | |
7214 | if (_argo0) { | |
7215 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7216 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7217 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7218 | return NULL; | |
7219 | } | |
7220 | } | |
7221 | { | |
4268f798 | 7222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7223 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7224 | |
4268f798 RD |
7225 | wxPyEndAllowThreads(__tstate); |
7226 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7227 | } _resultobj = Py_BuildValue("i",_result); |
7228 | return _resultobj; | |
7229 | } | |
7230 | ||
7231 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7232 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7233 | PyObject * _resultobj; | |
7234 | int _result; | |
7235 | wxJoystick * _arg0; | |
7236 | PyObject * _argo0 = 0; | |
7237 | char *_kwnames[] = { "self", NULL }; | |
7238 | ||
7239 | self = self; | |
7240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7241 | return NULL; | |
7242 | if (_argo0) { | |
7243 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7244 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7245 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7246 | return NULL; | |
7247 | } | |
7248 | } | |
7249 | { | |
4268f798 | 7250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7251 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7252 | |
4268f798 RD |
7253 | wxPyEndAllowThreads(__tstate); |
7254 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7255 | } _resultobj = Py_BuildValue("i",_result); |
7256 | return _resultobj; | |
7257 | } | |
7258 | ||
7259 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7260 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7261 | PyObject * _resultobj; | |
7262 | int _result; | |
7263 | wxJoystick * _arg0; | |
7264 | PyObject * _argo0 = 0; | |
7265 | char *_kwnames[] = { "self", NULL }; | |
7266 | ||
7267 | self = self; | |
7268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7269 | return NULL; | |
7270 | if (_argo0) { | |
7271 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7272 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7273 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7274 | return NULL; | |
7275 | } | |
7276 | } | |
7277 | { | |
4268f798 | 7278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7279 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7280 | |
4268f798 RD |
7281 | wxPyEndAllowThreads(__tstate); |
7282 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7283 | } _resultobj = Py_BuildValue("i",_result); |
7284 | return _resultobj; | |
7285 | } | |
7286 | ||
7287 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7288 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7289 | PyObject * _resultobj; | |
7290 | int _result; | |
7291 | wxJoystick * _arg0; | |
7292 | PyObject * _argo0 = 0; | |
7293 | char *_kwnames[] = { "self", NULL }; | |
7294 | ||
7295 | self = self; | |
7296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7297 | return NULL; | |
7298 | if (_argo0) { | |
7299 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7300 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7301 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7302 | return NULL; | |
7303 | } | |
7304 | } | |
7305 | { | |
4268f798 | 7306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7307 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7308 | |
4268f798 RD |
7309 | wxPyEndAllowThreads(__tstate); |
7310 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7311 | } _resultobj = Py_BuildValue("i",_result); |
7312 | return _resultobj; | |
7313 | } | |
7314 | ||
7315 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7316 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7317 | PyObject * _resultobj; | |
7318 | int _result; | |
7319 | wxJoystick * _arg0; | |
7320 | PyObject * _argo0 = 0; | |
7321 | char *_kwnames[] = { "self", NULL }; | |
7322 | ||
7323 | self = self; | |
7324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7325 | return NULL; | |
7326 | if (_argo0) { | |
7327 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7328 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7330 | return NULL; | |
7331 | } | |
7332 | } | |
7333 | { | |
4268f798 | 7334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7335 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7336 | |
4268f798 RD |
7337 | wxPyEndAllowThreads(__tstate); |
7338 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7339 | } _resultobj = Py_BuildValue("i",_result); |
7340 | return _resultobj; | |
7341 | } | |
7342 | ||
7343 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7344 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7345 | PyObject * _resultobj; | |
7346 | bool _result; | |
7347 | wxJoystick * _arg0; | |
7348 | PyObject * _argo0 = 0; | |
7349 | char *_kwnames[] = { "self", NULL }; | |
7350 | ||
7351 | self = self; | |
7352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7353 | return NULL; | |
7354 | if (_argo0) { | |
7355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7358 | return NULL; | |
7359 | } | |
7360 | } | |
7361 | { | |
4268f798 | 7362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7363 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7364 | |
4268f798 RD |
7365 | wxPyEndAllowThreads(__tstate); |
7366 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7367 | } _resultobj = Py_BuildValue("i",_result); |
7368 | return _resultobj; | |
7369 | } | |
7370 | ||
7371 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7372 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7373 | PyObject * _resultobj; | |
7374 | bool _result; | |
7375 | wxJoystick * _arg0; | |
7376 | PyObject * _argo0 = 0; | |
7377 | char *_kwnames[] = { "self", NULL }; | |
7378 | ||
7379 | self = self; | |
7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7381 | return NULL; | |
7382 | if (_argo0) { | |
7383 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7384 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7385 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7386 | return NULL; | |
7387 | } | |
7388 | } | |
7389 | { | |
4268f798 | 7390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7391 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7392 | |
4268f798 RD |
7393 | wxPyEndAllowThreads(__tstate); |
7394 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7395 | } _resultobj = Py_BuildValue("i",_result); |
7396 | return _resultobj; | |
7397 | } | |
7398 | ||
7399 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7400 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7401 | PyObject * _resultobj; | |
7402 | bool _result; | |
7403 | wxJoystick * _arg0; | |
7404 | PyObject * _argo0 = 0; | |
7405 | char *_kwnames[] = { "self", NULL }; | |
7406 | ||
7407 | self = self; | |
7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7409 | return NULL; | |
7410 | if (_argo0) { | |
7411 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7412 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7413 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7414 | return NULL; | |
7415 | } | |
7416 | } | |
7417 | { | |
4268f798 | 7418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7419 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7420 | |
4268f798 RD |
7421 | wxPyEndAllowThreads(__tstate); |
7422 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7423 | } _resultobj = Py_BuildValue("i",_result); |
7424 | return _resultobj; | |
7425 | } | |
7426 | ||
7427 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7428 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7429 | PyObject * _resultobj; | |
7430 | bool _result; | |
7431 | wxJoystick * _arg0; | |
7432 | PyObject * _argo0 = 0; | |
7433 | char *_kwnames[] = { "self", NULL }; | |
7434 | ||
7435 | self = self; | |
7436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7437 | return NULL; | |
7438 | if (_argo0) { | |
7439 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7440 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7441 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7442 | return NULL; | |
7443 | } | |
7444 | } | |
7445 | { | |
4268f798 | 7446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7447 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7448 | |
4268f798 RD |
7449 | wxPyEndAllowThreads(__tstate); |
7450 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7451 | } _resultobj = Py_BuildValue("i",_result); |
7452 | return _resultobj; | |
7453 | } | |
7454 | ||
7455 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7456 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7457 | PyObject * _resultobj; | |
7458 | bool _result; | |
7459 | wxJoystick * _arg0; | |
7460 | PyObject * _argo0 = 0; | |
7461 | char *_kwnames[] = { "self", NULL }; | |
7462 | ||
7463 | self = self; | |
7464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7465 | return NULL; | |
7466 | if (_argo0) { | |
7467 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7468 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7469 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7470 | return NULL; | |
7471 | } | |
7472 | } | |
7473 | { | |
4268f798 | 7474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7475 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7476 | |
4268f798 RD |
7477 | wxPyEndAllowThreads(__tstate); |
7478 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7479 | } _resultobj = Py_BuildValue("i",_result); |
7480 | return _resultobj; | |
7481 | } | |
7482 | ||
7483 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7484 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject * _resultobj; | |
7486 | bool _result; | |
7487 | wxJoystick * _arg0; | |
7488 | PyObject * _argo0 = 0; | |
7489 | char *_kwnames[] = { "self", NULL }; | |
7490 | ||
7491 | self = self; | |
7492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
7493 | return NULL; | |
7494 | if (_argo0) { | |
7495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
7498 | return NULL; | |
7499 | } | |
7500 | } | |
7501 | { | |
4268f798 | 7502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7503 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 7504 | |
4268f798 RD |
7505 | wxPyEndAllowThreads(__tstate); |
7506 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7507 | } _resultobj = Py_BuildValue("i",_result); |
7508 | return _resultobj; | |
7509 | } | |
7510 | ||
7511 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
7512 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7513 | PyObject * _resultobj; | |
7514 | bool _result; | |
7515 | wxJoystick * _arg0; | |
7516 | PyObject * _argo0 = 0; | |
7517 | char *_kwnames[] = { "self", NULL }; | |
7518 | ||
7519 | self = self; | |
7520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
7521 | return NULL; | |
7522 | if (_argo0) { | |
7523 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7524 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7525 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
7526 | return NULL; | |
7527 | } | |
7528 | } | |
7529 | { | |
4268f798 | 7530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7531 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 7532 | |
4268f798 RD |
7533 | wxPyEndAllowThreads(__tstate); |
7534 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7535 | } _resultobj = Py_BuildValue("i",_result); |
7536 | return _resultobj; | |
7537 | } | |
7538 | ||
7539 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
7540 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7541 | PyObject * _resultobj; | |
7542 | bool _result; | |
7543 | wxJoystick * _arg0; | |
7544 | wxWindow * _arg1; | |
7545 | int _arg2 = (int ) 0; | |
7546 | PyObject * _argo0 = 0; | |
7547 | PyObject * _argo1 = 0; | |
7548 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
7549 | ||
7550 | self = self; | |
7551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
7552 | return NULL; | |
7553 | if (_argo0) { | |
7554 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7555 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7556 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
7557 | return NULL; | |
7558 | } | |
7559 | } | |
7560 | if (_argo1) { | |
7561 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
7562 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
7563 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
7564 | return NULL; | |
7565 | } | |
7566 | } | |
7567 | { | |
4268f798 | 7568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7569 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 7570 | |
4268f798 RD |
7571 | wxPyEndAllowThreads(__tstate); |
7572 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7573 | } _resultobj = Py_BuildValue("i",_result); |
7574 | return _resultobj; | |
7575 | } | |
7576 | ||
7577 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
7578 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7579 | PyObject * _resultobj; | |
7580 | bool _result; | |
7581 | wxJoystick * _arg0; | |
7582 | PyObject * _argo0 = 0; | |
7583 | char *_kwnames[] = { "self", NULL }; | |
7584 | ||
7585 | self = self; | |
7586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
7587 | return NULL; | |
7588 | if (_argo0) { | |
7589 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7590 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7591 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
7592 | return NULL; | |
7593 | } | |
7594 | } | |
7595 | { | |
4268f798 | 7596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7597 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 7598 | |
4268f798 RD |
7599 | wxPyEndAllowThreads(__tstate); |
7600 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7601 | } _resultobj = Py_BuildValue("i",_result); |
7602 | return _resultobj; | |
7603 | } | |
7604 | ||
493f1553 RD |
7605 | static void *SwigwxWaveTowxObject(void *ptr) { |
7606 | wxWave *src; | |
7607 | wxObject *dest; | |
7608 | src = (wxWave *) ptr; | |
7609 | dest = (wxObject *) src; | |
7610 | return (void *) dest; | |
7611 | } | |
7612 | ||
7613 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
7614 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7615 | PyObject * _resultobj; | |
7616 | wxWave * _result; | |
7617 | wxString * _arg0; | |
7618 | bool _arg1 = (bool ) FALSE; | |
7619 | PyObject * _obj0 = 0; | |
7620 | int tempbool1 = (int) FALSE; | |
7621 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
7622 | char _ptemp[128]; | |
7623 | ||
7624 | self = self; | |
7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
7626 | return NULL; | |
7627 | { | |
c8bc7bb8 RD |
7628 | _arg0 = wxString_in_helper(_obj0); |
7629 | if (_arg0 == NULL) | |
493f1553 | 7630 | return NULL; |
493f1553 RD |
7631 | } |
7632 | _arg1 = (bool ) tempbool1; | |
7633 | { | |
4268f798 | 7634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7635 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 7636 | |
4268f798 RD |
7637 | wxPyEndAllowThreads(__tstate); |
7638 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7639 | } if (_result) { |
7640 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
7641 | _resultobj = Py_BuildValue("s",_ptemp); | |
7642 | } else { | |
7643 | Py_INCREF(Py_None); | |
7644 | _resultobj = Py_None; | |
7645 | } | |
7646 | { | |
7647 | if (_obj0) | |
7648 | delete _arg0; | |
7649 | } | |
7650 | return _resultobj; | |
7651 | } | |
7652 | ||
7653 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
7654 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7655 | PyObject * _resultobj; | |
7656 | wxWave * _arg0; | |
7657 | PyObject * _argo0 = 0; | |
7658 | char *_kwnames[] = { "self", NULL }; | |
7659 | ||
7660 | self = self; | |
7661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
7662 | return NULL; | |
7663 | if (_argo0) { | |
7664 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7665 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7666 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
7667 | return NULL; | |
7668 | } | |
7669 | } | |
7670 | { | |
4268f798 | 7671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7672 | delete_wxWave(_arg0); |
493f1553 | 7673 | |
4268f798 RD |
7674 | wxPyEndAllowThreads(__tstate); |
7675 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7676 | } Py_INCREF(Py_None); |
7677 | _resultobj = Py_None; | |
7678 | return _resultobj; | |
7679 | } | |
7680 | ||
7681 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
7682 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7683 | PyObject * _resultobj; | |
7684 | bool _result; | |
7685 | wxWave * _arg0; | |
7686 | PyObject * _argo0 = 0; | |
7687 | char *_kwnames[] = { "self", NULL }; | |
7688 | ||
7689 | self = self; | |
7690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
7691 | return NULL; | |
7692 | if (_argo0) { | |
7693 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7694 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7695 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
7696 | return NULL; | |
7697 | } | |
7698 | } | |
7699 | { | |
4268f798 | 7700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7701 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 7702 | |
4268f798 RD |
7703 | wxPyEndAllowThreads(__tstate); |
7704 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7705 | } _resultobj = Py_BuildValue("i",_result); |
7706 | return _resultobj; | |
7707 | } | |
7708 | ||
7709 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
7710 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7711 | PyObject * _resultobj; | |
7712 | bool _result; | |
7713 | wxWave * _arg0; | |
7714 | bool _arg1 = (bool ) TRUE; | |
7715 | bool _arg2 = (bool ) FALSE; | |
7716 | PyObject * _argo0 = 0; | |
7717 | int tempbool1 = (int) TRUE; | |
7718 | int tempbool2 = (int) FALSE; | |
7719 | char *_kwnames[] = { "self","async","looped", NULL }; | |
7720 | ||
7721 | self = self; | |
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
7723 | return NULL; | |
7724 | if (_argo0) { | |
7725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
7727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
7728 | return NULL; | |
7729 | } | |
7730 | } | |
7731 | _arg1 = (bool ) tempbool1; | |
7732 | _arg2 = (bool ) tempbool2; | |
7733 | { | |
4268f798 | 7734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7735 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 7736 | |
4268f798 RD |
7737 | wxPyEndAllowThreads(__tstate); |
7738 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
7739 | } _resultobj = Py_BuildValue("i",_result); |
7740 | return _resultobj; | |
7741 | } | |
7742 | ||
b37c7e1d RD |
7743 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
7744 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7745 | PyObject * _resultobj; | |
7746 | wxFileTypeInfo * _result; | |
7747 | char * _arg0; | |
7748 | char * _arg1; | |
7749 | char * _arg2; | |
7750 | char * _arg3; | |
7751 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; | |
7752 | char _ptemp[128]; | |
7753 | ||
7754 | self = self; | |
7755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3)) | |
7756 | return NULL; | |
7757 | { | |
4268f798 | 7758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7759 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3); |
b37c7e1d | 7760 | |
4268f798 RD |
7761 | wxPyEndAllowThreads(__tstate); |
7762 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7763 | } if (_result) { |
7764 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7765 | _resultobj = Py_BuildValue("s",_ptemp); | |
7766 | } else { | |
7767 | Py_INCREF(Py_None); | |
7768 | _resultobj = Py_None; | |
7769 | } | |
7770 | return _resultobj; | |
7771 | } | |
7772 | ||
7773 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
7774 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7775 | PyObject * _resultobj; | |
7776 | wxFileTypeInfo * _result; | |
7777 | wxArrayString * _arg0; | |
7778 | PyObject * _obj0 = 0; | |
7779 | char *_kwnames[] = { "sArray", NULL }; | |
7780 | char _ptemp[128]; | |
7781 | ||
7782 | self = self; | |
7783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
7784 | return NULL; | |
7785 | { | |
7786 | if (! PySequence_Check(_obj0)) { | |
7787 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
7788 | return NULL; | |
7789 | } | |
7790 | _arg0 = new wxArrayString; | |
7791 | int i, len=PySequence_Length(_obj0); | |
7792 | for (i=0; i<len; i++) { | |
7793 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
7794 | #if wxUSE_UNICODE |
7795 | PyObject* str = PyObject_Unicode(item); | |
7796 | _arg0->Add(PyUnicode_AsUnicode(str)); | |
7797 | #else | |
b37c7e1d | 7798 | PyObject* str = PyObject_Str(item); |
293a0a86 | 7799 | _arg0->Add(PyString_AsString(str)); |
c8bc7bb8 | 7800 | #endif |
b37c7e1d RD |
7801 | Py_DECREF(item); |
7802 | Py_DECREF(str); | |
7803 | } | |
7804 | } | |
7805 | { | |
4268f798 | 7806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7807 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 7808 | |
4268f798 RD |
7809 | wxPyEndAllowThreads(__tstate); |
7810 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7811 | } if (_result) { |
7812 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7813 | _resultobj = Py_BuildValue("s",_ptemp); | |
7814 | } else { | |
7815 | Py_INCREF(Py_None); | |
7816 | _resultobj = Py_None; | |
7817 | } | |
7818 | { | |
7819 | if (_obj0) | |
7820 | delete _arg0; | |
7821 | } | |
7822 | return _resultobj; | |
7823 | } | |
7824 | ||
7825 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
7826 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7827 | PyObject * _resultobj; | |
7828 | wxFileTypeInfo * _result; | |
7829 | char *_kwnames[] = { NULL }; | |
7830 | char _ptemp[128]; | |
7831 | ||
7832 | self = self; | |
7833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
7834 | return NULL; | |
7835 | { | |
4268f798 | 7836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7837 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 7838 | |
4268f798 RD |
7839 | wxPyEndAllowThreads(__tstate); |
7840 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7841 | } if (_result) { |
7842 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
7843 | _resultobj = Py_BuildValue("s",_ptemp); | |
7844 | } else { | |
7845 | Py_INCREF(Py_None); | |
7846 | _resultobj = Py_None; | |
7847 | } | |
7848 | return _resultobj; | |
7849 | } | |
7850 | ||
7851 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
7852 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7853 | PyObject * _resultobj; | |
7854 | bool _result; | |
7855 | wxFileTypeInfo * _arg0; | |
7856 | PyObject * _argo0 = 0; | |
7857 | char *_kwnames[] = { "self", NULL }; | |
7858 | ||
7859 | self = self; | |
7860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
7861 | return NULL; | |
7862 | if (_argo0) { | |
7863 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7864 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7865 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
7866 | return NULL; | |
7867 | } | |
7868 | } | |
7869 | { | |
4268f798 | 7870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7871 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 7872 | |
4268f798 RD |
7873 | wxPyEndAllowThreads(__tstate); |
7874 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7875 | } _resultobj = Py_BuildValue("i",_result); |
7876 | return _resultobj; | |
7877 | } | |
7878 | ||
7879 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
7880 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7881 | PyObject * _resultobj; | |
7882 | wxFileTypeInfo * _arg0; | |
7883 | wxString * _arg1; | |
7884 | int _arg2 = (int ) 0; | |
7885 | PyObject * _argo0 = 0; | |
7886 | PyObject * _obj1 = 0; | |
7887 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
7888 | ||
7889 | self = self; | |
7890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
7891 | return NULL; | |
7892 | if (_argo0) { | |
7893 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7894 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7895 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
7896 | return NULL; | |
7897 | } | |
7898 | } | |
7899 | { | |
c8bc7bb8 RD |
7900 | _arg1 = wxString_in_helper(_obj1); |
7901 | if (_arg1 == NULL) | |
b37c7e1d | 7902 | return NULL; |
b37c7e1d RD |
7903 | } |
7904 | { | |
4268f798 | 7905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7906 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 7907 | |
4268f798 RD |
7908 | wxPyEndAllowThreads(__tstate); |
7909 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7910 | } Py_INCREF(Py_None); |
7911 | _resultobj = Py_None; | |
7912 | { | |
7913 | if (_obj1) | |
7914 | delete _arg1; | |
7915 | } | |
7916 | return _resultobj; | |
7917 | } | |
7918 | ||
7919 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
7920 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7921 | PyObject * _resultobj; | |
7922 | wxFileTypeInfo * _arg0; | |
7923 | wxString * _arg1; | |
7924 | PyObject * _argo0 = 0; | |
7925 | PyObject * _obj1 = 0; | |
7926 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
7927 | ||
7928 | self = self; | |
7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
7930 | return NULL; | |
7931 | if (_argo0) { | |
7932 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7933 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7934 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
7935 | return NULL; | |
7936 | } | |
7937 | } | |
7938 | { | |
c8bc7bb8 RD |
7939 | _arg1 = wxString_in_helper(_obj1); |
7940 | if (_arg1 == NULL) | |
b37c7e1d | 7941 | return NULL; |
b37c7e1d RD |
7942 | } |
7943 | { | |
4268f798 | 7944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7945 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 7946 | |
4268f798 RD |
7947 | wxPyEndAllowThreads(__tstate); |
7948 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
7949 | } Py_INCREF(Py_None); |
7950 | _resultobj = Py_None; | |
7951 | { | |
7952 | if (_obj1) | |
7953 | delete _arg1; | |
7954 | } | |
7955 | return _resultobj; | |
7956 | } | |
7957 | ||
7958 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
7959 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7960 | PyObject * _resultobj; | |
7961 | wxString * _result; | |
7962 | wxFileTypeInfo * _arg0; | |
7963 | PyObject * _argo0 = 0; | |
7964 | char *_kwnames[] = { "self", NULL }; | |
7965 | ||
7966 | self = self; | |
7967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
7968 | return NULL; | |
7969 | if (_argo0) { | |
7970 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7971 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
7972 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
7973 | return NULL; | |
7974 | } | |
7975 | } | |
7976 | { | |
4268f798 | 7977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7978 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
7979 | _result = (wxString *) &_result_ref; |
7980 | ||
4268f798 RD |
7981 | wxPyEndAllowThreads(__tstate); |
7982 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 7983 | }{ |
c8bc7bb8 RD |
7984 | #if wxUSE_UNICODE |
7985 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
7986 | #else | |
b37c7e1d | 7987 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7988 | #endif |
b37c7e1d RD |
7989 | } |
7990 | return _resultobj; | |
7991 | } | |
7992 | ||
7993 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
7994 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7995 | PyObject * _resultobj; | |
7996 | wxString * _result; | |
7997 | wxFileTypeInfo * _arg0; | |
7998 | PyObject * _argo0 = 0; | |
7999 | char *_kwnames[] = { "self", NULL }; | |
8000 | ||
8001 | self = self; | |
8002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8003 | return NULL; | |
8004 | if (_argo0) { | |
8005 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8006 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8007 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8008 | return NULL; | |
8009 | } | |
8010 | } | |
8011 | { | |
4268f798 | 8012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8013 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
8014 | _result = (wxString *) &_result_ref; |
8015 | ||
4268f798 RD |
8016 | wxPyEndAllowThreads(__tstate); |
8017 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8018 | }{ |
c8bc7bb8 RD |
8019 | #if wxUSE_UNICODE |
8020 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8021 | #else | |
b37c7e1d | 8022 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8023 | #endif |
b37c7e1d RD |
8024 | } |
8025 | return _resultobj; | |
8026 | } | |
8027 | ||
8028 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8029 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8030 | PyObject * _resultobj; | |
8031 | wxString * _result; | |
8032 | wxFileTypeInfo * _arg0; | |
8033 | PyObject * _argo0 = 0; | |
8034 | char *_kwnames[] = { "self", NULL }; | |
8035 | ||
8036 | self = self; | |
8037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8038 | return NULL; | |
8039 | if (_argo0) { | |
8040 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8041 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8042 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8043 | return NULL; | |
8044 | } | |
8045 | } | |
8046 | { | |
4268f798 | 8047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8048 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8049 | _result = (wxString *) &_result_ref; |
8050 | ||
4268f798 RD |
8051 | wxPyEndAllowThreads(__tstate); |
8052 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8053 | }{ |
c8bc7bb8 RD |
8054 | #if wxUSE_UNICODE |
8055 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8056 | #else | |
b37c7e1d | 8057 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8058 | #endif |
b37c7e1d RD |
8059 | } |
8060 | return _resultobj; | |
8061 | } | |
8062 | ||
8063 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8064 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8065 | PyObject * _resultobj; | |
8066 | wxString * _result; | |
8067 | wxFileTypeInfo * _arg0; | |
8068 | PyObject * _argo0 = 0; | |
8069 | char *_kwnames[] = { "self", NULL }; | |
8070 | ||
8071 | self = self; | |
8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8073 | return NULL; | |
8074 | if (_argo0) { | |
8075 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8076 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8077 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8078 | return NULL; | |
8079 | } | |
8080 | } | |
8081 | { | |
4268f798 | 8082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8083 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8084 | _result = (wxString *) &_result_ref; |
8085 | ||
4268f798 RD |
8086 | wxPyEndAllowThreads(__tstate); |
8087 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8088 | }{ |
c8bc7bb8 RD |
8089 | #if wxUSE_UNICODE |
8090 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8091 | #else | |
b37c7e1d | 8092 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8093 | #endif |
b37c7e1d RD |
8094 | } |
8095 | return _resultobj; | |
8096 | } | |
8097 | ||
8098 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8099 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8100 | PyObject * _resultobj; | |
8101 | wxString * _result; | |
8102 | wxFileTypeInfo * _arg0; | |
8103 | PyObject * _argo0 = 0; | |
8104 | char *_kwnames[] = { "self", NULL }; | |
8105 | ||
8106 | self = self; | |
8107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8108 | return NULL; | |
8109 | if (_argo0) { | |
8110 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8111 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8113 | return NULL; | |
8114 | } | |
8115 | } | |
8116 | { | |
4268f798 | 8117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8118 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8119 | _result = (wxString *) &_result_ref; |
8120 | ||
4268f798 RD |
8121 | wxPyEndAllowThreads(__tstate); |
8122 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8123 | }{ |
c8bc7bb8 RD |
8124 | #if wxUSE_UNICODE |
8125 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8126 | #else | |
b37c7e1d | 8127 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8128 | #endif |
b37c7e1d RD |
8129 | } |
8130 | return _resultobj; | |
8131 | } | |
8132 | ||
8133 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8134 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8135 | return wxArrayString2PyList_helper(arr); | |
8136 | } | |
8137 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8138 | PyObject * _resultobj; | |
8139 | PyObject * _result; | |
8140 | wxFileTypeInfo * _arg0; | |
8141 | PyObject * _argo0 = 0; | |
8142 | char *_kwnames[] = { "self", NULL }; | |
8143 | ||
8144 | self = self; | |
8145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8146 | return NULL; | |
8147 | if (_argo0) { | |
8148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8151 | return NULL; | |
8152 | } | |
8153 | } | |
8154 | { | |
4268f798 | 8155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8156 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8157 | |
4268f798 RD |
8158 | wxPyEndAllowThreads(__tstate); |
8159 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8160 | }{ |
8161 | _resultobj = _result; | |
8162 | } | |
8163 | return _resultobj; | |
8164 | } | |
8165 | ||
8166 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8167 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8168 | PyObject * _resultobj; | |
8169 | int _result; | |
8170 | wxFileTypeInfo * _arg0; | |
8171 | PyObject * _argo0 = 0; | |
8172 | char *_kwnames[] = { "self", NULL }; | |
8173 | ||
8174 | self = self; | |
8175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8176 | return NULL; | |
8177 | if (_argo0) { | |
8178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8181 | return NULL; | |
8182 | } | |
8183 | } | |
8184 | { | |
4268f798 | 8185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8186 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8187 | |
4268f798 RD |
8188 | wxPyEndAllowThreads(__tstate); |
8189 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8190 | } _resultobj = Py_BuildValue("i",_result); |
8191 | return _resultobj; | |
8192 | } | |
8193 | ||
8194 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8195 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8196 | PyObject * _resultobj; | |
8197 | wxString * _result; | |
8198 | wxFileTypeInfo * _arg0; | |
8199 | PyObject * _argo0 = 0; | |
8200 | char *_kwnames[] = { "self", NULL }; | |
8201 | ||
8202 | self = self; | |
8203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8204 | return NULL; | |
8205 | if (_argo0) { | |
8206 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8207 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8208 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8209 | return NULL; | |
8210 | } | |
8211 | } | |
8212 | { | |
4268f798 | 8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8214 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8215 | _result = (wxString *) &_result_ref; |
8216 | ||
4268f798 RD |
8217 | wxPyEndAllowThreads(__tstate); |
8218 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8219 | }{ |
c8bc7bb8 RD |
8220 | #if wxUSE_UNICODE |
8221 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8222 | #else | |
b37c7e1d | 8223 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8224 | #endif |
b37c7e1d RD |
8225 | } |
8226 | return _resultobj; | |
8227 | } | |
8228 | ||
8229 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8230 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8231 | PyObject * _resultobj; | |
8232 | int _result; | |
8233 | wxFileTypeInfo * _arg0; | |
8234 | PyObject * _argo0 = 0; | |
8235 | char *_kwnames[] = { "self", NULL }; | |
8236 | ||
8237 | self = self; | |
8238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8239 | return NULL; | |
8240 | if (_argo0) { | |
8241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8244 | return NULL; | |
8245 | } | |
8246 | } | |
8247 | { | |
4268f798 | 8248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8249 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8250 | |
4268f798 RD |
8251 | wxPyEndAllowThreads(__tstate); |
8252 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8253 | } _resultobj = Py_BuildValue("i",_result); |
8254 | return _resultobj; | |
8255 | } | |
8256 | ||
8257 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8258 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8259 | PyObject * _resultobj; | |
8260 | wxFileType * _result; | |
8261 | wxFileTypeInfo * _arg0; | |
8262 | PyObject * _argo0 = 0; | |
8263 | char *_kwnames[] = { "ftInfo", NULL }; | |
8264 | char _ptemp[128]; | |
8265 | ||
8266 | self = self; | |
8267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8268 | return NULL; | |
8269 | if (_argo0) { | |
8270 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8271 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8272 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); | |
8273 | return NULL; | |
8274 | } | |
8275 | } | |
8276 | { | |
4268f798 | 8277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8278 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8279 | |
4268f798 RD |
8280 | wxPyEndAllowThreads(__tstate); |
8281 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8282 | } if (_result) { |
8283 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8284 | _resultobj = Py_BuildValue("s",_ptemp); | |
8285 | } else { | |
8286 | Py_INCREF(Py_None); | |
8287 | _resultobj = Py_None; | |
8288 | } | |
8289 | return _resultobj; | |
8290 | } | |
8291 | ||
8292 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8293 | wxString str; | |
c8bc7bb8 RD |
8294 | if (self->GetMimeType(&str)) { |
8295 | #if wxUSE_UNICODE | |
8296 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8297 | #else | |
8298 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8299 | #endif | |
8300 | } | |
b37c7e1d RD |
8301 | else |
8302 | RETURN_NONE(); | |
8303 | } | |
8304 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8305 | PyObject * _resultobj; | |
8306 | PyObject * _result; | |
8307 | wxFileType * _arg0; | |
8308 | PyObject * _argo0 = 0; | |
8309 | char *_kwnames[] = { "self", NULL }; | |
8310 | ||
8311 | self = self; | |
8312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8313 | return NULL; | |
8314 | if (_argo0) { | |
8315 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8316 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8317 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8318 | return NULL; | |
8319 | } | |
8320 | } | |
8321 | { | |
4268f798 | 8322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8323 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b37c7e1d | 8324 | |
4268f798 RD |
8325 | wxPyEndAllowThreads(__tstate); |
8326 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8327 | }{ |
8328 | _resultobj = _result; | |
8329 | } | |
8330 | return _resultobj; | |
8331 | } | |
8332 | ||
8333 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8334 | wxArrayString arr; | |
8335 | if (self->GetMimeTypes(arr)) | |
8336 | return wxArrayString2PyList_helper(arr); | |
8337 | else | |
8338 | RETURN_NONE(); | |
8339 | } | |
8340 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8341 | PyObject * _resultobj; | |
8342 | PyObject * _result; | |
8343 | wxFileType * _arg0; | |
8344 | PyObject * _argo0 = 0; | |
8345 | char *_kwnames[] = { "self", NULL }; | |
8346 | ||
8347 | self = self; | |
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8349 | return NULL; | |
8350 | if (_argo0) { | |
8351 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8352 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8353 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8354 | return NULL; | |
8355 | } | |
8356 | } | |
8357 | { | |
4268f798 | 8358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8359 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8360 | |
4268f798 RD |
8361 | wxPyEndAllowThreads(__tstate); |
8362 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8363 | }{ |
8364 | _resultobj = _result; | |
8365 | } | |
8366 | return _resultobj; | |
8367 | } | |
8368 | ||
8369 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8370 | wxArrayString arr; | |
8371 | if (self->GetExtensions(arr)) | |
8372 | return wxArrayString2PyList_helper(arr); | |
8373 | else | |
8374 | RETURN_NONE(); | |
8375 | } | |
8376 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8377 | PyObject * _resultobj; | |
8378 | PyObject * _result; | |
8379 | wxFileType * _arg0; | |
8380 | PyObject * _argo0 = 0; | |
8381 | char *_kwnames[] = { "self", NULL }; | |
8382 | ||
8383 | self = self; | |
8384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8385 | return NULL; | |
8386 | if (_argo0) { | |
8387 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8388 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8389 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8390 | return NULL; | |
8391 | } | |
8392 | } | |
8393 | { | |
4268f798 | 8394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8395 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8396 | |
4268f798 RD |
8397 | wxPyEndAllowThreads(__tstate); |
8398 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8399 | }{ |
8400 | _resultobj = _result; | |
8401 | } | |
8402 | return _resultobj; | |
8403 | } | |
8404 | ||
8405 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
8406 | wxIcon icon; | |
8407 | if (self->GetIcon(&icon)) | |
8408 | return new wxIcon(icon); | |
8409 | else | |
8410 | return NULL; | |
8411 | } | |
8412 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8413 | PyObject * _resultobj; | |
8414 | wxIcon * _result; | |
8415 | wxFileType * _arg0; | |
8416 | PyObject * _argo0 = 0; | |
8417 | char *_kwnames[] = { "self", NULL }; | |
8418 | char _ptemp[128]; | |
8419 | ||
8420 | self = self; | |
8421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8422 | return NULL; | |
8423 | if (_argo0) { | |
8424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8427 | return NULL; | |
8428 | } | |
8429 | } | |
8430 | { | |
4268f798 | 8431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8432 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8433 | |
4268f798 RD |
8434 | wxPyEndAllowThreads(__tstate); |
8435 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8436 | } if (_result) { |
8437 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8438 | _resultobj = Py_BuildValue("s",_ptemp); | |
8439 | } else { | |
8440 | Py_INCREF(Py_None); | |
8441 | _resultobj = Py_None; | |
8442 | } | |
8443 | return _resultobj; | |
8444 | } | |
8445 | ||
8446 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
8447 | wxIcon icon; | |
8448 | wxString iconFile; | |
8449 | int iconIndex; | |
8450 | if (self->GetIcon(&icon, &iconFile, &iconIndex)) { | |
4268f798 | 8451 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8452 | PyObject* tuple = PyTuple_New(3); |
8453 | PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon), | |
8454 | "wxIcon", TRUE)); | |
c8bc7bb8 RD |
8455 | #if wxUSE_UNICODE |
8456 | PyTuple_SetItem(tuple, 1, PyUnicode_FromUnicode(iconFile.c_str(), iconFile.Len())); | |
8457 | #else | |
8458 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
8459 | #endif | |
b37c7e1d | 8460 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 8461 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8462 | return tuple; |
8463 | } | |
8464 | else | |
8465 | RETURN_NONE(); | |
8466 | } | |
8467 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8468 | PyObject * _resultobj; | |
8469 | PyObject * _result; | |
8470 | wxFileType * _arg0; | |
8471 | PyObject * _argo0 = 0; | |
8472 | char *_kwnames[] = { "self", NULL }; | |
8473 | ||
8474 | self = self; | |
8475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
8476 | return NULL; | |
8477 | if (_argo0) { | |
8478 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8479 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8480 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
8481 | return NULL; | |
8482 | } | |
8483 | } | |
8484 | { | |
4268f798 | 8485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8486 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 8487 | |
4268f798 RD |
8488 | wxPyEndAllowThreads(__tstate); |
8489 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8490 | }{ |
8491 | _resultobj = _result; | |
8492 | } | |
8493 | return _resultobj; | |
8494 | } | |
8495 | ||
8496 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
8497 | wxString str; | |
c8bc7bb8 RD |
8498 | if (self->GetDescription(&str)) { |
8499 | #if wxUSE_UNICODE | |
8500 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8501 | #else | |
8502 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8503 | #endif | |
8504 | } else | |
b37c7e1d RD |
8505 | RETURN_NONE(); |
8506 | } | |
8507 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8508 | PyObject * _resultobj; | |
8509 | PyObject * _result; | |
8510 | wxFileType * _arg0; | |
8511 | PyObject * _argo0 = 0; | |
8512 | char *_kwnames[] = { "self", NULL }; | |
8513 | ||
8514 | self = self; | |
8515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
8516 | return NULL; | |
8517 | if (_argo0) { | |
8518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
8521 | return NULL; | |
8522 | } | |
8523 | } | |
8524 | { | |
4268f798 | 8525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8526 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 8527 | |
4268f798 RD |
8528 | wxPyEndAllowThreads(__tstate); |
8529 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8530 | }{ |
8531 | _resultobj = _result; | |
8532 | } | |
8533 | return _resultobj; | |
8534 | } | |
8535 | ||
8536 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8537 | wxString str; | |
c8bc7bb8 RD |
8538 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8539 | #if wxUSE_UNICODE | |
8540 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8541 | #else | |
8542 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8543 | #endif | |
8544 | } else | |
b37c7e1d RD |
8545 | RETURN_NONE(); |
8546 | } | |
8547 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8548 | PyObject * _resultobj; | |
8549 | PyObject * _result; | |
8550 | wxFileType * _arg0; | |
8551 | wxString * _arg1; | |
23bed520 | 8552 | wxString * _arg2 = (wxString *) &wxEmptyString; |
b37c7e1d RD |
8553 | PyObject * _argo0 = 0; |
8554 | PyObject * _obj1 = 0; | |
8555 | PyObject * _obj2 = 0; | |
8556 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8557 | ||
8558 | self = self; | |
8559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8560 | return NULL; | |
8561 | if (_argo0) { | |
8562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
8565 | return NULL; | |
8566 | } | |
8567 | } | |
8568 | { | |
c8bc7bb8 RD |
8569 | _arg1 = wxString_in_helper(_obj1); |
8570 | if (_arg1 == NULL) | |
b37c7e1d | 8571 | return NULL; |
b37c7e1d RD |
8572 | } |
8573 | if (_obj2) | |
8574 | { | |
c8bc7bb8 RD |
8575 | _arg2 = wxString_in_helper(_obj2); |
8576 | if (_arg2 == NULL) | |
b37c7e1d | 8577 | return NULL; |
b37c7e1d RD |
8578 | } |
8579 | { | |
4268f798 | 8580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8581 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8582 | |
4268f798 RD |
8583 | wxPyEndAllowThreads(__tstate); |
8584 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8585 | }{ |
8586 | _resultobj = _result; | |
8587 | } | |
8588 | { | |
8589 | if (_obj1) | |
8590 | delete _arg1; | |
8591 | } | |
8592 | { | |
8593 | if (_obj2) | |
8594 | delete _arg2; | |
8595 | } | |
8596 | return _resultobj; | |
8597 | } | |
8598 | ||
8599 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8600 | wxString str; | |
c8bc7bb8 RD |
8601 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
8602 | #if wxUSE_UNICODE | |
8603 | return PyUnicode_FromUnicode(str.c_str(), str.Len()); | |
8604 | #else | |
8605 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8606 | #endif | |
8607 | } else | |
b37c7e1d RD |
8608 | RETURN_NONE(); |
8609 | } | |
8610 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8611 | PyObject * _resultobj; | |
8612 | PyObject * _result; | |
8613 | wxFileType * _arg0; | |
8614 | wxString * _arg1; | |
23bed520 | 8615 | wxString * _arg2 = (wxString *) &wxEmptyString; |
b37c7e1d RD |
8616 | PyObject * _argo0 = 0; |
8617 | PyObject * _obj1 = 0; | |
8618 | PyObject * _obj2 = 0; | |
8619 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8620 | ||
8621 | self = self; | |
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8623 | return NULL; | |
8624 | if (_argo0) { | |
8625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
8628 | return NULL; | |
8629 | } | |
8630 | } | |
8631 | { | |
c8bc7bb8 RD |
8632 | _arg1 = wxString_in_helper(_obj1); |
8633 | if (_arg1 == NULL) | |
b37c7e1d | 8634 | return NULL; |
b37c7e1d RD |
8635 | } |
8636 | if (_obj2) | |
8637 | { | |
c8bc7bb8 RD |
8638 | _arg2 = wxString_in_helper(_obj2); |
8639 | if (_arg2 == NULL) | |
b37c7e1d | 8640 | return NULL; |
b37c7e1d RD |
8641 | } |
8642 | { | |
4268f798 | 8643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8644 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8645 | |
4268f798 RD |
8646 | wxPyEndAllowThreads(__tstate); |
8647 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8648 | }{ |
8649 | _resultobj = _result; | |
8650 | } | |
8651 | { | |
8652 | if (_obj1) | |
8653 | delete _arg1; | |
8654 | } | |
8655 | { | |
8656 | if (_obj2) | |
8657 | delete _arg2; | |
8658 | } | |
8659 | return _resultobj; | |
8660 | } | |
8661 | ||
8662 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
8663 | wxArrayString verbs; | |
8664 | wxArrayString commands; | |
8665 | if (self->GetAllCommands(&verbs, &commands, | |
8666 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 8667 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
8668 | PyObject* tuple = PyTuple_New(2); |
8669 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
8670 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 8671 | wxPyEndBlockThreads(); |
b37c7e1d RD |
8672 | return tuple; |
8673 | } | |
8674 | else | |
8675 | RETURN_NONE(); | |
8676 | } | |
8677 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8678 | PyObject * _resultobj; | |
8679 | PyObject * _result; | |
8680 | wxFileType * _arg0; | |
8681 | wxString * _arg1; | |
23bed520 | 8682 | wxString * _arg2 = (wxString *) &wxEmptyString; |
b37c7e1d RD |
8683 | PyObject * _argo0 = 0; |
8684 | PyObject * _obj1 = 0; | |
8685 | PyObject * _obj2 = 0; | |
8686 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
8687 | ||
8688 | self = self; | |
8689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
8690 | return NULL; | |
8691 | if (_argo0) { | |
8692 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8693 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8694 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
8695 | return NULL; | |
8696 | } | |
8697 | } | |
8698 | { | |
c8bc7bb8 RD |
8699 | _arg1 = wxString_in_helper(_obj1); |
8700 | if (_arg1 == NULL) | |
b37c7e1d | 8701 | return NULL; |
b37c7e1d RD |
8702 | } |
8703 | if (_obj2) | |
8704 | { | |
c8bc7bb8 RD |
8705 | _arg2 = wxString_in_helper(_obj2); |
8706 | if (_arg2 == NULL) | |
b37c7e1d | 8707 | return NULL; |
b37c7e1d RD |
8708 | } |
8709 | { | |
4268f798 | 8710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8711 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 8712 | |
4268f798 RD |
8713 | wxPyEndAllowThreads(__tstate); |
8714 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8715 | }{ |
8716 | _resultobj = _result; | |
8717 | } | |
8718 | { | |
8719 | if (_obj1) | |
8720 | delete _arg1; | |
8721 | } | |
8722 | { | |
8723 | if (_obj2) | |
8724 | delete _arg2; | |
8725 | } | |
8726 | return _resultobj; | |
8727 | } | |
8728 | ||
8729 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
8730 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8731 | PyObject * _resultobj; | |
8732 | bool _result; | |
8733 | wxFileType * _arg0; | |
8734 | wxString * _arg1; | |
8735 | wxString * _arg2; | |
8736 | bool _arg3 = (bool ) TRUE; | |
8737 | PyObject * _argo0 = 0; | |
8738 | PyObject * _obj1 = 0; | |
8739 | PyObject * _obj2 = 0; | |
8740 | int tempbool3 = (int) TRUE; | |
8741 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
8742 | ||
8743 | self = self; | |
8744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
8745 | return NULL; | |
8746 | if (_argo0) { | |
8747 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8748 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
8750 | return NULL; | |
8751 | } | |
8752 | } | |
8753 | { | |
c8bc7bb8 RD |
8754 | _arg1 = wxString_in_helper(_obj1); |
8755 | if (_arg1 == NULL) | |
b37c7e1d | 8756 | return NULL; |
b37c7e1d RD |
8757 | } |
8758 | { | |
c8bc7bb8 RD |
8759 | _arg2 = wxString_in_helper(_obj2); |
8760 | if (_arg2 == NULL) | |
b37c7e1d | 8761 | return NULL; |
b37c7e1d RD |
8762 | } |
8763 | _arg3 = (bool ) tempbool3; | |
8764 | { | |
4268f798 | 8765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8766 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 8767 | |
4268f798 RD |
8768 | wxPyEndAllowThreads(__tstate); |
8769 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8770 | } _resultobj = Py_BuildValue("i",_result); |
8771 | { | |
8772 | if (_obj1) | |
8773 | delete _arg1; | |
8774 | } | |
8775 | { | |
8776 | if (_obj2) | |
8777 | delete _arg2; | |
8778 | } | |
8779 | return _resultobj; | |
8780 | } | |
8781 | ||
8782 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
8783 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8784 | PyObject * _resultobj; | |
8785 | bool _result; | |
8786 | wxFileType * _arg0; | |
8787 | wxString * _arg1 = (wxString *) &wxEmptyString; | |
8788 | int _arg2 = (int ) 0; | |
8789 | PyObject * _argo0 = 0; | |
8790 | PyObject * _obj1 = 0; | |
8791 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
8792 | ||
8793 | self = self; | |
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8795 | return NULL; | |
8796 | if (_argo0) { | |
8797 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8798 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8799 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
8800 | return NULL; | |
8801 | } | |
8802 | } | |
8803 | if (_obj1) | |
8804 | { | |
c8bc7bb8 RD |
8805 | _arg1 = wxString_in_helper(_obj1); |
8806 | if (_arg1 == NULL) | |
b37c7e1d | 8807 | return NULL; |
b37c7e1d RD |
8808 | } |
8809 | { | |
4268f798 | 8810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8811 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8812 | |
4268f798 RD |
8813 | wxPyEndAllowThreads(__tstate); |
8814 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8815 | } _resultobj = Py_BuildValue("i",_result); |
8816 | { | |
8817 | if (_obj1) | |
8818 | delete _arg1; | |
8819 | } | |
8820 | return _resultobj; | |
8821 | } | |
8822 | ||
8823 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
8824 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8825 | PyObject * _resultobj; | |
8826 | bool _result; | |
8827 | wxFileType * _arg0; | |
8828 | PyObject * _argo0 = 0; | |
8829 | char *_kwnames[] = { "self", NULL }; | |
8830 | ||
8831 | self = self; | |
8832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
8833 | return NULL; | |
8834 | if (_argo0) { | |
8835 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8836 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8837 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
8838 | return NULL; | |
8839 | } | |
8840 | } | |
8841 | { | |
4268f798 | 8842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8843 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 8844 | |
4268f798 RD |
8845 | wxPyEndAllowThreads(__tstate); |
8846 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8847 | } _resultobj = Py_BuildValue("i",_result); |
8848 | return _resultobj; | |
8849 | } | |
8850 | ||
8851 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8852 | PyObject * _resultobj; | |
8853 | wxString * _result; | |
8854 | wxString * _arg0; | |
8855 | wxFileType::MessageParameters * _arg1; | |
8856 | PyObject * _obj0 = 0; | |
8857 | PyObject * _argo1 = 0; | |
8858 | char *_kwnames[] = { "command","params", NULL }; | |
8859 | ||
8860 | self = self; | |
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
8862 | return NULL; | |
8863 | { | |
c8bc7bb8 RD |
8864 | _arg0 = wxString_in_helper(_obj0); |
8865 | if (_arg0 == NULL) | |
b37c7e1d | 8866 | return NULL; |
b37c7e1d RD |
8867 | } |
8868 | if (_argo1) { | |
8869 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8870 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { | |
8871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); | |
8872 | return NULL; | |
8873 | } | |
8874 | } | |
8875 | { | |
4268f798 | 8876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8877 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 8878 | |
4268f798 RD |
8879 | wxPyEndAllowThreads(__tstate); |
8880 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8881 | }{ |
c8bc7bb8 RD |
8882 | #if wxUSE_UNICODE |
8883 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
8884 | #else | |
b37c7e1d | 8885 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8886 | #endif |
b37c7e1d RD |
8887 | } |
8888 | { | |
8889 | if (_obj0) | |
8890 | delete _arg0; | |
8891 | } | |
8892 | { | |
8893 | delete _result; | |
8894 | } | |
8895 | return _resultobj; | |
8896 | } | |
8897 | ||
8898 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
8899 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8900 | PyObject * _resultobj; | |
8901 | wxFileType * _arg0; | |
8902 | PyObject * _argo0 = 0; | |
8903 | char *_kwnames[] = { "self", NULL }; | |
8904 | ||
8905 | self = self; | |
8906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
8907 | return NULL; | |
8908 | if (_argo0) { | |
8909 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8910 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8911 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
8912 | return NULL; | |
8913 | } | |
8914 | } | |
8915 | { | |
4268f798 | 8916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8917 | delete_wxFileType(_arg0); |
b37c7e1d | 8918 | |
4268f798 RD |
8919 | wxPyEndAllowThreads(__tstate); |
8920 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8921 | } Py_INCREF(Py_None); |
8922 | _resultobj = Py_None; | |
8923 | return _resultobj; | |
8924 | } | |
8925 | ||
8926 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8927 | PyObject * _resultobj; | |
8928 | bool _result; | |
8929 | wxString * _arg0; | |
8930 | wxString * _arg1; | |
8931 | PyObject * _obj0 = 0; | |
8932 | PyObject * _obj1 = 0; | |
8933 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
8934 | ||
8935 | self = self; | |
8936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
8937 | return NULL; | |
8938 | { | |
c8bc7bb8 RD |
8939 | _arg0 = wxString_in_helper(_obj0); |
8940 | if (_arg0 == NULL) | |
b37c7e1d | 8941 | return NULL; |
b37c7e1d RD |
8942 | } |
8943 | { | |
c8bc7bb8 RD |
8944 | _arg1 = wxString_in_helper(_obj1); |
8945 | if (_arg1 == NULL) | |
b37c7e1d | 8946 | return NULL; |
b37c7e1d RD |
8947 | } |
8948 | { | |
4268f798 | 8949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8950 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 8951 | |
4268f798 RD |
8952 | wxPyEndAllowThreads(__tstate); |
8953 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8954 | } _resultobj = Py_BuildValue("i",_result); |
8955 | { | |
8956 | if (_obj0) | |
8957 | delete _arg0; | |
8958 | } | |
8959 | { | |
8960 | if (_obj1) | |
8961 | delete _arg1; | |
8962 | } | |
8963 | return _resultobj; | |
8964 | } | |
8965 | ||
8966 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
8967 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8968 | PyObject * _resultobj; | |
8969 | wxMimeTypesManager * _result; | |
8970 | char *_kwnames[] = { NULL }; | |
8971 | char _ptemp[128]; | |
8972 | ||
8973 | self = self; | |
8974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
8975 | return NULL; | |
8976 | { | |
4268f798 | 8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8978 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 8979 | |
4268f798 RD |
8980 | wxPyEndAllowThreads(__tstate); |
8981 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8982 | } if (_result) { |
8983 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
8984 | _resultobj = Py_BuildValue("s",_ptemp); | |
8985 | } else { | |
8986 | Py_INCREF(Py_None); | |
8987 | _resultobj = Py_None; | |
8988 | } | |
8989 | return _resultobj; | |
8990 | } | |
8991 | ||
8992 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
8993 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8994 | PyObject * _resultobj; | |
8995 | wxMimeTypesManager * _arg0; | |
8996 | int _arg1 = (int ) (wxMAILCAP_STANDARD); | |
8997 | wxString * _arg2 = (wxString *) &wxEmptyString; | |
8998 | PyObject * _argo0 = 0; | |
8999 | PyObject * _obj2 = 0; | |
9000 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9001 | ||
9002 | self = self; | |
9003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9004 | return NULL; | |
9005 | if (_argo0) { | |
9006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9009 | return NULL; | |
9010 | } | |
9011 | } | |
9012 | if (_obj2) | |
9013 | { | |
c8bc7bb8 RD |
9014 | _arg2 = wxString_in_helper(_obj2); |
9015 | if (_arg2 == NULL) | |
b37c7e1d | 9016 | return NULL; |
b37c7e1d RD |
9017 | } |
9018 | { | |
4268f798 | 9019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9020 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 9021 | |
4268f798 RD |
9022 | wxPyEndAllowThreads(__tstate); |
9023 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9024 | } Py_INCREF(Py_None); |
9025 | _resultobj = Py_None; | |
9026 | { | |
9027 | if (_obj2) | |
9028 | delete _arg2; | |
9029 | } | |
9030 | return _resultobj; | |
9031 | } | |
9032 | ||
9033 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9034 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9035 | PyObject * _resultobj; | |
9036 | wxMimeTypesManager * _arg0; | |
9037 | PyObject * _argo0 = 0; | |
9038 | char *_kwnames[] = { "self", NULL }; | |
9039 | ||
9040 | self = self; | |
9041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9042 | return NULL; | |
9043 | if (_argo0) { | |
9044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9047 | return NULL; | |
9048 | } | |
9049 | } | |
9050 | { | |
4268f798 | 9051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9052 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9053 | |
4268f798 RD |
9054 | wxPyEndAllowThreads(__tstate); |
9055 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9056 | } Py_INCREF(Py_None); |
9057 | _resultobj = Py_None; | |
9058 | return _resultobj; | |
9059 | } | |
9060 | ||
9061 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9062 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9063 | PyObject * _resultobj; | |
9064 | wxFileType * _result; | |
9065 | wxMimeTypesManager * _arg0; | |
9066 | wxString * _arg1; | |
9067 | PyObject * _argo0 = 0; | |
9068 | PyObject * _obj1 = 0; | |
9069 | char *_kwnames[] = { "self","ext", NULL }; | |
9070 | char _ptemp[128]; | |
9071 | ||
9072 | self = self; | |
9073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9074 | return NULL; | |
9075 | if (_argo0) { | |
9076 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9077 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9078 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9079 | return NULL; | |
9080 | } | |
9081 | } | |
9082 | { | |
c8bc7bb8 RD |
9083 | _arg1 = wxString_in_helper(_obj1); |
9084 | if (_arg1 == NULL) | |
b37c7e1d | 9085 | return NULL; |
b37c7e1d RD |
9086 | } |
9087 | { | |
4268f798 | 9088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9089 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9090 | |
4268f798 RD |
9091 | wxPyEndAllowThreads(__tstate); |
9092 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9093 | } if (_result) { |
9094 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9095 | _resultobj = Py_BuildValue("s",_ptemp); | |
9096 | } else { | |
9097 | Py_INCREF(Py_None); | |
9098 | _resultobj = Py_None; | |
9099 | } | |
9100 | { | |
9101 | if (_obj1) | |
9102 | delete _arg1; | |
9103 | } | |
9104 | return _resultobj; | |
9105 | } | |
9106 | ||
9107 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9108 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9109 | PyObject * _resultobj; | |
9110 | wxFileType * _result; | |
9111 | wxMimeTypesManager * _arg0; | |
9112 | wxString * _arg1; | |
9113 | PyObject * _argo0 = 0; | |
9114 | PyObject * _obj1 = 0; | |
9115 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9116 | char _ptemp[128]; | |
9117 | ||
9118 | self = self; | |
9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9120 | return NULL; | |
9121 | if (_argo0) { | |
9122 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9123 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9124 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9125 | return NULL; | |
9126 | } | |
9127 | } | |
9128 | { | |
c8bc7bb8 RD |
9129 | _arg1 = wxString_in_helper(_obj1); |
9130 | if (_arg1 == NULL) | |
b37c7e1d | 9131 | return NULL; |
b37c7e1d RD |
9132 | } |
9133 | { | |
4268f798 | 9134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9135 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b37c7e1d | 9136 | |
4268f798 RD |
9137 | wxPyEndAllowThreads(__tstate); |
9138 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9139 | } if (_result) { |
9140 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9141 | _resultobj = Py_BuildValue("s",_ptemp); | |
9142 | } else { | |
9143 | Py_INCREF(Py_None); | |
9144 | _resultobj = Py_None; | |
9145 | } | |
9146 | { | |
9147 | if (_obj1) | |
9148 | delete _arg1; | |
9149 | } | |
9150 | return _resultobj; | |
9151 | } | |
9152 | ||
9153 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9154 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9155 | PyObject * _resultobj; | |
9156 | bool _result; | |
9157 | wxMimeTypesManager * _arg0; | |
9158 | wxString * _arg1; | |
9159 | bool _arg2 = (bool ) FALSE; | |
9160 | PyObject * _argo0 = 0; | |
9161 | PyObject * _obj1 = 0; | |
9162 | int tempbool2 = (int) FALSE; | |
9163 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9164 | ||
9165 | self = self; | |
9166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9167 | return NULL; | |
9168 | if (_argo0) { | |
9169 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9170 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9171 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9172 | return NULL; | |
9173 | } | |
9174 | } | |
9175 | { | |
c8bc7bb8 RD |
9176 | _arg1 = wxString_in_helper(_obj1); |
9177 | if (_arg1 == NULL) | |
b37c7e1d | 9178 | return NULL; |
b37c7e1d RD |
9179 | } |
9180 | _arg2 = (bool ) tempbool2; | |
9181 | { | |
4268f798 | 9182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9183 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9184 | |
4268f798 RD |
9185 | wxPyEndAllowThreads(__tstate); |
9186 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9187 | } _resultobj = Py_BuildValue("i",_result); |
9188 | { | |
9189 | if (_obj1) | |
9190 | delete _arg1; | |
9191 | } | |
9192 | return _resultobj; | |
9193 | } | |
9194 | ||
9195 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9196 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9197 | PyObject * _resultobj; | |
9198 | bool _result; | |
9199 | wxMimeTypesManager * _arg0; | |
9200 | wxString * _arg1; | |
9201 | PyObject * _argo0 = 0; | |
9202 | PyObject * _obj1 = 0; | |
9203 | char *_kwnames[] = { "self","filename", NULL }; | |
9204 | ||
9205 | self = self; | |
9206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9207 | return NULL; | |
9208 | if (_argo0) { | |
9209 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9210 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9211 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9212 | return NULL; | |
9213 | } | |
9214 | } | |
9215 | { | |
c8bc7bb8 RD |
9216 | _arg1 = wxString_in_helper(_obj1); |
9217 | if (_arg1 == NULL) | |
b37c7e1d | 9218 | return NULL; |
b37c7e1d RD |
9219 | } |
9220 | { | |
4268f798 | 9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9222 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9223 | |
4268f798 RD |
9224 | wxPyEndAllowThreads(__tstate); |
9225 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9226 | } _resultobj = Py_BuildValue("i",_result); |
9227 | { | |
9228 | if (_obj1) | |
9229 | delete _arg1; | |
9230 | } | |
9231 | return _resultobj; | |
9232 | } | |
9233 | ||
9234 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9235 | wxArrayString arr; | |
9236 | self->EnumAllFileTypes(arr); | |
9237 | return wxArrayString2PyList_helper(arr); | |
9238 | } | |
9239 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9240 | PyObject * _resultobj; | |
9241 | PyObject * _result; | |
9242 | wxMimeTypesManager * _arg0; | |
9243 | PyObject * _argo0 = 0; | |
9244 | char *_kwnames[] = { "self", NULL }; | |
9245 | ||
9246 | self = self; | |
9247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9248 | return NULL; | |
9249 | if (_argo0) { | |
9250 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9251 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9252 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9253 | return NULL; | |
9254 | } | |
9255 | } | |
9256 | { | |
4268f798 | 9257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9258 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9259 | |
4268f798 RD |
9260 | wxPyEndAllowThreads(__tstate); |
9261 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9262 | }{ |
9263 | _resultobj = _result; | |
9264 | } | |
9265 | return _resultobj; | |
9266 | } | |
9267 | ||
9268 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9269 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9270 | PyObject * _resultobj; | |
9271 | wxMimeTypesManager * _arg0; | |
9272 | wxFileTypeInfo * _arg1; | |
9273 | PyObject * _argo0 = 0; | |
9274 | PyObject * _argo1 = 0; | |
9275 | char *_kwnames[] = { "self","ft", NULL }; | |
9276 | ||
9277 | self = self; | |
9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9279 | return NULL; | |
9280 | if (_argo0) { | |
9281 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9282 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9283 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9284 | return NULL; | |
9285 | } | |
9286 | } | |
9287 | if (_argo1) { | |
9288 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9289 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); | |
9291 | return NULL; | |
9292 | } | |
9293 | } | |
9294 | { | |
4268f798 | 9295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9296 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9297 | |
4268f798 RD |
9298 | wxPyEndAllowThreads(__tstate); |
9299 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9300 | } Py_INCREF(Py_None); |
9301 | _resultobj = Py_None; | |
9302 | return _resultobj; | |
9303 | } | |
9304 | ||
9305 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9306 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9307 | PyObject * _resultobj; | |
9308 | wxFileType * _result; | |
9309 | wxMimeTypesManager * _arg0; | |
9310 | wxFileTypeInfo * _arg1; | |
9311 | PyObject * _argo0 = 0; | |
9312 | PyObject * _argo1 = 0; | |
9313 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9314 | char _ptemp[128]; | |
9315 | ||
9316 | self = self; | |
9317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9318 | return NULL; | |
9319 | if (_argo0) { | |
9320 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9321 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9322 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9323 | return NULL; | |
9324 | } | |
9325 | } | |
9326 | if (_argo1) { | |
9327 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9328 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { | |
9329 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); | |
9330 | return NULL; | |
9331 | } | |
9332 | } | |
9333 | { | |
4268f798 | 9334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9335 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9336 | |
4268f798 RD |
9337 | wxPyEndAllowThreads(__tstate); |
9338 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9339 | } if (_result) { |
9340 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9341 | _resultobj = Py_BuildValue("s",_ptemp); | |
9342 | } else { | |
9343 | Py_INCREF(Py_None); | |
9344 | _resultobj = Py_None; | |
9345 | } | |
9346 | return _resultobj; | |
9347 | } | |
9348 | ||
9349 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9350 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9351 | PyObject * _resultobj; | |
9352 | bool _result; | |
9353 | wxMimeTypesManager * _arg0; | |
9354 | wxFileType * _arg1; | |
9355 | PyObject * _argo0 = 0; | |
9356 | PyObject * _argo1 = 0; | |
9357 | char *_kwnames[] = { "self","ft", NULL }; | |
9358 | ||
9359 | self = self; | |
9360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9361 | return NULL; | |
9362 | if (_argo0) { | |
9363 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9364 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9365 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9366 | return NULL; | |
9367 | } | |
9368 | } | |
9369 | if (_argo1) { | |
9370 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9371 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9372 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9373 | return NULL; | |
9374 | } | |
9375 | } | |
9376 | { | |
4268f798 | 9377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9378 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9379 | |
4268f798 RD |
9380 | wxPyEndAllowThreads(__tstate); |
9381 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9382 | } _resultobj = Py_BuildValue("i",_result); |
9383 | return _resultobj; | |
9384 | } | |
9385 | ||
9386 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9387 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9388 | PyObject * _resultobj; | |
9389 | wxMimeTypesManager * _arg0; | |
9390 | PyObject * _argo0 = 0; | |
9391 | char *_kwnames[] = { "self", NULL }; | |
9392 | ||
9393 | self = self; | |
9394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9395 | return NULL; | |
9396 | if (_argo0) { | |
9397 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9398 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9399 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9400 | return NULL; | |
9401 | } | |
9402 | } | |
9403 | { | |
4268f798 | 9404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9405 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9406 | |
4268f798 RD |
9407 | wxPyEndAllowThreads(__tstate); |
9408 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9409 | } Py_INCREF(Py_None); |
9410 | _resultobj = Py_None; | |
9411 | return _resultobj; | |
9412 | } | |
9413 | ||
7dbce44a RD |
9414 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
9415 | wxFileHistory *src; | |
9416 | wxObject *dest; | |
9417 | src = (wxFileHistory *) ptr; | |
9418 | dest = (wxObject *) src; | |
9419 | return (void *) dest; | |
9420 | } | |
9421 | ||
9422 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
9423 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9424 | PyObject * _resultobj; | |
9425 | wxFileHistory * _result; | |
9426 | int _arg0 = (int ) 9; | |
9427 | char *_kwnames[] = { "maxFiles", NULL }; | |
9428 | char _ptemp[128]; | |
9429 | ||
9430 | self = self; | |
9431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
9432 | return NULL; | |
9433 | { | |
4268f798 | 9434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9435 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 9436 | |
4268f798 RD |
9437 | wxPyEndAllowThreads(__tstate); |
9438 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9439 | } if (_result) { |
9440 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
9441 | _resultobj = Py_BuildValue("s",_ptemp); | |
9442 | } else { | |
9443 | Py_INCREF(Py_None); | |
9444 | _resultobj = Py_None; | |
9445 | } | |
9446 | return _resultobj; | |
9447 | } | |
9448 | ||
9449 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
9450 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9451 | PyObject * _resultobj; | |
9452 | wxFileHistory * _arg0; | |
9453 | PyObject * _argo0 = 0; | |
9454 | char *_kwnames[] = { "self", NULL }; | |
9455 | ||
9456 | self = self; | |
9457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
9458 | return NULL; | |
9459 | if (_argo0) { | |
9460 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9461 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9462 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
9463 | return NULL; | |
9464 | } | |
9465 | } | |
9466 | { | |
4268f798 | 9467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9468 | delete_wxFileHistory(_arg0); |
7dbce44a | 9469 | |
4268f798 RD |
9470 | wxPyEndAllowThreads(__tstate); |
9471 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9472 | } Py_INCREF(Py_None); |
9473 | _resultobj = Py_None; | |
9474 | return _resultobj; | |
9475 | } | |
9476 | ||
9477 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
9478 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9479 | PyObject * _resultobj; | |
9480 | wxFileHistory * _arg0; | |
9481 | wxString * _arg1; | |
9482 | PyObject * _argo0 = 0; | |
9483 | PyObject * _obj1 = 0; | |
9484 | char *_kwnames[] = { "self","file", NULL }; | |
9485 | ||
9486 | self = self; | |
9487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
9488 | return NULL; | |
9489 | if (_argo0) { | |
9490 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9491 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9492 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
9493 | return NULL; | |
9494 | } | |
9495 | } | |
9496 | { | |
c8bc7bb8 RD |
9497 | _arg1 = wxString_in_helper(_obj1); |
9498 | if (_arg1 == NULL) | |
7dbce44a | 9499 | return NULL; |
7dbce44a RD |
9500 | } |
9501 | { | |
4268f798 | 9502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9503 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 9504 | |
4268f798 RD |
9505 | wxPyEndAllowThreads(__tstate); |
9506 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9507 | } Py_INCREF(Py_None); |
9508 | _resultobj = Py_None; | |
9509 | { | |
9510 | if (_obj1) | |
9511 | delete _arg1; | |
9512 | } | |
9513 | return _resultobj; | |
9514 | } | |
9515 | ||
9516 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
9517 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9518 | PyObject * _resultobj; | |
9519 | wxFileHistory * _arg0; | |
9520 | int _arg1; | |
9521 | PyObject * _argo0 = 0; | |
9522 | char *_kwnames[] = { "self","i", NULL }; | |
9523 | ||
9524 | self = self; | |
9525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
9526 | return NULL; | |
9527 | if (_argo0) { | |
9528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
9531 | return NULL; | |
9532 | } | |
9533 | } | |
9534 | { | |
4268f798 | 9535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9536 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 9537 | |
4268f798 RD |
9538 | wxPyEndAllowThreads(__tstate); |
9539 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9540 | } Py_INCREF(Py_None); |
9541 | _resultobj = Py_None; | |
9542 | return _resultobj; | |
9543 | } | |
9544 | ||
9545 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
9546 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9547 | PyObject * _resultobj; | |
9548 | int _result; | |
9549 | wxFileHistory * _arg0; | |
9550 | PyObject * _argo0 = 0; | |
9551 | char *_kwnames[] = { "self", NULL }; | |
9552 | ||
9553 | self = self; | |
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
9555 | return NULL; | |
9556 | if (_argo0) { | |
9557 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9558 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9559 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
9560 | return NULL; | |
9561 | } | |
9562 | } | |
9563 | { | |
4268f798 | 9564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9565 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 9566 | |
4268f798 RD |
9567 | wxPyEndAllowThreads(__tstate); |
9568 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9569 | } _resultobj = Py_BuildValue("i",_result); |
9570 | return _resultobj; | |
9571 | } | |
9572 | ||
9573 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
9574 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9575 | PyObject * _resultobj; | |
9576 | wxFileHistory * _arg0; | |
9577 | wxMenu * _arg1; | |
9578 | PyObject * _argo0 = 0; | |
9579 | PyObject * _argo1 = 0; | |
9580 | char *_kwnames[] = { "self","menu", NULL }; | |
9581 | ||
9582 | self = self; | |
9583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
9584 | return NULL; | |
9585 | if (_argo0) { | |
9586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
9589 | return NULL; | |
9590 | } | |
9591 | } | |
9592 | if (_argo1) { | |
9593 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9594 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9595 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
9596 | return NULL; | |
9597 | } | |
9598 | } | |
9599 | { | |
4268f798 | 9600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9601 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 9602 | |
4268f798 RD |
9603 | wxPyEndAllowThreads(__tstate); |
9604 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9605 | } Py_INCREF(Py_None); |
9606 | _resultobj = Py_None; | |
9607 | return _resultobj; | |
9608 | } | |
9609 | ||
9610 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
9611 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9612 | PyObject * _resultobj; | |
9613 | wxFileHistory * _arg0; | |
9614 | wxMenu * _arg1; | |
9615 | PyObject * _argo0 = 0; | |
9616 | PyObject * _argo1 = 0; | |
9617 | char *_kwnames[] = { "self","menu", NULL }; | |
9618 | ||
9619 | self = self; | |
9620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
9621 | return NULL; | |
9622 | if (_argo0) { | |
9623 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9624 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9625 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
9626 | return NULL; | |
9627 | } | |
9628 | } | |
9629 | if (_argo1) { | |
9630 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9631 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9632 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
9633 | return NULL; | |
9634 | } | |
9635 | } | |
9636 | { | |
4268f798 | 9637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9638 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 9639 | |
4268f798 RD |
9640 | wxPyEndAllowThreads(__tstate); |
9641 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9642 | } Py_INCREF(Py_None); |
9643 | _resultobj = Py_None; | |
9644 | return _resultobj; | |
9645 | } | |
9646 | ||
9647 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
9648 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9649 | PyObject * _resultobj; | |
9650 | wxFileHistory * _arg0; | |
9651 | wxConfigBase * _arg1; | |
9652 | PyObject * _argo0 = 0; | |
9653 | PyObject * _argo1 = 0; | |
9654 | char *_kwnames[] = { "self","config", NULL }; | |
9655 | ||
9656 | self = self; | |
9657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
9658 | return NULL; | |
9659 | if (_argo0) { | |
9660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
9663 | return NULL; | |
9664 | } | |
9665 | } | |
9666 | if (_argo1) { | |
9667 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9668 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9669 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); | |
9670 | return NULL; | |
9671 | } | |
9672 | } | |
9673 | { | |
4268f798 | 9674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9675 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 9676 | |
4268f798 RD |
9677 | wxPyEndAllowThreads(__tstate); |
9678 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9679 | } Py_INCREF(Py_None); |
9680 | _resultobj = Py_None; | |
9681 | return _resultobj; | |
9682 | } | |
9683 | ||
9684 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
9685 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9686 | PyObject * _resultobj; | |
9687 | wxFileHistory * _arg0; | |
9688 | wxConfigBase * _arg1; | |
9689 | PyObject * _argo0 = 0; | |
9690 | PyObject * _argo1 = 0; | |
9691 | char *_kwnames[] = { "self","config", NULL }; | |
9692 | ||
9693 | self = self; | |
9694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
9695 | return NULL; | |
9696 | if (_argo0) { | |
9697 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9698 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9699 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
9700 | return NULL; | |
9701 | } | |
9702 | } | |
9703 | if (_argo1) { | |
9704 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9705 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { | |
9706 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); | |
9707 | return NULL; | |
9708 | } | |
9709 | } | |
9710 | { | |
4268f798 | 9711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9712 | wxFileHistory_Save(_arg0,*_arg1); |
7dbce44a | 9713 | |
4268f798 RD |
9714 | wxPyEndAllowThreads(__tstate); |
9715 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9716 | } Py_INCREF(Py_None); |
9717 | _resultobj = Py_None; | |
9718 | return _resultobj; | |
9719 | } | |
9720 | ||
9721 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
9722 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9723 | PyObject * _resultobj; | |
9724 | wxFileHistory * _arg0; | |
9725 | PyObject * _argo0 = 0; | |
9726 | char *_kwnames[] = { "self", NULL }; | |
9727 | ||
9728 | self = self; | |
9729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
9730 | return NULL; | |
9731 | if (_argo0) { | |
9732 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9733 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9734 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
9735 | return NULL; | |
9736 | } | |
9737 | } | |
9738 | { | |
4268f798 | 9739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9740 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 9741 | |
4268f798 RD |
9742 | wxPyEndAllowThreads(__tstate); |
9743 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9744 | } Py_INCREF(Py_None); |
9745 | _resultobj = Py_None; | |
9746 | return _resultobj; | |
9747 | } | |
9748 | ||
9749 | #define wxFileHistory_AddFilesToSingleMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) | |
9750 | static PyObject *_wrap_wxFileHistory_AddFilesToSingleMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9751 | PyObject * _resultobj; | |
9752 | wxFileHistory * _arg0; | |
9753 | wxMenu * _arg1; | |
9754 | PyObject * _argo0 = 0; | |
9755 | PyObject * _argo1 = 0; | |
9756 | char *_kwnames[] = { "self","menu", NULL }; | |
9757 | ||
9758 | self = self; | |
9759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToSingleMenu",_kwnames,&_argo0,&_argo1)) | |
9760 | return NULL; | |
9761 | if (_argo0) { | |
9762 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9763 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9764 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToSingleMenu. Expected _wxFileHistory_p."); | |
9765 | return NULL; | |
9766 | } | |
9767 | } | |
9768 | if (_argo1) { | |
9769 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9770 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
9771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToSingleMenu. Expected _wxMenu_p."); | |
9772 | return NULL; | |
9773 | } | |
9774 | } | |
9775 | { | |
4268f798 | 9776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9777 | wxFileHistory_AddFilesToSingleMenu(_arg0,_arg1); |
7dbce44a | 9778 | |
4268f798 RD |
9779 | wxPyEndAllowThreads(__tstate); |
9780 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9781 | } Py_INCREF(Py_None); |
9782 | _resultobj = Py_None; | |
9783 | return _resultobj; | |
9784 | } | |
9785 | ||
9786 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
9787 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject * _resultobj; | |
9789 | wxString * _result; | |
9790 | wxFileHistory * _arg0; | |
9791 | int _arg1; | |
9792 | PyObject * _argo0 = 0; | |
9793 | char *_kwnames[] = { "self","i", NULL }; | |
9794 | ||
9795 | self = self; | |
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
9797 | return NULL; | |
9798 | if (_argo0) { | |
9799 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9800 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9801 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
9802 | return NULL; | |
9803 | } | |
9804 | } | |
9805 | { | |
4268f798 | 9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9807 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 9808 | |
4268f798 RD |
9809 | wxPyEndAllowThreads(__tstate); |
9810 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 9811 | }{ |
c8bc7bb8 RD |
9812 | #if wxUSE_UNICODE |
9813 | _resultobj = PyUnicode_FromUnicode(_result->c_str(), _result->Len()); | |
9814 | #else | |
7dbce44a | 9815 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9816 | #endif |
7dbce44a RD |
9817 | } |
9818 | { | |
9819 | delete _result; | |
9820 | } | |
9821 | return _resultobj; | |
9822 | } | |
9823 | ||
9824 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
9825 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9826 | PyObject * _resultobj; | |
9827 | int _result; | |
9828 | wxFileHistory * _arg0; | |
9829 | PyObject * _argo0 = 0; | |
9830 | char *_kwnames[] = { "self", NULL }; | |
9831 | ||
9832 | self = self; | |
9833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
9834 | return NULL; | |
9835 | if (_argo0) { | |
9836 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9837 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9838 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
9839 | return NULL; | |
9840 | } | |
9841 | } | |
9842 | { | |
4268f798 | 9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9844 | _result = (int )wxFileHistory_GetCount(_arg0); |
7dbce44a | 9845 | |
4268f798 RD |
9846 | wxPyEndAllowThreads(__tstate); |
9847 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9848 | } _resultobj = Py_BuildValue("i",_result); |
9849 | return _resultobj; | |
9850 | } | |
9851 | ||
9852 | #define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles()) | |
9853 | static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9854 | PyObject * _resultobj; | |
9855 | int _result; | |
9856 | wxFileHistory * _arg0; | |
9857 | PyObject * _argo0 = 0; | |
9858 | char *_kwnames[] = { "self", NULL }; | |
9859 | ||
9860 | self = self; | |
9861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0)) | |
9862 | return NULL; | |
9863 | if (_argo0) { | |
9864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
9866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p."); | |
9867 | return NULL; | |
9868 | } | |
9869 | } | |
9870 | { | |
4268f798 | 9871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9872 | _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0); |
7dbce44a | 9873 | |
4268f798 RD |
9874 | wxPyEndAllowThreads(__tstate); |
9875 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
9876 | } _resultobj = Py_BuildValue("i",_result); |
9877 | return _resultobj; | |
9878 | } | |
9879 | ||
bb0054cd | 9880 | static PyMethodDef misc2cMethods[] = { |
7dbce44a RD |
9881 | { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS }, |
9882 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
9883 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
9884 | { "wxFileHistory_AddFilesToSingleMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToSingleMenu, METH_VARARGS | METH_KEYWORDS }, | |
9885 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, | |
9886 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
9887 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
9888 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
9889 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
9890 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
9891 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
9892 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
9893 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
9894 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
9895 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
9896 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9897 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
9898 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
9899 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
9900 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9901 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
9902 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9903 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
9904 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
9905 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
9906 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
9907 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
9908 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9909 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
9910 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
9911 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
9912 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
9913 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
9914 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9915 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9916 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9917 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
9918 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9919 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9920 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
9921 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9922 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
9923 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
9924 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
9925 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
9926 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
9927 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
9928 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9929 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
9930 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
9931 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
9932 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
9933 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
9934 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
9935 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
9936 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
9937 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
9938 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
9939 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9940 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
9941 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
9942 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
9943 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
9944 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
9945 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
9946 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
9947 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
9948 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
9949 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
9950 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
9951 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
9952 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
9953 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
9954 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
9955 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
9956 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
9957 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
9958 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
9959 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
9960 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
9961 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
9962 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
9963 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
9964 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
9965 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
9966 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
9967 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
9968 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
9969 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
9970 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
9971 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
9972 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
9973 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
9974 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9975 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
9976 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9977 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
9978 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
9979 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
9980 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
9981 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
9982 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
9983 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 9984 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 9985 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9986 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
9987 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
9988 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
9989 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
9990 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
9991 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
9992 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
9993 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 9994 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
9995 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
9996 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
9997 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, | |
9998 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
9999 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
10000 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
10001 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
10002 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
10003 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10004 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 10005 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 RD |
10006 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
10007 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10008 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10009 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10010 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
10011 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10012 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
10013 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
10014 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
10015 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10016 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
10017 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
10018 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
10019 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
10020 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
10021 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
10022 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 10023 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10024 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10025 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10026 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
10027 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
10028 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
10029 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10030 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
10031 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10032 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
10033 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
10034 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10035 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10036 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
10037 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10038 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
10039 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
10040 | { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS }, | |
10041 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, | |
10042 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
10043 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
10044 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
10045 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
10046 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
10047 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
10048 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
10049 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 10050 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 10051 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10052 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
10053 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
10054 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
10055 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
10056 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
10057 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
10058 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10059 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
10060 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
10061 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
10062 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
10063 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
10064 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
10065 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
10066 | { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS }, | |
10067 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
10e07c70 | 10068 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 10069 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
10070 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
10071 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
10072 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
10073 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10074 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
10075 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
10076 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, | |
10077 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10078 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10079 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
10080 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
10081 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
10082 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
10083 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
10084 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
65dd82cb RD |
10085 | { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS }, |
10086 | { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS }, | |
b1462dfa RD |
10087 | { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS }, |
10088 | { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 10089 | { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa RD |
10090 | { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, |
10091 | { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10092 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
10093 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
10094 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
10095 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
10096 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
10097 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
10098 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
10099 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
10100 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
10101 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
10102 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
10103 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
10104 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
10105 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
10106 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
10107 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
10108 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10109 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
10110 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
10111 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
10112 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
10113 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
10114 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
10115 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
10116 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 | 10117 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 10118 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
10119 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
10120 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
10121 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
10122 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
10123 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, | |
10124 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
10125 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
10126 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
10127 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
10128 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
10129 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
10130 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
10131 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
10132 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
10133 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
10134 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
10135 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 10136 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 10137 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 10138 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
10139 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
10140 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10141 | { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS }, |
10142 | { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS }, | |
10143 | { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS }, | |
10144 | { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
10145 | { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS }, | |
10146 | { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS }, | |
10147 | { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS }, | |
10148 | { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS }, | |
10149 | { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS }, | |
25832b3f | 10150 | { "wxFlushEvents", (PyCFunction) _wrap_wxFlushEvents, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
10151 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
10152 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
10153 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10154 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
10155 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
10156 | { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS }, |
10157 | { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10158 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
10159 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
10160 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
10161 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
10162 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
10163 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10164 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
10165 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
10166 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
10167 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
10168 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
10169 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
10170 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
10171 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 10172 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 10173 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
10174 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
10175 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 10176 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
10177 | { NULL, NULL } |
10178 | }; | |
1d99702e RD |
10179 | #ifdef __cplusplus |
10180 | } | |
10181 | #endif | |
10182 | /* | |
10183 | * This table is used by the pointer type-checker | |
10184 | */ | |
10185 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 10186 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 10187 | { "_signed_long","_long",0}, |
b1462dfa | 10188 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
10189 | { "_wxPrintQuality","_int",0}, |
10190 | { "_wxPrintQuality","_signed_int",0}, | |
10191 | { "_wxPrintQuality","_unsigned_int",0}, | |
10192 | { "_wxPrintQuality","_wxWindowID",0}, | |
10193 | { "_wxPrintQuality","_uint",0}, | |
10194 | { "_wxPrintQuality","_EBool",0}, | |
10195 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 10196 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
10197 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
10198 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 10199 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 10200 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 10201 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 10202 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 10203 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
10204 | { "_long","_unsigned_long",0}, |
10205 | { "_long","_signed_long",0}, | |
b1462dfa | 10206 | { "_size_t","_wxCoord",0}, |
1d99702e | 10207 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 10208 | { "_size_t","_time_t",0}, |
1d99702e RD |
10209 | { "_size_t","_unsigned_int",0}, |
10210 | { "_size_t","_int",0}, | |
10211 | { "_size_t","_wxWindowID",0}, | |
10212 | { "_size_t","_uint",0}, | |
b1462dfa | 10213 | { "_uint","_wxCoord",0}, |
1d99702e | 10214 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 10215 | { "_uint","_time_t",0}, |
1d99702e RD |
10216 | { "_uint","_size_t",0}, |
10217 | { "_uint","_unsigned_int",0}, | |
10218 | { "_uint","_int",0}, | |
10219 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 10220 | { "_wxChar","_char",0}, |
f6bcfd97 | 10221 | { "_char","_wxChar",0}, |
cdf14688 | 10222 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 10223 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
10224 | { "_EBool","_wxPrintQuality",0}, |
10225 | { "_EBool","_signed_int",0}, | |
10226 | { "_EBool","_int",0}, | |
10227 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 10228 | { "_unsigned_long","_long",0}, |
cdf14688 | 10229 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 10230 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
10231 | { "_signed_int","_wxPrintQuality",0}, |
10232 | { "_signed_int","_EBool",0}, | |
10233 | { "_signed_int","_wxWindowID",0}, | |
10234 | { "_signed_int","_int",0}, | |
7dbce44a | 10235 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
10236 | { "_WXTYPE","_short",0}, |
10237 | { "_WXTYPE","_signed_short",0}, | |
10238 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 10239 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 10240 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
10241 | { "_unsigned_short","_WXTYPE",0}, |
10242 | { "_unsigned_short","_short",0}, | |
7dbce44a | 10243 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
493f1553 | 10244 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 10245 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 10246 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 10247 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 10248 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 10249 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 10250 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
1d99702e RD |
10251 | { "_signed_short","_WXTYPE",0}, |
10252 | { "_signed_short","_short",0}, | |
1d99702e | 10253 | { "_unsigned_char","_byte",0}, |
b1462dfa | 10254 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 10255 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 10256 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
10257 | { "_unsigned_int","_size_t",0}, |
10258 | { "_unsigned_int","_uint",0}, | |
10259 | { "_unsigned_int","_wxWindowID",0}, | |
10260 | { "_unsigned_int","_int",0}, | |
7dbce44a | 10261 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
10262 | { "_short","_WXTYPE",0}, |
10263 | { "_short","_unsigned_short",0}, | |
10264 | { "_short","_signed_short",0}, | |
b1462dfa | 10265 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 10266 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 10267 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
10268 | { "_wxWindowID","_size_t",0}, |
10269 | { "_wxWindowID","_EBool",0}, | |
10270 | { "_wxWindowID","_uint",0}, | |
10271 | { "_wxWindowID","_int",0}, | |
10272 | { "_wxWindowID","_signed_int",0}, | |
10273 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 10274 | { "_int","_wxCoord",0}, |
1d99702e | 10275 | { "_int","_wxPrintQuality",0}, |
c368d904 | 10276 | { "_int","_time_t",0}, |
1d99702e RD |
10277 | { "_int","_size_t",0}, |
10278 | { "_int","_EBool",0}, | |
10279 | { "_int","_uint",0}, | |
10280 | { "_int","_wxWindowID",0}, | |
10281 | { "_int","_unsigned_int",0}, | |
10282 | { "_int","_signed_int",0}, | |
7dbce44a RD |
10283 | { "_wxDateTime_t","_unsigned_short",0}, |
10284 | { "_wxDateTime_t","_short",0}, | |
10285 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
10286 | { "_time_t","_wxCoord",0}, |
10287 | { "_time_t","_wxPrintQuality",0}, | |
10288 | { "_time_t","_unsigned_int",0}, | |
10289 | { "_time_t","_int",0}, | |
10290 | { "_time_t","_wxWindowID",0}, | |
10291 | { "_time_t","_uint",0}, | |
10292 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
10293 | { "_wxCoord","_int",0}, |
10294 | { "_wxCoord","_signed_int",0}, | |
10295 | { "_wxCoord","_unsigned_int",0}, | |
10296 | { "_wxCoord","_wxWindowID",0}, | |
10297 | { "_wxCoord","_uint",0}, | |
10298 | { "_wxCoord","_EBool",0}, | |
10299 | { "_wxCoord","_size_t",0}, | |
c368d904 | 10300 | { "_wxCoord","_time_t",0}, |
b1462dfa | 10301 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 10302 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
10303 | {0,0,0}}; |
10304 | ||
bb0054cd RD |
10305 | static PyObject *SWIG_globals; |
10306 | #ifdef __cplusplus | |
10307 | extern "C" | |
10308 | #endif | |
1d99702e | 10309 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
10310 | PyObject *m, *d; |
10311 | SWIG_globals = SWIG_newvarlink(); | |
10312 | m = Py_InitModule("misc2c", misc2cMethods); | |
10313 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
10314 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
10315 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
10316 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
10317 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
10318 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
10319 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
10320 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
10321 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
10322 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
10323 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 10324 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
10325 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
10326 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
10327 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
10328 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
10329 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
10330 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
10331 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
10332 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
10333 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
10334 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
10335 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
10336 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
10337 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
10338 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 10339 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 10340 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 10341 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
10342 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
10343 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
10344 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
10345 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
10346 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
10347 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
10348 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
10349 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
10350 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
10351 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
10352 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 10353 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
10354 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
10355 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
10356 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
10357 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
10358 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
10359 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
10360 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
10361 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
10362 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
10363 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
10364 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
10365 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
10366 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
10367 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
10368 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
10369 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
10370 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
10371 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
10372 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
10373 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
10374 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
10375 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
10376 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
10377 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
10378 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
10379 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
10380 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
10381 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
10382 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
10383 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
10384 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
10385 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
10386 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
10387 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
10388 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
10389 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
10390 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
10391 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
10392 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
10393 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
10394 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
10395 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
10396 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
10397 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
10398 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
f6bcfd97 BP |
10399 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
10400 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
10401 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
10402 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
10403 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
10404 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
10405 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
10406 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
10407 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
10408 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
1b62f00d | 10409 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); |
b37c7e1d RD |
10410 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
10411 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
10412 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
10413 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
10414 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
10415 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
10416 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9416aa89 RD |
10417 | |
10418 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
10419 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
10420 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
1d99702e RD |
10421 | { |
10422 | int i; | |
10423 | for (i = 0; _swig_mapping[i].n1; i++) | |
10424 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
10425 | } | |
bb0054cd | 10426 | } |