]>
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 | |
7e50db3f RD |
22 | #include "Python.h" |
23 | ||
bb0054cd RD |
24 | #include <string.h> |
25 | #include <stdlib.h> | |
26 | /* Definitions for Windows/Unix exporting */ | |
27 | #if defined(__WIN32__) | |
28 | # if defined(_MSC_VER) | |
1d99702e | 29 | # define SWIGEXPORT(a) __declspec(dllexport) a |
bb0054cd RD |
30 | # else |
31 | # if defined(__BORLANDC__) | |
c368d904 | 32 | # define SWIGEXPORT(a) a _export |
bb0054cd | 33 | # else |
c368d904 | 34 | # define SWIGEXPORT(a) a |
bb0054cd RD |
35 | # endif |
36 | # endif | |
37 | #else | |
c368d904 | 38 | # define SWIGEXPORT(a) a |
bb0054cd RD |
39 | #endif |
40 | ||
41 | #ifdef __cplusplus | |
42 | extern "C" { | |
43 | #endif | |
bb0054cd RD |
44 | extern void SWIG_MakePtr(char *, void *, char *); |
45 | extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *)); | |
46 | extern char *SWIG_GetPtr(char *, void **, char *); | |
1d99702e | 47 | extern char *SWIG_GetPtrObj(PyObject *, void **, char *); |
bb0054cd RD |
48 | extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); |
49 | extern PyObject *SWIG_newvarlink(void); | |
50 | #ifdef __cplusplus | |
51 | } | |
52 | #endif | |
bb0054cd RD |
53 | #define SWIG_init initmisc2c |
54 | ||
55 | #define SWIG_name "misc2c" | |
56 | ||
57 | #include "helpers.h" | |
5ae76026 | 58 | #include "pyistream.h" |
bb0054cd | 59 | #include <wx/tooltip.h> |
f0261a72 | 60 | #include <wx/caret.h> |
f6bcfd97 | 61 | #include <wx/tipdlg.h> |
c368d904 | 62 | #include <wx/process.h> |
493f1553 RD |
63 | |
64 | #if wxUSE_JOYSTICK || defined(__WXMSW__) | |
185d7c3e | 65 | #include <wx/joystick.h> |
e0672e2f | 66 | #endif |
bb0054cd | 67 | |
493f1553 RD |
68 | #if wxUSE_WAVE || defined(__WXMSW__) |
69 | #include <wx/wave.h> | |
70 | #endif | |
71 | ||
b37c7e1d | 72 | #include <wx/mimetype.h> |
67a92fff RD |
73 | #include <wx/snglinst.h> |
74 | #include <wx/effects.h> | |
5a2a9da2 | 75 | #include <wx/sysopt.h> |
b37c7e1d | 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 | ||
137b5242 RD |
104 | // Put some wx default wxChar* values into wxStrings. |
105 | DECLARE_DEF_STRING(FileSelectorPromptStr); | |
106 | DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr); | |
7cdaed0b | 107 | DECLARE_DEF_STRING(DirSelectorPromptStr); |
137b5242 RD |
108 | static const wxString wxPyEmptyString(wxT("")); |
109 | ||
06c0fba4 RD |
110 | int wxCaret_GetBlinkTime() { |
111 | return wxCaret::GetBlinkTime(); | |
112 | } | |
113 | ||
114 | void wxCaret_SetBlinkTime(int milliseconds) { | |
115 | wxCaret::SetBlinkTime(milliseconds); | |
116 | } | |
b1462dfa | 117 | |
6e18ca6c | 118 | bool wxThread_IsMain() { |
00ca6262 | 119 | #ifdef WXP_WITH_THREAD |
6e18ca6c | 120 | return wxThread::IsMain(); |
00ca6262 RD |
121 | #else |
122 | return TRUE; | |
123 | #endif | |
6e18ca6c RD |
124 | } |
125 | ||
f6bcfd97 BP |
126 | class wxPyTipProvider : public wxTipProvider { |
127 | public: | |
128 | wxPyTipProvider(size_t currentTip) | |
129 | : wxTipProvider(currentTip) {} | |
130 | ||
131 | DEC_PYCALLBACK_STRING__pure(GetTip); | |
67a92fff | 132 | DEC_PYCALLBACK_STRING_STRING(PreprocessTip); |
f6bcfd97 BP |
133 | PYPRIVATE; |
134 | }; | |
135 | ||
136 | IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip); | |
67a92fff | 137 | IMP_PYCALLBACK_STRING_STRING(wxPyTipProvider, wxTipProvider, PreprocessTip); |
f6bcfd97 BP |
138 | |
139 | #include <wx/generic/dragimgg.h> | |
76bfdc78 | 140 | |
19e30148 | 141 | // A wxLog class that can be derived from in wxPython |
76bfdc78 RD |
142 | class wxPyLog : public wxLog { |
143 | public: | |
144 | wxPyLog() : wxLog() {} | |
145 | ||
146 | virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) { | |
147 | bool found; | |
4268f798 | 148 | wxPyBeginBlockThreads(); |
a66212dc RD |
149 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLog"))) { |
150 | PyObject* s = wx2PyString(szString); | |
151 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(iOi)", level, s, t)); | |
152 | Py_DECREF(s); | |
153 | } | |
4268f798 | 154 | wxPyEndBlockThreads(); |
76bfdc78 RD |
155 | if (! found) |
156 | wxLog::DoLog(level, szString, t); | |
157 | } | |
158 | ||
159 | virtual void DoLogString(const wxChar *szString, time_t t) { | |
160 | bool found; | |
4268f798 | 161 | wxPyBeginBlockThreads(); |
a66212dc RD |
162 | if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString"))) { |
163 | PyObject* s = wx2PyString(szString); | |
164 | wxPyCBH_callCallback(m_myInst, Py_BuildValue("(Oi)", s, t)); | |
165 | Py_DECREF(s); | |
166 | } | |
4268f798 | 167 | wxPyEndBlockThreads(); |
76bfdc78 RD |
168 | if (! found) |
169 | wxLog::DoLogString(szString, t); | |
170 | } | |
171 | ||
172 | PYPRIVATE; | |
173 | }; | |
c368d904 RD |
174 | // C++ version of wxProcess derived class |
175 | ||
176 | class wxPyProcess : public wxProcess { | |
177 | public: | |
178 | wxPyProcess(wxEvtHandler *parent = NULL, int id = -1) | |
179 | : wxProcess(parent, id) | |
180 | {} | |
181 | ||
182 | DEC_PYCALLBACK_VOID_INTINT(OnTerminate); | |
183 | ||
184 | PYPRIVATE; | |
185 | }; | |
186 | ||
187 | IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate); | |
493f1553 | 188 | |
19a97bd6 | 189 | |
493f1553 RD |
190 | #if !wxUSE_JOYSTICK && !defined(__WXMSW__) |
191 | // A C++ stub class for wxJoystick for platforms that don't have it. | |
192 | class wxJoystick : public wxObject { | |
193 | public: | |
194 | wxJoystick(int joystick = wxJOYSTICK1) { | |
4268f798 | 195 | wxPyBeginBlockThreads(); |
493f1553 | 196 | PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform."); |
4268f798 | 197 | wxPyEndBlockThreads(); |
493f1553 RD |
198 | } |
199 | wxPoint GetPosition() { return wxPoint(-1,-1); } | |
200 | int GetZPosition() { return -1; } | |
201 | int GetButtonState() { return -1; } | |
202 | int GetPOVPosition() { return -1; } | |
203 | int GetPOVCTSPosition() { return -1; } | |
204 | int GetRudderPosition() { return -1; } | |
205 | int GetUPosition() { return -1; } | |
206 | int GetVPosition() { return -1; } | |
207 | int GetMovementThreshold() { return -1; } | |
d56cebe7 | 208 | void SetMovementThreshold(int threshold) {} |
493f1553 RD |
209 | |
210 | bool IsOk(void) { return FALSE; } | |
211 | int GetNumberJoysticks() { return -1; } | |
212 | int GetManufacturerId() { return -1; } | |
213 | int GetProductId() { return -1; } | |
214 | wxString GetProductName() { return ""; } | |
215 | int GetXMin() { return -1; } | |
216 | int GetYMin() { return -1; } | |
217 | int GetZMin() { return -1; } | |
218 | int GetXMax() { return -1; } | |
219 | int GetYMax() { return -1; } | |
220 | int GetZMax() { return -1; } | |
221 | int GetNumberButtons() { return -1; } | |
222 | int GetNumberAxes() { return -1; } | |
223 | int GetMaxButtons() { return -1; } | |
224 | int GetMaxAxes() { return -1; } | |
225 | int GetPollingMin() { return -1; } | |
226 | int GetPollingMax() { return -1; } | |
227 | int GetRudderMin() { return -1; } | |
228 | int GetRudderMax() { return -1; } | |
229 | int GetUMin() { return -1; } | |
230 | int GetUMax() { return -1; } | |
231 | int GetVMin() { return -1; } | |
232 | int GetVMax() { return -1; } | |
233 | ||
234 | bool HasRudder() { return FALSE; } | |
235 | bool HasZ() { return FALSE; } | |
236 | bool HasU() { return FALSE; } | |
237 | bool HasV() { return FALSE; } | |
238 | bool HasPOV() { return FALSE; } | |
239 | bool HasPOV4Dir() { return FALSE; } | |
240 | bool HasPOVCTS() { return FALSE; } | |
241 | ||
242 | bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; } | |
243 | bool ReleaseCapture() { return FALSE; } | |
244 | }; | |
245 | #endif | |
246 | ||
0adbc166 | 247 | #if !wxUSE_WAVE |
493f1553 RD |
248 | // A C++ stub class for wxWave for platforms that don't have it. |
249 | class wxWave : public wxObject | |
250 | { | |
251 | public: | |
252 | wxWave(const wxString& fileName, bool isResource = FALSE) { | |
4268f798 | 253 | wxPyBeginBlockThreads(); |
493f1553 | 254 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 255 | wxPyEndBlockThreads(); |
493f1553 RD |
256 | } |
257 | wxWave(int size, const wxByte* data) { | |
4268f798 | 258 | wxPyBeginBlockThreads(); |
493f1553 | 259 | PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform."); |
4268f798 | 260 | wxPyEndBlockThreads(); |
493f1553 RD |
261 | } |
262 | ||
263 | ~wxWave() {} | |
264 | ||
265 | bool IsOk() const { return FALSE; } | |
266 | bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; } | |
267 | }; | |
268 | ||
269 | #endif | |
270 | // Implementations of some alternate "constructors" | |
271 | wxWave* wxWaveData(const wxString& data) { | |
272 | return new wxWave(data.Len(), (wxByte*)data.c_str()); | |
273 | } | |
b37c7e1d RD |
274 | |
275 | #if 0 | |
276 | extern wxMimeTypesManager * wxTheMimeTypesManager; | |
277 | ||
278 | #endif | |
7dbce44a | 279 | |
72797a7d RD |
280 | #include <wx/artprov.h> |
281 | ||
282 | DECLARE_DEF_STRING(ART_OTHER); | |
283 | ||
284 | // Python aware wxArtProvider | |
285 | class wxPyArtProvider : public wxArtProvider { | |
286 | public: | |
287 | ||
288 | virtual wxBitmap CreateBitmap(const wxArtID& id, | |
289 | const wxArtClient& client, | |
290 | const wxSize& size) { | |
291 | wxBitmap rval = wxNullBitmap; | |
292 | wxPyBeginBlockThreads(); | |
293 | if ((wxPyCBH_findCallback(m_myInst, "CreateBitmap"))) { | |
7e50db3f | 294 | PyObject* so = wxPyConstructObject((void*)&size, wxT("wxSize"), 0); |
72797a7d RD |
295 | PyObject* ro; |
296 | wxBitmap* ptr; | |
a66212dc | 297 | PyObject* s1, *s2; |
72797a7d RD |
298 | s1 = wx2PyString(id); |
299 | s2 = wx2PyString(client); | |
a66212dc | 300 | ro = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOO)", s1, s2, so)); |
72797a7d | 301 | Py_DECREF(so); |
a66212dc RD |
302 | Py_DECREF(s1); |
303 | Py_DECREF(s2); | |
72797a7d RD |
304 | if (ro) { |
305 | if (!SWIG_GetPtrObj(ro, (void**)&ptr, "_wxBitmap_p")) | |
306 | rval = *ptr; | |
307 | Py_DECREF(ro); | |
308 | } | |
309 | } | |
310 | wxPyEndBlockThreads(); | |
311 | return rval; | |
312 | } | |
313 | ||
314 | PYPRIVATE; | |
315 | }; | |
316 | ||
7dbce44a | 317 | #include <wx/docview.h> |
8a12f92d RD |
318 | |
319 | #ifdef __WXMSW__ | |
320 | #include <wx/msw/private.h> | |
6bb000ec | 321 | #include <wx/dynload.h> |
8a12f92d RD |
322 | #endif |
323 | ||
324 | ||
6bb000ec | 325 | void wxDrawWindowOnDC(wxWindow* window, const wxDC& dc, int method) |
8a12f92d RD |
326 | { |
327 | #ifdef __WXMSW__ | |
6bb000ec RD |
328 | |
329 | switch (method) | |
330 | { | |
331 | case 1: | |
332 | // This one only partially works. Appears to be an undocumented | |
333 | // convention that not all widgets adhear to. For example, for | |
334 | // some widgets backgrounds or non-client areas may not be | |
335 | // painted. | |
336 | ::SendMessage(GetHwndOf(window), WM_PAINT, (long)GetHdcOf(dc), 0); | |
337 | break; | |
338 | ||
339 | case 2: | |
340 | // This one works much better, except for on XP. On Win2k all | |
341 | // widgets and their children are captured correctly[**]. On XP | |
342 | // with Themes activated most native widgets draw only partially, | |
343 | // if at all. Without themes it works just like on Win2k. | |
344 | // | |
345 | // ** The radio buttons in a wxRadioBox are not its children by | |
346 | // default, but you can capture the panel instead... | |
347 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
348 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | | |
349 | PRF_ERASEBKGND | PRF_OWNED ); | |
350 | break; | |
351 | ||
352 | case 3: | |
353 | // This one is only defined in the latest SDK and only available | |
354 | // on XP. MSDN says it is similar to sending WM_PRINT so I expect | |
355 | // that it will work similar to the above. Since it is avaialble | |
356 | // only on XP, it can't be compiled like this and will have to be | |
357 | // loaded dynamically. | |
358 | //::PrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
359 | //break; | |
360 | ||
361 | // fall through | |
362 | ||
363 | case 4: | |
364 | // Use PrintWindow if available, or fallback to WM_PRINT | |
365 | // otherwise. Unfortunately using PrintWindow is even worse than | |
366 | // WM_PRINT. For most native widgets nothing is drawn to the dc | |
367 | // at all, with or without Themes. | |
368 | typedef BOOL (WINAPI *PrintWindow_t)(HWND, HDC, UINT); | |
369 | static bool s_triedToLoad = false; | |
370 | static PrintWindow_t pfnPrintWindow = NULL; | |
371 | if ( !s_triedToLoad ) | |
372 | { | |
373 | ||
374 | s_triedToLoad = true; | |
375 | wxDynamicLibrary dllUser32(_T("user32.dll")); | |
376 | if ( dllUser32.IsLoaded() ) | |
377 | { | |
378 | wxLogNull nolog; // Don't report errors here | |
379 | pfnPrintWindow = (PrintWindow_t)dllUser32.GetSymbol(_T("PrintWindow")); | |
380 | } | |
381 | } | |
382 | if (pfnPrintWindow) | |
383 | { | |
384 | printf("Using PrintWindow\n"); | |
385 | pfnPrintWindow(GetHwndOf(window), GetHdcOf(dc), 0); | |
386 | } | |
387 | else | |
388 | { | |
389 | printf("Using WM_PRINT\n"); | |
390 | ::SendMessage(GetHwndOf(window), WM_PRINT, (long)GetHdcOf(dc), | |
391 | PRF_CLIENT | PRF_NONCLIENT | PRF_CHILDREN | PRF_ERASEBKGND | PRF_OWNED ); | |
392 | } | |
393 | } | |
8a12f92d RD |
394 | #endif |
395 | } | |
396 | ||
06c0fba4 RD |
397 | #ifdef __cplusplus |
398 | extern "C" { | |
399 | #endif | |
400 | static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
401 | PyObject * _resultobj; | |
402 | wxString * _result; | |
137b5242 RD |
403 | wxString * _arg0 = (wxString *) &wxPyFileSelectorPromptStr; |
404 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
405 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
406 | wxString * _arg3 = (wxString *) &wxPyEmptyString; | |
407 | wxString * _arg4 = (wxString *) &wxPyFileSelectorDefaultWildcardStr; | |
06c0fba4 RD |
408 | int _arg5 = (int ) 0; |
409 | wxWindow * _arg6 = (wxWindow *) NULL; | |
410 | int _arg7 = (int ) -1; | |
411 | int _arg8 = (int ) -1; | |
137b5242 RD |
412 | PyObject * _obj0 = 0; |
413 | PyObject * _obj1 = 0; | |
414 | PyObject * _obj2 = 0; | |
415 | PyObject * _obj3 = 0; | |
416 | PyObject * _obj4 = 0; | |
06c0fba4 RD |
417 | PyObject * _argo6 = 0; |
418 | char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL }; | |
419 | ||
420 | self = self; | |
137b5242 | 421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOOOOiOii:wxFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3,&_obj4,&_arg5,&_argo6,&_arg7,&_arg8)) |
06c0fba4 | 422 | return NULL; |
137b5242 RD |
423 | if (_obj0) |
424 | { | |
425 | _arg0 = wxString_in_helper(_obj0); | |
426 | if (_arg0 == NULL) | |
427 | return NULL; | |
428 | } | |
429 | if (_obj1) | |
430 | { | |
431 | _arg1 = wxString_in_helper(_obj1); | |
432 | if (_arg1 == NULL) | |
433 | return NULL; | |
434 | } | |
435 | if (_obj2) | |
436 | { | |
437 | _arg2 = wxString_in_helper(_obj2); | |
438 | if (_arg2 == NULL) | |
439 | return NULL; | |
440 | } | |
441 | if (_obj3) | |
442 | { | |
443 | _arg3 = wxString_in_helper(_obj3); | |
444 | if (_arg3 == NULL) | |
445 | return NULL; | |
446 | } | |
447 | if (_obj4) | |
448 | { | |
449 | _arg4 = wxString_in_helper(_obj4); | |
450 | if (_arg4 == NULL) | |
451 | return NULL; | |
452 | } | |
06c0fba4 RD |
453 | if (_argo6) { |
454 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
455 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
456 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p."); | |
457 | return NULL; | |
458 | } | |
459 | } | |
460 | { | |
4268f798 | 461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 462 | _result = new wxString (wxFileSelector(*_arg0,*_arg1,*_arg2,*_arg3,*_arg4,_arg5,_arg6,_arg7,_arg8)); |
06c0fba4 | 463 | |
4268f798 RD |
464 | wxPyEndAllowThreads(__tstate); |
465 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 466 | }{ |
c8bc7bb8 | 467 | #if wxUSE_UNICODE |
7e50db3f | 468 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 469 | #else |
eec92d76 | 470 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 471 | #endif |
06c0fba4 | 472 | } |
137b5242 RD |
473 | { |
474 | if (_obj0) | |
475 | delete _arg0; | |
476 | } | |
477 | { | |
478 | if (_obj1) | |
479 | delete _arg1; | |
480 | } | |
481 | { | |
482 | if (_obj2) | |
483 | delete _arg2; | |
484 | } | |
485 | { | |
486 | if (_obj3) | |
487 | delete _arg3; | |
488 | } | |
489 | { | |
490 | if (_obj4) | |
491 | delete _arg4; | |
492 | } | |
06c0fba4 RD |
493 | { |
494 | delete _result; | |
495 | } | |
496 | return _resultobj; | |
497 | } | |
498 | ||
a541c325 RD |
499 | static PyObject *_wrap_wxLoadFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
500 | PyObject * _resultobj; | |
501 | wxString * _result; | |
137b5242 RD |
502 | wxString * _arg0; |
503 | wxString * _arg1; | |
504 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 505 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
506 | PyObject * _obj0 = 0; |
507 | PyObject * _obj1 = 0; | |
508 | PyObject * _obj2 = 0; | |
a541c325 RD |
509 | PyObject * _argo3 = 0; |
510 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
511 | ||
512 | self = self; | |
137b5242 | 513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxLoadFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
a541c325 | 514 | return NULL; |
137b5242 RD |
515 | { |
516 | _arg0 = wxString_in_helper(_obj0); | |
517 | if (_arg0 == NULL) | |
518 | return NULL; | |
519 | } | |
520 | { | |
521 | _arg1 = wxString_in_helper(_obj1); | |
522 | if (_arg1 == NULL) | |
523 | return NULL; | |
524 | } | |
525 | if (_obj2) | |
526 | { | |
527 | _arg2 = wxString_in_helper(_obj2); | |
528 | if (_arg2 == NULL) | |
529 | return NULL; | |
530 | } | |
a541c325 RD |
531 | if (_argo3) { |
532 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
533 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
534 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxLoadFileSelector. Expected _wxWindow_p."); | |
535 | return NULL; | |
536 | } | |
537 | } | |
538 | { | |
539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 540 | _result = new wxString (wxLoadFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
541 | |
542 | wxPyEndAllowThreads(__tstate); | |
543 | if (PyErr_Occurred()) return NULL; | |
544 | }{ | |
545 | #if wxUSE_UNICODE | |
7e50db3f | 546 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
a541c325 RD |
547 | #else |
548 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
549 | #endif | |
550 | } | |
137b5242 RD |
551 | { |
552 | if (_obj0) | |
553 | delete _arg0; | |
554 | } | |
555 | { | |
556 | if (_obj1) | |
557 | delete _arg1; | |
558 | } | |
559 | { | |
560 | if (_obj2) | |
561 | delete _arg2; | |
562 | } | |
a541c325 RD |
563 | { |
564 | delete _result; | |
565 | } | |
566 | return _resultobj; | |
567 | } | |
568 | ||
569 | static PyObject *_wrap_wxSaveFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) { | |
570 | PyObject * _resultobj; | |
571 | wxString * _result; | |
137b5242 RD |
572 | wxString * _arg0; |
573 | wxString * _arg1; | |
574 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
a541c325 | 575 | wxWindow * _arg3 = (wxWindow *) NULL; |
137b5242 RD |
576 | PyObject * _obj0 = 0; |
577 | PyObject * _obj1 = 0; | |
578 | PyObject * _obj2 = 0; | |
a541c325 RD |
579 | PyObject * _argo3 = 0; |
580 | char *_kwnames[] = { "what","extension","default_name","parent", NULL }; | |
581 | ||
582 | self = self; | |
137b5242 RD |
583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|OO:wxSaveFileSelector",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) |
584 | return NULL; | |
585 | { | |
586 | _arg0 = wxString_in_helper(_obj0); | |
587 | if (_arg0 == NULL) | |
a541c325 | 588 | return NULL; |
137b5242 RD |
589 | } |
590 | { | |
591 | _arg1 = wxString_in_helper(_obj1); | |
592 | if (_arg1 == NULL) | |
593 | return NULL; | |
594 | } | |
595 | if (_obj2) | |
596 | { | |
597 | _arg2 = wxString_in_helper(_obj2); | |
598 | if (_arg2 == NULL) | |
599 | return NULL; | |
600 | } | |
a541c325 RD |
601 | if (_argo3) { |
602 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
603 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
604 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxSaveFileSelector. Expected _wxWindow_p."); | |
605 | return NULL; | |
606 | } | |
607 | } | |
608 | { | |
609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
137b5242 | 610 | _result = new wxString (wxSaveFileSelector(*_arg0,*_arg1,*_arg2,_arg3)); |
a541c325 RD |
611 | |
612 | wxPyEndAllowThreads(__tstate); | |
613 | if (PyErr_Occurred()) return NULL; | |
614 | }{ | |
615 | #if wxUSE_UNICODE | |
7e50db3f | 616 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
a541c325 RD |
617 | #else |
618 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
619 | #endif | |
620 | } | |
137b5242 RD |
621 | { |
622 | if (_obj0) | |
623 | delete _arg0; | |
624 | } | |
625 | { | |
626 | if (_obj1) | |
627 | delete _arg1; | |
628 | } | |
629 | { | |
630 | if (_obj2) | |
631 | delete _arg2; | |
632 | } | |
a541c325 RD |
633 | { |
634 | delete _result; | |
635 | } | |
636 | return _resultobj; | |
637 | } | |
638 | ||
7cdaed0b RD |
639 | static PyObject *_wrap_wxDirSelector(PyObject *self, PyObject *args, PyObject *kwargs) { |
640 | PyObject * _resultobj; | |
641 | wxString * _result; | |
642 | wxString * _arg0 = (wxString *) &wxPyDirSelectorPromptStr; | |
643 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
daa3eac9 | 644 | long _arg2 = (long ) wxDD_DEFAULT_STYLE; |
7cdaed0b RD |
645 | wxPoint * _arg3 = (wxPoint *) &wxDefaultPosition; |
646 | wxWindow * _arg4 = (wxWindow *) NULL; | |
647 | PyObject * _obj0 = 0; | |
648 | PyObject * _obj1 = 0; | |
649 | wxPoint temp; | |
650 | PyObject * _obj3 = 0; | |
651 | PyObject * _argo4 = 0; | |
652 | char *_kwnames[] = { "message","defaultPath","style","pos","parent", NULL }; | |
653 | ||
654 | self = self; | |
655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OOlOO:wxDirSelector",_kwnames,&_obj0,&_obj1,&_arg2,&_obj3,&_argo4)) | |
656 | return NULL; | |
657 | if (_obj0) | |
658 | { | |
659 | _arg0 = wxString_in_helper(_obj0); | |
660 | if (_arg0 == NULL) | |
661 | return NULL; | |
662 | } | |
663 | if (_obj1) | |
664 | { | |
665 | _arg1 = wxString_in_helper(_obj1); | |
666 | if (_arg1 == NULL) | |
667 | return NULL; | |
668 | } | |
669 | if (_obj3) | |
670 | { | |
671 | _arg3 = &temp; | |
672 | if (! wxPoint_helper(_obj3, &_arg3)) | |
673 | return NULL; | |
674 | } | |
675 | if (_argo4) { | |
676 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
677 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
678 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxDirSelector. Expected _wxWindow_p."); | |
679 | return NULL; | |
680 | } | |
681 | } | |
682 | { | |
683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
684 | _result = new wxString (wxDirSelector(*_arg0,*_arg1,_arg2,*_arg3,_arg4)); | |
685 | ||
686 | wxPyEndAllowThreads(__tstate); | |
687 | if (PyErr_Occurred()) return NULL; | |
688 | }{ | |
689 | #if wxUSE_UNICODE | |
7e50db3f | 690 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
7cdaed0b RD |
691 | #else |
692 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
693 | #endif | |
694 | } | |
695 | { | |
696 | if (_obj0) | |
697 | delete _arg0; | |
698 | } | |
699 | { | |
700 | if (_obj1) | |
701 | delete _arg1; | |
702 | } | |
703 | { | |
704 | delete _result; | |
705 | } | |
706 | return _resultobj; | |
707 | } | |
708 | ||
06c0fba4 RD |
709 | static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
710 | PyObject * _resultobj; | |
711 | wxString * _result; | |
712 | wxString * _arg0; | |
137b5242 RD |
713 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
714 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
06c0fba4 RD |
715 | wxWindow * _arg3 = (wxWindow *) NULL; |
716 | int _arg4 = (int ) -1; | |
717 | int _arg5 = (int ) -1; | |
718 | bool _arg6 = (bool ) TRUE; | |
719 | PyObject * _obj0 = 0; | |
720 | PyObject * _obj1 = 0; | |
721 | PyObject * _obj2 = 0; | |
722 | PyObject * _argo3 = 0; | |
723 | int tempbool6 = (int) TRUE; | |
724 | char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL }; | |
725 | ||
726 | self = self; | |
727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6)) | |
728 | return NULL; | |
729 | { | |
c8bc7bb8 RD |
730 | _arg0 = wxString_in_helper(_obj0); |
731 | if (_arg0 == NULL) | |
185d7c3e | 732 | return NULL; |
06c0fba4 RD |
733 | } |
734 | if (_obj1) | |
735 | { | |
c8bc7bb8 RD |
736 | _arg1 = wxString_in_helper(_obj1); |
737 | if (_arg1 == NULL) | |
185d7c3e | 738 | return NULL; |
06c0fba4 RD |
739 | } |
740 | if (_obj2) | |
741 | { | |
c8bc7bb8 RD |
742 | _arg2 = wxString_in_helper(_obj2); |
743 | if (_arg2 == NULL) | |
06c0fba4 | 744 | return NULL; |
06c0fba4 RD |
745 | } |
746 | if (_argo3) { | |
747 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
748 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
749 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p."); | |
750 | return NULL; | |
751 | } | |
752 | } | |
753 | _arg6 = (bool ) tempbool6; | |
754 | { | |
4268f798 | 755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 756 | _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6)); |
06c0fba4 | 757 | |
4268f798 RD |
758 | wxPyEndAllowThreads(__tstate); |
759 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 760 | }{ |
c8bc7bb8 | 761 | #if wxUSE_UNICODE |
7e50db3f | 762 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 763 | #else |
eec92d76 | 764 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 765 | #endif |
06c0fba4 RD |
766 | } |
767 | { | |
768 | if (_obj0) | |
769 | delete _arg0; | |
770 | } | |
771 | { | |
772 | if (_obj1) | |
773 | delete _arg1; | |
774 | } | |
775 | { | |
776 | if (_obj2) | |
777 | delete _arg2; | |
778 | } | |
779 | { | |
780 | delete _result; | |
781 | } | |
782 | return _resultobj; | |
783 | } | |
784 | ||
1b62f00d RD |
785 | static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { |
786 | PyObject * _resultobj; | |
787 | wxString * _result; | |
788 | wxString * _arg0; | |
137b5242 RD |
789 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
790 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
1b62f00d RD |
791 | wxWindow * _arg3 = (wxWindow *) NULL; |
792 | PyObject * _obj0 = 0; | |
793 | PyObject * _obj1 = 0; | |
794 | PyObject * _obj2 = 0; | |
795 | PyObject * _argo3 = 0; | |
796 | char *_kwnames[] = { "message","caption","default_value","parent", NULL }; | |
797 | ||
798 | self = self; | |
799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3)) | |
800 | return NULL; | |
801 | { | |
c8bc7bb8 RD |
802 | _arg0 = wxString_in_helper(_obj0); |
803 | if (_arg0 == NULL) | |
1b62f00d | 804 | return NULL; |
1b62f00d RD |
805 | } |
806 | if (_obj1) | |
807 | { | |
c8bc7bb8 RD |
808 | _arg1 = wxString_in_helper(_obj1); |
809 | if (_arg1 == NULL) | |
1b62f00d | 810 | return NULL; |
1b62f00d RD |
811 | } |
812 | if (_obj2) | |
813 | { | |
c8bc7bb8 RD |
814 | _arg2 = wxString_in_helper(_obj2); |
815 | if (_arg2 == NULL) | |
1b62f00d | 816 | return NULL; |
1b62f00d RD |
817 | } |
818 | if (_argo3) { | |
819 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
820 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p."); | |
822 | return NULL; | |
823 | } | |
824 | } | |
825 | { | |
4268f798 | 826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 827 | _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3)); |
1b62f00d | 828 | |
4268f798 RD |
829 | wxPyEndAllowThreads(__tstate); |
830 | if (PyErr_Occurred()) return NULL; | |
1b62f00d | 831 | }{ |
c8bc7bb8 | 832 | #if wxUSE_UNICODE |
7e50db3f | 833 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 834 | #else |
1b62f00d | 835 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 836 | #endif |
1b62f00d RD |
837 | } |
838 | { | |
839 | if (_obj0) | |
840 | delete _arg0; | |
841 | } | |
842 | { | |
843 | if (_obj1) | |
844 | delete _arg1; | |
845 | } | |
846 | { | |
847 | if (_obj2) | |
848 | delete _arg2; | |
849 | } | |
850 | { | |
851 | delete _result; | |
852 | } | |
853 | return _resultobj; | |
854 | } | |
855 | ||
06c0fba4 RD |
856 | static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) { |
857 | PyObject * _resultobj; | |
858 | wxString * _result; | |
859 | wxString * _arg0; | |
860 | wxString * _arg1; | |
861 | int _arg2; | |
862 | wxString * _arg3; | |
863 | wxWindow * _arg4 = (wxWindow *) NULL; | |
864 | int _arg5 = (int ) -1; | |
865 | int _arg6 = (int ) -1; | |
866 | bool _arg7 = (bool ) TRUE; | |
867 | int _arg8 = (int ) 150; | |
868 | int _arg9 = (int ) 200; | |
869 | PyObject * _obj0 = 0; | |
870 | PyObject * _obj1 = 0; | |
871 | PyObject * _obj3 = 0; | |
872 | PyObject * _argo4 = 0; | |
873 | int tempbool7 = (int) TRUE; | |
eec92d76 | 874 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
875 | |
876 | self = self; | |
877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
878 | return NULL; | |
879 | { | |
c8bc7bb8 RD |
880 | _arg0 = wxString_in_helper(_obj0); |
881 | if (_arg0 == NULL) | |
185d7c3e | 882 | return NULL; |
06c0fba4 RD |
883 | } |
884 | { | |
c8bc7bb8 RD |
885 | _arg1 = wxString_in_helper(_obj1); |
886 | if (_arg1 == NULL) | |
185d7c3e | 887 | return NULL; |
06c0fba4 RD |
888 | } |
889 | if (_obj3) | |
890 | { | |
891 | _arg3 = wxString_LIST_helper(_obj3); | |
892 | if (_arg3 == NULL) { | |
893 | return NULL; | |
894 | } | |
895 | } | |
896 | if (_argo4) { | |
897 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
898 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p."); | |
900 | return NULL; | |
901 | } | |
902 | } | |
903 | _arg7 = (bool ) tempbool7; | |
904 | { | |
905 | if (_obj3) { | |
906 | _arg2 = PyList_Size(_obj3); | |
907 | } | |
908 | else { | |
909 | _arg2 = 0; | |
910 | } | |
911 | } | |
912 | { | |
4268f798 | 913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 914 | _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9)); |
06c0fba4 | 915 | |
4268f798 RD |
916 | wxPyEndAllowThreads(__tstate); |
917 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 | 918 | }{ |
c8bc7bb8 | 919 | #if wxUSE_UNICODE |
7e50db3f | 920 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 921 | #else |
eec92d76 | 922 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 923 | #endif |
06c0fba4 RD |
924 | } |
925 | { | |
926 | if (_obj0) | |
927 | delete _arg0; | |
928 | } | |
929 | { | |
930 | if (_obj1) | |
931 | delete _arg1; | |
932 | } | |
933 | { | |
934 | delete [] _arg3; | |
935 | } | |
936 | { | |
937 | delete _result; | |
938 | } | |
939 | return _resultobj; | |
940 | } | |
941 | ||
942 | static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
943 | PyObject * _resultobj; | |
944 | int _result; | |
945 | wxString * _arg0; | |
946 | wxString * _arg1; | |
947 | int _arg2; | |
948 | wxString * _arg3; | |
949 | wxWindow * _arg4 = (wxWindow *) NULL; | |
950 | int _arg5 = (int ) -1; | |
951 | int _arg6 = (int ) -1; | |
952 | bool _arg7 = (bool ) TRUE; | |
953 | int _arg8 = (int ) 150; | |
954 | int _arg9 = (int ) 200; | |
955 | PyObject * _obj0 = 0; | |
956 | PyObject * _obj1 = 0; | |
957 | PyObject * _obj3 = 0; | |
958 | PyObject * _argo4 = 0; | |
959 | int tempbool7 = (int) TRUE; | |
eec92d76 | 960 | char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL }; |
06c0fba4 RD |
961 | |
962 | self = self; | |
963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9)) | |
964 | return NULL; | |
965 | { | |
c8bc7bb8 RD |
966 | _arg0 = wxString_in_helper(_obj0); |
967 | if (_arg0 == NULL) | |
185d7c3e | 968 | return NULL; |
06c0fba4 RD |
969 | } |
970 | { | |
c8bc7bb8 RD |
971 | _arg1 = wxString_in_helper(_obj1); |
972 | if (_arg1 == NULL) | |
185d7c3e | 973 | return NULL; |
06c0fba4 RD |
974 | } |
975 | if (_obj3) | |
976 | { | |
977 | _arg3 = wxString_LIST_helper(_obj3); | |
978 | if (_arg3 == NULL) { | |
979 | return NULL; | |
980 | } | |
981 | } | |
982 | if (_argo4) { | |
983 | if (_argo4 == Py_None) { _arg4 = NULL; } | |
984 | else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) { | |
985 | PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p."); | |
986 | return NULL; | |
987 | } | |
988 | } | |
989 | _arg7 = (bool ) tempbool7; | |
990 | { | |
991 | if (_obj3) { | |
992 | _arg2 = PyList_Size(_obj3); | |
993 | } | |
994 | else { | |
995 | _arg2 = 0; | |
996 | } | |
997 | } | |
998 | { | |
4268f798 | 999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1000 | _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9); |
06c0fba4 | 1001 | |
4268f798 RD |
1002 | wxPyEndAllowThreads(__tstate); |
1003 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1004 | } _resultobj = Py_BuildValue("i",_result); |
1005 | { | |
1006 | if (_obj0) | |
1007 | delete _arg0; | |
1008 | } | |
1009 | { | |
1010 | if (_obj1) | |
1011 | delete _arg1; | |
1012 | } | |
1013 | { | |
1014 | delete [] _arg3; | |
1015 | } | |
1016 | return _resultobj; | |
1017 | } | |
1018 | ||
1019 | static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1020 | PyObject * _resultobj; | |
1021 | int _result; | |
1022 | wxString * _arg0; | |
137b5242 | 1023 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
06c0fba4 RD |
1024 | int _arg2 = (int ) wxOK|wxCENTRE; |
1025 | wxWindow * _arg3 = (wxWindow *) NULL; | |
1026 | int _arg4 = (int ) -1; | |
1027 | int _arg5 = (int ) -1; | |
1028 | PyObject * _obj0 = 0; | |
1029 | PyObject * _obj1 = 0; | |
1030 | PyObject * _argo3 = 0; | |
1031 | char *_kwnames[] = { "message","caption","style","parent","x","y", NULL }; | |
1032 | ||
1033 | self = self; | |
1034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5)) | |
1035 | return NULL; | |
1036 | { | |
c8bc7bb8 RD |
1037 | _arg0 = wxString_in_helper(_obj0); |
1038 | if (_arg0 == NULL) | |
185d7c3e | 1039 | return NULL; |
06c0fba4 RD |
1040 | } |
1041 | if (_obj1) | |
1042 | { | |
c8bc7bb8 RD |
1043 | _arg1 = wxString_in_helper(_obj1); |
1044 | if (_arg1 == NULL) | |
185d7c3e | 1045 | return NULL; |
06c0fba4 RD |
1046 | } |
1047 | if (_argo3) { | |
1048 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
1049 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
1050 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p."); | |
1051 | return NULL; | |
1052 | } | |
1053 | } | |
1054 | { | |
4268f798 | 1055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1056 | _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5); |
06c0fba4 | 1057 | |
4268f798 RD |
1058 | wxPyEndAllowThreads(__tstate); |
1059 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1060 | } _resultobj = Py_BuildValue("i",_result); |
1061 | { | |
1062 | if (_obj0) | |
1063 | delete _arg0; | |
1064 | } | |
1065 | { | |
1066 | if (_obj1) | |
1067 | delete _arg1; | |
1068 | } | |
1069 | return _resultobj; | |
1070 | } | |
1071 | ||
1072 | static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1073 | PyObject * _resultobj; | |
1074 | long _result; | |
1075 | wxString * _arg0; | |
1076 | wxString * _arg1; | |
1077 | wxString * _arg2; | |
1078 | long _arg3; | |
1079 | long _arg4 = (long ) 0; | |
1080 | long _arg5 = (long ) 100; | |
1081 | wxWindow * _arg6 = (wxWindow *) NULL; | |
e508a2b6 | 1082 | wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition; |
06c0fba4 RD |
1083 | PyObject * _obj0 = 0; |
1084 | PyObject * _obj1 = 0; | |
1085 | PyObject * _obj2 = 0; | |
1086 | PyObject * _argo6 = 0; | |
1087 | wxPoint temp; | |
1088 | PyObject * _obj7 = 0; | |
1089 | char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL }; | |
1090 | ||
1091 | self = self; | |
1092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7)) | |
1093 | return NULL; | |
1094 | { | |
c8bc7bb8 RD |
1095 | _arg0 = wxString_in_helper(_obj0); |
1096 | if (_arg0 == NULL) | |
185d7c3e | 1097 | return NULL; |
06c0fba4 RD |
1098 | } |
1099 | { | |
c8bc7bb8 RD |
1100 | _arg1 = wxString_in_helper(_obj1); |
1101 | if (_arg1 == NULL) | |
06c0fba4 | 1102 | return NULL; |
06c0fba4 RD |
1103 | } |
1104 | { | |
c8bc7bb8 RD |
1105 | _arg2 = wxString_in_helper(_obj2); |
1106 | if (_arg2 == NULL) | |
185d7c3e | 1107 | return NULL; |
06c0fba4 RD |
1108 | } |
1109 | if (_argo6) { | |
1110 | if (_argo6 == Py_None) { _arg6 = NULL; } | |
1111 | else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) { | |
1112 | PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p."); | |
1113 | return NULL; | |
1114 | } | |
1115 | } | |
1116 | if (_obj7) | |
1117 | { | |
1118 | _arg7 = &temp; | |
1119 | if (! wxPoint_helper(_obj7, &_arg7)) | |
1120 | return NULL; | |
1121 | } | |
1122 | { | |
4268f798 | 1123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1124 | _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7); |
06c0fba4 | 1125 | |
4268f798 RD |
1126 | wxPyEndAllowThreads(__tstate); |
1127 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1128 | } _resultobj = Py_BuildValue("l",_result); |
1129 | { | |
1130 | if (_obj0) | |
1131 | delete _arg0; | |
1132 | } | |
1133 | { | |
1134 | if (_obj1) | |
1135 | delete _arg1; | |
1136 | } | |
1137 | { | |
1138 | if (_obj2) | |
1139 | delete _arg2; | |
1140 | } | |
1141 | return _resultobj; | |
1142 | } | |
1143 | ||
1144 | static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1145 | PyObject * _resultobj; | |
1146 | bool _result; | |
1147 | char *_kwnames[] = { NULL }; | |
1148 | ||
1149 | self = self; | |
1150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames)) | |
1151 | return NULL; | |
1152 | { | |
4268f798 | 1153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1154 | _result = (bool )wxColourDisplay(); |
06c0fba4 | 1155 | |
4268f798 RD |
1156 | wxPyEndAllowThreads(__tstate); |
1157 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1158 | } _resultobj = Py_BuildValue("i",_result); |
1159 | return _resultobj; | |
1160 | } | |
1161 | ||
1162 | static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1163 | PyObject * _resultobj; | |
1164 | int _result; | |
1165 | char *_kwnames[] = { NULL }; | |
1166 | ||
1167 | self = self; | |
1168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames)) | |
1169 | return NULL; | |
1170 | { | |
4268f798 | 1171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1172 | _result = (int )wxDisplayDepth(); |
06c0fba4 | 1173 | |
4268f798 RD |
1174 | wxPyEndAllowThreads(__tstate); |
1175 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1176 | } _resultobj = Py_BuildValue("i",_result); |
1177 | return _resultobj; | |
1178 | } | |
f0261a72 | 1179 | |
1e7ecb7b RD |
1180 | static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) { |
1181 | PyObject * _resultobj; | |
1182 | int _result; | |
1183 | char *_kwnames[] = { NULL }; | |
1184 | ||
1185 | self = self; | |
1186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames)) | |
1187 | return NULL; | |
1188 | { | |
4268f798 | 1189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1190 | _result = (int )wxGetDisplayDepth(); |
1e7ecb7b | 1191 | |
4268f798 RD |
1192 | wxPyEndAllowThreads(__tstate); |
1193 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1194 | } _resultobj = Py_BuildValue("i",_result); |
1195 | return _resultobj; | |
1196 | } | |
1197 | ||
1198 | static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1199 | PyObject * _resultobj; | |
1200 | int * _arg0; | |
1201 | int temp; | |
1202 | int * _arg1; | |
1203 | int temp0; | |
1204 | char *_kwnames[] = { NULL }; | |
1205 | ||
1206 | self = self; | |
1207 | { | |
1208 | _arg0 = &temp; | |
1209 | } | |
1210 | { | |
1211 | _arg1 = &temp0; | |
1212 | } | |
1213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames)) | |
1214 | return NULL; | |
1215 | { | |
4268f798 | 1216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1217 | wxDisplaySize(_arg0,_arg1); |
1e7ecb7b | 1218 | |
4268f798 RD |
1219 | wxPyEndAllowThreads(__tstate); |
1220 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1221 | } Py_INCREF(Py_None); |
1222 | _resultobj = Py_None; | |
1223 | { | |
1224 | PyObject *o; | |
1225 | o = PyInt_FromLong((long) (*_arg0)); | |
1226 | _resultobj = t_output_helper(_resultobj, o); | |
1227 | } | |
1228 | { | |
1229 | PyObject *o; | |
1230 | o = PyInt_FromLong((long) (*_arg1)); | |
1231 | _resultobj = t_output_helper(_resultobj, o); | |
1232 | } | |
1233 | return _resultobj; | |
1234 | } | |
1235 | ||
1236 | static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1237 | PyObject * _resultobj; | |
1238 | wxSize * _result; | |
1239 | char *_kwnames[] = { NULL }; | |
1240 | char _ptemp[128]; | |
1241 | ||
1242 | self = self; | |
1243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames)) | |
1244 | return NULL; | |
1245 | { | |
4268f798 | 1246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1247 | _result = new wxSize (wxGetDisplaySize()); |
1e7ecb7b | 1248 | |
4268f798 RD |
1249 | wxPyEndAllowThreads(__tstate); |
1250 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1251 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1252 | _resultobj = Py_BuildValue("s",_ptemp); | |
1253 | return _resultobj; | |
1254 | } | |
1255 | ||
1256 | static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1257 | PyObject * _resultobj; | |
1258 | int * _arg0; | |
1259 | int temp; | |
1260 | int * _arg1; | |
1261 | int temp0; | |
1262 | char *_kwnames[] = { NULL }; | |
1263 | ||
1264 | self = self; | |
1265 | { | |
1266 | _arg0 = &temp; | |
1267 | } | |
1268 | { | |
1269 | _arg1 = &temp0; | |
1270 | } | |
1271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames)) | |
1272 | return NULL; | |
1273 | { | |
4268f798 | 1274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1275 | wxDisplaySizeMM(_arg0,_arg1); |
1e7ecb7b | 1276 | |
4268f798 RD |
1277 | wxPyEndAllowThreads(__tstate); |
1278 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1279 | } Py_INCREF(Py_None); |
1280 | _resultobj = Py_None; | |
1281 | { | |
1282 | PyObject *o; | |
1283 | o = PyInt_FromLong((long) (*_arg0)); | |
1284 | _resultobj = t_output_helper(_resultobj, o); | |
1285 | } | |
1286 | { | |
1287 | PyObject *o; | |
1288 | o = PyInt_FromLong((long) (*_arg1)); | |
1289 | _resultobj = t_output_helper(_resultobj, o); | |
1290 | } | |
1291 | return _resultobj; | |
1292 | } | |
1293 | ||
1294 | static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1295 | PyObject * _resultobj; | |
1296 | wxSize * _result; | |
1297 | char *_kwnames[] = { NULL }; | |
1298 | char _ptemp[128]; | |
1299 | ||
1300 | self = self; | |
1301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames)) | |
1302 | return NULL; | |
1303 | { | |
4268f798 | 1304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1305 | _result = new wxSize (wxGetDisplaySizeMM()); |
1e7ecb7b | 1306 | |
4268f798 RD |
1307 | wxPyEndAllowThreads(__tstate); |
1308 | if (PyErr_Occurred()) return NULL; | |
1e7ecb7b RD |
1309 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
1310 | _resultobj = Py_BuildValue("s",_ptemp); | |
1311 | return _resultobj; | |
1312 | } | |
1313 | ||
91c41b30 RD |
1314 | static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { |
1315 | PyObject * _resultobj; | |
1316 | int * _arg0; | |
1317 | int temp; | |
1318 | int * _arg1; | |
1319 | int temp0; | |
1320 | int * _arg2; | |
1321 | int temp1; | |
1322 | int * _arg3; | |
1323 | int temp2; | |
1324 | char *_kwnames[] = { NULL }; | |
1325 | ||
1326 | self = self; | |
1327 | { | |
1328 | _arg0 = &temp; | |
1329 | } | |
1330 | { | |
1331 | _arg1 = &temp0; | |
1332 | } | |
1333 | { | |
1334 | _arg2 = &temp1; | |
1335 | } | |
1336 | { | |
1337 | _arg3 = &temp2; | |
1338 | } | |
1339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames)) | |
1340 | return NULL; | |
1341 | { | |
4268f798 | 1342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1343 | wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3); |
91c41b30 | 1344 | |
4268f798 RD |
1345 | wxPyEndAllowThreads(__tstate); |
1346 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1347 | } Py_INCREF(Py_None); |
1348 | _resultobj = Py_None; | |
1349 | { | |
1350 | PyObject *o; | |
1351 | o = PyInt_FromLong((long) (*_arg0)); | |
1352 | _resultobj = t_output_helper(_resultobj, o); | |
1353 | } | |
1354 | { | |
1355 | PyObject *o; | |
1356 | o = PyInt_FromLong((long) (*_arg1)); | |
1357 | _resultobj = t_output_helper(_resultobj, o); | |
1358 | } | |
1359 | { | |
1360 | PyObject *o; | |
1361 | o = PyInt_FromLong((long) (*_arg2)); | |
1362 | _resultobj = t_output_helper(_resultobj, o); | |
1363 | } | |
1364 | { | |
1365 | PyObject *o; | |
1366 | o = PyInt_FromLong((long) (*_arg3)); | |
1367 | _resultobj = t_output_helper(_resultobj, o); | |
1368 | } | |
1369 | return _resultobj; | |
1370 | } | |
1371 | ||
1372 | static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1373 | PyObject * _resultobj; | |
1374 | wxRect * _result; | |
1375 | char *_kwnames[] = { NULL }; | |
1376 | char _ptemp[128]; | |
1377 | ||
1378 | self = self; | |
1379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames)) | |
1380 | return NULL; | |
1381 | { | |
4268f798 | 1382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1383 | _result = new wxRect (wxGetClientDisplayRect()); |
91c41b30 | 1384 | |
4268f798 RD |
1385 | wxPyEndAllowThreads(__tstate); |
1386 | if (PyErr_Occurred()) return NULL; | |
91c41b30 RD |
1387 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
1388 | _resultobj = Py_BuildValue("s",_ptemp); | |
1389 | return _resultobj; | |
1390 | } | |
1391 | ||
06c0fba4 RD |
1392 | static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1393 | PyObject * _resultobj; | |
1394 | wxCursor * _arg0; | |
1395 | PyObject * _argo0 = 0; | |
1396 | char *_kwnames[] = { "cursor", NULL }; | |
f0261a72 | 1397 | |
06c0fba4 RD |
1398 | self = self; |
1399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0)) | |
1400 | return NULL; | |
1401 | if (_argo0) { | |
7e50db3f | 1402 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { |
06c0fba4 RD |
1403 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p."); |
1404 | return NULL; | |
1405 | } | |
f0261a72 | 1406 | } |
06c0fba4 | 1407 | { |
4268f798 | 1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1409 | wxSetCursor(*_arg0); |
06c0fba4 | 1410 | |
4268f798 RD |
1411 | wxPyEndAllowThreads(__tstate); |
1412 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1413 | } Py_INCREF(Py_None); |
1414 | _resultobj = Py_None; | |
1415 | return _resultobj; | |
1416 | } | |
1417 | ||
06c0fba4 RD |
1418 | static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { |
1419 | PyObject * _resultobj; | |
1420 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
1421 | PyObject * _argo0 = 0; | |
1422 | char *_kwnames[] = { "cursor", NULL }; | |
1423 | ||
1424 | self = self; | |
1425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0)) | |
1426 | return NULL; | |
1427 | if (_argo0) { | |
1428 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1429 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
1430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p."); | |
1431 | return NULL; | |
1432 | } | |
1433 | } | |
1434 | { | |
4268f798 | 1435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1436 | wxBeginBusyCursor(_arg0); |
06c0fba4 | 1437 | |
4268f798 RD |
1438 | wxPyEndAllowThreads(__tstate); |
1439 | if (PyErr_Occurred()) return NULL; | |
06c0fba4 RD |
1440 | } Py_INCREF(Py_None); |
1441 | _resultobj = Py_None; | |
1442 | return _resultobj; | |
1443 | } | |
1444 | ||
1445 | static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1446 | PyObject * _resultobj; | |
1447 | wxWindow * _result; | |
1448 | char *_kwnames[] = { NULL }; | |
06c0fba4 RD |
1449 | |
1450 | self = self; | |
1451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames)) | |
1452 | return NULL; | |
1453 | { | |
4268f798 | 1454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1455 | _result = (wxWindow *)wxGetActiveWindow(); |
06c0fba4 | 1456 | |
4268f798 RD |
1457 | wxPyEndAllowThreads(__tstate); |
1458 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 1459 | }{ _resultobj = wxPyMake_wxObject(_result); } |
06c0fba4 RD |
1460 | return _resultobj; |
1461 | } | |
1462 | ||
493f1553 RD |
1463 | static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { |
1464 | PyObject * _resultobj; | |
1465 | wxWindow * _result; | |
1466 | wxPoint * _arg0; | |
1467 | wxPoint temp; | |
1468 | PyObject * _obj0 = 0; | |
1469 | char *_kwnames[] = { "pt", NULL }; | |
1470 | ||
1471 | self = self; | |
1472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0)) | |
1473 | return NULL; | |
1474 | { | |
1475 | _arg0 = &temp; | |
1476 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1477 | return NULL; | |
1478 | } | |
1479 | { | |
4268f798 | 1480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1481 | _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0); |
493f1553 | 1482 | |
4268f798 RD |
1483 | wxPyEndAllowThreads(__tstate); |
1484 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1485 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1486 | return _resultobj; | |
1487 | } | |
1488 | ||
1489 | static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1490 | PyObject * _resultobj; | |
1491 | wxWindow * _result; | |
1492 | wxPoint * _arg0; | |
1493 | wxPoint temp; | |
1494 | PyObject * _obj0 = 0; | |
1495 | char *_kwnames[] = { "pt", NULL }; | |
1496 | ||
1497 | self = self; | |
1498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0)) | |
1499 | return NULL; | |
1500 | { | |
1501 | _arg0 = &temp; | |
1502 | if (! wxPoint_helper(_obj0, &_arg0)) | |
1503 | return NULL; | |
1504 | } | |
1505 | { | |
4268f798 | 1506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1507 | _result = (wxWindow *)wxFindWindowAtPoint(*_arg0); |
493f1553 | 1508 | |
4268f798 RD |
1509 | wxPyEndAllowThreads(__tstate); |
1510 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1511 | }{ _resultobj = wxPyMake_wxObject(_result); } |
1512 | return _resultobj; | |
1513 | } | |
1514 | ||
1515 | static PyObject *_wrap_wxCheckForInterrupt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1516 | PyObject * _resultobj; | |
1517 | bool _result; | |
1518 | wxWindow * _arg0; | |
1519 | PyObject * _argo0 = 0; | |
1520 | char *_kwnames[] = { "wnd", NULL }; | |
1521 | ||
1522 | self = self; | |
1523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCheckForInterrupt",_kwnames,&_argo0)) | |
1524 | return NULL; | |
1525 | if (_argo0) { | |
1526 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1527 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1528 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCheckForInterrupt. Expected _wxWindow_p."); | |
1529 | return NULL; | |
1530 | } | |
1531 | } | |
1532 | { | |
4268f798 | 1533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1534 | _result = (bool )wxCheckForInterrupt(_arg0); |
493f1553 | 1535 | |
4268f798 RD |
1536 | wxPyEndAllowThreads(__tstate); |
1537 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
1538 | } _resultobj = Py_BuildValue("i",_result); |
1539 | return _resultobj; | |
1540 | } | |
1541 | ||
2a74d141 RD |
1542 | static PyObject *_wrap_wxGetTopLevelParent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1543 | PyObject * _resultobj; | |
1544 | wxWindow * _result; | |
1545 | wxWindow * _arg0; | |
1546 | PyObject * _argo0 = 0; | |
1547 | char *_kwnames[] = { "win", NULL }; | |
1548 | ||
1549 | self = self; | |
1550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGetTopLevelParent",_kwnames,&_argo0)) | |
1551 | return NULL; | |
1552 | if (_argo0) { | |
1553 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1554 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1555 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGetTopLevelParent. Expected _wxWindow_p."); | |
1556 | return NULL; | |
1557 | } | |
1558 | } | |
1559 | { | |
1560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1561 | _result = (wxWindow *)wxGetTopLevelParent(_arg0); | |
1562 | ||
1563 | wxPyEndAllowThreads(__tstate); | |
1564 | if (PyErr_Occurred()) return NULL; | |
1565 | }{ _resultobj = wxPyMake_wxObject(_result); } | |
1566 | return _resultobj; | |
1567 | } | |
1568 | ||
f0261a72 RD |
1569 | static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { |
1570 | PyObject * _resultobj; | |
1571 | int _result; | |
1572 | char *_kwnames[] = { NULL }; | |
1573 | ||
1574 | self = self; | |
1575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames)) | |
1576 | return NULL; | |
1577 | { | |
4268f798 | 1578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1579 | _result = (int )wxCaret_GetBlinkTime(); |
f0261a72 | 1580 | |
4268f798 RD |
1581 | wxPyEndAllowThreads(__tstate); |
1582 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1583 | } _resultobj = Py_BuildValue("i",_result); |
1584 | return _resultobj; | |
1585 | } | |
1586 | ||
1587 | static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject * _resultobj; | |
1589 | int _arg0; | |
1590 | char *_kwnames[] = { "milliseconds", NULL }; | |
1591 | ||
1592 | self = self; | |
1593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0)) | |
1594 | return NULL; | |
1595 | { | |
4268f798 | 1596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1597 | wxCaret_SetBlinkTime(_arg0); |
f0261a72 | 1598 | |
4268f798 RD |
1599 | wxPyEndAllowThreads(__tstate); |
1600 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1601 | } Py_INCREF(Py_None); |
1602 | _resultobj = Py_None; | |
1603 | return _resultobj; | |
1604 | } | |
1605 | ||
6e18ca6c RD |
1606 | static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) { |
1607 | PyObject * _resultobj; | |
1608 | bool _result; | |
1609 | wxWindow * _arg0 = (wxWindow *) NULL; | |
7e50db3f | 1610 | bool _arg1 = (bool ) FALSE; |
6e18ca6c | 1611 | PyObject * _argo0 = 0; |
7e50db3f RD |
1612 | int tempbool1 = (int) FALSE; |
1613 | char *_kwnames[] = { "win","onlyIfNeeded", NULL }; | |
6e18ca6c RD |
1614 | |
1615 | self = self; | |
7e50db3f | 1616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:wxSafeYield",_kwnames,&_argo0,&tempbool1)) |
6e18ca6c RD |
1617 | return NULL; |
1618 | if (_argo0) { | |
1619 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1620 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1621 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p."); | |
1622 | return NULL; | |
1623 | } | |
1624 | } | |
7e50db3f | 1625 | _arg1 = (bool ) tempbool1; |
6e18ca6c | 1626 | { |
4268f798 | 1627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 1628 | _result = (bool )wxSafeYield(_arg0,_arg1); |
6e18ca6c | 1629 | |
4268f798 RD |
1630 | wxPyEndAllowThreads(__tstate); |
1631 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1632 | } _resultobj = Py_BuildValue("i",_result); |
1633 | return _resultobj; | |
1634 | } | |
1635 | ||
b1462dfa RD |
1636 | static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
1637 | PyObject * _resultobj; | |
1638 | wxEvtHandler * _arg0; | |
1639 | wxEvent * _arg1; | |
1640 | PyObject * _argo0 = 0; | |
1641 | PyObject * _argo1 = 0; | |
1642 | char *_kwnames[] = { "dest","event", NULL }; | |
1643 | ||
1644 | self = self; | |
1645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1)) | |
1646 | return NULL; | |
1647 | if (_argo0) { | |
1648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
1650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p."); | |
1651 | return NULL; | |
1652 | } | |
1653 | } | |
1654 | if (_argo1) { | |
7e50db3f | 1655 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) { |
b1462dfa RD |
1656 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p."); |
1657 | return NULL; | |
1658 | } | |
1659 | } | |
1660 | { | |
4268f798 | 1661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1662 | wxPostEvent(_arg0,*_arg1); |
b1462dfa | 1663 | |
4268f798 RD |
1664 | wxPyEndAllowThreads(__tstate); |
1665 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
1666 | } Py_INCREF(Py_None); |
1667 | _resultobj = Py_None; | |
1668 | return _resultobj; | |
1669 | } | |
1670 | ||
694759cf RD |
1671 | static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) { |
1672 | PyObject * _resultobj; | |
1673 | char *_kwnames[] = { NULL }; | |
1674 | ||
1675 | self = self; | |
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames)) | |
1677 | return NULL; | |
1678 | { | |
4268f798 | 1679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1680 | wxWakeUpIdle(); |
694759cf | 1681 | |
4268f798 RD |
1682 | wxPyEndAllowThreads(__tstate); |
1683 | if (PyErr_Occurred()) return NULL; | |
694759cf RD |
1684 | } Py_INCREF(Py_None); |
1685 | _resultobj = Py_None; | |
1686 | return _resultobj; | |
1687 | } | |
1688 | ||
6e18ca6c | 1689 | static PyObject *_wrap_wxWakeUpMainThread(PyObject *self, PyObject *args, PyObject *kwargs) { |
c368d904 | 1690 | PyObject * _resultobj; |
6e18ca6c | 1691 | char *_kwnames[] = { NULL }; |
c368d904 RD |
1692 | |
1693 | self = self; | |
6e18ca6c | 1694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpMainThread",_kwnames)) |
c368d904 | 1695 | return NULL; |
6e18ca6c | 1696 | { |
4268f798 | 1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1698 | wxWakeUpMainThread(); |
6e18ca6c | 1699 | |
4268f798 RD |
1700 | wxPyEndAllowThreads(__tstate); |
1701 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1702 | } Py_INCREF(Py_None); |
1703 | _resultobj = Py_None; | |
1704 | return _resultobj; | |
1705 | } | |
1706 | ||
1707 | static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1708 | PyObject * _resultobj; | |
1709 | char *_kwnames[] = { NULL }; | |
1710 | ||
1711 | self = self; | |
1712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames)) | |
c368d904 | 1713 | return NULL; |
c368d904 | 1714 | { |
4268f798 | 1715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1716 | wxMutexGuiEnter(); |
6e18ca6c | 1717 | |
4268f798 RD |
1718 | wxPyEndAllowThreads(__tstate); |
1719 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1720 | } Py_INCREF(Py_None); |
1721 | _resultobj = Py_None; | |
1722 | return _resultobj; | |
1723 | } | |
1724 | ||
1725 | static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1726 | PyObject * _resultobj; | |
1727 | char *_kwnames[] = { NULL }; | |
1728 | ||
1729 | self = self; | |
1730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames)) | |
1731 | return NULL; | |
1732 | { | |
4268f798 | 1733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1734 | wxMutexGuiLeave(); |
6e18ca6c | 1735 | |
4268f798 RD |
1736 | wxPyEndAllowThreads(__tstate); |
1737 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
1738 | } Py_INCREF(Py_None); |
1739 | _resultobj = Py_None; | |
1740 | return _resultobj; | |
1741 | } | |
1742 | ||
1743 | static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1744 | PyObject * _resultobj; | |
1745 | bool _result; | |
1746 | char *_kwnames[] = { NULL }; | |
1747 | ||
1748 | self = self; | |
1749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames)) | |
1750 | return NULL; | |
1751 | { | |
4268f798 | 1752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1753 | _result = (bool )wxThread_IsMain(); |
c368d904 | 1754 | |
4268f798 RD |
1755 | wxPyEndAllowThreads(__tstate); |
1756 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
1757 | } _resultobj = Py_BuildValue("i",_result); |
1758 | return _resultobj; | |
1759 | } | |
1760 | ||
f6bcfd97 | 1761 | static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
bb0054cd | 1762 | PyObject * _resultobj; |
f6bcfd97 BP |
1763 | bool _result; |
1764 | wxWindow * _arg0; | |
1765 | wxTipProvider * _arg1; | |
1766 | bool _arg2 = (bool ) TRUE; | |
1767 | PyObject * _argo0 = 0; | |
1768 | PyObject * _argo1 = 0; | |
1769 | int tempbool2 = (int) TRUE; | |
1770 | char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL }; | |
1771 | ||
1772 | self = self; | |
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2)) | |
1774 | return NULL; | |
1775 | if (_argo0) { | |
1776 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
1777 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
1778 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p."); | |
1779 | return NULL; | |
1780 | } | |
1781 | } | |
1782 | if (_argo1) { | |
1783 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
1784 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) { | |
1785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p."); | |
1786 | return NULL; | |
1787 | } | |
1788 | } | |
1789 | _arg2 = (bool ) tempbool2; | |
1790 | { | |
4268f798 | 1791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1792 | _result = (bool )wxShowTip(_arg0,_arg1,_arg2); |
f6bcfd97 | 1793 | |
4268f798 RD |
1794 | wxPyEndAllowThreads(__tstate); |
1795 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1796 | } _resultobj = Py_BuildValue("i",_result); |
1797 | return _resultobj; | |
1798 | } | |
1799 | ||
1800 | static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1801 | PyObject * _resultobj; | |
1802 | wxTipProvider * _result; | |
bb0054cd | 1803 | wxString * _arg0; |
f6bcfd97 | 1804 | size_t _arg1; |
bb0054cd | 1805 | PyObject * _obj0 = 0; |
f6bcfd97 | 1806 | char *_kwnames[] = { "filename","currentTip", NULL }; |
bb0054cd RD |
1807 | char _ptemp[128]; |
1808 | ||
1809 | self = self; | |
f6bcfd97 | 1810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1)) |
bb0054cd RD |
1811 | return NULL; |
1812 | { | |
c8bc7bb8 RD |
1813 | _arg0 = wxString_in_helper(_obj0); |
1814 | if (_arg0 == NULL) | |
185d7c3e | 1815 | return NULL; |
bb0054cd RD |
1816 | } |
1817 | { | |
4268f798 | 1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1819 | _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1); |
bb0054cd | 1820 | |
4268f798 RD |
1821 | wxPyEndAllowThreads(__tstate); |
1822 | if (PyErr_Occurred()) return NULL; | |
1d99702e | 1823 | } if (_result) { |
f6bcfd97 | 1824 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p"); |
1d99702e RD |
1825 | _resultobj = Py_BuildValue("s",_ptemp); |
1826 | } else { | |
1827 | Py_INCREF(Py_None); | |
1828 | _resultobj = Py_None; | |
1829 | } | |
bb0054cd RD |
1830 | { |
1831 | if (_obj0) | |
1832 | delete _arg0; | |
1833 | } | |
1834 | return _resultobj; | |
1835 | } | |
1836 | ||
f6bcfd97 | 1837 | static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1838 | PyObject * _resultobj; |
f6bcfd97 BP |
1839 | unsigned long _result; |
1840 | char *_kwnames[] = { NULL }; | |
f0261a72 RD |
1841 | |
1842 | self = self; | |
f6bcfd97 | 1843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames)) |
f0261a72 | 1844 | return NULL; |
f0261a72 | 1845 | { |
4268f798 | 1846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1847 | _result = (unsigned long )wxSysErrorCode(); |
f0261a72 | 1848 | |
4268f798 RD |
1849 | wxPyEndAllowThreads(__tstate); |
1850 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 1851 | } _resultobj = Py_BuildValue("l",_result); |
f0261a72 RD |
1852 | return _resultobj; |
1853 | } | |
1854 | ||
f6bcfd97 | 1855 | static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1856 | PyObject * _resultobj; |
c8bc7bb8 | 1857 | wxString * _result; |
f6bcfd97 BP |
1858 | unsigned long _arg0 = (unsigned long ) 0; |
1859 | char *_kwnames[] = { "nErrCode", NULL }; | |
f0261a72 RD |
1860 | |
1861 | self = self; | |
f6bcfd97 | 1862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0)) |
f0261a72 | 1863 | return NULL; |
f0261a72 | 1864 | { |
4268f798 | 1865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1866 | _result = new wxString (wxSysErrorMsg(_arg0)); |
f0261a72 | 1867 | |
4268f798 RD |
1868 | wxPyEndAllowThreads(__tstate); |
1869 | if (PyErr_Occurred()) return NULL; | |
c8bc7bb8 RD |
1870 | }{ |
1871 | #if wxUSE_UNICODE | |
7e50db3f | 1872 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 RD |
1873 | #else |
1874 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
1875 | #endif | |
1876 | } | |
1877 | { | |
1878 | delete _result; | |
1879 | } | |
f0261a72 RD |
1880 | return _resultobj; |
1881 | } | |
1882 | ||
f6bcfd97 | 1883 | static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1884 | PyObject * _resultobj; |
c8bc7bb8 RD |
1885 | wxString * _arg0; |
1886 | PyObject * _obj0 = 0; | |
be13a6af | 1887 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
1888 | |
1889 | self = self; | |
c8bc7bb8 | 1890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogFatalError",_kwnames,&_obj0)) |
f0261a72 | 1891 | return NULL; |
c8bc7bb8 RD |
1892 | { |
1893 | _arg0 = wxString_in_helper(_obj0); | |
1894 | if (_arg0 == NULL) | |
1895 | return NULL; | |
1896 | } | |
f0261a72 | 1897 | { |
4268f798 | 1898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1899 | wxLogFatalError(*_arg0); |
f0261a72 | 1900 | |
4268f798 RD |
1901 | wxPyEndAllowThreads(__tstate); |
1902 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1903 | } Py_INCREF(Py_None); |
1904 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1905 | { |
1906 | if (_obj0) | |
1907 | delete _arg0; | |
1908 | } | |
f0261a72 RD |
1909 | return _resultobj; |
1910 | } | |
1911 | ||
f6bcfd97 | 1912 | static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 1913 | PyObject * _resultobj; |
c8bc7bb8 RD |
1914 | wxString * _arg0; |
1915 | PyObject * _obj0 = 0; | |
be13a6af | 1916 | char *_kwnames[] = { "msg", NULL }; |
f0261a72 RD |
1917 | |
1918 | self = self; | |
c8bc7bb8 | 1919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogError",_kwnames,&_obj0)) |
f0261a72 | 1920 | return NULL; |
c8bc7bb8 RD |
1921 | { |
1922 | _arg0 = wxString_in_helper(_obj0); | |
1923 | if (_arg0 == NULL) | |
1924 | return NULL; | |
1925 | } | |
f0261a72 | 1926 | { |
4268f798 | 1927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1928 | wxLogError(*_arg0); |
f0261a72 | 1929 | |
4268f798 RD |
1930 | wxPyEndAllowThreads(__tstate); |
1931 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
1932 | } Py_INCREF(Py_None); |
1933 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1934 | { |
1935 | if (_obj0) | |
1936 | delete _arg0; | |
1937 | } | |
f0261a72 RD |
1938 | return _resultobj; |
1939 | } | |
1940 | ||
f6bcfd97 BP |
1941 | static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) { |
1942 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1943 | wxString * _arg0; |
1944 | PyObject * _obj0 = 0; | |
be13a6af | 1945 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
1946 | |
1947 | self = self; | |
c8bc7bb8 | 1948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWarning",_kwnames,&_obj0)) |
f6bcfd97 | 1949 | return NULL; |
c8bc7bb8 RD |
1950 | { |
1951 | _arg0 = wxString_in_helper(_obj0); | |
1952 | if (_arg0 == NULL) | |
1953 | return NULL; | |
1954 | } | |
f6bcfd97 | 1955 | { |
4268f798 | 1956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1957 | wxLogWarning(*_arg0); |
f6bcfd97 | 1958 | |
4268f798 RD |
1959 | wxPyEndAllowThreads(__tstate); |
1960 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1961 | } Py_INCREF(Py_None); |
1962 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1963 | { |
1964 | if (_obj0) | |
1965 | delete _arg0; | |
1966 | } | |
f6bcfd97 BP |
1967 | return _resultobj; |
1968 | } | |
1969 | ||
1970 | static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1971 | PyObject * _resultobj; | |
c8bc7bb8 RD |
1972 | wxString * _arg0; |
1973 | PyObject * _obj0 = 0; | |
be13a6af | 1974 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
1975 | |
1976 | self = self; | |
c8bc7bb8 RD |
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogMessage",_kwnames,&_obj0)) |
1978 | return NULL; | |
1979 | { | |
1980 | _arg0 = wxString_in_helper(_obj0); | |
1981 | if (_arg0 == NULL) | |
f6bcfd97 | 1982 | return NULL; |
c8bc7bb8 | 1983 | } |
f6bcfd97 | 1984 | { |
4268f798 | 1985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 1986 | wxLogMessage(*_arg0); |
f6bcfd97 | 1987 | |
4268f798 RD |
1988 | wxPyEndAllowThreads(__tstate); |
1989 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
1990 | } Py_INCREF(Py_None); |
1991 | _resultobj = Py_None; | |
c8bc7bb8 RD |
1992 | { |
1993 | if (_obj0) | |
1994 | delete _arg0; | |
1995 | } | |
f6bcfd97 BP |
1996 | return _resultobj; |
1997 | } | |
1998 | ||
1999 | static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2000 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2001 | wxString * _arg0; |
2002 | PyObject * _obj0 = 0; | |
be13a6af | 2003 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2004 | |
2005 | self = self; | |
c8bc7bb8 RD |
2006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogInfo",_kwnames,&_obj0)) |
2007 | return NULL; | |
2008 | { | |
2009 | _arg0 = wxString_in_helper(_obj0); | |
2010 | if (_arg0 == NULL) | |
f6bcfd97 | 2011 | return NULL; |
c8bc7bb8 | 2012 | } |
f6bcfd97 | 2013 | { |
4268f798 | 2014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2015 | wxLogInfo(*_arg0); |
f6bcfd97 | 2016 | |
4268f798 RD |
2017 | wxPyEndAllowThreads(__tstate); |
2018 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2019 | } Py_INCREF(Py_None); |
2020 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2021 | { |
2022 | if (_obj0) | |
2023 | delete _arg0; | |
2024 | } | |
f6bcfd97 BP |
2025 | return _resultobj; |
2026 | } | |
2027 | ||
7e50db3f RD |
2028 | static PyObject *_wrap_wxLogDebug(PyObject *self, PyObject *args, PyObject *kwargs) { |
2029 | PyObject * _resultobj; | |
2030 | wxString * _arg0; | |
2031 | PyObject * _obj0 = 0; | |
2032 | char *_kwnames[] = { "msg", NULL }; | |
2033 | ||
2034 | self = self; | |
2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogDebug",_kwnames,&_obj0)) | |
2036 | return NULL; | |
2037 | { | |
2038 | _arg0 = wxString_in_helper(_obj0); | |
2039 | if (_arg0 == NULL) | |
2040 | return NULL; | |
2041 | } | |
2042 | { | |
2043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2044 | wxLogDebug(*_arg0); | |
2045 | ||
2046 | wxPyEndAllowThreads(__tstate); | |
2047 | if (PyErr_Occurred()) return NULL; | |
2048 | } Py_INCREF(Py_None); | |
2049 | _resultobj = Py_None; | |
2050 | { | |
2051 | if (_obj0) | |
2052 | delete _arg0; | |
2053 | } | |
2054 | return _resultobj; | |
2055 | } | |
2056 | ||
f6bcfd97 BP |
2057 | static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
2058 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2059 | wxString * _arg0; |
2060 | PyObject * _obj0 = 0; | |
be13a6af | 2061 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2062 | |
2063 | self = self; | |
c8bc7bb8 | 2064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogVerbose",_kwnames,&_obj0)) |
f6bcfd97 | 2065 | return NULL; |
c8bc7bb8 RD |
2066 | { |
2067 | _arg0 = wxString_in_helper(_obj0); | |
2068 | if (_arg0 == NULL) | |
2069 | return NULL; | |
2070 | } | |
f6bcfd97 | 2071 | { |
4268f798 | 2072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2073 | wxLogVerbose(*_arg0); |
f6bcfd97 | 2074 | |
4268f798 RD |
2075 | wxPyEndAllowThreads(__tstate); |
2076 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2077 | } Py_INCREF(Py_None); |
2078 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2079 | { |
2080 | if (_obj0) | |
2081 | delete _arg0; | |
2082 | } | |
f6bcfd97 BP |
2083 | return _resultobj; |
2084 | } | |
2085 | ||
2086 | static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2087 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2088 | wxString * _arg0; |
2089 | PyObject * _obj0 = 0; | |
be13a6af | 2090 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2091 | |
2092 | self = self; | |
c8bc7bb8 RD |
2093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogStatus",_kwnames,&_obj0)) |
2094 | return NULL; | |
2095 | { | |
2096 | _arg0 = wxString_in_helper(_obj0); | |
2097 | if (_arg0 == NULL) | |
f6bcfd97 | 2098 | return NULL; |
c8bc7bb8 | 2099 | } |
f6bcfd97 | 2100 | { |
4268f798 | 2101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2102 | wxLogStatus(*_arg0); |
f6bcfd97 | 2103 | |
4268f798 RD |
2104 | wxPyEndAllowThreads(__tstate); |
2105 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2106 | } Py_INCREF(Py_None); |
2107 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2108 | { |
2109 | if (_obj0) | |
2110 | delete _arg0; | |
2111 | } | |
f6bcfd97 BP |
2112 | return _resultobj; |
2113 | } | |
2114 | ||
2115 | static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2116 | PyObject * _resultobj; | |
2117 | wxFrame * _arg0; | |
c8bc7bb8 | 2118 | wxString * _arg1; |
f6bcfd97 | 2119 | PyObject * _argo0 = 0; |
c8bc7bb8 | 2120 | PyObject * _obj1 = 0; |
be13a6af | 2121 | char *_kwnames[] = { "pFrame","msg", NULL }; |
f6bcfd97 BP |
2122 | |
2123 | self = self; | |
c8bc7bb8 | 2124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogStatusFrame",_kwnames,&_argo0,&_obj1)) |
f6bcfd97 BP |
2125 | return NULL; |
2126 | if (_argo0) { | |
2127 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2128 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { | |
2129 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p."); | |
2130 | return NULL; | |
2131 | } | |
2132 | } | |
c8bc7bb8 RD |
2133 | { |
2134 | _arg1 = wxString_in_helper(_obj1); | |
2135 | if (_arg1 == NULL) | |
2136 | return NULL; | |
2137 | } | |
f6bcfd97 | 2138 | { |
4268f798 | 2139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2140 | wxLogStatus(_arg0,*_arg1); |
f6bcfd97 | 2141 | |
4268f798 RD |
2142 | wxPyEndAllowThreads(__tstate); |
2143 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2144 | } Py_INCREF(Py_None); |
2145 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2146 | { |
2147 | if (_obj1) | |
2148 | delete _arg1; | |
2149 | } | |
f6bcfd97 BP |
2150 | return _resultobj; |
2151 | } | |
2152 | ||
2153 | static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2154 | PyObject * _resultobj; | |
c8bc7bb8 RD |
2155 | wxString * _arg0; |
2156 | PyObject * _obj0 = 0; | |
be13a6af | 2157 | char *_kwnames[] = { "msg", NULL }; |
f6bcfd97 BP |
2158 | |
2159 | self = self; | |
c8bc7bb8 RD |
2160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogSysError",_kwnames,&_obj0)) |
2161 | return NULL; | |
2162 | { | |
2163 | _arg0 = wxString_in_helper(_obj0); | |
2164 | if (_arg0 == NULL) | |
f6bcfd97 | 2165 | return NULL; |
c8bc7bb8 | 2166 | } |
f6bcfd97 | 2167 | { |
4268f798 | 2168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2169 | wxLogSysError(*_arg0); |
f6bcfd97 | 2170 | |
4268f798 RD |
2171 | wxPyEndAllowThreads(__tstate); |
2172 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2173 | } Py_INCREF(Py_None); |
2174 | _resultobj = Py_None; | |
c8bc7bb8 RD |
2175 | { |
2176 | if (_obj0) | |
2177 | delete _arg0; | |
2178 | } | |
f6bcfd97 BP |
2179 | return _resultobj; |
2180 | } | |
2181 | ||
be13a6af RD |
2182 | static PyObject *_wrap_wxLogTrace(PyObject *self, PyObject *args, PyObject *kwargs) { |
2183 | PyObject * _resultobj; | |
2184 | wxString * _arg0; | |
2185 | PyObject * _obj0 = 0; | |
2186 | char *_kwnames[] = { "msg", NULL }; | |
2187 | ||
2188 | self = self; | |
2189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogTrace",_kwnames,&_obj0)) | |
2190 | return NULL; | |
2191 | { | |
2192 | _arg0 = wxString_in_helper(_obj0); | |
2193 | if (_arg0 == NULL) | |
2194 | return NULL; | |
2195 | } | |
2196 | { | |
2197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2198 | wxLogTrace(*_arg0); | |
2199 | ||
2200 | wxPyEndAllowThreads(__tstate); | |
2201 | if (PyErr_Occurred()) return NULL; | |
2202 | } Py_INCREF(Py_None); | |
2203 | _resultobj = Py_None; | |
2204 | { | |
2205 | if (_obj0) | |
2206 | delete _arg0; | |
2207 | } | |
2208 | return _resultobj; | |
2209 | } | |
2210 | ||
2211 | static PyObject *_wrap_wxLogTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2212 | PyObject * _resultobj; | |
2213 | wxString * _arg0; | |
2214 | wxString * _arg1; | |
2215 | PyObject * _obj0 = 0; | |
2216 | PyObject * _obj1 = 0; | |
2217 | char *_kwnames[] = { "mask","msg", NULL }; | |
2218 | ||
2219 | self = self; | |
2220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogTraceMask",_kwnames,&_obj0,&_obj1)) | |
2221 | return NULL; | |
2222 | { | |
2223 | _arg0 = wxString_in_helper(_obj0); | |
2224 | if (_arg0 == NULL) | |
2225 | return NULL; | |
2226 | } | |
2227 | { | |
2228 | _arg1 = wxString_in_helper(_obj1); | |
2229 | if (_arg1 == NULL) | |
2230 | return NULL; | |
2231 | } | |
2232 | { | |
2233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2234 | wxLogTrace(*_arg0,*_arg1); | |
2235 | ||
2236 | wxPyEndAllowThreads(__tstate); | |
2237 | if (PyErr_Occurred()) return NULL; | |
2238 | } Py_INCREF(Py_None); | |
2239 | _resultobj = Py_None; | |
2240 | { | |
2241 | if (_obj0) | |
2242 | delete _arg0; | |
2243 | } | |
2244 | { | |
2245 | if (_obj1) | |
2246 | delete _arg1; | |
2247 | } | |
2248 | return _resultobj; | |
2249 | } | |
2250 | ||
2251 | static PyObject *_wrap_wxLogGeneric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2252 | PyObject * _resultobj; | |
2253 | unsigned long _arg0; | |
2254 | wxString * _arg1; | |
2255 | PyObject * _obj1 = 0; | |
2256 | char *_kwnames[] = { "level","msg", NULL }; | |
2257 | ||
2258 | self = self; | |
2259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO:wxLogGeneric",_kwnames,&_arg0,&_obj1)) | |
2260 | return NULL; | |
2261 | { | |
2262 | _arg1 = wxString_in_helper(_obj1); | |
2263 | if (_arg1 == NULL) | |
2264 | return NULL; | |
2265 | } | |
2266 | { | |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2268 | wxLogGeneric(_arg0,*_arg1); | |
2269 | ||
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) return NULL; | |
2272 | } Py_INCREF(Py_None); | |
2273 | _resultobj = Py_None; | |
2274 | { | |
2275 | if (_obj1) | |
2276 | delete _arg1; | |
2277 | } | |
2278 | return _resultobj; | |
2279 | } | |
2280 | ||
0b85cc38 RD |
2281 | static PyObject *_wrap_wxSafeShowMessage(PyObject *self, PyObject *args, PyObject *kwargs) { |
2282 | PyObject * _resultobj; | |
2283 | wxString * _arg0; | |
2284 | wxString * _arg1; | |
2285 | PyObject * _obj0 = 0; | |
2286 | PyObject * _obj1 = 0; | |
2287 | char *_kwnames[] = { "title","text", NULL }; | |
2288 | ||
2289 | self = self; | |
2290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSafeShowMessage",_kwnames,&_obj0,&_obj1)) | |
2291 | return NULL; | |
2292 | { | |
2293 | _arg0 = wxString_in_helper(_obj0); | |
2294 | if (_arg0 == NULL) | |
2295 | return NULL; | |
2296 | } | |
2297 | { | |
2298 | _arg1 = wxString_in_helper(_obj1); | |
2299 | if (_arg1 == NULL) | |
2300 | return NULL; | |
2301 | } | |
2302 | { | |
2303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2304 | wxSafeShowMessage(*_arg0,*_arg1); | |
2305 | ||
2306 | wxPyEndAllowThreads(__tstate); | |
2307 | if (PyErr_Occurred()) return NULL; | |
2308 | } Py_INCREF(Py_None); | |
2309 | _resultobj = Py_None; | |
2310 | { | |
2311 | if (_obj0) | |
2312 | delete _arg0; | |
2313 | } | |
2314 | { | |
2315 | if (_obj1) | |
2316 | delete _arg1; | |
2317 | } | |
2318 | return _resultobj; | |
2319 | } | |
2320 | ||
c368d904 RD |
2321 | static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) { |
2322 | PyObject * _resultobj; | |
2323 | long _result; | |
2324 | wxString * _arg0; | |
b96c7a38 | 2325 | int _arg1 = (int ) (wxEXEC_ASYNC); |
c368d904 RD |
2326 | wxPyProcess * _arg2 = (wxPyProcess *) NULL; |
2327 | PyObject * _obj0 = 0; | |
2328 | PyObject * _argo2 = 0; | |
b96c7a38 | 2329 | char *_kwnames[] = { "command","flags","process", NULL }; |
c368d904 RD |
2330 | |
2331 | self = self; | |
2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2)) | |
2333 | return NULL; | |
2334 | { | |
c8bc7bb8 RD |
2335 | _arg0 = wxString_in_helper(_obj0); |
2336 | if (_arg0 == NULL) | |
185d7c3e | 2337 | return NULL; |
c368d904 RD |
2338 | } |
2339 | if (_argo2) { | |
2340 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
2341 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) { | |
2342 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p."); | |
2343 | return NULL; | |
2344 | } | |
2345 | } | |
2346 | { | |
4268f798 | 2347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2348 | _result = (long )wxExecute(*_arg0,_arg1,_arg2); |
c368d904 | 2349 | |
4268f798 RD |
2350 | wxPyEndAllowThreads(__tstate); |
2351 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
2352 | } _resultobj = Py_BuildValue("l",_result); |
2353 | { | |
2354 | if (_obj0) | |
2355 | delete _arg0; | |
2356 | } | |
2357 | return _resultobj; | |
2358 | } | |
2359 | ||
493f1553 RD |
2360 | static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) { |
2361 | PyObject * _resultobj; | |
2362 | wxWave * _result; | |
2363 | wxString * _arg0; | |
2364 | PyObject * _obj0 = 0; | |
2365 | char *_kwnames[] = { "data", NULL }; | |
2366 | char _ptemp[128]; | |
2367 | ||
2368 | self = self; | |
2369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0)) | |
2370 | return NULL; | |
2371 | { | |
c8bc7bb8 RD |
2372 | _arg0 = wxString_in_helper(_obj0); |
2373 | if (_arg0 == NULL) | |
493f1553 | 2374 | return NULL; |
493f1553 RD |
2375 | } |
2376 | { | |
4268f798 | 2377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2378 | _result = (wxWave *)wxWaveData(*_arg0); |
493f1553 | 2379 | |
4268f798 RD |
2380 | wxPyEndAllowThreads(__tstate); |
2381 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
2382 | } if (_result) { |
2383 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
2384 | _resultobj = Py_BuildValue("s",_ptemp); | |
2385 | } else { | |
2386 | Py_INCREF(Py_None); | |
2387 | _resultobj = Py_None; | |
2388 | } | |
2389 | { | |
2390 | if (_obj0) | |
2391 | delete _arg0; | |
2392 | } | |
2393 | return _resultobj; | |
2394 | } | |
2395 | ||
b37c7e1d RD |
2396 | static int _wrap_wxTheMimeTypesManager_set(PyObject *val) { |
2397 | ||
2398 | PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only."); | |
2399 | return 1; | |
2400 | } | |
2401 | ||
2402 | static PyObject *_wrap_wxTheMimeTypesManager_get() { | |
2403 | PyObject * pyobj; | |
2404 | char ptemp[128]; | |
2405 | ||
2406 | SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p"); | |
2407 | pyobj = PyString_FromString(ptemp); | |
2408 | return pyobj; | |
2409 | } | |
2410 | ||
8a12f92d RD |
2411 | static PyObject *_wrap_wxDrawWindowOnDC(PyObject *self, PyObject *args, PyObject *kwargs) { |
2412 | PyObject * _resultobj; | |
2413 | wxWindow * _arg0; | |
2414 | wxDC * _arg1; | |
6bb000ec | 2415 | int _arg2; |
8a12f92d RD |
2416 | PyObject * _argo0 = 0; |
2417 | PyObject * _argo1 = 0; | |
6bb000ec | 2418 | char *_kwnames[] = { "window","dc","method", NULL }; |
8a12f92d RD |
2419 | |
2420 | self = self; | |
6bb000ec | 2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxDrawWindowOnDC",_kwnames,&_argo0,&_argo1,&_arg2)) |
8a12f92d RD |
2422 | return NULL; |
2423 | if (_argo0) { | |
2424 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2425 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2426 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDrawWindowOnDC. Expected _wxWindow_p."); | |
2427 | return NULL; | |
2428 | } | |
2429 | } | |
2430 | if (_argo1) { | |
2431 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { | |
2432 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDrawWindowOnDC. Expected _wxDC_p."); | |
2433 | return NULL; | |
2434 | } | |
2435 | } | |
2436 | { | |
2437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6bb000ec | 2438 | wxDrawWindowOnDC(_arg0,*_arg1,_arg2); |
8a12f92d RD |
2439 | |
2440 | wxPyEndAllowThreads(__tstate); | |
2441 | if (PyErr_Occurred()) return NULL; | |
2442 | } Py_INCREF(Py_None); | |
2443 | _resultobj = Py_None; | |
2444 | return _resultobj; | |
2445 | } | |
2446 | ||
b5a5d647 RD |
2447 | static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
2448 | PyObject * _resultobj; | |
2449 | wxColour * _result; | |
2450 | wxSystemColour _arg0; | |
2451 | char *_kwnames[] = { "index", NULL }; | |
2452 | char _ptemp[128]; | |
2453 | ||
2454 | self = self; | |
2455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0)) | |
2456 | return NULL; | |
2457 | { | |
2458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2459 | _result = new wxColour (wxSystemSettings::GetColour(_arg0)); |
b5a5d647 RD |
2460 | |
2461 | wxPyEndAllowThreads(__tstate); | |
2462 | if (PyErr_Occurred()) return NULL; | |
2463 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
2464 | _resultobj = Py_BuildValue("s",_ptemp); | |
2465 | return _resultobj; | |
2466 | } | |
2467 | ||
2468 | static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2469 | PyObject * _resultobj; | |
2470 | wxFont * _result; | |
2471 | wxSystemFont _arg0; | |
2472 | char *_kwnames[] = { "index", NULL }; | |
2473 | char _ptemp[128]; | |
2474 | ||
2475 | self = self; | |
2476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0)) | |
2477 | return NULL; | |
2478 | { | |
2479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2480 | _result = new wxFont (wxSystemSettings::GetFont(_arg0)); |
b5a5d647 RD |
2481 | |
2482 | wxPyEndAllowThreads(__tstate); | |
2483 | if (PyErr_Occurred()) return NULL; | |
2484 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p"); | |
2485 | _resultobj = Py_BuildValue("s",_ptemp); | |
2486 | return _resultobj; | |
2487 | } | |
2488 | ||
2489 | static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2490 | PyObject * _resultobj; | |
2491 | int _result; | |
2492 | wxSystemMetric _arg0; | |
2493 | char *_kwnames[] = { "index", NULL }; | |
2494 | ||
2495 | self = self; | |
2496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0)) | |
2497 | return NULL; | |
2498 | { | |
2499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2500 | _result = (int )wxSystemSettings::GetMetric(_arg0); |
b5a5d647 RD |
2501 | |
2502 | wxPyEndAllowThreads(__tstate); | |
2503 | if (PyErr_Occurred()) return NULL; | |
2504 | } _resultobj = Py_BuildValue("i",_result); | |
2505 | return _resultobj; | |
2506 | } | |
2507 | ||
2508 | static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2509 | PyObject * _resultobj; | |
2510 | bool _result; | |
2511 | wxSystemFeature _arg0; | |
2512 | char *_kwnames[] = { "index", NULL }; | |
2513 | ||
2514 | self = self; | |
2515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0)) | |
2516 | return NULL; | |
2517 | { | |
2518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 2519 | _result = (bool )wxSystemSettings::HasFeature(_arg0); |
b5a5d647 RD |
2520 | |
2521 | wxPyEndAllowThreads(__tstate); | |
2522 | if (PyErr_Occurred()) return NULL; | |
2523 | } _resultobj = Py_BuildValue("i",_result); | |
2524 | return _resultobj; | |
2525 | } | |
2526 | ||
e67409dc | 2527 | static PyObject *_wrap_wxSystemSettings_GetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2528 | PyObject * _resultobj; |
e67409dc | 2529 | wxSystemScreenType _result; |
0b85cc38 RD |
2530 | char *_kwnames[] = { NULL }; |
2531 | ||
2532 | self = self; | |
e67409dc | 2533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSystemSettings_GetScreenType",_kwnames)) |
0b85cc38 RD |
2534 | return NULL; |
2535 | { | |
2536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2537 | _result = (wxSystemScreenType )wxSystemSettings::GetScreenType(); |
0b85cc38 RD |
2538 | |
2539 | wxPyEndAllowThreads(__tstate); | |
2540 | if (PyErr_Occurred()) return NULL; | |
2541 | } _resultobj = Py_BuildValue("i",_result); | |
2542 | return _resultobj; | |
2543 | } | |
2544 | ||
e67409dc | 2545 | static PyObject *_wrap_wxSystemSettings_SetScreenType(PyObject *self, PyObject *args, PyObject *kwargs) { |
0b85cc38 | 2546 | PyObject * _resultobj; |
e67409dc | 2547 | wxSystemScreenType _arg0; |
0b85cc38 RD |
2548 | char *_kwnames[] = { "screen", NULL }; |
2549 | ||
2550 | self = self; | |
e67409dc | 2551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_SetScreenType",_kwnames,&_arg0)) |
0b85cc38 RD |
2552 | return NULL; |
2553 | { | |
2554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e67409dc | 2555 | wxSystemSettings::SetScreenType(_arg0); |
0b85cc38 RD |
2556 | |
2557 | wxPyEndAllowThreads(__tstate); | |
2558 | if (PyErr_Occurred()) return NULL; | |
2559 | } Py_INCREF(Py_None); | |
2560 | _resultobj = Py_None; | |
2561 | return _resultobj; | |
2562 | } | |
2563 | ||
5a2a9da2 RD |
2564 | static void *SwigwxSystemOptionsTowxObject(void *ptr) { |
2565 | wxSystemOptions *src; | |
2566 | wxObject *dest; | |
2567 | src = (wxSystemOptions *) ptr; | |
2568 | dest = (wxObject *) src; | |
2569 | return (void *) dest; | |
2570 | } | |
2571 | ||
2572 | #define new_wxSystemOptions() (new wxSystemOptions()) | |
2573 | static PyObject *_wrap_new_wxSystemOptions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2574 | PyObject * _resultobj; | |
2575 | wxSystemOptions * _result; | |
2576 | char *_kwnames[] = { NULL }; | |
2577 | char _ptemp[128]; | |
2578 | ||
2579 | self = self; | |
2580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxSystemOptions",_kwnames)) | |
2581 | return NULL; | |
2582 | { | |
2583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2584 | _result = (wxSystemOptions *)new_wxSystemOptions(); | |
2585 | ||
2586 | wxPyEndAllowThreads(__tstate); | |
2587 | if (PyErr_Occurred()) return NULL; | |
2588 | } if (_result) { | |
2589 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSystemOptions_p"); | |
2590 | _resultobj = Py_BuildValue("s",_ptemp); | |
2591 | } else { | |
2592 | Py_INCREF(Py_None); | |
2593 | _resultobj = Py_None; | |
2594 | } | |
2595 | return _resultobj; | |
2596 | } | |
2597 | ||
2598 | static PyObject *_wrap_wxSystemOptions_SetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2599 | PyObject * _resultobj; | |
2600 | wxString * _arg0; | |
2601 | wxString * _arg1; | |
2602 | PyObject * _obj0 = 0; | |
2603 | PyObject * _obj1 = 0; | |
2604 | char *_kwnames[] = { "name","value", NULL }; | |
2605 | ||
2606 | self = self; | |
2607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxSystemOptions_SetOption",_kwnames,&_obj0,&_obj1)) | |
2608 | return NULL; | |
2609 | { | |
2610 | _arg0 = wxString_in_helper(_obj0); | |
2611 | if (_arg0 == NULL) | |
2612 | return NULL; | |
2613 | } | |
2614 | { | |
2615 | _arg1 = wxString_in_helper(_obj1); | |
2616 | if (_arg1 == NULL) | |
2617 | return NULL; | |
2618 | } | |
2619 | { | |
2620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2621 | wxSystemOptions::SetOption(*_arg0,*_arg1); | |
2622 | ||
2623 | wxPyEndAllowThreads(__tstate); | |
2624 | if (PyErr_Occurred()) return NULL; | |
2625 | } Py_INCREF(Py_None); | |
2626 | _resultobj = Py_None; | |
2627 | { | |
2628 | if (_obj0) | |
2629 | delete _arg0; | |
2630 | } | |
2631 | { | |
2632 | if (_obj1) | |
2633 | delete _arg1; | |
2634 | } | |
2635 | return _resultobj; | |
2636 | } | |
2637 | ||
2638 | static PyObject *_wrap_wxSystemOptions_SetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2639 | PyObject * _resultobj; | |
2640 | wxString * _arg0; | |
2641 | int _arg1; | |
2642 | PyObject * _obj0 = 0; | |
2643 | char *_kwnames[] = { "name","value", NULL }; | |
2644 | ||
2645 | self = self; | |
2646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxSystemOptions_SetOptionInt",_kwnames,&_obj0,&_arg1)) | |
2647 | return NULL; | |
2648 | { | |
2649 | _arg0 = wxString_in_helper(_obj0); | |
2650 | if (_arg0 == NULL) | |
2651 | return NULL; | |
2652 | } | |
2653 | { | |
2654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2655 | wxSystemOptions::SetOption(*_arg0,_arg1); | |
2656 | ||
2657 | wxPyEndAllowThreads(__tstate); | |
2658 | if (PyErr_Occurred()) return NULL; | |
2659 | } Py_INCREF(Py_None); | |
2660 | _resultobj = Py_None; | |
2661 | { | |
2662 | if (_obj0) | |
2663 | delete _arg0; | |
2664 | } | |
2665 | return _resultobj; | |
2666 | } | |
2667 | ||
2668 | static PyObject *_wrap_wxSystemOptions_GetOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2669 | PyObject * _resultobj; | |
2670 | wxString * _result; | |
2671 | wxString * _arg0; | |
2672 | PyObject * _obj0 = 0; | |
2673 | char *_kwnames[] = { "name", NULL }; | |
2674 | ||
2675 | self = self; | |
2676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSystemOptions_GetOption",_kwnames,&_obj0)) | |
2677 | return NULL; | |
2678 | { | |
2679 | _arg0 = wxString_in_helper(_obj0); | |
2680 | if (_arg0 == NULL) | |
2681 | return NULL; | |
2682 | } | |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | _result = new wxString (wxSystemOptions::GetOption(*_arg0)); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) return NULL; | |
2689 | }{ | |
2690 | #if wxUSE_UNICODE | |
2691 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); | |
2692 | #else | |
2693 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
2694 | #endif | |
2695 | } | |
2696 | { | |
2697 | if (_obj0) | |
2698 | delete _arg0; | |
2699 | } | |
2700 | { | |
2701 | delete _result; | |
2702 | } | |
2703 | return _resultobj; | |
2704 | } | |
2705 | ||
2706 | static PyObject *_wrap_wxSystemOptions_GetOptionInt(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2707 | PyObject * _resultobj; | |
2708 | int _result; | |
2709 | wxString * _arg0; | |
2710 | PyObject * _obj0 = 0; | |
2711 | char *_kwnames[] = { "name", NULL }; | |
2712 | ||
2713 | self = self; | |
2714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSystemOptions_GetOptionInt",_kwnames,&_obj0)) | |
2715 | return NULL; | |
2716 | { | |
2717 | _arg0 = wxString_in_helper(_obj0); | |
2718 | if (_arg0 == NULL) | |
2719 | return NULL; | |
2720 | } | |
2721 | { | |
2722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2723 | _result = (int )wxSystemOptions::GetOptionInt(*_arg0); | |
2724 | ||
2725 | wxPyEndAllowThreads(__tstate); | |
2726 | if (PyErr_Occurred()) return NULL; | |
2727 | } _resultobj = Py_BuildValue("i",_result); | |
2728 | { | |
2729 | if (_obj0) | |
2730 | delete _arg0; | |
2731 | } | |
2732 | return _resultobj; | |
2733 | } | |
2734 | ||
2735 | static PyObject *_wrap_wxSystemOptions_HasOption(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2736 | PyObject * _resultobj; | |
2737 | bool _result; | |
2738 | wxString * _arg0; | |
2739 | PyObject * _obj0 = 0; | |
2740 | char *_kwnames[] = { "name", NULL }; | |
2741 | ||
2742 | self = self; | |
2743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSystemOptions_HasOption",_kwnames,&_obj0)) | |
2744 | return NULL; | |
2745 | { | |
2746 | _arg0 = wxString_in_helper(_obj0); | |
2747 | if (_arg0 == NULL) | |
2748 | return NULL; | |
2749 | } | |
2750 | { | |
2751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2752 | _result = (bool )wxSystemOptions::HasOption(*_arg0); | |
2753 | ||
2754 | wxPyEndAllowThreads(__tstate); | |
2755 | if (PyErr_Occurred()) return NULL; | |
2756 | } _resultobj = Py_BuildValue("i",_result); | |
2757 | { | |
2758 | if (_obj0) | |
2759 | delete _arg0; | |
2760 | } | |
2761 | return _resultobj; | |
2762 | } | |
2763 | ||
9416aa89 RD |
2764 | static void *SwigwxToolTipTowxObject(void *ptr) { |
2765 | wxToolTip *src; | |
2766 | wxObject *dest; | |
2767 | src = (wxToolTip *) ptr; | |
2768 | dest = (wxObject *) src; | |
2769 | return (void *) dest; | |
2770 | } | |
2771 | ||
f6bcfd97 BP |
2772 | #define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0)) |
2773 | static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2774 | PyObject * _resultobj; | |
2775 | wxToolTip * _result; | |
2776 | wxString * _arg0; | |
2777 | PyObject * _obj0 = 0; | |
2778 | char *_kwnames[] = { "tip", NULL }; | |
2779 | char _ptemp[128]; | |
2780 | ||
2781 | self = self; | |
2782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0)) | |
2783 | return NULL; | |
2784 | { | |
c8bc7bb8 RD |
2785 | _arg0 = wxString_in_helper(_obj0); |
2786 | if (_arg0 == NULL) | |
f6bcfd97 | 2787 | return NULL; |
f6bcfd97 BP |
2788 | } |
2789 | { | |
4268f798 | 2790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2791 | _result = (wxToolTip *)new_wxToolTip(*_arg0); |
f6bcfd97 | 2792 | |
4268f798 RD |
2793 | wxPyEndAllowThreads(__tstate); |
2794 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2795 | } if (_result) { |
2796 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p"); | |
2797 | _resultobj = Py_BuildValue("s",_ptemp); | |
2798 | } else { | |
2799 | Py_INCREF(Py_None); | |
2800 | _resultobj = Py_None; | |
2801 | } | |
2802 | { | |
2803 | if (_obj0) | |
2804 | delete _arg0; | |
2805 | } | |
2806 | return _resultobj; | |
2807 | } | |
2808 | ||
2809 | #define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0)) | |
2810 | static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject * _resultobj; | |
2812 | wxToolTip * _arg0; | |
2813 | wxString * _arg1; | |
2814 | PyObject * _argo0 = 0; | |
2815 | PyObject * _obj1 = 0; | |
2816 | char *_kwnames[] = { "self","tip", NULL }; | |
2817 | ||
2818 | self = self; | |
2819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1)) | |
2820 | return NULL; | |
2821 | if (_argo0) { | |
2822 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2823 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2824 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p."); | |
2825 | return NULL; | |
2826 | } | |
2827 | } | |
2828 | { | |
c8bc7bb8 RD |
2829 | _arg1 = wxString_in_helper(_obj1); |
2830 | if (_arg1 == NULL) | |
185d7c3e | 2831 | return NULL; |
f6bcfd97 BP |
2832 | } |
2833 | { | |
4268f798 | 2834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2835 | wxToolTip_SetTip(_arg0,*_arg1); |
f6bcfd97 | 2836 | |
4268f798 RD |
2837 | wxPyEndAllowThreads(__tstate); |
2838 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2839 | } Py_INCREF(Py_None); |
2840 | _resultobj = Py_None; | |
2841 | { | |
2842 | if (_obj1) | |
2843 | delete _arg1; | |
2844 | } | |
2845 | return _resultobj; | |
2846 | } | |
2847 | ||
2848 | #define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip()) | |
2849 | static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2850 | PyObject * _resultobj; | |
2851 | wxString * _result; | |
2852 | wxToolTip * _arg0; | |
2853 | PyObject * _argo0 = 0; | |
2854 | char *_kwnames[] = { "self", NULL }; | |
2855 | ||
2856 | self = self; | |
2857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0)) | |
2858 | return NULL; | |
2859 | if (_argo0) { | |
2860 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2861 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2862 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p."); | |
2863 | return NULL; | |
2864 | } | |
2865 | } | |
2866 | { | |
4268f798 | 2867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2868 | _result = new wxString (wxToolTip_GetTip(_arg0)); |
f6bcfd97 | 2869 | |
4268f798 RD |
2870 | wxPyEndAllowThreads(__tstate); |
2871 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 2872 | }{ |
c8bc7bb8 | 2873 | #if wxUSE_UNICODE |
7e50db3f | 2874 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2875 | #else |
f6bcfd97 | 2876 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 2877 | #endif |
f6bcfd97 BP |
2878 | } |
2879 | { | |
2880 | delete _result; | |
2881 | } | |
2882 | return _resultobj; | |
2883 | } | |
2884 | ||
2885 | #define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
2886 | static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2887 | PyObject * _resultobj; | |
2888 | wxWindow * _result; | |
2889 | wxToolTip * _arg0; | |
2890 | PyObject * _argo0 = 0; | |
2891 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
2892 | |
2893 | self = self; | |
2894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0)) | |
2895 | return NULL; | |
2896 | if (_argo0) { | |
2897 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2898 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) { | |
2899 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p."); | |
2900 | return NULL; | |
2901 | } | |
2902 | } | |
2903 | { | |
4268f798 | 2904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2905 | _result = (wxWindow *)wxToolTip_GetWindow(_arg0); |
f6bcfd97 | 2906 | |
4268f798 RD |
2907 | wxPyEndAllowThreads(__tstate); |
2908 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 2909 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
2910 | return _resultobj; |
2911 | } | |
2912 | ||
edf2f43e RD |
2913 | static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { |
2914 | PyObject * _resultobj; | |
2915 | bool _arg0; | |
2916 | int tempbool0; | |
2917 | char *_kwnames[] = { "flag", NULL }; | |
2918 | ||
2919 | self = self; | |
2920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0)) | |
2921 | return NULL; | |
2922 | _arg0 = (bool ) tempbool0; | |
2923 | { | |
4268f798 | 2924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2925 | wxToolTip::Enable(_arg0); |
edf2f43e | 2926 | |
4268f798 RD |
2927 | wxPyEndAllowThreads(__tstate); |
2928 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2929 | } Py_INCREF(Py_None); |
2930 | _resultobj = Py_None; | |
2931 | return _resultobj; | |
2932 | } | |
2933 | ||
2934 | static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2935 | PyObject * _resultobj; | |
2936 | long _arg0; | |
2937 | char *_kwnames[] = { "milliseconds", NULL }; | |
2938 | ||
2939 | self = self; | |
2940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0)) | |
2941 | return NULL; | |
2942 | { | |
4268f798 | 2943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2944 | wxToolTip::SetDelay(_arg0); |
edf2f43e | 2945 | |
4268f798 RD |
2946 | wxPyEndAllowThreads(__tstate); |
2947 | if (PyErr_Occurred()) return NULL; | |
edf2f43e RD |
2948 | } Py_INCREF(Py_None); |
2949 | _resultobj = Py_None; | |
2950 | return _resultobj; | |
2951 | } | |
2952 | ||
f6bcfd97 BP |
2953 | #define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1)) |
2954 | static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2955 | PyObject * _resultobj; | |
2956 | wxCaret * _result; | |
2957 | wxWindow * _arg0; | |
2958 | wxSize * _arg1; | |
2959 | PyObject * _argo0 = 0; | |
2960 | wxSize temp; | |
2961 | PyObject * _obj1 = 0; | |
2962 | char *_kwnames[] = { "window","size", NULL }; | |
2963 | char _ptemp[128]; | |
2964 | ||
2965 | self = self; | |
2966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1)) | |
2967 | return NULL; | |
2968 | if (_argo0) { | |
2969 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
2970 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
2971 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p."); | |
2972 | return NULL; | |
2973 | } | |
2974 | } | |
2975 | { | |
2976 | _arg1 = &temp; | |
2977 | if (! wxSize_helper(_obj1, &_arg1)) | |
2978 | return NULL; | |
2979 | } | |
2980 | { | |
4268f798 | 2981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 2982 | _result = (wxCaret *)new_wxCaret(_arg0,*_arg1); |
f6bcfd97 | 2983 | |
4268f798 RD |
2984 | wxPyEndAllowThreads(__tstate); |
2985 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
2986 | } if (_result) { |
2987 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p"); | |
2988 | _resultobj = Py_BuildValue("s",_ptemp); | |
2989 | } else { | |
2990 | Py_INCREF(Py_None); | |
2991 | _resultobj = Py_None; | |
2992 | } | |
2993 | return _resultobj; | |
2994 | } | |
2995 | ||
2996 | #define delete_wxCaret(_swigobj) (delete _swigobj) | |
2997 | static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2998 | PyObject * _resultobj; | |
2999 | wxCaret * _arg0; | |
3000 | PyObject * _argo0 = 0; | |
3001 | char *_kwnames[] = { "self", NULL }; | |
3002 | ||
3003 | self = self; | |
3004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0)) | |
3005 | return NULL; | |
3006 | if (_argo0) { | |
3007 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3008 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3009 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p."); | |
3010 | return NULL; | |
3011 | } | |
3012 | } | |
3013 | { | |
4268f798 | 3014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3015 | delete_wxCaret(_arg0); |
f6bcfd97 | 3016 | |
4268f798 RD |
3017 | wxPyEndAllowThreads(__tstate); |
3018 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3019 | } Py_INCREF(Py_None); |
3020 | _resultobj = Py_None; | |
3021 | return _resultobj; | |
3022 | } | |
3023 | ||
3024 | #define wxCaret_IsOk(_swigobj) (_swigobj->IsOk()) | |
3025 | static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3026 | PyObject * _resultobj; | |
3027 | bool _result; | |
3028 | wxCaret * _arg0; | |
3029 | PyObject * _argo0 = 0; | |
3030 | char *_kwnames[] = { "self", NULL }; | |
3031 | ||
3032 | self = self; | |
3033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0)) | |
3034 | return NULL; | |
3035 | if (_argo0) { | |
3036 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3037 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3038 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p."); | |
3039 | return NULL; | |
3040 | } | |
3041 | } | |
3042 | { | |
4268f798 | 3043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3044 | _result = (bool )wxCaret_IsOk(_arg0); |
f6bcfd97 | 3045 | |
4268f798 RD |
3046 | wxPyEndAllowThreads(__tstate); |
3047 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3048 | } _resultobj = Py_BuildValue("i",_result); |
3049 | return _resultobj; | |
3050 | } | |
3051 | ||
3052 | #define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible()) | |
3053 | static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3054 | PyObject * _resultobj; | |
3055 | bool _result; | |
3056 | wxCaret * _arg0; | |
3057 | PyObject * _argo0 = 0; | |
3058 | char *_kwnames[] = { "self", NULL }; | |
3059 | ||
3060 | self = self; | |
3061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0)) | |
3062 | return NULL; | |
3063 | if (_argo0) { | |
3064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p."); | |
3067 | return NULL; | |
3068 | } | |
3069 | } | |
3070 | { | |
4268f798 | 3071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3072 | _result = (bool )wxCaret_IsVisible(_arg0); |
f6bcfd97 | 3073 | |
4268f798 RD |
3074 | wxPyEndAllowThreads(__tstate); |
3075 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3076 | } _resultobj = Py_BuildValue("i",_result); |
3077 | return _resultobj; | |
3078 | } | |
3079 | ||
3080 | #define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1)) | |
3081 | static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3082 | PyObject * _resultobj; | |
3083 | wxCaret * _arg0; | |
3084 | int * _arg1; | |
3085 | int temp; | |
3086 | int * _arg2; | |
3087 | int temp0; | |
3088 | PyObject * _argo0 = 0; | |
3089 | char *_kwnames[] = { "self", NULL }; | |
3090 | ||
3091 | self = self; | |
3092 | { | |
3093 | _arg1 = &temp; | |
3094 | } | |
3095 | { | |
3096 | _arg2 = &temp0; | |
3097 | } | |
3098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0)) | |
3099 | return NULL; | |
3100 | if (_argo0) { | |
3101 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3102 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3103 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p."); | |
3104 | return NULL; | |
3105 | } | |
3106 | } | |
3107 | { | |
4268f798 | 3108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3109 | wxCaret_GetPositionTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 3110 | |
4268f798 RD |
3111 | wxPyEndAllowThreads(__tstate); |
3112 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3113 | } Py_INCREF(Py_None); |
3114 | _resultobj = Py_None; | |
3115 | { | |
3116 | PyObject *o; | |
3117 | o = PyInt_FromLong((long) (*_arg1)); | |
3118 | _resultobj = t_output_helper(_resultobj, o); | |
3119 | } | |
3120 | { | |
3121 | PyObject *o; | |
3122 | o = PyInt_FromLong((long) (*_arg2)); | |
3123 | _resultobj = t_output_helper(_resultobj, o); | |
3124 | } | |
3125 | return _resultobj; | |
3126 | } | |
3127 | ||
3128 | #define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition()) | |
f0261a72 RD |
3129 | static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { |
3130 | PyObject * _resultobj; | |
f6bcfd97 BP |
3131 | wxPoint * _result; |
3132 | wxCaret * _arg0; | |
3133 | PyObject * _argo0 = 0; | |
3134 | char *_kwnames[] = { "self", NULL }; | |
3135 | char _ptemp[128]; | |
3136 | ||
3137 | self = self; | |
3138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0)) | |
3139 | return NULL; | |
3140 | if (_argo0) { | |
3141 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3142 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3143 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p."); | |
3144 | return NULL; | |
3145 | } | |
3146 | } | |
3147 | { | |
4268f798 | 3148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3149 | _result = new wxPoint (wxCaret_GetPosition(_arg0)); |
f6bcfd97 | 3150 | |
4268f798 RD |
3151 | wxPyEndAllowThreads(__tstate); |
3152 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3153 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
3154 | _resultobj = Py_BuildValue("s",_ptemp); | |
3155 | return _resultobj; | |
3156 | } | |
3157 | ||
3158 | #define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1)) | |
3159 | static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3160 | PyObject * _resultobj; | |
3161 | wxCaret * _arg0; | |
3162 | int * _arg1; | |
3163 | int temp; | |
3164 | int * _arg2; | |
3165 | int temp0; | |
3166 | PyObject * _argo0 = 0; | |
3167 | char *_kwnames[] = { "self", NULL }; | |
3168 | ||
3169 | self = self; | |
3170 | { | |
3171 | _arg1 = &temp; | |
3172 | } | |
3173 | { | |
3174 | _arg2 = &temp0; | |
3175 | } | |
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0)) | |
3177 | return NULL; | |
3178 | if (_argo0) { | |
3179 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3180 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3181 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p."); | |
3182 | return NULL; | |
3183 | } | |
3184 | } | |
3185 | { | |
4268f798 | 3186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3187 | wxCaret_GetSizeTuple(_arg0,_arg1,_arg2); |
f6bcfd97 | 3188 | |
4268f798 RD |
3189 | wxPyEndAllowThreads(__tstate); |
3190 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3191 | } Py_INCREF(Py_None); |
3192 | _resultobj = Py_None; | |
3193 | { | |
3194 | PyObject *o; | |
3195 | o = PyInt_FromLong((long) (*_arg1)); | |
3196 | _resultobj = t_output_helper(_resultobj, o); | |
3197 | } | |
3198 | { | |
3199 | PyObject *o; | |
3200 | o = PyInt_FromLong((long) (*_arg2)); | |
3201 | _resultobj = t_output_helper(_resultobj, o); | |
3202 | } | |
3203 | return _resultobj; | |
3204 | } | |
3205 | ||
3206 | #define wxCaret_GetSize(_swigobj) (_swigobj->GetSize()) | |
3207 | static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3208 | PyObject * _resultobj; | |
3209 | wxSize * _result; | |
3210 | wxCaret * _arg0; | |
3211 | PyObject * _argo0 = 0; | |
3212 | char *_kwnames[] = { "self", NULL }; | |
3213 | char _ptemp[128]; | |
3214 | ||
3215 | self = self; | |
3216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0)) | |
3217 | return NULL; | |
3218 | if (_argo0) { | |
3219 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3220 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3221 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p."); | |
3222 | return NULL; | |
3223 | } | |
3224 | } | |
3225 | { | |
4268f798 | 3226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3227 | _result = new wxSize (wxCaret_GetSize(_arg0)); |
f6bcfd97 | 3228 | |
4268f798 RD |
3229 | wxPyEndAllowThreads(__tstate); |
3230 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3231 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p"); |
3232 | _resultobj = Py_BuildValue("s",_ptemp); | |
3233 | return _resultobj; | |
3234 | } | |
3235 | ||
3236 | #define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow()) | |
3237 | static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3238 | PyObject * _resultobj; | |
3239 | wxWindow * _result; | |
3240 | wxCaret * _arg0; | |
3241 | PyObject * _argo0 = 0; | |
3242 | char *_kwnames[] = { "self", NULL }; | |
f6bcfd97 BP |
3243 | |
3244 | self = self; | |
3245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0)) | |
3246 | return NULL; | |
3247 | if (_argo0) { | |
3248 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3249 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3250 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p."); | |
3251 | return NULL; | |
3252 | } | |
3253 | } | |
3254 | { | |
4268f798 | 3255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3256 | _result = (wxWindow *)wxCaret_GetWindow(_arg0); |
f6bcfd97 | 3257 | |
4268f798 RD |
3258 | wxPyEndAllowThreads(__tstate); |
3259 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 3260 | }{ _resultobj = wxPyMake_wxObject(_result); } |
f6bcfd97 BP |
3261 | return _resultobj; |
3262 | } | |
3263 | ||
3264 | #define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1)) | |
3265 | static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3266 | PyObject * _resultobj; | |
3267 | wxCaret * _arg0; | |
3268 | int _arg1; | |
3269 | int _arg2; | |
3270 | PyObject * _argo0 = 0; | |
3271 | char *_kwnames[] = { "self","x","y", NULL }; | |
3272 | ||
3273 | self = self; | |
3274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3275 | return NULL; | |
3276 | if (_argo0) { | |
3277 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3278 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3279 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p."); | |
3280 | return NULL; | |
3281 | } | |
3282 | } | |
3283 | { | |
4268f798 | 3284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3285 | wxCaret_MoveXY(_arg0,_arg1,_arg2); |
f6bcfd97 | 3286 | |
4268f798 RD |
3287 | wxPyEndAllowThreads(__tstate); |
3288 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3289 | } Py_INCREF(Py_None); |
3290 | _resultobj = Py_None; | |
3291 | return _resultobj; | |
3292 | } | |
3293 | ||
3294 | #define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
3295 | static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3296 | PyObject * _resultobj; | |
3297 | wxCaret * _arg0; | |
3298 | wxPoint * _arg1; | |
3299 | PyObject * _argo0 = 0; | |
3300 | wxPoint temp; | |
3301 | PyObject * _obj1 = 0; | |
3302 | char *_kwnames[] = { "self","pt", NULL }; | |
3303 | ||
3304 | self = self; | |
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1)) | |
3306 | return NULL; | |
3307 | if (_argo0) { | |
3308 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3309 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3310 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p."); | |
3311 | return NULL; | |
3312 | } | |
3313 | } | |
3314 | { | |
3315 | _arg1 = &temp; | |
3316 | if (! wxPoint_helper(_obj1, &_arg1)) | |
3317 | return NULL; | |
3318 | } | |
3319 | { | |
4268f798 | 3320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3321 | wxCaret_Move(_arg0,*_arg1); |
f6bcfd97 | 3322 | |
4268f798 RD |
3323 | wxPyEndAllowThreads(__tstate); |
3324 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3325 | } Py_INCREF(Py_None); |
3326 | _resultobj = Py_None; | |
3327 | return _resultobj; | |
3328 | } | |
3329 | ||
3330 | #define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1)) | |
3331 | static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3332 | PyObject * _resultobj; | |
3333 | wxCaret * _arg0; | |
3334 | int _arg1; | |
3335 | int _arg2; | |
3336 | PyObject * _argo0 = 0; | |
3337 | char *_kwnames[] = { "self","width","height", NULL }; | |
3338 | ||
3339 | self = self; | |
3340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2)) | |
3341 | return NULL; | |
3342 | if (_argo0) { | |
3343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p."); | |
3346 | return NULL; | |
3347 | } | |
3348 | } | |
3349 | { | |
4268f798 | 3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3351 | wxCaret_SetSizeWH(_arg0,_arg1,_arg2); |
f6bcfd97 | 3352 | |
4268f798 RD |
3353 | wxPyEndAllowThreads(__tstate); |
3354 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3355 | } Py_INCREF(Py_None); |
3356 | _resultobj = Py_None; | |
3357 | return _resultobj; | |
3358 | } | |
3359 | ||
3360 | #define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0)) | |
3361 | static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3362 | PyObject * _resultobj; | |
3363 | wxCaret * _arg0; | |
3364 | wxSize * _arg1; | |
3365 | PyObject * _argo0 = 0; | |
3366 | wxSize temp; | |
3367 | PyObject * _obj1 = 0; | |
3368 | char *_kwnames[] = { "self","size", NULL }; | |
3369 | ||
3370 | self = self; | |
3371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1)) | |
3372 | return NULL; | |
3373 | if (_argo0) { | |
3374 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3375 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3376 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p."); | |
3377 | return NULL; | |
3378 | } | |
3379 | } | |
3380 | { | |
3381 | _arg1 = &temp; | |
3382 | if (! wxSize_helper(_obj1, &_arg1)) | |
3383 | return NULL; | |
3384 | } | |
3385 | { | |
4268f798 | 3386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3387 | wxCaret_SetSize(_arg0,*_arg1); |
f6bcfd97 | 3388 | |
4268f798 RD |
3389 | wxPyEndAllowThreads(__tstate); |
3390 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3391 | } Py_INCREF(Py_None); |
3392 | _resultobj = Py_None; | |
3393 | return _resultobj; | |
3394 | } | |
3395 | ||
3396 | #define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) | |
3397 | static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3398 | PyObject * _resultobj; | |
3399 | wxCaret * _arg0; | |
3400 | int _arg1 = (int ) TRUE; | |
3401 | PyObject * _argo0 = 0; | |
3402 | char *_kwnames[] = { "self","show", NULL }; | |
3403 | ||
3404 | self = self; | |
3405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1)) | |
3406 | return NULL; | |
3407 | if (_argo0) { | |
3408 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3409 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3410 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p."); | |
3411 | return NULL; | |
3412 | } | |
3413 | } | |
3414 | { | |
4268f798 | 3415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3416 | wxCaret_Show(_arg0,_arg1); |
f6bcfd97 | 3417 | |
4268f798 RD |
3418 | wxPyEndAllowThreads(__tstate); |
3419 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3420 | } Py_INCREF(Py_None); |
3421 | _resultobj = Py_None; | |
3422 | return _resultobj; | |
3423 | } | |
3424 | ||
3425 | #define wxCaret_Hide(_swigobj) (_swigobj->Hide()) | |
3426 | static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject * _resultobj; | |
3428 | wxCaret * _arg0; | |
3429 | PyObject * _argo0 = 0; | |
3430 | char *_kwnames[] = { "self", NULL }; | |
3431 | ||
3432 | self = self; | |
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0)) | |
3434 | return NULL; | |
3435 | if (_argo0) { | |
3436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) { | |
3438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p."); | |
3439 | return NULL; | |
3440 | } | |
3441 | } | |
3442 | { | |
4268f798 | 3443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3444 | wxCaret_Hide(_arg0); |
f6bcfd97 | 3445 | |
4268f798 RD |
3446 | wxPyEndAllowThreads(__tstate); |
3447 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3448 | } Py_INCREF(Py_None); |
3449 | _resultobj = Py_None; | |
3450 | return _resultobj; | |
3451 | } | |
3452 | ||
f6bcfd97 BP |
3453 | #define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0)) |
3454 | static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3455 | PyObject * _resultobj; | |
3456 | wxBusyCursor * _result; | |
3457 | wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR; | |
3458 | PyObject * _argo0 = 0; | |
3459 | char *_kwnames[] = { "cursor", NULL }; | |
3460 | char _ptemp[128]; | |
3461 | ||
3462 | self = self; | |
3463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0)) | |
3464 | return NULL; | |
3465 | if (_argo0) { | |
3466 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3467 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) { | |
3468 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p."); | |
3469 | return NULL; | |
3470 | } | |
3471 | } | |
3472 | { | |
4268f798 | 3473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3474 | _result = (wxBusyCursor *)new_wxBusyCursor(_arg0); |
f6bcfd97 | 3475 | |
4268f798 RD |
3476 | wxPyEndAllowThreads(__tstate); |
3477 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3478 | } if (_result) { |
3479 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p"); | |
3480 | _resultobj = Py_BuildValue("s",_ptemp); | |
3481 | } else { | |
3482 | Py_INCREF(Py_None); | |
3483 | _resultobj = Py_None; | |
3484 | } | |
3485 | return _resultobj; | |
3486 | } | |
3487 | ||
3488 | #define delete_wxBusyCursor(_swigobj) (delete _swigobj) | |
3489 | static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3490 | PyObject * _resultobj; | |
3491 | wxBusyCursor * _arg0; | |
3492 | PyObject * _argo0 = 0; | |
3493 | char *_kwnames[] = { "self", NULL }; | |
3494 | ||
3495 | self = self; | |
3496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0)) | |
3497 | return NULL; | |
3498 | if (_argo0) { | |
3499 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3500 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) { | |
3501 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p."); | |
3502 | return NULL; | |
3503 | } | |
3504 | } | |
3505 | { | |
4268f798 | 3506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3507 | delete_wxBusyCursor(_arg0); |
f6bcfd97 | 3508 | |
4268f798 RD |
3509 | wxPyEndAllowThreads(__tstate); |
3510 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3511 | } Py_INCREF(Py_None); |
3512 | _resultobj = Py_None; | |
3513 | return _resultobj; | |
3514 | } | |
3515 | ||
c368d904 RD |
3516 | #define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0)) |
3517 | static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3518 | PyObject * _resultobj; | |
3519 | wxWindowDisabler * _result; | |
3520 | wxWindow * _arg0 = (wxWindow *) NULL; | |
3521 | PyObject * _argo0 = 0; | |
3522 | char *_kwnames[] = { "winToSkip", NULL }; | |
3523 | char _ptemp[128]; | |
3524 | ||
3525 | self = self; | |
3526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0)) | |
3527 | return NULL; | |
3528 | if (_argo0) { | |
3529 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3530 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) { | |
3531 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p."); | |
3532 | return NULL; | |
3533 | } | |
3534 | } | |
3535 | { | |
4268f798 | 3536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3537 | _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0); |
c368d904 | 3538 | |
4268f798 RD |
3539 | wxPyEndAllowThreads(__tstate); |
3540 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3541 | } if (_result) { |
3542 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p"); | |
3543 | _resultobj = Py_BuildValue("s",_ptemp); | |
3544 | } else { | |
3545 | Py_INCREF(Py_None); | |
3546 | _resultobj = Py_None; | |
3547 | } | |
3548 | return _resultobj; | |
3549 | } | |
3550 | ||
3551 | #define delete_wxWindowDisabler(_swigobj) (delete _swigobj) | |
3552 | static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3553 | PyObject * _resultobj; | |
3554 | wxWindowDisabler * _arg0; | |
3555 | PyObject * _argo0 = 0; | |
3556 | char *_kwnames[] = { "self", NULL }; | |
3557 | ||
3558 | self = self; | |
3559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0)) | |
3560 | return NULL; | |
3561 | if (_argo0) { | |
3562 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3563 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) { | |
3564 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p."); | |
3565 | return NULL; | |
3566 | } | |
3567 | } | |
3568 | { | |
4268f798 | 3569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3570 | delete_wxWindowDisabler(_arg0); |
c368d904 | 3571 | |
4268f798 RD |
3572 | wxPyEndAllowThreads(__tstate); |
3573 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
3574 | } Py_INCREF(Py_None); |
3575 | _resultobj = Py_None; | |
3576 | return _resultobj; | |
3577 | } | |
3578 | ||
6e18ca6c RD |
3579 | #define new_wxMutexGuiLocker() (new wxMutexGuiLocker()) |
3580 | static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3581 | PyObject * _resultobj; | |
3582 | wxMutexGuiLocker * _result; | |
3583 | char *_kwnames[] = { NULL }; | |
3584 | char _ptemp[128]; | |
3585 | ||
3586 | self = self; | |
3587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames)) | |
3588 | return NULL; | |
3589 | { | |
4268f798 | 3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3591 | _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker(); |
6e18ca6c | 3592 | |
4268f798 RD |
3593 | wxPyEndAllowThreads(__tstate); |
3594 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3595 | } if (_result) { |
3596 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p"); | |
3597 | _resultobj = Py_BuildValue("s",_ptemp); | |
3598 | } else { | |
3599 | Py_INCREF(Py_None); | |
3600 | _resultobj = Py_None; | |
3601 | } | |
3602 | return _resultobj; | |
3603 | } | |
3604 | ||
3605 | #define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj) | |
3606 | static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3607 | PyObject * _resultobj; | |
3608 | wxMutexGuiLocker * _arg0; | |
3609 | PyObject * _argo0 = 0; | |
3610 | char *_kwnames[] = { "self", NULL }; | |
3611 | ||
3612 | self = self; | |
3613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0)) | |
3614 | return NULL; | |
3615 | if (_argo0) { | |
3616 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3617 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) { | |
3618 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p."); | |
3619 | return NULL; | |
3620 | } | |
3621 | } | |
3622 | { | |
4268f798 | 3623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3624 | delete_wxMutexGuiLocker(_arg0); |
6e18ca6c | 3625 | |
4268f798 RD |
3626 | wxPyEndAllowThreads(__tstate); |
3627 | if (PyErr_Occurred()) return NULL; | |
6e18ca6c RD |
3628 | } Py_INCREF(Py_None); |
3629 | _resultobj = Py_None; | |
3630 | return _resultobj; | |
3631 | } | |
3632 | ||
f6bcfd97 BP |
3633 | #define delete_wxTipProvider(_swigobj) (delete _swigobj) |
3634 | static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3635 | PyObject * _resultobj; | |
3636 | wxTipProvider * _arg0; | |
3637 | PyObject * _argo0 = 0; | |
3638 | char *_kwnames[] = { "self", NULL }; | |
3639 | ||
3640 | self = self; | |
3641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0)) | |
3642 | return NULL; | |
3643 | if (_argo0) { | |
3644 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3645 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3646 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p."); | |
3647 | return NULL; | |
3648 | } | |
3649 | } | |
3650 | { | |
4268f798 | 3651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3652 | delete_wxTipProvider(_arg0); |
f6bcfd97 | 3653 | |
4268f798 RD |
3654 | wxPyEndAllowThreads(__tstate); |
3655 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3656 | } Py_INCREF(Py_None); |
3657 | _resultobj = Py_None; | |
3658 | return _resultobj; | |
3659 | } | |
3660 | ||
3661 | #define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip()) | |
3662 | static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3663 | PyObject * _resultobj; | |
3664 | wxString * _result; | |
3665 | wxTipProvider * _arg0; | |
3666 | PyObject * _argo0 = 0; | |
3667 | char *_kwnames[] = { "self", NULL }; | |
3668 | ||
3669 | self = self; | |
3670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0)) | |
3671 | return NULL; | |
3672 | if (_argo0) { | |
3673 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3674 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3675 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p."); | |
3676 | return NULL; | |
3677 | } | |
3678 | } | |
3679 | { | |
4268f798 | 3680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3681 | _result = new wxString (wxTipProvider_GetTip(_arg0)); |
f6bcfd97 | 3682 | |
4268f798 RD |
3683 | wxPyEndAllowThreads(__tstate); |
3684 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 3685 | }{ |
c8bc7bb8 | 3686 | #if wxUSE_UNICODE |
7e50db3f | 3687 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3688 | #else |
f6bcfd97 | 3689 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 3690 | #endif |
f6bcfd97 BP |
3691 | } |
3692 | { | |
3693 | delete _result; | |
3694 | } | |
3695 | return _resultobj; | |
3696 | } | |
3697 | ||
3698 | #define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip()) | |
3699 | static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3700 | PyObject * _resultobj; | |
3701 | size_t _result; | |
3702 | wxTipProvider * _arg0; | |
3703 | PyObject * _argo0 = 0; | |
3704 | char *_kwnames[] = { "self", NULL }; | |
3705 | ||
3706 | self = self; | |
3707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0)) | |
3708 | return NULL; | |
3709 | if (_argo0) { | |
3710 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3711 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3712 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p."); | |
3713 | return NULL; | |
3714 | } | |
3715 | } | |
3716 | { | |
4268f798 | 3717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3718 | _result = (size_t )wxTipProvider_GetCurrentTip(_arg0); |
f6bcfd97 | 3719 | |
4268f798 RD |
3720 | wxPyEndAllowThreads(__tstate); |
3721 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3722 | } _resultobj = Py_BuildValue("i",_result); |
3723 | return _resultobj; | |
3724 | } | |
3725 | ||
67a92fff RD |
3726 | #define wxTipProvider_PreprocessTip(_swigobj,_swigarg0) (_swigobj->PreprocessTip(_swigarg0)) |
3727 | static PyObject *_wrap_wxTipProvider_PreprocessTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3728 | PyObject * _resultobj; | |
3729 | wxString * _result; | |
3730 | wxTipProvider * _arg0; | |
3731 | wxString * _arg1; | |
3732 | PyObject * _argo0 = 0; | |
3733 | PyObject * _obj1 = 0; | |
3734 | char *_kwnames[] = { "self","tip", NULL }; | |
3735 | ||
3736 | self = self; | |
3737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxTipProvider_PreprocessTip",_kwnames,&_argo0,&_obj1)) | |
3738 | return NULL; | |
3739 | if (_argo0) { | |
3740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) { | |
3742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_PreprocessTip. Expected _wxTipProvider_p."); | |
3743 | return NULL; | |
3744 | } | |
3745 | } | |
3746 | { | |
3747 | _arg1 = wxString_in_helper(_obj1); | |
3748 | if (_arg1 == NULL) | |
3749 | return NULL; | |
3750 | } | |
3751 | { | |
3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3753 | _result = new wxString (wxTipProvider_PreprocessTip(_arg0,*_arg1)); | |
3754 | ||
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) return NULL; | |
3757 | }{ | |
3758 | #if wxUSE_UNICODE | |
7e50db3f | 3759 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
67a92fff RD |
3760 | #else |
3761 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
3762 | #endif | |
3763 | } | |
3764 | { | |
3765 | if (_obj1) | |
3766 | delete _arg1; | |
3767 | } | |
3768 | { | |
3769 | delete _result; | |
3770 | } | |
3771 | return _resultobj; | |
3772 | } | |
3773 | ||
f6bcfd97 BP |
3774 | static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) { |
3775 | wxPyTipProvider *src; | |
3776 | wxTipProvider *dest; | |
3777 | src = (wxPyTipProvider *) ptr; | |
3778 | dest = (wxTipProvider *) src; | |
3779 | return (void *) dest; | |
3780 | } | |
3781 | ||
3782 | #define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0)) | |
3783 | static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3784 | PyObject * _resultobj; | |
3785 | wxPyTipProvider * _result; | |
3786 | size_t _arg0; | |
3787 | char *_kwnames[] = { "currentTip", NULL }; | |
3788 | char _ptemp[128]; | |
3789 | ||
3790 | self = self; | |
3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0)) | |
3792 | return NULL; | |
3793 | { | |
4268f798 | 3794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3795 | _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0); |
f6bcfd97 | 3796 | |
4268f798 RD |
3797 | wxPyEndAllowThreads(__tstate); |
3798 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3799 | } if (_result) { |
3800 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p"); | |
3801 | _resultobj = Py_BuildValue("s",_ptemp); | |
3802 | } else { | |
3803 | Py_INCREF(Py_None); | |
3804 | _resultobj = Py_None; | |
3805 | } | |
3806 | return _resultobj; | |
3807 | } | |
3808 | ||
cf276873 RD |
3809 | #define wxPyTipProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
3810 | static PyObject *_wrap_wxPyTipProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3811 | PyObject * _resultobj; | |
3812 | wxPyTipProvider * _arg0; | |
3813 | PyObject * _arg1; | |
3814 | PyObject * _arg2; | |
3815 | PyObject * _argo0 = 0; | |
3816 | PyObject * _obj1 = 0; | |
3817 | PyObject * _obj2 = 0; | |
3818 | char *_kwnames[] = { "self","self","_class", NULL }; | |
3819 | ||
3820 | self = self; | |
3821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyTipProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
3822 | return NULL; | |
3823 | if (_argo0) { | |
3824 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
3825 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTipProvider_p")) { | |
3826 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTipProvider__setCallbackInfo. Expected _wxPyTipProvider_p."); | |
3827 | return NULL; | |
3828 | } | |
3829 | } | |
3830 | { | |
3831 | _arg1 = _obj1; | |
3832 | } | |
3833 | { | |
3834 | _arg2 = _obj2; | |
3835 | } | |
3836 | { | |
3837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3838 | wxPyTipProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
3839 | ||
3840 | wxPyEndAllowThreads(__tstate); | |
3841 | if (PyErr_Occurred()) return NULL; | |
3842 | } Py_INCREF(Py_None); | |
3843 | _resultobj = Py_None; | |
3844 | return _resultobj; | |
3845 | } | |
3846 | ||
9416aa89 RD |
3847 | static void *SwigwxGenericDragImageTowxObject(void *ptr) { |
3848 | wxGenericDragImage *src; | |
3849 | wxObject *dest; | |
3850 | src = (wxGenericDragImage *) ptr; | |
3851 | dest = (wxObject *) src; | |
3852 | return (void *) dest; | |
3853 | } | |
3854 | ||
10e07c70 | 3855 | #define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
f6bcfd97 BP |
3856 | static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
3857 | PyObject * _resultobj; | |
3858 | wxGenericDragImage * _result; | |
3859 | wxBitmap * _arg0; | |
3860 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
f6bcfd97 BP |
3861 | PyObject * _argo0 = 0; |
3862 | PyObject * _argo1 = 0; | |
10e07c70 | 3863 | char *_kwnames[] = { "image","cursor", NULL }; |
f6bcfd97 BP |
3864 | char _ptemp[128]; |
3865 | ||
3866 | self = self; | |
10e07c70 | 3867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1)) |
f6bcfd97 BP |
3868 | return NULL; |
3869 | if (_argo0) { | |
7e50db3f | 3870 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) { |
f6bcfd97 BP |
3871 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p."); |
3872 | return NULL; | |
3873 | } | |
3874 | } | |
3875 | if (_argo1) { | |
7e50db3f | 3876 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
f6bcfd97 BP |
3877 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p."); |
3878 | return NULL; | |
3879 | } | |
3880 | } | |
f6bcfd97 | 3881 | { |
4268f798 | 3882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3883 | _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1); |
f6bcfd97 | 3884 | |
4268f798 RD |
3885 | wxPyEndAllowThreads(__tstate); |
3886 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
3887 | } if (_result) { |
3888 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3889 | _resultobj = Py_BuildValue("s",_ptemp); | |
3890 | } else { | |
3891 | Py_INCREF(Py_None); | |
3892 | _resultobj = Py_None; | |
3893 | } | |
3894 | return _resultobj; | |
3895 | } | |
3896 | ||
cdf14688 RD |
3897 | #define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) |
3898 | static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3899 | PyObject * _resultobj; | |
3900 | wxGenericDragImage * _result; | |
3901 | wxIcon * _arg0; | |
3902 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3903 | PyObject * _argo0 = 0; | |
3904 | PyObject * _argo1 = 0; | |
3905 | char *_kwnames[] = { "image","cursor", NULL }; | |
3906 | char _ptemp[128]; | |
3907 | ||
3908 | self = self; | |
3909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1)) | |
3910 | return NULL; | |
3911 | if (_argo0) { | |
7e50db3f | 3912 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) { |
cdf14688 RD |
3913 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p."); |
3914 | return NULL; | |
3915 | } | |
3916 | } | |
3917 | if (_argo1) { | |
7e50db3f | 3918 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
cdf14688 RD |
3919 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p."); |
3920 | return NULL; | |
3921 | } | |
3922 | } | |
3923 | { | |
4268f798 | 3924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3925 | _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1); |
cdf14688 | 3926 | |
4268f798 RD |
3927 | wxPyEndAllowThreads(__tstate); |
3928 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3929 | } if (_result) { |
3930 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3931 | _resultobj = Py_BuildValue("s",_ptemp); | |
3932 | } else { | |
3933 | Py_INCREF(Py_None); | |
3934 | _resultobj = Py_None; | |
3935 | } | |
3936 | return _resultobj; | |
3937 | } | |
3938 | ||
3939 | #define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3940 | static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3941 | PyObject * _resultobj; | |
3942 | wxGenericDragImage * _result; | |
3943 | wxString * _arg0; | |
3944 | wxCursor * _arg1 = (wxCursor *) &wxNullCursor; | |
3945 | PyObject * _obj0 = 0; | |
3946 | PyObject * _argo1 = 0; | |
3947 | char *_kwnames[] = { "str","cursor", NULL }; | |
3948 | char _ptemp[128]; | |
3949 | ||
3950 | self = self; | |
3951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1)) | |
3952 | return NULL; | |
3953 | { | |
c8bc7bb8 RD |
3954 | _arg0 = wxString_in_helper(_obj0); |
3955 | if (_arg0 == NULL) | |
cdf14688 | 3956 | return NULL; |
cdf14688 RD |
3957 | } |
3958 | if (_argo1) { | |
7e50db3f | 3959 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) { |
cdf14688 RD |
3960 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p."); |
3961 | return NULL; | |
3962 | } | |
3963 | } | |
3964 | { | |
4268f798 | 3965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 3966 | _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1); |
cdf14688 | 3967 | |
4268f798 RD |
3968 | wxPyEndAllowThreads(__tstate); |
3969 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
3970 | } if (_result) { |
3971 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
3972 | _resultobj = Py_BuildValue("s",_ptemp); | |
3973 | } else { | |
3974 | Py_INCREF(Py_None); | |
3975 | _resultobj = Py_None; | |
3976 | } | |
3977 | { | |
3978 | if (_obj0) | |
3979 | delete _arg0; | |
3980 | } | |
3981 | return _resultobj; | |
3982 | } | |
3983 | ||
3984 | #define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
3985 | static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3986 | PyObject * _resultobj; | |
3987 | wxGenericDragImage * _result; | |
3988 | wxTreeCtrl * _arg0; | |
3989 | wxTreeItemId * _arg1; | |
3990 | PyObject * _argo0 = 0; | |
3991 | PyObject * _argo1 = 0; | |
3992 | char *_kwnames[] = { "treeCtrl","id", NULL }; | |
3993 | char _ptemp[128]; | |
3994 | ||
3995 | self = self; | |
3996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1)) | |
3997 | return NULL; | |
3998 | if (_argo0) { | |
7e50db3f | 3999 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) { |
cdf14688 RD |
4000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p."); |
4001 | return NULL; | |
4002 | } | |
4003 | } | |
4004 | if (_argo1) { | |
7e50db3f | 4005 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) { |
cdf14688 RD |
4006 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p."); |
4007 | return NULL; | |
4008 | } | |
4009 | } | |
4010 | { | |
4268f798 | 4011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4012 | _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1); |
cdf14688 | 4013 | |
4268f798 RD |
4014 | wxPyEndAllowThreads(__tstate); |
4015 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
4016 | } if (_result) { |
4017 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
4018 | _resultobj = Py_BuildValue("s",_ptemp); | |
4019 | } else { | |
4020 | Py_INCREF(Py_None); | |
4021 | _resultobj = Py_None; | |
4022 | } | |
4023 | return _resultobj; | |
4024 | } | |
4025 | ||
4026 | #define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1)) | |
4027 | static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4028 | PyObject * _resultobj; | |
4029 | wxGenericDragImage * _result; | |
4030 | wxListCtrl * _arg0; | |
4031 | long _arg1; | |
4032 | PyObject * _argo0 = 0; | |
4033 | char *_kwnames[] = { "listCtrl","id", NULL }; | |
4034 | char _ptemp[128]; | |
4035 | ||
4036 | self = self; | |
4037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1)) | |
4038 | return NULL; | |
4039 | if (_argo0) { | |
7e50db3f | 4040 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) { |
cdf14688 RD |
4041 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p."); |
4042 | return NULL; | |
4043 | } | |
4044 | } | |
4045 | { | |
4268f798 | 4046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4047 | _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1); |
cdf14688 | 4048 | |
4268f798 RD |
4049 | wxPyEndAllowThreads(__tstate); |
4050 | if (PyErr_Occurred()) return NULL; | |
cdf14688 RD |
4051 | } if (_result) { |
4052 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p"); | |
4053 | _resultobj = Py_BuildValue("s",_ptemp); | |
4054 | } else { | |
4055 | Py_INCREF(Py_None); | |
4056 | _resultobj = Py_None; | |
4057 | } | |
4058 | return _resultobj; | |
4059 | } | |
4060 | ||
f6bcfd97 BP |
4061 | #define delete_wxGenericDragImage(_swigobj) (delete _swigobj) |
4062 | static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4063 | PyObject * _resultobj; | |
4064 | wxGenericDragImage * _arg0; | |
4065 | PyObject * _argo0 = 0; | |
4066 | char *_kwnames[] = { "self", NULL }; | |
4067 | ||
4068 | self = self; | |
4069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0)) | |
4070 | return NULL; | |
4071 | if (_argo0) { | |
4072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p."); | |
4075 | return NULL; | |
4076 | } | |
4077 | } | |
4078 | { | |
4268f798 | 4079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4080 | delete_wxGenericDragImage(_arg0); |
f6bcfd97 | 4081 | |
4268f798 RD |
4082 | wxPyEndAllowThreads(__tstate); |
4083 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4084 | } Py_INCREF(Py_None); |
4085 | _resultobj = Py_None; | |
4086 | return _resultobj; | |
4087 | } | |
4088 | ||
10e07c70 RD |
4089 | #define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0)) |
4090 | static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4091 | PyObject * _resultobj; | |
4092 | wxGenericDragImage * _arg0; | |
4093 | wxBitmap * _arg1; | |
4094 | PyObject * _argo0 = 0; | |
4095 | PyObject * _argo1 = 0; | |
4096 | char *_kwnames[] = { "self","bitmap", NULL }; | |
4097 | ||
4098 | self = self; | |
4099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1)) | |
4100 | return NULL; | |
4101 | if (_argo0) { | |
4102 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4103 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4104 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p."); | |
4105 | return NULL; | |
4106 | } | |
4107 | } | |
4108 | if (_argo1) { | |
4109 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4110 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) { | |
4111 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p."); | |
4112 | return NULL; | |
4113 | } | |
4114 | } | |
4115 | { | |
4268f798 | 4116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4117 | wxDragImage_SetBackingBitmap(_arg0,_arg1); |
10e07c70 | 4118 | |
4268f798 RD |
4119 | wxPyEndAllowThreads(__tstate); |
4120 | if (PyErr_Occurred()) return NULL; | |
10e07c70 RD |
4121 | } Py_INCREF(Py_None); |
4122 | _resultobj = Py_None; | |
4123 | return _resultobj; | |
4124 | } | |
4125 | ||
f6bcfd97 BP |
4126 | #define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
4127 | static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4128 | PyObject * _resultobj; | |
4129 | bool _result; | |
4130 | wxGenericDragImage * _arg0; | |
4131 | wxPoint * _arg1; | |
4132 | wxWindow * _arg2; | |
4133 | bool _arg3 = (bool ) FALSE; | |
4134 | wxRect * _arg4 = (wxRect *) NULL; | |
4135 | PyObject * _argo0 = 0; | |
4136 | wxPoint temp; | |
4137 | PyObject * _obj1 = 0; | |
4138 | PyObject * _argo2 = 0; | |
4139 | int tempbool3 = (int) FALSE; | |
4140 | wxRect temp0; | |
4141 | PyObject * _obj4 = 0; | |
4142 | char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL }; | |
4143 | ||
4144 | self = self; | |
4145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4)) | |
4146 | return NULL; | |
4147 | if (_argo0) { | |
4148 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4149 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4150 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p."); | |
4151 | return NULL; | |
4152 | } | |
4153 | } | |
4154 | { | |
4155 | _arg1 = &temp; | |
4156 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4157 | return NULL; | |
4158 | } | |
4159 | if (_argo2) { | |
4160 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4161 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
4162 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p."); | |
4163 | return NULL; | |
4164 | } | |
4165 | } | |
4166 | _arg3 = (bool ) tempbool3; | |
4167 | if (_obj4) | |
4168 | { | |
4169 | _arg4 = &temp0; | |
4170 | if (! wxRect_helper(_obj4, &_arg4)) | |
4171 | return NULL; | |
4172 | } | |
4173 | { | |
4268f798 | 4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4175 | _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4); |
f6bcfd97 | 4176 | |
4268f798 RD |
4177 | wxPyEndAllowThreads(__tstate); |
4178 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4179 | } _resultobj = Py_BuildValue("i",_result); |
4180 | return _resultobj; | |
4181 | } | |
4182 | ||
7e50db3f RD |
4183 | #define wxDragImage_BeginDragBounded(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2)) |
4184 | static PyObject *_wrap_wxDragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f6bcfd97 BP |
4185 | PyObject * _resultobj; |
4186 | bool _result; | |
4187 | wxGenericDragImage * _arg0; | |
4188 | wxPoint * _arg1; | |
4189 | wxWindow * _arg2; | |
4190 | wxWindow * _arg3; | |
4191 | PyObject * _argo0 = 0; | |
4192 | wxPoint temp; | |
4193 | PyObject * _obj1 = 0; | |
4194 | PyObject * _argo2 = 0; | |
4195 | PyObject * _argo3 = 0; | |
7e50db3f | 4196 | char *_kwnames[] = { "self","hotspot","window","boundingWindow", NULL }; |
f6bcfd97 BP |
4197 | |
4198 | self = self; | |
7e50db3f | 4199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDragBounded",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) |
f6bcfd97 BP |
4200 | return NULL; |
4201 | if (_argo0) { | |
4202 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4203 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
7e50db3f | 4204 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDragBounded. Expected _wxGenericDragImage_p."); |
f6bcfd97 BP |
4205 | return NULL; |
4206 | } | |
4207 | } | |
4208 | { | |
4209 | _arg1 = &temp; | |
4210 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4211 | return NULL; | |
4212 | } | |
4213 | if (_argo2) { | |
4214 | if (_argo2 == Py_None) { _arg2 = NULL; } | |
4215 | else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) { | |
7e50db3f | 4216 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDragBounded. Expected _wxWindow_p."); |
f6bcfd97 BP |
4217 | return NULL; |
4218 | } | |
4219 | } | |
4220 | if (_argo3) { | |
4221 | if (_argo3 == Py_None) { _arg3 = NULL; } | |
4222 | else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) { | |
7e50db3f | 4223 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDragBounded. Expected _wxWindow_p."); |
f6bcfd97 BP |
4224 | return NULL; |
4225 | } | |
4226 | } | |
4227 | { | |
4268f798 | 4228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 4229 | _result = (bool )wxDragImage_BeginDragBounded(_arg0,*_arg1,_arg2,_arg3); |
f6bcfd97 | 4230 | |
4268f798 RD |
4231 | wxPyEndAllowThreads(__tstate); |
4232 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4233 | } _resultobj = Py_BuildValue("i",_result); |
4234 | return _resultobj; | |
4235 | } | |
4236 | ||
4237 | #define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag()) | |
4238 | static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4239 | PyObject * _resultobj; | |
4240 | bool _result; | |
4241 | wxGenericDragImage * _arg0; | |
4242 | PyObject * _argo0 = 0; | |
4243 | char *_kwnames[] = { "self", NULL }; | |
4244 | ||
4245 | self = self; | |
4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0)) | |
4247 | return NULL; | |
4248 | if (_argo0) { | |
4249 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4250 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4251 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p."); | |
4252 | return NULL; | |
4253 | } | |
4254 | } | |
4255 | { | |
4268f798 | 4256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4257 | _result = (bool )wxDragImage_EndDrag(_arg0); |
f6bcfd97 | 4258 | |
4268f798 RD |
4259 | wxPyEndAllowThreads(__tstate); |
4260 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4261 | } _resultobj = Py_BuildValue("i",_result); |
4262 | return _resultobj; | |
4263 | } | |
4264 | ||
4265 | #define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0)) | |
4266 | static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4267 | PyObject * _resultobj; | |
4268 | bool _result; | |
4269 | wxGenericDragImage * _arg0; | |
4270 | wxPoint * _arg1; | |
4271 | PyObject * _argo0 = 0; | |
4272 | wxPoint temp; | |
4273 | PyObject * _obj1 = 0; | |
4274 | char *_kwnames[] = { "self","pt", NULL }; | |
4275 | ||
4276 | self = self; | |
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1)) | |
4278 | return NULL; | |
4279 | if (_argo0) { | |
4280 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4281 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4282 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p."); | |
4283 | return NULL; | |
4284 | } | |
4285 | } | |
4286 | { | |
4287 | _arg1 = &temp; | |
4288 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4289 | return NULL; | |
4290 | } | |
4291 | { | |
4268f798 | 4292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4293 | _result = (bool )wxDragImage_Move(_arg0,*_arg1); |
f6bcfd97 | 4294 | |
4268f798 RD |
4295 | wxPyEndAllowThreads(__tstate); |
4296 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4297 | } _resultobj = Py_BuildValue("i",_result); |
4298 | return _resultobj; | |
4299 | } | |
4300 | ||
4301 | #define wxDragImage_Show(_swigobj) (_swigobj->Show()) | |
4302 | static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4303 | PyObject * _resultobj; | |
4304 | bool _result; | |
4305 | wxGenericDragImage * _arg0; | |
4306 | PyObject * _argo0 = 0; | |
4307 | char *_kwnames[] = { "self", NULL }; | |
4308 | ||
4309 | self = self; | |
4310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0)) | |
4311 | return NULL; | |
4312 | if (_argo0) { | |
4313 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4314 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4315 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p."); | |
4316 | return NULL; | |
4317 | } | |
4318 | } | |
4319 | { | |
4268f798 | 4320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4321 | _result = (bool )wxDragImage_Show(_arg0); |
f6bcfd97 | 4322 | |
4268f798 RD |
4323 | wxPyEndAllowThreads(__tstate); |
4324 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4325 | } _resultobj = Py_BuildValue("i",_result); |
4326 | return _resultobj; | |
4327 | } | |
4328 | ||
4329 | #define wxDragImage_Hide(_swigobj) (_swigobj->Hide()) | |
4330 | static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4331 | PyObject * _resultobj; | |
4332 | bool _result; | |
4333 | wxGenericDragImage * _arg0; | |
4334 | PyObject * _argo0 = 0; | |
4335 | char *_kwnames[] = { "self", NULL }; | |
4336 | ||
4337 | self = self; | |
4338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0)) | |
4339 | return NULL; | |
4340 | if (_argo0) { | |
4341 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4342 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4343 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p."); | |
4344 | return NULL; | |
4345 | } | |
4346 | } | |
4347 | { | |
4268f798 | 4348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4349 | _result = (bool )wxDragImage_Hide(_arg0); |
f6bcfd97 | 4350 | |
4268f798 RD |
4351 | wxPyEndAllowThreads(__tstate); |
4352 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4353 | } _resultobj = Py_BuildValue("i",_result); |
4354 | return _resultobj; | |
4355 | } | |
4356 | ||
4357 | #define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0)) | |
4358 | static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject * _resultobj; | |
4360 | wxRect * _result; | |
4361 | wxGenericDragImage * _arg0; | |
4362 | wxPoint * _arg1; | |
4363 | PyObject * _argo0 = 0; | |
4364 | wxPoint temp; | |
4365 | PyObject * _obj1 = 0; | |
4366 | char *_kwnames[] = { "self","pos", NULL }; | |
4367 | char _ptemp[128]; | |
4368 | ||
4369 | self = self; | |
4370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1)) | |
4371 | return NULL; | |
4372 | if (_argo0) { | |
4373 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4374 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4375 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p."); | |
4376 | return NULL; | |
4377 | } | |
4378 | } | |
4379 | { | |
4380 | _arg1 = &temp; | |
4381 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4382 | return NULL; | |
4383 | } | |
4384 | { | |
4268f798 | 4385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4386 | _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1)); |
f6bcfd97 | 4387 | |
4268f798 RD |
4388 | wxPyEndAllowThreads(__tstate); |
4389 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4390 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p"); |
4391 | _resultobj = Py_BuildValue("s",_ptemp); | |
4392 | return _resultobj; | |
4393 | } | |
4394 | ||
4395 | #define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
4396 | static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4397 | PyObject * _resultobj; | |
4398 | bool _result; | |
4399 | wxGenericDragImage * _arg0; | |
4400 | wxPoint * _arg1; | |
4401 | wxPoint * _arg2; | |
4402 | bool _arg3; | |
4403 | bool _arg4; | |
4404 | PyObject * _argo0 = 0; | |
4405 | wxPoint temp; | |
4406 | PyObject * _obj1 = 0; | |
4407 | wxPoint temp0; | |
4408 | PyObject * _obj2 = 0; | |
4409 | int tempbool3; | |
4410 | int tempbool4; | |
4411 | char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL }; | |
4412 | ||
4413 | self = self; | |
4414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4)) | |
4415 | return NULL; | |
4416 | if (_argo0) { | |
4417 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4418 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) { | |
4419 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p."); | |
4420 | return NULL; | |
4421 | } | |
4422 | } | |
4423 | { | |
4424 | _arg1 = &temp; | |
4425 | if (! wxPoint_helper(_obj1, &_arg1)) | |
4426 | return NULL; | |
4427 | } | |
4428 | { | |
4429 | _arg2 = &temp0; | |
4430 | if (! wxPoint_helper(_obj2, &_arg2)) | |
4431 | return NULL; | |
4432 | } | |
4433 | _arg3 = (bool ) tempbool3; | |
4434 | _arg4 = (bool ) tempbool4; | |
4435 | { | |
4268f798 | 4436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4437 | _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4); |
f6bcfd97 | 4438 | |
4268f798 RD |
4439 | wxPyEndAllowThreads(__tstate); |
4440 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4441 | } _resultobj = Py_BuildValue("i",_result); |
4442 | return _resultobj; | |
4443 | } | |
4444 | ||
9416aa89 RD |
4445 | static void *SwigwxPyTimerTowxObject(void *ptr) { |
4446 | wxPyTimer *src; | |
4447 | wxObject *dest; | |
4448 | src = (wxPyTimer *) ptr; | |
4449 | dest = (wxObject *) src; | |
4450 | return (void *) dest; | |
4451 | } | |
4452 | ||
f6bcfd97 BP |
4453 | #define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0)) |
4454 | static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4455 | PyObject * _resultobj; | |
4456 | wxPyTimer * _result; | |
4457 | PyObject * _arg0; | |
4458 | PyObject * _obj0 = 0; | |
4459 | char *_kwnames[] = { "notify", NULL }; | |
4460 | char _ptemp[128]; | |
4461 | ||
4462 | self = self; | |
4463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0)) | |
4464 | return NULL; | |
4465 | { | |
4466 | _arg0 = _obj0; | |
4467 | } | |
4468 | { | |
4268f798 | 4469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4470 | _result = (wxPyTimer *)new_wxPyTimer(_arg0); |
f6bcfd97 | 4471 | |
4268f798 RD |
4472 | wxPyEndAllowThreads(__tstate); |
4473 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4474 | } if (_result) { |
4475 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p"); | |
4476 | _resultobj = Py_BuildValue("s",_ptemp); | |
4477 | } else { | |
4478 | Py_INCREF(Py_None); | |
4479 | _resultobj = Py_None; | |
4480 | } | |
4481 | return _resultobj; | |
4482 | } | |
4483 | ||
4484 | #define delete_wxPyTimer(_swigobj) (delete _swigobj) | |
4485 | static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4486 | PyObject * _resultobj; | |
4487 | wxPyTimer * _arg0; | |
4488 | PyObject * _argo0 = 0; | |
4489 | char *_kwnames[] = { "self", NULL }; | |
4490 | ||
4491 | self = self; | |
4492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0)) | |
4493 | return NULL; | |
4494 | if (_argo0) { | |
4495 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4496 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4497 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p."); | |
4498 | return NULL; | |
4499 | } | |
4500 | } | |
4501 | { | |
4268f798 | 4502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4503 | delete_wxPyTimer(_arg0); |
f6bcfd97 | 4504 | |
4268f798 RD |
4505 | wxPyEndAllowThreads(__tstate); |
4506 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4507 | } Py_INCREF(Py_None); |
4508 | _resultobj = Py_None; | |
4509 | return _resultobj; | |
4510 | } | |
4511 | ||
4512 | #define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval()) | |
4513 | static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4514 | PyObject * _resultobj; | |
4515 | int _result; | |
4516 | wxPyTimer * _arg0; | |
4517 | PyObject * _argo0 = 0; | |
4518 | char *_kwnames[] = { "self", NULL }; | |
4519 | ||
4520 | self = self; | |
4521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0)) | |
4522 | return NULL; | |
4523 | if (_argo0) { | |
4524 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4525 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4526 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p."); | |
4527 | return NULL; | |
4528 | } | |
4529 | } | |
4530 | { | |
4268f798 | 4531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4532 | _result = (int )wxPyTimer_GetInterval(_arg0); |
f6bcfd97 | 4533 | |
4268f798 RD |
4534 | wxPyEndAllowThreads(__tstate); |
4535 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4536 | } _resultobj = Py_BuildValue("i",_result); |
4537 | return _resultobj; | |
4538 | } | |
4539 | ||
4540 | #define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot()) | |
4541 | static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4542 | PyObject * _resultobj; | |
4543 | bool _result; | |
4544 | wxPyTimer * _arg0; | |
4545 | PyObject * _argo0 = 0; | |
4546 | char *_kwnames[] = { "self", NULL }; | |
4547 | ||
4548 | self = self; | |
4549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0)) | |
4550 | return NULL; | |
4551 | if (_argo0) { | |
4552 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4553 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4554 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p."); | |
4555 | return NULL; | |
4556 | } | |
4557 | } | |
4558 | { | |
4268f798 | 4559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4560 | _result = (bool )wxPyTimer_IsOneShot(_arg0); |
f6bcfd97 | 4561 | |
4268f798 RD |
4562 | wxPyEndAllowThreads(__tstate); |
4563 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4564 | } _resultobj = Py_BuildValue("i",_result); |
4565 | return _resultobj; | |
4566 | } | |
4567 | ||
4568 | #define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning()) | |
4569 | static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4570 | PyObject * _resultobj; | |
4571 | bool _result; | |
4572 | wxPyTimer * _arg0; | |
4573 | PyObject * _argo0 = 0; | |
4574 | char *_kwnames[] = { "self", NULL }; | |
4575 | ||
4576 | self = self; | |
4577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0)) | |
4578 | return NULL; | |
4579 | if (_argo0) { | |
4580 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4581 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4582 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p."); | |
4583 | return NULL; | |
4584 | } | |
4585 | } | |
4586 | { | |
4268f798 | 4587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4588 | _result = (bool )wxPyTimer_IsRunning(_arg0); |
f6bcfd97 | 4589 | |
4268f798 RD |
4590 | wxPyEndAllowThreads(__tstate); |
4591 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4592 | } _resultobj = Py_BuildValue("i",_result); |
4593 | return _resultobj; | |
4594 | } | |
4595 | ||
4596 | #define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1)) | |
4597 | static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4598 | PyObject * _resultobj; | |
4599 | wxPyTimer * _arg0; | |
4600 | wxEvtHandler * _arg1; | |
4601 | int _arg2 = (int ) -1; | |
4602 | PyObject * _argo0 = 0; | |
4603 | PyObject * _argo1 = 0; | |
4604 | char *_kwnames[] = { "self","owner","id", NULL }; | |
4605 | ||
4606 | self = self; | |
4607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2)) | |
4608 | return NULL; | |
4609 | if (_argo0) { | |
4610 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4611 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4612 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p."); | |
4613 | return NULL; | |
4614 | } | |
4615 | } | |
4616 | if (_argo1) { | |
4617 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
4618 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) { | |
4619 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p."); | |
4620 | return NULL; | |
4621 | } | |
4622 | } | |
4623 | { | |
4268f798 | 4624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4625 | wxPyTimer_SetOwner(_arg0,_arg1,_arg2); |
f6bcfd97 | 4626 | |
4268f798 RD |
4627 | wxPyEndAllowThreads(__tstate); |
4628 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4629 | } Py_INCREF(Py_None); |
4630 | _resultobj = Py_None; | |
4631 | return _resultobj; | |
4632 | } | |
4633 | ||
4634 | #define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1)) | |
4635 | static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4636 | PyObject * _resultobj; | |
5a2a9da2 | 4637 | bool _result; |
f6bcfd97 BP |
4638 | wxPyTimer * _arg0; |
4639 | int _arg1 = (int ) -1; | |
4640 | int _arg2 = (int ) FALSE; | |
4641 | PyObject * _argo0 = 0; | |
4642 | char *_kwnames[] = { "self","milliseconds","oneShot", NULL }; | |
4643 | ||
4644 | self = self; | |
4645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2)) | |
4646 | return NULL; | |
4647 | if (_argo0) { | |
4648 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4649 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { | |
4650 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p."); | |
4651 | return NULL; | |
4652 | } | |
4653 | } | |
4654 | { | |
4268f798 | 4655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5a2a9da2 | 4656 | _result = (bool )wxPyTimer_Start(_arg0,_arg1,_arg2); |
f6bcfd97 | 4657 | |
4268f798 RD |
4658 | wxPyEndAllowThreads(__tstate); |
4659 | if (PyErr_Occurred()) return NULL; | |
5a2a9da2 | 4660 | } _resultobj = Py_BuildValue("i",_result); |
f6bcfd97 BP |
4661 | return _resultobj; |
4662 | } | |
4663 | ||
4664 | #define wxPyTimer_Stop(_swigobj) (_swigobj->Stop()) | |
4665 | static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4666 | PyObject * _resultobj; | |
4667 | wxPyTimer * _arg0; | |
f0261a72 RD |
4668 | PyObject * _argo0 = 0; |
4669 | char *_kwnames[] = { "self", NULL }; | |
f0261a72 RD |
4670 | |
4671 | self = self; | |
f6bcfd97 | 4672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0)) |
f0261a72 RD |
4673 | return NULL; |
4674 | if (_argo0) { | |
4675 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
4676 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) { |
4677 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p."); | |
f0261a72 RD |
4678 | return NULL; |
4679 | } | |
4680 | } | |
4681 | { | |
4268f798 | 4682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4683 | wxPyTimer_Stop(_arg0); |
f0261a72 | 4684 | |
4268f798 RD |
4685 | wxPyEndAllowThreads(__tstate); |
4686 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4687 | } Py_INCREF(Py_None); |
4688 | _resultobj = Py_None; | |
f0261a72 RD |
4689 | return _resultobj; |
4690 | } | |
4691 | ||
b37c7e1d RD |
4692 | #define new_wxStopWatch() (new wxStopWatch()) |
4693 | static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4694 | PyObject * _resultobj; | |
4695 | wxStopWatch * _result; | |
4696 | char *_kwnames[] = { NULL }; | |
4697 | char _ptemp[128]; | |
4698 | ||
4699 | self = self; | |
4700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames)) | |
4701 | return NULL; | |
4702 | { | |
4268f798 | 4703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4704 | _result = (wxStopWatch *)new_wxStopWatch(); |
b37c7e1d | 4705 | |
4268f798 RD |
4706 | wxPyEndAllowThreads(__tstate); |
4707 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4708 | } if (_result) { |
4709 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p"); | |
4710 | _resultobj = Py_BuildValue("s",_ptemp); | |
4711 | } else { | |
4712 | Py_INCREF(Py_None); | |
4713 | _resultobj = Py_None; | |
4714 | } | |
4715 | return _resultobj; | |
4716 | } | |
4717 | ||
68320e40 RD |
4718 | #define delete_wxStopWatch(_swigobj) (delete _swigobj) |
4719 | static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4720 | PyObject * _resultobj; | |
4721 | wxStopWatch * _arg0; | |
4722 | PyObject * _argo0 = 0; | |
4723 | char *_kwnames[] = { "self", NULL }; | |
4724 | ||
4725 | self = self; | |
4726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0)) | |
4727 | return NULL; | |
4728 | if (_argo0) { | |
4729 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4730 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4731 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p."); | |
4732 | return NULL; | |
4733 | } | |
4734 | } | |
4735 | { | |
4736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
c8bc7bb8 | 4737 | delete_wxStopWatch(_arg0); |
68320e40 RD |
4738 | |
4739 | wxPyEndAllowThreads(__tstate); | |
4740 | if (PyErr_Occurred()) return NULL; | |
4741 | } Py_INCREF(Py_None); | |
4742 | _resultobj = Py_None; | |
4743 | return _resultobj; | |
4744 | } | |
4745 | ||
b37c7e1d RD |
4746 | #define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0)) |
4747 | static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4748 | PyObject * _resultobj; | |
4749 | wxStopWatch * _arg0; | |
4750 | long _arg1 = (long ) 0; | |
4751 | PyObject * _argo0 = 0; | |
4752 | char *_kwnames[] = { "self","t", NULL }; | |
4753 | ||
4754 | self = self; | |
4755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1)) | |
4756 | return NULL; | |
4757 | if (_argo0) { | |
4758 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4759 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4760 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p."); | |
4761 | return NULL; | |
4762 | } | |
4763 | } | |
4764 | { | |
4268f798 | 4765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4766 | wxStopWatch_Start(_arg0,_arg1); |
b37c7e1d | 4767 | |
4268f798 RD |
4768 | wxPyEndAllowThreads(__tstate); |
4769 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4770 | } Py_INCREF(Py_None); |
4771 | _resultobj = Py_None; | |
4772 | return _resultobj; | |
4773 | } | |
4774 | ||
4775 | #define wxStopWatch_Pause(_swigobj) (_swigobj->Pause()) | |
4776 | static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4777 | PyObject * _resultobj; | |
4778 | wxStopWatch * _arg0; | |
4779 | PyObject * _argo0 = 0; | |
4780 | char *_kwnames[] = { "self", NULL }; | |
4781 | ||
4782 | self = self; | |
4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0)) | |
4784 | return NULL; | |
4785 | if (_argo0) { | |
4786 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4787 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4788 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p."); | |
4789 | return NULL; | |
4790 | } | |
4791 | } | |
4792 | { | |
4268f798 | 4793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4794 | wxStopWatch_Pause(_arg0); |
b37c7e1d | 4795 | |
4268f798 RD |
4796 | wxPyEndAllowThreads(__tstate); |
4797 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4798 | } Py_INCREF(Py_None); |
4799 | _resultobj = Py_None; | |
4800 | return _resultobj; | |
4801 | } | |
4802 | ||
4803 | #define wxStopWatch_Resume(_swigobj) (_swigobj->Resume()) | |
4804 | static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4805 | PyObject * _resultobj; | |
4806 | wxStopWatch * _arg0; | |
4807 | PyObject * _argo0 = 0; | |
4808 | char *_kwnames[] = { "self", NULL }; | |
4809 | ||
4810 | self = self; | |
4811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0)) | |
4812 | return NULL; | |
4813 | if (_argo0) { | |
4814 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4815 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4816 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p."); | |
4817 | return NULL; | |
4818 | } | |
4819 | } | |
4820 | { | |
4268f798 | 4821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4822 | wxStopWatch_Resume(_arg0); |
b37c7e1d | 4823 | |
4268f798 RD |
4824 | wxPyEndAllowThreads(__tstate); |
4825 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4826 | } Py_INCREF(Py_None); |
4827 | _resultobj = Py_None; | |
4828 | return _resultobj; | |
4829 | } | |
4830 | ||
4831 | #define wxStopWatch_Time(_swigobj) (_swigobj->Time()) | |
4832 | static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4833 | PyObject * _resultobj; | |
4834 | long _result; | |
4835 | wxStopWatch * _arg0; | |
4836 | PyObject * _argo0 = 0; | |
4837 | char *_kwnames[] = { "self", NULL }; | |
4838 | ||
4839 | self = self; | |
4840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0)) | |
4841 | return NULL; | |
4842 | if (_argo0) { | |
4843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) { | |
4845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p."); | |
4846 | return NULL; | |
4847 | } | |
4848 | } | |
4849 | { | |
4268f798 | 4850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4851 | _result = (long )wxStopWatch_Time(_arg0); |
b37c7e1d | 4852 | |
4268f798 RD |
4853 | wxPyEndAllowThreads(__tstate); |
4854 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
4855 | } _resultobj = Py_BuildValue("l",_result); |
4856 | return _resultobj; | |
4857 | } | |
4858 | ||
f6bcfd97 BP |
4859 | #define new_wxLog() (new wxLog()) |
4860 | static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 4861 | PyObject * _resultobj; |
f6bcfd97 BP |
4862 | wxLog * _result; |
4863 | char *_kwnames[] = { NULL }; | |
4864 | char _ptemp[128]; | |
f0261a72 RD |
4865 | |
4866 | self = self; | |
f6bcfd97 BP |
4867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames)) |
4868 | return NULL; | |
f0261a72 | 4869 | { |
4268f798 | 4870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4871 | _result = (wxLog *)new_wxLog(); |
f6bcfd97 | 4872 | |
4268f798 RD |
4873 | wxPyEndAllowThreads(__tstate); |
4874 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4875 | } if (_result) { |
4876 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
4877 | _resultobj = Py_BuildValue("s",_ptemp); | |
4878 | } else { | |
4879 | Py_INCREF(Py_None); | |
4880 | _resultobj = Py_None; | |
4881 | } | |
4882 | return _resultobj; | |
f0261a72 | 4883 | } |
f6bcfd97 BP |
4884 | |
4885 | static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4886 | PyObject * _resultobj; | |
4887 | bool _result; | |
4888 | char *_kwnames[] = { NULL }; | |
4889 | ||
4890 | self = self; | |
4891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames)) | |
4892 | return NULL; | |
f0261a72 | 4893 | { |
4268f798 | 4894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4895 | _result = (bool )wxLog::IsEnabled(); |
f6bcfd97 | 4896 | |
4268f798 RD |
4897 | wxPyEndAllowThreads(__tstate); |
4898 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4899 | } _resultobj = Py_BuildValue("i",_result); |
4900 | return _resultobj; | |
f0261a72 | 4901 | } |
f6bcfd97 BP |
4902 | |
4903 | static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4904 | PyObject * _resultobj; | |
4905 | bool _result; | |
4906 | bool _arg0 = (bool ) TRUE; | |
4907 | int tempbool0 = (int) TRUE; | |
4908 | char *_kwnames[] = { "doIt", NULL }; | |
4909 | ||
4910 | self = self; | |
4911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0)) | |
4912 | return NULL; | |
4913 | _arg0 = (bool ) tempbool0; | |
4914 | { | |
4268f798 | 4915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4916 | _result = (bool )wxLog::EnableLogging(_arg0); |
f6bcfd97 | 4917 | |
4268f798 RD |
4918 | wxPyEndAllowThreads(__tstate); |
4919 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4920 | } _resultobj = Py_BuildValue("i",_result); |
4921 | return _resultobj; | |
4922 | } | |
4923 | ||
4924 | static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4925 | PyObject * _resultobj; | |
8baa46e9 | 4926 | unsigned long _arg0; |
c8bc7bb8 | 4927 | wxString * _arg1; |
f6bcfd97 | 4928 | int _arg2 = (int ) 0; |
c8bc7bb8 | 4929 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
4930 | char *_kwnames[] = { "level","szString","t", NULL }; |
4931 | ||
4932 | self = self; | |
8baa46e9 | 4933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"lO|i:wxLog_OnLog",_kwnames,&_arg0,&_obj1,&_arg2)) |
f0261a72 | 4934 | return NULL; |
c8bc7bb8 RD |
4935 | { |
4936 | _arg1 = wxString_in_helper(_obj1); | |
4937 | if (_arg1 == NULL) | |
4938 | return NULL; | |
4939 | } | |
f0261a72 | 4940 | { |
4268f798 | 4941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 4942 | wxLog::OnLog(_arg0,*_arg1,_arg2); |
f0261a72 | 4943 | |
4268f798 RD |
4944 | wxPyEndAllowThreads(__tstate); |
4945 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
4946 | } Py_INCREF(Py_None); |
4947 | _resultobj = Py_None; | |
c8bc7bb8 RD |
4948 | { |
4949 | if (_obj1) | |
4950 | delete _arg1; | |
4951 | } | |
f6bcfd97 | 4952 | return _resultobj; |
f0261a72 | 4953 | } |
f6bcfd97 BP |
4954 | |
4955 | #define wxLog_Flush(_swigobj) (_swigobj->Flush()) | |
4956 | static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4957 | PyObject * _resultobj; | |
4958 | wxLog * _arg0; | |
4959 | PyObject * _argo0 = 0; | |
4960 | char *_kwnames[] = { "self", NULL }; | |
4961 | ||
4962 | self = self; | |
4963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0)) | |
4964 | return NULL; | |
4965 | if (_argo0) { | |
4966 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
4967 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
4968 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p."); | |
4969 | return NULL; | |
4970 | } | |
4971 | } | |
f0261a72 | 4972 | { |
4268f798 | 4973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4974 | wxLog_Flush(_arg0); |
f6bcfd97 | 4975 | |
4268f798 RD |
4976 | wxPyEndAllowThreads(__tstate); |
4977 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4978 | } Py_INCREF(Py_None); |
4979 | _resultobj = Py_None; | |
f0261a72 RD |
4980 | return _resultobj; |
4981 | } | |
4982 | ||
f6bcfd97 | 4983 | static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 4984 | PyObject * _resultobj; |
f6bcfd97 BP |
4985 | char *_kwnames[] = { NULL }; |
4986 | ||
4987 | self = self; | |
4988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames)) | |
4989 | return NULL; | |
4990 | { | |
4268f798 | 4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 4992 | wxLog::FlushActive(); |
f6bcfd97 | 4993 | |
4268f798 RD |
4994 | wxPyEndAllowThreads(__tstate); |
4995 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
4996 | } Py_INCREF(Py_None); |
4997 | _resultobj = Py_None; | |
4998 | return _resultobj; | |
4999 | } | |
5000 | ||
5001 | static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5002 | PyObject * _resultobj; | |
5003 | wxLog * _result; | |
5004 | char *_kwnames[] = { NULL }; | |
5005 | char _ptemp[128]; | |
5006 | ||
5007 | self = self; | |
5008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames)) | |
5009 | return NULL; | |
5010 | { | |
4268f798 | 5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5012 | _result = (wxLog *)wxLog::GetActiveTarget(); |
f6bcfd97 | 5013 | |
4268f798 RD |
5014 | wxPyEndAllowThreads(__tstate); |
5015 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5016 | } if (_result) { |
5017 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5018 | _resultobj = Py_BuildValue("s",_ptemp); | |
5019 | } else { | |
5020 | Py_INCREF(Py_None); | |
5021 | _resultobj = Py_None; | |
5022 | } | |
5023 | return _resultobj; | |
5024 | } | |
5025 | ||
5026 | static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5027 | PyObject * _resultobj; | |
5028 | wxLog * _result; | |
5029 | wxLog * _arg0; | |
f0261a72 | 5030 | PyObject * _argo0 = 0; |
f6bcfd97 | 5031 | char *_kwnames[] = { "pLogger", NULL }; |
f0261a72 RD |
5032 | char _ptemp[128]; |
5033 | ||
5034 | self = self; | |
f6bcfd97 | 5035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0)) |
f0261a72 RD |
5036 | return NULL; |
5037 | if (_argo0) { | |
5038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p."); | |
f0261a72 RD |
5041 | return NULL; |
5042 | } | |
5043 | } | |
5044 | { | |
4268f798 | 5045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5046 | _result = (wxLog *)wxLog::SetActiveTarget(_arg0); |
f0261a72 | 5047 | |
4268f798 RD |
5048 | wxPyEndAllowThreads(__tstate); |
5049 | if (PyErr_Occurred()) return NULL; | |
f0261a72 | 5050 | } if (_result) { |
f6bcfd97 | 5051 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); |
f0261a72 RD |
5052 | _resultobj = Py_BuildValue("s",_ptemp); |
5053 | } else { | |
5054 | Py_INCREF(Py_None); | |
5055 | _resultobj = Py_None; | |
5056 | } | |
5057 | return _resultobj; | |
5058 | } | |
5059 | ||
f6bcfd97 | 5060 | static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 5061 | PyObject * _resultobj; |
f6bcfd97 BP |
5062 | char *_kwnames[] = { NULL }; |
5063 | ||
5064 | self = self; | |
5065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames)) | |
5066 | return NULL; | |
5067 | { | |
4268f798 | 5068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5069 | wxLog::Suspend(); |
f6bcfd97 | 5070 | |
4268f798 RD |
5071 | wxPyEndAllowThreads(__tstate); |
5072 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5073 | } Py_INCREF(Py_None); |
5074 | _resultobj = Py_None; | |
5075 | return _resultobj; | |
5076 | } | |
5077 | ||
5078 | static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5079 | PyObject * _resultobj; | |
5080 | char *_kwnames[] = { NULL }; | |
5081 | ||
5082 | self = self; | |
5083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames)) | |
5084 | return NULL; | |
5085 | { | |
4268f798 | 5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5087 | wxLog::Resume(); |
f6bcfd97 | 5088 | |
4268f798 RD |
5089 | wxPyEndAllowThreads(__tstate); |
5090 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5091 | } Py_INCREF(Py_None); |
5092 | _resultobj = Py_None; | |
5093 | return _resultobj; | |
5094 | } | |
5095 | ||
f6bcfd97 BP |
5096 | static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { |
5097 | PyObject * _resultobj; | |
d6eacb25 RD |
5098 | bool _arg0 = (bool ) TRUE; |
5099 | int tempbool0 = (int) TRUE; | |
5100 | char *_kwnames[] = { "bVerbose", NULL }; | |
f0261a72 RD |
5101 | |
5102 | self = self; | |
d6eacb25 | 5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_SetVerbose",_kwnames,&tempbool0)) |
f0261a72 | 5104 | return NULL; |
d6eacb25 | 5105 | _arg0 = (bool ) tempbool0; |
f0261a72 | 5106 | { |
4268f798 | 5107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
d6eacb25 | 5108 | wxLog::SetVerbose(_arg0); |
f0261a72 | 5109 | |
4268f798 RD |
5110 | wxPyEndAllowThreads(__tstate); |
5111 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
5112 | } Py_INCREF(Py_None); |
5113 | _resultobj = Py_None; | |
5114 | return _resultobj; | |
5115 | } | |
5116 | ||
f6bcfd97 | 5117 | static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) { |
f0261a72 | 5118 | PyObject * _resultobj; |
f6bcfd97 BP |
5119 | char *_kwnames[] = { NULL }; |
5120 | ||
5121 | self = self; | |
5122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames)) | |
5123 | return NULL; | |
5124 | { | |
4268f798 | 5125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5126 | wxLog::DontCreateOnDemand(); |
f6bcfd97 | 5127 | |
4268f798 RD |
5128 | wxPyEndAllowThreads(__tstate); |
5129 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5130 | } Py_INCREF(Py_None); |
5131 | _resultobj = Py_None; | |
5132 | return _resultobj; | |
5133 | } | |
5134 | ||
5135 | static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5136 | PyObject * _resultobj; | |
8baa46e9 | 5137 | long _arg0; |
f6bcfd97 | 5138 | char *_kwnames[] = { "ulMask", NULL }; |
f0261a72 RD |
5139 | |
5140 | self = self; | |
8baa46e9 | 5141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetTraceMask",_kwnames,&_arg0)) |
f6bcfd97 | 5142 | return NULL; |
f6bcfd97 | 5143 | { |
4268f798 | 5144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8baa46e9 | 5145 | wxLog::SetTraceMask(_arg0); |
f6bcfd97 | 5146 | |
4268f798 RD |
5147 | wxPyEndAllowThreads(__tstate); |
5148 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5149 | } Py_INCREF(Py_None); |
5150 | _resultobj = Py_None; | |
5151 | return _resultobj; | |
5152 | } | |
5153 | ||
5154 | static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5155 | PyObject * _resultobj; | |
5156 | wxString * _arg0; | |
5157 | PyObject * _obj0 = 0; | |
5158 | char *_kwnames[] = { "str", NULL }; | |
5159 | ||
5160 | self = self; | |
5161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0)) | |
5162 | return NULL; | |
5163 | { | |
c8bc7bb8 RD |
5164 | _arg0 = wxString_in_helper(_obj0); |
5165 | if (_arg0 == NULL) | |
f6bcfd97 | 5166 | return NULL; |
f6bcfd97 BP |
5167 | } |
5168 | { | |
4268f798 | 5169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5170 | wxLog::AddTraceMask(*_arg0); |
f6bcfd97 | 5171 | |
4268f798 RD |
5172 | wxPyEndAllowThreads(__tstate); |
5173 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5174 | } Py_INCREF(Py_None); |
5175 | _resultobj = Py_None; | |
5176 | { | |
5177 | if (_obj0) | |
5178 | delete _arg0; | |
5179 | } | |
5180 | return _resultobj; | |
5181 | } | |
5182 | ||
5183 | static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5184 | PyObject * _resultobj; | |
5185 | wxString * _arg0; | |
5186 | PyObject * _obj0 = 0; | |
5187 | char *_kwnames[] = { "str", NULL }; | |
5188 | ||
5189 | self = self; | |
5190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0)) | |
f0261a72 | 5191 | return NULL; |
f0261a72 | 5192 | { |
c8bc7bb8 RD |
5193 | _arg0 = wxString_in_helper(_obj0); |
5194 | if (_arg0 == NULL) | |
185d7c3e | 5195 | return NULL; |
f0261a72 RD |
5196 | } |
5197 | { | |
4268f798 | 5198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5199 | wxLog::RemoveTraceMask(*_arg0); |
f0261a72 | 5200 | |
4268f798 RD |
5201 | wxPyEndAllowThreads(__tstate); |
5202 | if (PyErr_Occurred()) return NULL; | |
f0261a72 RD |
5203 | } Py_INCREF(Py_None); |
5204 | _resultobj = Py_None; | |
f6bcfd97 BP |
5205 | { |
5206 | if (_obj0) | |
5207 | delete _arg0; | |
5208 | } | |
f0261a72 RD |
5209 | return _resultobj; |
5210 | } | |
5211 | ||
76bfdc78 RD |
5212 | static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5213 | PyObject * _resultobj; | |
5214 | char *_kwnames[] = { NULL }; | |
5215 | ||
5216 | self = self; | |
5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames)) | |
5218 | return NULL; | |
5219 | { | |
4268f798 | 5220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5221 | wxLog::ClearTraceMasks(); |
76bfdc78 | 5222 | |
4268f798 RD |
5223 | wxPyEndAllowThreads(__tstate); |
5224 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5225 | } Py_INCREF(Py_None); |
5226 | _resultobj = Py_None; | |
5227 | return _resultobj; | |
5228 | } | |
5229 | ||
67a92fff RD |
5230 | static PyObject *_wrap_wxLog_GetTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) { |
5231 | PyObject * _resultobj; | |
5232 | wxArrayString * _result; | |
5233 | char *_kwnames[] = { NULL }; | |
5234 | char _ptemp[128]; | |
5235 | ||
5236 | self = self; | |
5237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMasks",_kwnames)) | |
5238 | return NULL; | |
5239 | { | |
5240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5241 | const wxArrayString & _result_ref = wxLog::GetTraceMasks(); | |
5242 | _result = (wxArrayString *) &_result_ref; | |
5243 | ||
5244 | wxPyEndAllowThreads(__tstate); | |
5245 | if (PyErr_Occurred()) return NULL; | |
5246 | } if (_result) { | |
5247 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxArrayString_p"); | |
5248 | _resultobj = Py_BuildValue("s",_ptemp); | |
5249 | } else { | |
5250 | Py_INCREF(Py_None); | |
5251 | _resultobj = Py_None; | |
5252 | } | |
5253 | return _resultobj; | |
5254 | } | |
5255 | ||
76bfdc78 RD |
5256 | static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { |
5257 | PyObject * _resultobj; | |
137b5242 RD |
5258 | wxString * _arg0; |
5259 | PyObject * _obj0 = 0; | |
76bfdc78 RD |
5260 | char *_kwnames[] = { "ts", NULL }; |
5261 | ||
5262 | self = self; | |
137b5242 | 5263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTimestamp",_kwnames,&_obj0)) |
76bfdc78 | 5264 | return NULL; |
137b5242 RD |
5265 | { |
5266 | _arg0 = wxString_in_helper(_obj0); | |
5267 | if (_arg0 == NULL) | |
5268 | return NULL; | |
5269 | } | |
76bfdc78 | 5270 | { |
4268f798 | 5271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 | 5272 | wxLog::SetTimestamp(*_arg0); |
76bfdc78 | 5273 | |
4268f798 RD |
5274 | wxPyEndAllowThreads(__tstate); |
5275 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5276 | } Py_INCREF(Py_None); |
5277 | _resultobj = Py_None; | |
137b5242 RD |
5278 | { |
5279 | if (_obj0) | |
5280 | delete _arg0; | |
5281 | } | |
76bfdc78 RD |
5282 | return _resultobj; |
5283 | } | |
5284 | ||
5285 | static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5286 | PyObject * _resultobj; | |
137b5242 | 5287 | wxString * _result; |
76bfdc78 RD |
5288 | char *_kwnames[] = { NULL }; |
5289 | ||
5290 | self = self; | |
5291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames)) | |
5292 | return NULL; | |
5293 | { | |
4268f798 | 5294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
137b5242 RD |
5295 | const wxString & _result_ref = wxLog::GetTimestamp(); |
5296 | _result = (wxString *) &_result_ref; | |
76bfdc78 | 5297 | |
4268f798 RD |
5298 | wxPyEndAllowThreads(__tstate); |
5299 | if (PyErr_Occurred()) return NULL; | |
137b5242 RD |
5300 | }{ |
5301 | #if wxUSE_UNICODE | |
7e50db3f | 5302 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
137b5242 RD |
5303 | #else |
5304 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); | |
5305 | #endif | |
5306 | } | |
76bfdc78 RD |
5307 | return _resultobj; |
5308 | } | |
5309 | ||
f6bcfd97 BP |
5310 | #define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose()) |
5311 | static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) { | |
a1df7a95 | 5312 | PyObject * _resultobj; |
f6bcfd97 BP |
5313 | bool _result; |
5314 | wxLog * _arg0; | |
a1df7a95 | 5315 | PyObject * _argo0 = 0; |
f6bcfd97 | 5316 | char *_kwnames[] = { "self", NULL }; |
a1df7a95 RD |
5317 | |
5318 | self = self; | |
f6bcfd97 | 5319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0)) |
a1df7a95 RD |
5320 | return NULL; |
5321 | if (_argo0) { | |
5322 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5323 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { |
5324 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p."); | |
a1df7a95 RD |
5325 | return NULL; |
5326 | } | |
5327 | } | |
5328 | { | |
4268f798 | 5329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5330 | _result = (bool )wxLog_GetVerbose(_arg0); |
a1df7a95 | 5331 | |
4268f798 RD |
5332 | wxPyEndAllowThreads(__tstate); |
5333 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5334 | } _resultobj = Py_BuildValue("i",_result); |
a1df7a95 RD |
5335 | return _resultobj; |
5336 | } | |
5337 | ||
f6bcfd97 | 5338 | static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { |
a1df7a95 | 5339 | PyObject * _resultobj; |
be13a6af | 5340 | unsigned long _result; |
f6bcfd97 | 5341 | char *_kwnames[] = { NULL }; |
a1df7a95 RD |
5342 | |
5343 | self = self; | |
f6bcfd97 | 5344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames)) |
a1df7a95 | 5345 | return NULL; |
a1df7a95 | 5346 | { |
4268f798 | 5347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be13a6af | 5348 | _result = (unsigned long )wxLog::GetTraceMask(); |
f6bcfd97 | 5349 | |
4268f798 RD |
5350 | wxPyEndAllowThreads(__tstate); |
5351 | if (PyErr_Occurred()) return NULL; | |
be13a6af | 5352 | } _resultobj = Py_BuildValue("l",_result); |
f6bcfd97 | 5353 | return _resultobj; |
a1df7a95 | 5354 | } |
f6bcfd97 BP |
5355 | |
5356 | static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5357 | PyObject * _resultobj; | |
5358 | bool _result; | |
c8bc7bb8 RD |
5359 | wxString * _arg0; |
5360 | PyObject * _obj0 = 0; | |
f6bcfd97 BP |
5361 | char *_kwnames[] = { "mask", NULL }; |
5362 | ||
5363 | self = self; | |
c8bc7bb8 | 5364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_IsAllowedTraceMask",_kwnames,&_obj0)) |
f6bcfd97 | 5365 | return NULL; |
c8bc7bb8 RD |
5366 | { |
5367 | _arg0 = wxString_in_helper(_obj0); | |
5368 | if (_arg0 == NULL) | |
5369 | return NULL; | |
5370 | } | |
a1df7a95 | 5371 | { |
4268f798 | 5372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5373 | _result = (bool )wxLog::IsAllowedTraceMask(*_arg0); |
a1df7a95 | 5374 | |
4268f798 RD |
5375 | wxPyEndAllowThreads(__tstate); |
5376 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5377 | } _resultobj = Py_BuildValue("i",_result); |
c8bc7bb8 RD |
5378 | { |
5379 | if (_obj0) | |
5380 | delete _arg0; | |
5381 | } | |
a1df7a95 RD |
5382 | return _resultobj; |
5383 | } | |
5384 | ||
7e50db3f RD |
5385 | static PyObject *_wrap_wxLog_SetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { |
5386 | PyObject * _resultobj; | |
5387 | unsigned long _arg0; | |
5388 | char *_kwnames[] = { "logLevel", NULL }; | |
5389 | ||
5390 | self = self; | |
5391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxLog_SetLogLevel",_kwnames,&_arg0)) | |
5392 | return NULL; | |
5393 | { | |
5394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5395 | wxLog::SetLogLevel(_arg0); | |
5396 | ||
5397 | wxPyEndAllowThreads(__tstate); | |
5398 | if (PyErr_Occurred()) return NULL; | |
5399 | } Py_INCREF(Py_None); | |
5400 | _resultobj = Py_None; | |
5401 | return _resultobj; | |
5402 | } | |
5403 | ||
5404 | static PyObject *_wrap_wxLog_GetLogLevel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5405 | PyObject * _resultobj; | |
5406 | unsigned long _result; | |
5407 | char *_kwnames[] = { NULL }; | |
5408 | ||
5409 | self = self; | |
5410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetLogLevel",_kwnames)) | |
5411 | return NULL; | |
5412 | { | |
5413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5414 | _result = (unsigned long )wxLog::GetLogLevel(); | |
5415 | ||
5416 | wxPyEndAllowThreads(__tstate); | |
5417 | if (PyErr_Occurred()) return NULL; | |
5418 | } _resultobj = Py_BuildValue("l",_result); | |
5419 | return _resultobj; | |
5420 | } | |
5421 | ||
76bfdc78 RD |
5422 | static wxString wxLog_TimeStamp(wxLog *self) { |
5423 | wxString msg; | |
5424 | wxLog::TimeStamp(&msg); | |
5425 | return msg; | |
5426 | } | |
5427 | static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject * _resultobj; | |
5429 | wxString * _result; | |
5430 | wxLog * _arg0; | |
5431 | PyObject * _argo0 = 0; | |
5432 | char *_kwnames[] = { "self", NULL }; | |
5433 | ||
5434 | self = self; | |
5435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0)) | |
5436 | return NULL; | |
5437 | if (_argo0) { | |
5438 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5439 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5440 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p."); | |
5441 | return NULL; | |
5442 | } | |
5443 | } | |
5444 | { | |
4268f798 | 5445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5446 | _result = new wxString (wxLog_TimeStamp(_arg0)); |
76bfdc78 | 5447 | |
4268f798 RD |
5448 | wxPyEndAllowThreads(__tstate); |
5449 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 | 5450 | }{ |
c8bc7bb8 | 5451 | #if wxUSE_UNICODE |
7e50db3f | 5452 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5453 | #else |
76bfdc78 | 5454 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 5455 | #endif |
76bfdc78 RD |
5456 | } |
5457 | { | |
5458 | delete _result; | |
5459 | } | |
5460 | return _resultobj; | |
5461 | } | |
5462 | ||
f6bcfd97 BP |
5463 | static void *SwigwxLogStderrTowxLog(void *ptr) { |
5464 | wxLogStderr *src; | |
5465 | wxLog *dest; | |
5466 | src = (wxLogStderr *) ptr; | |
5467 | dest = (wxLog *) src; | |
5468 | return (void *) dest; | |
5469 | } | |
5470 | ||
5471 | #define new_wxLogStderr() (new wxLogStderr()) | |
5472 | static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5473 | PyObject * _resultobj; |
f6bcfd97 BP |
5474 | wxLogStderr * _result; |
5475 | char *_kwnames[] = { NULL }; | |
5476 | char _ptemp[128]; | |
f0261a72 RD |
5477 | |
5478 | self = self; | |
f6bcfd97 | 5479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames)) |
f0261a72 | 5480 | return NULL; |
f0261a72 | 5481 | { |
4268f798 | 5482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5483 | _result = (wxLogStderr *)new_wxLogStderr(); |
f0261a72 | 5484 | |
4268f798 RD |
5485 | wxPyEndAllowThreads(__tstate); |
5486 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5487 | } if (_result) { |
5488 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p"); | |
5489 | _resultobj = Py_BuildValue("s",_ptemp); | |
5490 | } else { | |
5491 | Py_INCREF(Py_None); | |
5492 | _resultobj = Py_None; | |
5493 | } | |
f0261a72 RD |
5494 | return _resultobj; |
5495 | } | |
5496 | ||
f6bcfd97 BP |
5497 | static void *SwigwxLogTextCtrlTowxLog(void *ptr) { |
5498 | wxLogTextCtrl *src; | |
5499 | wxLog *dest; | |
5500 | src = (wxLogTextCtrl *) ptr; | |
5501 | dest = (wxLog *) src; | |
5502 | return (void *) dest; | |
5503 | } | |
5504 | ||
5505 | #define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0)) | |
5506 | static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
f0261a72 | 5507 | PyObject * _resultobj; |
f6bcfd97 BP |
5508 | wxLogTextCtrl * _result; |
5509 | wxTextCtrl * _arg0; | |
f0261a72 | 5510 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5511 | char *_kwnames[] = { "pTextCtrl", NULL }; |
5512 | char _ptemp[128]; | |
f0261a72 RD |
5513 | |
5514 | self = self; | |
f6bcfd97 | 5515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0)) |
f0261a72 RD |
5516 | return NULL; |
5517 | if (_argo0) { | |
5518 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5519 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) { |
5520 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p."); | |
f0261a72 RD |
5521 | return NULL; |
5522 | } | |
5523 | } | |
5524 | { | |
4268f798 | 5525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5526 | _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0); |
f0261a72 | 5527 | |
4268f798 RD |
5528 | wxPyEndAllowThreads(__tstate); |
5529 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5530 | } if (_result) { |
5531 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p"); | |
5532 | _resultobj = Py_BuildValue("s",_ptemp); | |
5533 | } else { | |
5534 | Py_INCREF(Py_None); | |
5535 | _resultobj = Py_None; | |
5536 | } | |
f0261a72 RD |
5537 | return _resultobj; |
5538 | } | |
5539 | ||
f6bcfd97 BP |
5540 | static void *SwigwxLogGuiTowxLog(void *ptr) { |
5541 | wxLogGui *src; | |
5542 | wxLog *dest; | |
5543 | src = (wxLogGui *) ptr; | |
5544 | dest = (wxLog *) src; | |
5545 | return (void *) dest; | |
5546 | } | |
5547 | ||
5548 | #define new_wxLogGui() (new wxLogGui()) | |
5549 | static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5550 | PyObject * _resultobj; |
f6bcfd97 | 5551 | wxLogGui * _result; |
b1462dfa RD |
5552 | char *_kwnames[] = { NULL }; |
5553 | char _ptemp[128]; | |
5554 | ||
5555 | self = self; | |
f6bcfd97 | 5556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames)) |
b1462dfa RD |
5557 | return NULL; |
5558 | { | |
4268f798 | 5559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5560 | _result = (wxLogGui *)new_wxLogGui(); |
b1462dfa | 5561 | |
4268f798 RD |
5562 | wxPyEndAllowThreads(__tstate); |
5563 | if (PyErr_Occurred()) return NULL; | |
b1462dfa | 5564 | } if (_result) { |
f6bcfd97 | 5565 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p"); |
b1462dfa RD |
5566 | _resultobj = Py_BuildValue("s",_ptemp); |
5567 | } else { | |
5568 | Py_INCREF(Py_None); | |
5569 | _resultobj = Py_None; | |
5570 | } | |
5571 | return _resultobj; | |
5572 | } | |
5573 | ||
f6bcfd97 BP |
5574 | static void *SwigwxLogWindowTowxLog(void *ptr) { |
5575 | wxLogWindow *src; | |
5576 | wxLog *dest; | |
5577 | src = (wxLogWindow *) ptr; | |
5578 | dest = (wxLog *) src; | |
5579 | return (void *) dest; | |
5580 | } | |
5581 | ||
5582 | #define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) | |
5583 | static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5584 | PyObject * _resultobj; |
f6bcfd97 BP |
5585 | wxLogWindow * _result; |
5586 | wxFrame * _arg0; | |
c8bc7bb8 | 5587 | wxString * _arg1; |
f6bcfd97 BP |
5588 | bool _arg2 = (bool ) TRUE; |
5589 | bool _arg3 = (bool ) TRUE; | |
b1462dfa | 5590 | PyObject * _argo0 = 0; |
c8bc7bb8 | 5591 | PyObject * _obj1 = 0; |
f6bcfd97 BP |
5592 | int tempbool2 = (int) TRUE; |
5593 | int tempbool3 = (int) TRUE; | |
5594 | char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL }; | |
5595 | char _ptemp[128]; | |
b1462dfa RD |
5596 | |
5597 | self = self; | |
c8bc7bb8 | 5598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ii:new_wxLogWindow",_kwnames,&_argo0,&_obj1,&tempbool2,&tempbool3)) |
b1462dfa RD |
5599 | return NULL; |
5600 | if (_argo0) { | |
5601 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5602 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) { |
5603 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p."); | |
b1462dfa RD |
5604 | return NULL; |
5605 | } | |
5606 | } | |
c8bc7bb8 RD |
5607 | { |
5608 | _arg1 = wxString_in_helper(_obj1); | |
5609 | if (_arg1 == NULL) | |
5610 | return NULL; | |
5611 | } | |
f6bcfd97 BP |
5612 | _arg2 = (bool ) tempbool2; |
5613 | _arg3 = (bool ) tempbool3; | |
b1462dfa | 5614 | { |
4268f798 | 5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5616 | _result = (wxLogWindow *)new_wxLogWindow(_arg0,*_arg1,_arg2,_arg3); |
b1462dfa | 5617 | |
4268f798 RD |
5618 | wxPyEndAllowThreads(__tstate); |
5619 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5620 | } if (_result) { |
5621 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p"); | |
5622 | _resultobj = Py_BuildValue("s",_ptemp); | |
5623 | } else { | |
5624 | Py_INCREF(Py_None); | |
5625 | _resultobj = Py_None; | |
5626 | } | |
c8bc7bb8 RD |
5627 | { |
5628 | if (_obj1) | |
5629 | delete _arg1; | |
5630 | } | |
b1462dfa RD |
5631 | return _resultobj; |
5632 | } | |
5633 | ||
f6bcfd97 BP |
5634 | #define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0)) |
5635 | static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5636 | PyObject * _resultobj; |
f6bcfd97 BP |
5637 | wxLogWindow * _arg0; |
5638 | bool _arg1 = (bool ) TRUE; | |
b1462dfa | 5639 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5640 | int tempbool1 = (int) TRUE; |
5641 | char *_kwnames[] = { "self","bShow", NULL }; | |
b1462dfa RD |
5642 | |
5643 | self = self; | |
f6bcfd97 | 5644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1)) |
b1462dfa RD |
5645 | return NULL; |
5646 | if (_argo0) { | |
5647 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5648 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5649 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5650 | return NULL; |
5651 | } | |
5652 | } | |
f6bcfd97 | 5653 | _arg1 = (bool ) tempbool1; |
b1462dfa | 5654 | { |
4268f798 | 5655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5656 | wxLogWindow_Show(_arg0,_arg1); |
b1462dfa | 5657 | |
4268f798 RD |
5658 | wxPyEndAllowThreads(__tstate); |
5659 | if (PyErr_Occurred()) return NULL; | |
b1462dfa RD |
5660 | } Py_INCREF(Py_None); |
5661 | _resultobj = Py_None; | |
5662 | return _resultobj; | |
5663 | } | |
5664 | ||
f6bcfd97 BP |
5665 | #define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame()) |
5666 | static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5667 | PyObject * _resultobj; |
f6bcfd97 BP |
5668 | wxFrame * _result; |
5669 | wxLogWindow * _arg0; | |
b1462dfa | 5670 | PyObject * _argo0 = 0; |
f6bcfd97 | 5671 | char *_kwnames[] = { "self", NULL }; |
b1462dfa RD |
5672 | |
5673 | self = self; | |
f6bcfd97 | 5674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0)) |
b1462dfa RD |
5675 | return NULL; |
5676 | if (_argo0) { | |
5677 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5678 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5679 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5680 | return NULL; |
5681 | } | |
5682 | } | |
b1462dfa | 5683 | { |
4268f798 | 5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5685 | _result = (wxFrame *)wxLogWindow_GetFrame(_arg0); |
b1462dfa | 5686 | |
4268f798 RD |
5687 | wxPyEndAllowThreads(__tstate); |
5688 | if (PyErr_Occurred()) return NULL; | |
9416aa89 | 5689 | }{ _resultobj = wxPyMake_wxObject(_result); } |
b1462dfa RD |
5690 | return _resultobj; |
5691 | } | |
5692 | ||
f6bcfd97 BP |
5693 | #define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog()) |
5694 | static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
b1462dfa | 5695 | PyObject * _resultobj; |
f6bcfd97 BP |
5696 | wxLog * _result; |
5697 | wxLogWindow * _arg0; | |
b1462dfa | 5698 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5699 | char *_kwnames[] = { "self", NULL }; |
5700 | char _ptemp[128]; | |
b1462dfa RD |
5701 | |
5702 | self = self; | |
f6bcfd97 | 5703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0)) |
b1462dfa RD |
5704 | return NULL; |
5705 | if (_argo0) { | |
5706 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5707 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5708 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p."); | |
b1462dfa RD |
5709 | return NULL; |
5710 | } | |
5711 | } | |
5712 | { | |
4268f798 | 5713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5714 | _result = (wxLog *)wxLogWindow_GetOldLog(_arg0); |
b1462dfa | 5715 | |
4268f798 RD |
5716 | wxPyEndAllowThreads(__tstate); |
5717 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5718 | } if (_result) { |
5719 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5720 | _resultobj = Py_BuildValue("s",_ptemp); | |
5721 | } else { | |
5722 | Py_INCREF(Py_None); | |
5723 | _resultobj = Py_None; | |
5724 | } | |
b1462dfa RD |
5725 | return _resultobj; |
5726 | } | |
5727 | ||
f6bcfd97 BP |
5728 | #define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) |
5729 | static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5730 | PyObject * _resultobj; |
f6bcfd97 BP |
5731 | bool _result; |
5732 | wxLogWindow * _arg0; | |
65dd82cb RD |
5733 | PyObject * _argo0 = 0; |
5734 | char *_kwnames[] = { "self", NULL }; | |
5735 | ||
5736 | self = self; | |
f6bcfd97 | 5737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0)) |
65dd82cb RD |
5738 | return NULL; |
5739 | if (_argo0) { | |
5740 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5741 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5742 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5743 | return NULL; |
5744 | } | |
5745 | } | |
5746 | { | |
4268f798 | 5747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5748 | _result = (bool )wxLogWindow_IsPassingMessages(_arg0); |
65dd82cb | 5749 | |
4268f798 RD |
5750 | wxPyEndAllowThreads(__tstate); |
5751 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 | 5752 | } _resultobj = Py_BuildValue("i",_result); |
65dd82cb RD |
5753 | return _resultobj; |
5754 | } | |
5755 | ||
f6bcfd97 BP |
5756 | #define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) |
5757 | static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
65dd82cb | 5758 | PyObject * _resultobj; |
f6bcfd97 BP |
5759 | wxLogWindow * _arg0; |
5760 | bool _arg1; | |
65dd82cb | 5761 | PyObject * _argo0 = 0; |
f6bcfd97 BP |
5762 | int tempbool1; |
5763 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
65dd82cb RD |
5764 | |
5765 | self = self; | |
f6bcfd97 | 5766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1)) |
65dd82cb RD |
5767 | return NULL; |
5768 | if (_argo0) { | |
5769 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
f6bcfd97 BP |
5770 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) { |
5771 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p."); | |
65dd82cb RD |
5772 | return NULL; |
5773 | } | |
5774 | } | |
f6bcfd97 | 5775 | _arg1 = (bool ) tempbool1; |
65dd82cb | 5776 | { |
4268f798 | 5777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5778 | wxLogWindow_PassMessages(_arg0,_arg1); |
65dd82cb | 5779 | |
4268f798 RD |
5780 | wxPyEndAllowThreads(__tstate); |
5781 | if (PyErr_Occurred()) return NULL; | |
f6bcfd97 BP |
5782 | } Py_INCREF(Py_None); |
5783 | _resultobj = Py_None; | |
65dd82cb RD |
5784 | return _resultobj; |
5785 | } | |
5786 | ||
76bfdc78 RD |
5787 | static void *SwigwxLogChainTowxLog(void *ptr) { |
5788 | wxLogChain *src; | |
5789 | wxLog *dest; | |
5790 | src = (wxLogChain *) ptr; | |
5791 | dest = (wxLog *) src; | |
5792 | return (void *) dest; | |
5793 | } | |
5794 | ||
5795 | #define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0)) | |
5796 | static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5797 | PyObject * _resultobj; | |
5798 | wxLogChain * _result; | |
5799 | wxLog * _arg0; | |
5800 | PyObject * _argo0 = 0; | |
5801 | char *_kwnames[] = { "logger", NULL }; | |
5802 | char _ptemp[128]; | |
5803 | ||
5804 | self = self; | |
5805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0)) | |
5806 | return NULL; | |
5807 | if (_argo0) { | |
5808 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5809 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) { | |
5810 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p."); | |
5811 | return NULL; | |
5812 | } | |
5813 | } | |
5814 | { | |
4268f798 | 5815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5816 | _result = (wxLogChain *)new_wxLogChain(_arg0); |
76bfdc78 | 5817 | |
4268f798 RD |
5818 | wxPyEndAllowThreads(__tstate); |
5819 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5820 | } if (_result) { |
5821 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p"); | |
5822 | _resultobj = Py_BuildValue("s",_ptemp); | |
5823 | } else { | |
5824 | Py_INCREF(Py_None); | |
5825 | _resultobj = Py_None; | |
5826 | } | |
5827 | return _resultobj; | |
5828 | } | |
5829 | ||
5830 | #define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0)) | |
5831 | static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5832 | PyObject * _resultobj; | |
5833 | wxLogChain * _arg0; | |
5834 | wxLog * _arg1; | |
5835 | PyObject * _argo0 = 0; | |
5836 | PyObject * _argo1 = 0; | |
5837 | char *_kwnames[] = { "self","logger", NULL }; | |
5838 | ||
5839 | self = self; | |
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1)) | |
5841 | return NULL; | |
5842 | if (_argo0) { | |
5843 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5844 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5845 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p."); | |
5846 | return NULL; | |
5847 | } | |
5848 | } | |
5849 | if (_argo1) { | |
5850 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
5851 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) { | |
5852 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p."); | |
5853 | return NULL; | |
5854 | } | |
5855 | } | |
5856 | { | |
4268f798 | 5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5858 | wxLogChain_SetLog(_arg0,_arg1); |
76bfdc78 | 5859 | |
4268f798 RD |
5860 | wxPyEndAllowThreads(__tstate); |
5861 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5862 | } Py_INCREF(Py_None); |
5863 | _resultobj = Py_None; | |
5864 | return _resultobj; | |
5865 | } | |
5866 | ||
5867 | #define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0)) | |
5868 | static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5869 | PyObject * _resultobj; | |
5870 | wxLogChain * _arg0; | |
5871 | bool _arg1; | |
5872 | PyObject * _argo0 = 0; | |
5873 | int tempbool1; | |
5874 | char *_kwnames[] = { "self","bDoPass", NULL }; | |
5875 | ||
5876 | self = self; | |
5877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1)) | |
5878 | return NULL; | |
5879 | if (_argo0) { | |
5880 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5881 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5882 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p."); | |
5883 | return NULL; | |
5884 | } | |
5885 | } | |
5886 | _arg1 = (bool ) tempbool1; | |
5887 | { | |
4268f798 | 5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5889 | wxLogChain_PassMessages(_arg0,_arg1); |
76bfdc78 | 5890 | |
4268f798 RD |
5891 | wxPyEndAllowThreads(__tstate); |
5892 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5893 | } Py_INCREF(Py_None); |
5894 | _resultobj = Py_None; | |
5895 | return _resultobj; | |
5896 | } | |
5897 | ||
5898 | #define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages()) | |
5899 | static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5900 | PyObject * _resultobj; | |
5901 | bool _result; | |
5902 | wxLogChain * _arg0; | |
5903 | PyObject * _argo0 = 0; | |
5904 | char *_kwnames[] = { "self", NULL }; | |
5905 | ||
5906 | self = self; | |
5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0)) | |
5908 | return NULL; | |
5909 | if (_argo0) { | |
5910 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5911 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5912 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p."); | |
5913 | return NULL; | |
5914 | } | |
5915 | } | |
5916 | { | |
4268f798 | 5917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5918 | _result = (bool )wxLogChain_IsPassingMessages(_arg0); |
76bfdc78 | 5919 | |
4268f798 RD |
5920 | wxPyEndAllowThreads(__tstate); |
5921 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5922 | } _resultobj = Py_BuildValue("i",_result); |
5923 | return _resultobj; | |
5924 | } | |
5925 | ||
5926 | #define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog()) | |
5927 | static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5928 | PyObject * _resultobj; | |
5929 | wxLog * _result; | |
5930 | wxLogChain * _arg0; | |
5931 | PyObject * _argo0 = 0; | |
5932 | char *_kwnames[] = { "self", NULL }; | |
5933 | char _ptemp[128]; | |
5934 | ||
5935 | self = self; | |
5936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0)) | |
5937 | return NULL; | |
5938 | if (_argo0) { | |
5939 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5940 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) { | |
5941 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p."); | |
5942 | return NULL; | |
5943 | } | |
5944 | } | |
5945 | { | |
4268f798 | 5946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 5947 | _result = (wxLog *)wxLogChain_GetOldLog(_arg0); |
76bfdc78 | 5948 | |
4268f798 RD |
5949 | wxPyEndAllowThreads(__tstate); |
5950 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
5951 | } if (_result) { |
5952 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p"); | |
5953 | _resultobj = Py_BuildValue("s",_ptemp); | |
5954 | } else { | |
5955 | Py_INCREF(Py_None); | |
5956 | _resultobj = Py_None; | |
5957 | } | |
5958 | return _resultobj; | |
5959 | } | |
5960 | ||
19e30148 RD |
5961 | #define new_wxLogNull() (new wxLogNull()) |
5962 | static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5963 | PyObject * _resultobj; | |
5964 | wxLogNull * _result; | |
5965 | char *_kwnames[] = { NULL }; | |
5966 | char _ptemp[128]; | |
5967 | ||
5968 | self = self; | |
5969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames)) | |
5970 | return NULL; | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5973 | _result = (wxLogNull *)new_wxLogNull(); | |
5974 | ||
5975 | wxPyEndAllowThreads(__tstate); | |
5976 | if (PyErr_Occurred()) return NULL; | |
5977 | } if (_result) { | |
5978 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p"); | |
5979 | _resultobj = Py_BuildValue("s",_ptemp); | |
5980 | } else { | |
5981 | Py_INCREF(Py_None); | |
5982 | _resultobj = Py_None; | |
5983 | } | |
5984 | return _resultobj; | |
5985 | } | |
5986 | ||
5987 | #define delete_wxLogNull(_swigobj) (delete _swigobj) | |
5988 | static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5989 | PyObject * _resultobj; | |
5990 | wxLogNull * _arg0; | |
5991 | PyObject * _argo0 = 0; | |
5992 | char *_kwnames[] = { "self", NULL }; | |
5993 | ||
5994 | self = self; | |
5995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0)) | |
5996 | return NULL; | |
5997 | if (_argo0) { | |
5998 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
5999 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) { | |
6000 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p."); | |
6001 | return NULL; | |
6002 | } | |
6003 | } | |
6004 | { | |
6005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6006 | delete_wxLogNull(_arg0); | |
6007 | ||
6008 | wxPyEndAllowThreads(__tstate); | |
6009 | if (PyErr_Occurred()) return NULL; | |
6010 | } Py_INCREF(Py_None); | |
6011 | _resultobj = Py_None; | |
6012 | return _resultobj; | |
6013 | } | |
6014 | ||
76bfdc78 RD |
6015 | static void *SwigwxPyLogTowxLog(void *ptr) { |
6016 | wxPyLog *src; | |
6017 | wxLog *dest; | |
6018 | src = (wxPyLog *) ptr; | |
6019 | dest = (wxLog *) src; | |
6020 | return (void *) dest; | |
6021 | } | |
6022 | ||
6023 | #define new_wxPyLog() (new wxPyLog()) | |
6024 | static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6025 | PyObject * _resultobj; | |
6026 | wxPyLog * _result; | |
6027 | char *_kwnames[] = { NULL }; | |
6028 | char _ptemp[128]; | |
6029 | ||
6030 | self = self; | |
6031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames)) | |
6032 | return NULL; | |
6033 | { | |
4268f798 | 6034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6035 | _result = (wxPyLog *)new_wxPyLog(); |
76bfdc78 | 6036 | |
4268f798 RD |
6037 | wxPyEndAllowThreads(__tstate); |
6038 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
6039 | } if (_result) { |
6040 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p"); | |
6041 | _resultobj = Py_BuildValue("s",_ptemp); | |
6042 | } else { | |
6043 | Py_INCREF(Py_None); | |
6044 | _resultobj = Py_None; | |
6045 | } | |
6046 | return _resultobj; | |
6047 | } | |
6048 | ||
0122b7e3 RD |
6049 | #define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6050 | static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
76bfdc78 RD |
6051 | PyObject * _resultobj; |
6052 | wxPyLog * _arg0; | |
6053 | PyObject * _arg1; | |
6054 | PyObject * _arg2; | |
6055 | PyObject * _argo0 = 0; | |
6056 | PyObject * _obj1 = 0; | |
6057 | PyObject * _obj2 = 0; | |
6058 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6059 | ||
6060 | self = self; | |
0122b7e3 | 6061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
76bfdc78 RD |
6062 | return NULL; |
6063 | if (_argo0) { | |
6064 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6065 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
0122b7e3 | 6066 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p."); |
76bfdc78 RD |
6067 | return NULL; |
6068 | } | |
6069 | } | |
6070 | { | |
6071 | _arg1 = _obj1; | |
6072 | } | |
6073 | { | |
6074 | _arg2 = _obj2; | |
6075 | } | |
6076 | { | |
4268f798 | 6077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6078 | wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2); |
76bfdc78 | 6079 | |
4268f798 RD |
6080 | wxPyEndAllowThreads(__tstate); |
6081 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
6082 | } Py_INCREF(Py_None); |
6083 | _resultobj = Py_None; | |
6084 | return _resultobj; | |
6085 | } | |
6086 | ||
6087 | static void wxPyLog_Destroy(wxPyLog *self) { delete self; } | |
6088 | static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject * _resultobj; | |
6090 | wxPyLog * _arg0; | |
6091 | PyObject * _argo0 = 0; | |
6092 | char *_kwnames[] = { "self", NULL }; | |
6093 | ||
6094 | self = self; | |
6095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0)) | |
6096 | return NULL; | |
6097 | if (_argo0) { | |
6098 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6099 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) { | |
6100 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p."); | |
6101 | return NULL; | |
6102 | } | |
6103 | } | |
6104 | { | |
4268f798 | 6105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6106 | wxPyLog_Destroy(_arg0); |
76bfdc78 | 6107 | |
4268f798 RD |
6108 | wxPyEndAllowThreads(__tstate); |
6109 | if (PyErr_Occurred()) return NULL; | |
76bfdc78 RD |
6110 | } Py_INCREF(Py_None); |
6111 | _resultobj = Py_None; | |
6112 | return _resultobj; | |
6113 | } | |
6114 | ||
c368d904 RD |
6115 | static void *SwigwxProcessEventTowxEvent(void *ptr) { |
6116 | wxProcessEvent *src; | |
6117 | wxEvent *dest; | |
6118 | src = (wxProcessEvent *) ptr; | |
6119 | dest = (wxEvent *) src; | |
6120 | return (void *) dest; | |
6121 | } | |
6122 | ||
9416aa89 RD |
6123 | static void *SwigwxProcessEventTowxObject(void *ptr) { |
6124 | wxProcessEvent *src; | |
6125 | wxObject *dest; | |
6126 | src = (wxProcessEvent *) ptr; | |
6127 | dest = (wxObject *) src; | |
6128 | return (void *) dest; | |
6129 | } | |
6130 | ||
c368d904 RD |
6131 | #define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2)) |
6132 | static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6133 | PyObject * _resultobj; | |
6134 | wxProcessEvent * _result; | |
6135 | int _arg0 = (int ) 0; | |
6136 | int _arg1 = (int ) 0; | |
6137 | int _arg2 = (int ) 0; | |
6138 | char *_kwnames[] = { "id","pid","exitcode", NULL }; | |
6139 | char _ptemp[128]; | |
6140 | ||
6141 | self = self; | |
6142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2)) | |
6143 | return NULL; | |
6144 | { | |
4268f798 | 6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6146 | _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2); |
c368d904 | 6147 | |
4268f798 RD |
6148 | wxPyEndAllowThreads(__tstate); |
6149 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6150 | } if (_result) { |
6151 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p"); | |
6152 | _resultobj = Py_BuildValue("s",_ptemp); | |
6153 | } else { | |
6154 | Py_INCREF(Py_None); | |
6155 | _resultobj = Py_None; | |
6156 | } | |
6157 | return _resultobj; | |
6158 | } | |
6159 | ||
6160 | #define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid()) | |
6161 | static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6162 | PyObject * _resultobj; | |
6163 | int _result; | |
6164 | wxProcessEvent * _arg0; | |
6165 | PyObject * _argo0 = 0; | |
6166 | char *_kwnames[] = { "self", NULL }; | |
6167 | ||
6168 | self = self; | |
6169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0)) | |
6170 | return NULL; | |
6171 | if (_argo0) { | |
6172 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6173 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6174 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p."); | |
6175 | return NULL; | |
6176 | } | |
6177 | } | |
6178 | { | |
4268f798 | 6179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6180 | _result = (int )wxProcessEvent_GetPid(_arg0); |
c368d904 | 6181 | |
4268f798 RD |
6182 | wxPyEndAllowThreads(__tstate); |
6183 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6184 | } _resultobj = Py_BuildValue("i",_result); |
6185 | return _resultobj; | |
6186 | } | |
6187 | ||
6188 | #define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode()) | |
6189 | static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6190 | PyObject * _resultobj; | |
6191 | int _result; | |
6192 | wxProcessEvent * _arg0; | |
6193 | PyObject * _argo0 = 0; | |
6194 | char *_kwnames[] = { "self", NULL }; | |
6195 | ||
6196 | self = self; | |
6197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0)) | |
6198 | return NULL; | |
6199 | if (_argo0) { | |
6200 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6201 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6202 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p."); | |
6203 | return NULL; | |
6204 | } | |
6205 | } | |
6206 | { | |
4268f798 | 6207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6208 | _result = (int )wxProcessEvent_GetExitCode(_arg0); |
c368d904 | 6209 | |
4268f798 RD |
6210 | wxPyEndAllowThreads(__tstate); |
6211 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6212 | } _resultobj = Py_BuildValue("i",_result); |
6213 | return _resultobj; | |
6214 | } | |
6215 | ||
6216 | #define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval) | |
6217 | static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6218 | PyObject * _resultobj; | |
6219 | int _result; | |
6220 | wxProcessEvent * _arg0; | |
6221 | int _arg1; | |
6222 | PyObject * _argo0 = 0; | |
6223 | char *_kwnames[] = { "self","m_pid", NULL }; | |
6224 | ||
6225 | self = self; | |
6226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1)) | |
6227 | return NULL; | |
6228 | if (_argo0) { | |
6229 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6230 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6231 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p."); | |
6232 | return NULL; | |
6233 | } | |
6234 | } | |
6235 | { | |
4268f798 | 6236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6237 | _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1); |
c368d904 | 6238 | |
4268f798 RD |
6239 | wxPyEndAllowThreads(__tstate); |
6240 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6241 | } _resultobj = Py_BuildValue("i",_result); |
6242 | return _resultobj; | |
6243 | } | |
6244 | ||
6245 | #define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid) | |
6246 | static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6247 | PyObject * _resultobj; | |
6248 | int _result; | |
6249 | wxProcessEvent * _arg0; | |
6250 | PyObject * _argo0 = 0; | |
6251 | char *_kwnames[] = { "self", NULL }; | |
6252 | ||
6253 | self = self; | |
6254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0)) | |
6255 | return NULL; | |
6256 | if (_argo0) { | |
6257 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6258 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6259 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p."); | |
6260 | return NULL; | |
6261 | } | |
6262 | } | |
6263 | { | |
4268f798 | 6264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6265 | _result = (int )wxProcessEvent_m_pid_get(_arg0); |
c368d904 | 6266 | |
4268f798 RD |
6267 | wxPyEndAllowThreads(__tstate); |
6268 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6269 | } _resultobj = Py_BuildValue("i",_result); |
6270 | return _resultobj; | |
6271 | } | |
6272 | ||
6273 | #define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval) | |
6274 | static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6275 | PyObject * _resultobj; | |
6276 | int _result; | |
6277 | wxProcessEvent * _arg0; | |
6278 | int _arg1; | |
6279 | PyObject * _argo0 = 0; | |
6280 | char *_kwnames[] = { "self","m_exitcode", NULL }; | |
6281 | ||
6282 | self = self; | |
6283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1)) | |
6284 | return NULL; | |
6285 | if (_argo0) { | |
6286 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6287 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6288 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p."); | |
6289 | return NULL; | |
6290 | } | |
6291 | } | |
6292 | { | |
4268f798 | 6293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6294 | _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1); |
c368d904 | 6295 | |
4268f798 RD |
6296 | wxPyEndAllowThreads(__tstate); |
6297 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6298 | } _resultobj = Py_BuildValue("i",_result); |
6299 | return _resultobj; | |
6300 | } | |
6301 | ||
6302 | #define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode) | |
6303 | static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6304 | PyObject * _resultobj; | |
6305 | int _result; | |
6306 | wxProcessEvent * _arg0; | |
6307 | PyObject * _argo0 = 0; | |
6308 | char *_kwnames[] = { "self", NULL }; | |
6309 | ||
6310 | self = self; | |
6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0)) | |
6312 | return NULL; | |
6313 | if (_argo0) { | |
6314 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6315 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) { | |
6316 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p."); | |
6317 | return NULL; | |
6318 | } | |
6319 | } | |
6320 | { | |
4268f798 | 6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6322 | _result = (int )wxProcessEvent_m_exitcode_get(_arg0); |
c368d904 | 6323 | |
4268f798 RD |
6324 | wxPyEndAllowThreads(__tstate); |
6325 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6326 | } _resultobj = Py_BuildValue("i",_result); |
6327 | return _resultobj; | |
6328 | } | |
6329 | ||
6330 | static void *SwigwxPyProcessTowxEvtHandler(void *ptr) { | |
6331 | wxPyProcess *src; | |
6332 | wxEvtHandler *dest; | |
6333 | src = (wxPyProcess *) ptr; | |
6334 | dest = (wxEvtHandler *) src; | |
6335 | return (void *) dest; | |
6336 | } | |
6337 | ||
9416aa89 RD |
6338 | static void *SwigwxPyProcessTowxObject(void *ptr) { |
6339 | wxPyProcess *src; | |
6340 | wxObject *dest; | |
6341 | src = (wxPyProcess *) ptr; | |
6342 | dest = (wxObject *) src; | |
6343 | return (void *) dest; | |
6344 | } | |
6345 | ||
814f509c RD |
6346 | static PyObject *_wrap_wxProcess_Kill(PyObject *self, PyObject *args, PyObject *kwargs) { |
6347 | PyObject * _resultobj; | |
6348 | wxKillError _result; | |
6349 | int _arg0; | |
1883480f | 6350 | wxSignal _arg1 = (wxSignal ) (wxSIGTERM); |
814f509c RD |
6351 | char *_kwnames[] = { "pid","sig", NULL }; |
6352 | ||
6353 | self = self; | |
1883480f | 6354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i|i:wxProcess_Kill",_kwnames,&_arg0,&_arg1)) |
814f509c | 6355 | return NULL; |
814f509c RD |
6356 | { |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1883480f | 6358 | _result = (wxKillError )wxPyProcess::Kill(_arg0,_arg1); |
814f509c RD |
6359 | |
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) return NULL; | |
6362 | } _resultobj = Py_BuildValue("i",_result); | |
6363 | return _resultobj; | |
6364 | } | |
6365 | ||
6366 | static PyObject *_wrap_wxProcess_Exists(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6367 | PyObject * _resultobj; | |
6368 | bool _result; | |
6369 | int _arg0; | |
6370 | char *_kwnames[] = { "pid", NULL }; | |
6371 | ||
6372 | self = self; | |
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxProcess_Exists",_kwnames,&_arg0)) | |
6374 | return NULL; | |
6375 | { | |
6376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6377 | _result = (bool )wxPyProcess::Exists(_arg0); | |
6378 | ||
6379 | wxPyEndAllowThreads(__tstate); | |
6380 | if (PyErr_Occurred()) return NULL; | |
6381 | } _resultobj = Py_BuildValue("i",_result); | |
6382 | return _resultobj; | |
6383 | } | |
6384 | ||
6385 | static PyObject *_wrap_wxProcess_Open(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6386 | PyObject * _resultobj; | |
6387 | wxPyProcess * _result; | |
6388 | wxString * _arg0; | |
e626d7c7 | 6389 | int _arg1 = (int ) wxEXEC_ASYNC; |
814f509c | 6390 | PyObject * _obj0 = 0; |
e626d7c7 | 6391 | char *_kwnames[] = { "cmd","flags", NULL }; |
814f509c RD |
6392 | char _ptemp[128]; |
6393 | ||
6394 | self = self; | |
e626d7c7 | 6395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxProcess_Open",_kwnames,&_obj0,&_arg1)) |
814f509c RD |
6396 | return NULL; |
6397 | { | |
6398 | _arg0 = wxString_in_helper(_obj0); | |
6399 | if (_arg0 == NULL) | |
6400 | return NULL; | |
6401 | } | |
6402 | { | |
6403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e626d7c7 | 6404 | _result = (wxPyProcess *)wxPyProcess::Open(*_arg0,_arg1); |
814f509c RD |
6405 | |
6406 | wxPyEndAllowThreads(__tstate); | |
6407 | if (PyErr_Occurred()) return NULL; | |
6408 | } if (_result) { | |
6409 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6410 | _resultobj = Py_BuildValue("s",_ptemp); | |
6411 | } else { | |
6412 | Py_INCREF(Py_None); | |
6413 | _resultobj = Py_None; | |
6414 | } | |
6415 | { | |
6416 | if (_obj0) | |
6417 | delete _arg0; | |
6418 | } | |
6419 | return _resultobj; | |
6420 | } | |
6421 | ||
c368d904 RD |
6422 | #define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1)) |
6423 | static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6424 | PyObject * _resultobj; | |
6425 | wxPyProcess * _result; | |
6426 | wxEvtHandler * _arg0 = (wxEvtHandler *) NULL; | |
6427 | int _arg1 = (int ) -1; | |
6428 | PyObject * _argo0 = 0; | |
6429 | char *_kwnames[] = { "parent","id", NULL }; | |
6430 | char _ptemp[128]; | |
6431 | ||
6432 | self = self; | |
6433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1)) | |
6434 | return NULL; | |
6435 | if (_argo0) { | |
6436 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6437 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) { | |
6438 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p."); | |
6439 | return NULL; | |
6440 | } | |
6441 | } | |
6442 | { | |
4268f798 | 6443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6444 | _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1); |
c368d904 | 6445 | |
4268f798 RD |
6446 | wxPyEndAllowThreads(__tstate); |
6447 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6448 | } if (_result) { |
6449 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p"); | |
6450 | _resultobj = Py_BuildValue("s",_ptemp); | |
6451 | } else { | |
6452 | Py_INCREF(Py_None); | |
6453 | _resultobj = Py_None; | |
6454 | } | |
6455 | return _resultobj; | |
6456 | } | |
6457 | ||
6458 | static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; } | |
6459 | static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6460 | PyObject * _resultobj; | |
6461 | wxPyProcess * _arg0; | |
6462 | PyObject * _argo0 = 0; | |
6463 | char *_kwnames[] = { "self", NULL }; | |
6464 | ||
6465 | self = self; | |
6466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0)) | |
6467 | return NULL; | |
6468 | if (_argo0) { | |
6469 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6470 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6471 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p."); | |
6472 | return NULL; | |
6473 | } | |
6474 | } | |
6475 | { | |
4268f798 | 6476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6477 | wxPyProcess_Destroy(_arg0); |
c368d904 | 6478 | |
4268f798 RD |
6479 | wxPyEndAllowThreads(__tstate); |
6480 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6481 | } Py_INCREF(Py_None); |
6482 | _resultobj = Py_None; | |
6483 | return _resultobj; | |
6484 | } | |
6485 | ||
0122b7e3 RD |
6486 | #define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) |
6487 | static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
c368d904 RD |
6488 | PyObject * _resultobj; |
6489 | wxPyProcess * _arg0; | |
6490 | PyObject * _arg1; | |
6491 | PyObject * _arg2; | |
6492 | PyObject * _argo0 = 0; | |
6493 | PyObject * _obj1 = 0; | |
6494 | PyObject * _obj2 = 0; | |
6495 | char *_kwnames[] = { "self","self","_class", NULL }; | |
6496 | ||
6497 | self = self; | |
0122b7e3 | 6498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) |
c368d904 RD |
6499 | return NULL; |
6500 | if (_argo0) { | |
6501 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6502 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
0122b7e3 | 6503 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p."); |
c368d904 RD |
6504 | return NULL; |
6505 | } | |
6506 | } | |
6507 | { | |
6508 | _arg1 = _obj1; | |
6509 | } | |
6510 | { | |
6511 | _arg2 = _obj2; | |
6512 | } | |
6513 | { | |
4268f798 | 6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6515 | wxProcess__setCallbackInfo(_arg0,_arg1,_arg2); |
c368d904 | 6516 | |
4268f798 RD |
6517 | wxPyEndAllowThreads(__tstate); |
6518 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6519 | } Py_INCREF(Py_None); |
6520 | _resultobj = Py_None; | |
6521 | return _resultobj; | |
6522 | } | |
6523 | ||
6524 | #define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1)) | |
6525 | static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6526 | PyObject * _resultobj; | |
6527 | wxPyProcess * _arg0; | |
6528 | int _arg1; | |
6529 | int _arg2; | |
6530 | PyObject * _argo0 = 0; | |
6531 | char *_kwnames[] = { "self","pid","status", NULL }; | |
6532 | ||
6533 | self = self; | |
6534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2)) | |
6535 | return NULL; | |
6536 | if (_argo0) { | |
6537 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6538 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6539 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p."); | |
6540 | return NULL; | |
6541 | } | |
6542 | } | |
6543 | { | |
4268f798 | 6544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6545 | wxProcess_base_OnTerminate(_arg0,_arg1,_arg2); |
c368d904 | 6546 | |
4268f798 RD |
6547 | wxPyEndAllowThreads(__tstate); |
6548 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6549 | } Py_INCREF(Py_None); |
6550 | _resultobj = Py_None; | |
6551 | return _resultobj; | |
6552 | } | |
6553 | ||
6554 | #define wxProcess_Redirect(_swigobj) (_swigobj->Redirect()) | |
6555 | static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6556 | PyObject * _resultobj; | |
6557 | wxPyProcess * _arg0; | |
6558 | PyObject * _argo0 = 0; | |
6559 | char *_kwnames[] = { "self", NULL }; | |
6560 | ||
6561 | self = self; | |
6562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0)) | |
6563 | return NULL; | |
6564 | if (_argo0) { | |
6565 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6566 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p."); | |
6568 | return NULL; | |
6569 | } | |
6570 | } | |
6571 | { | |
4268f798 | 6572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6573 | wxProcess_Redirect(_arg0); |
c368d904 | 6574 | |
4268f798 RD |
6575 | wxPyEndAllowThreads(__tstate); |
6576 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6577 | } Py_INCREF(Py_None); |
6578 | _resultobj = Py_None; | |
6579 | return _resultobj; | |
6580 | } | |
6581 | ||
6582 | #define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected()) | |
6583 | static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6584 | PyObject * _resultobj; | |
6585 | bool _result; | |
6586 | wxPyProcess * _arg0; | |
6587 | PyObject * _argo0 = 0; | |
6588 | char *_kwnames[] = { "self", NULL }; | |
6589 | ||
6590 | self = self; | |
6591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0)) | |
6592 | return NULL; | |
6593 | if (_argo0) { | |
6594 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6595 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6596 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p."); | |
6597 | return NULL; | |
6598 | } | |
6599 | } | |
6600 | { | |
4268f798 | 6601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6602 | _result = (bool )wxProcess_IsRedirected(_arg0); |
c368d904 | 6603 | |
4268f798 RD |
6604 | wxPyEndAllowThreads(__tstate); |
6605 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6606 | } _resultobj = Py_BuildValue("i",_result); |
6607 | return _resultobj; | |
6608 | } | |
6609 | ||
6610 | #define wxProcess_Detach(_swigobj) (_swigobj->Detach()) | |
6611 | static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6612 | PyObject * _resultobj; | |
6613 | wxPyProcess * _arg0; | |
6614 | PyObject * _argo0 = 0; | |
6615 | char *_kwnames[] = { "self", NULL }; | |
6616 | ||
6617 | self = self; | |
6618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0)) | |
6619 | return NULL; | |
6620 | if (_argo0) { | |
6621 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6622 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6623 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p."); | |
6624 | return NULL; | |
6625 | } | |
6626 | } | |
6627 | { | |
4268f798 | 6628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6629 | wxProcess_Detach(_arg0); |
c368d904 | 6630 | |
4268f798 RD |
6631 | wxPyEndAllowThreads(__tstate); |
6632 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6633 | } Py_INCREF(Py_None); |
6634 | _resultobj = Py_None; | |
6635 | return _resultobj; | |
6636 | } | |
6637 | ||
6638 | #define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream()) | |
6639 | static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6640 | PyObject * _resultobj; | |
6641 | wxInputStream * _result; | |
6642 | wxPyProcess * _arg0; | |
6643 | PyObject * _argo0 = 0; | |
6644 | char *_kwnames[] = { "self", NULL }; | |
6645 | ||
6646 | self = self; | |
6647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0)) | |
6648 | return NULL; | |
6649 | if (_argo0) { | |
6650 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6651 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6652 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p."); | |
6653 | return NULL; | |
6654 | } | |
6655 | } | |
6656 | { | |
4268f798 | 6657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6658 | _result = (wxInputStream *)wxProcess_GetInputStream(_arg0); |
c368d904 | 6659 | |
4268f798 RD |
6660 | wxPyEndAllowThreads(__tstate); |
6661 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6662 | }{ |
6663 | wxPyInputStream * _ptr = NULL; | |
6664 | ||
6665 | if (_result) { | |
6666 | _ptr = new wxPyInputStream(_result); | |
6667 | } | |
7e50db3f | 6668 | _resultobj = wxPyConstructObject(_ptr, wxT("wxInputStream"), TRUE); |
c368d904 RD |
6669 | } |
6670 | return _resultobj; | |
6671 | } | |
6672 | ||
6673 | #define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream()) | |
6674 | static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6675 | PyObject * _resultobj; | |
6676 | wxInputStream * _result; | |
6677 | wxPyProcess * _arg0; | |
6678 | PyObject * _argo0 = 0; | |
6679 | char *_kwnames[] = { "self", NULL }; | |
6680 | ||
6681 | self = self; | |
6682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0)) | |
6683 | return NULL; | |
6684 | if (_argo0) { | |
6685 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6686 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6687 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p."); | |
6688 | return NULL; | |
6689 | } | |
6690 | } | |
6691 | { | |
4268f798 | 6692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6693 | _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0); |
c368d904 | 6694 | |
4268f798 RD |
6695 | wxPyEndAllowThreads(__tstate); |
6696 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6697 | }{ |
6698 | wxPyInputStream * _ptr = NULL; | |
6699 | ||
6700 | if (_result) { | |
6701 | _ptr = new wxPyInputStream(_result); | |
6702 | } | |
7e50db3f | 6703 | _resultobj = wxPyConstructObject(_ptr, wxT("wxInputStream"), TRUE); |
c368d904 RD |
6704 | } |
6705 | return _resultobj; | |
6706 | } | |
6707 | ||
6708 | #define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream()) | |
6709 | static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6710 | PyObject * _resultobj; | |
6711 | wxOutputStream * _result; | |
6712 | wxPyProcess * _arg0; | |
6713 | PyObject * _argo0 = 0; | |
6714 | char *_kwnames[] = { "self", NULL }; | |
6715 | char _ptemp[128]; | |
6716 | ||
6717 | self = self; | |
6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0)) | |
6719 | return NULL; | |
6720 | if (_argo0) { | |
6721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p."); | |
6724 | return NULL; | |
6725 | } | |
6726 | } | |
6727 | { | |
4268f798 | 6728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6729 | _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0); |
c368d904 | 6730 | |
4268f798 RD |
6731 | wxPyEndAllowThreads(__tstate); |
6732 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6733 | } if (_result) { |
6734 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p"); | |
6735 | _resultobj = Py_BuildValue("s",_ptemp); | |
6736 | } else { | |
6737 | Py_INCREF(Py_None); | |
6738 | _resultobj = Py_None; | |
6739 | } | |
6740 | return _resultobj; | |
6741 | } | |
6742 | ||
6743 | #define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput()) | |
6744 | static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6745 | PyObject * _resultobj; | |
6746 | wxPyProcess * _arg0; | |
6747 | PyObject * _argo0 = 0; | |
6748 | char *_kwnames[] = { "self", NULL }; | |
6749 | ||
6750 | self = self; | |
6751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0)) | |
6752 | return NULL; | |
6753 | if (_argo0) { | |
6754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p."); | |
6757 | return NULL; | |
6758 | } | |
6759 | } | |
6760 | { | |
4268f798 | 6761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6762 | wxProcess_CloseOutput(_arg0); |
c368d904 | 6763 | |
4268f798 RD |
6764 | wxPyEndAllowThreads(__tstate); |
6765 | if (PyErr_Occurred()) return NULL; | |
c368d904 RD |
6766 | } Py_INCREF(Py_None); |
6767 | _resultobj = Py_None; | |
6768 | return _resultobj; | |
6769 | } | |
6770 | ||
85260f24 RD |
6771 | #define wxProcess_IsInputOpened(_swigobj) (_swigobj->IsInputOpened()) |
6772 | static PyObject *_wrap_wxProcess_IsInputOpened(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6773 | PyObject * _resultobj; | |
6774 | bool _result; | |
6775 | wxPyProcess * _arg0; | |
6776 | PyObject * _argo0 = 0; | |
6777 | char *_kwnames[] = { "self", NULL }; | |
6778 | ||
6779 | self = self; | |
6780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputOpened",_kwnames,&_argo0)) | |
6781 | return NULL; | |
6782 | if (_argo0) { | |
6783 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6784 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6785 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputOpened. Expected _wxPyProcess_p."); | |
6786 | return NULL; | |
6787 | } | |
6788 | } | |
6789 | { | |
6790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6791 | _result = (bool )wxProcess_IsInputOpened(_arg0); | |
6792 | ||
6793 | wxPyEndAllowThreads(__tstate); | |
6794 | if (PyErr_Occurred()) return NULL; | |
6795 | } _resultobj = Py_BuildValue("i",_result); | |
6796 | return _resultobj; | |
6797 | } | |
6798 | ||
6799 | #define wxProcess_IsInputAvailable(_swigobj) (_swigobj->IsInputAvailable()) | |
6800 | static PyObject *_wrap_wxProcess_IsInputAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6801 | PyObject * _resultobj; | |
6802 | bool _result; | |
6803 | wxPyProcess * _arg0; | |
6804 | PyObject * _argo0 = 0; | |
6805 | char *_kwnames[] = { "self", NULL }; | |
6806 | ||
6807 | self = self; | |
6808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsInputAvailable",_kwnames,&_argo0)) | |
6809 | return NULL; | |
6810 | if (_argo0) { | |
6811 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6812 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6813 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsInputAvailable. Expected _wxPyProcess_p."); | |
6814 | return NULL; | |
6815 | } | |
6816 | } | |
6817 | { | |
6818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6819 | _result = (bool )wxProcess_IsInputAvailable(_arg0); | |
6820 | ||
6821 | wxPyEndAllowThreads(__tstate); | |
6822 | if (PyErr_Occurred()) return NULL; | |
6823 | } _resultobj = Py_BuildValue("i",_result); | |
6824 | return _resultobj; | |
6825 | } | |
6826 | ||
6827 | #define wxProcess_IsErrorAvailable(_swigobj) (_swigobj->IsErrorAvailable()) | |
6828 | static PyObject *_wrap_wxProcess_IsErrorAvailable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6829 | PyObject * _resultobj; | |
6830 | bool _result; | |
6831 | wxPyProcess * _arg0; | |
6832 | PyObject * _argo0 = 0; | |
6833 | char *_kwnames[] = { "self", NULL }; | |
6834 | ||
6835 | self = self; | |
6836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsErrorAvailable",_kwnames,&_argo0)) | |
6837 | return NULL; | |
6838 | if (_argo0) { | |
6839 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6840 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) { | |
6841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsErrorAvailable. Expected _wxPyProcess_p."); | |
6842 | return NULL; | |
6843 | } | |
6844 | } | |
6845 | { | |
6846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6847 | _result = (bool )wxProcess_IsErrorAvailable(_arg0); | |
6848 | ||
6849 | wxPyEndAllowThreads(__tstate); | |
6850 | if (PyErr_Occurred()) return NULL; | |
6851 | } _resultobj = Py_BuildValue("i",_result); | |
6852 | return _resultobj; | |
6853 | } | |
6854 | ||
9416aa89 RD |
6855 | static void *SwigwxJoystickTowxObject(void *ptr) { |
6856 | wxJoystick *src; | |
6857 | wxObject *dest; | |
6858 | src = (wxJoystick *) ptr; | |
6859 | dest = (wxObject *) src; | |
6860 | return (void *) dest; | |
6861 | } | |
6862 | ||
185d7c3e RD |
6863 | #define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0)) |
6864 | static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6865 | PyObject * _resultobj; | |
6866 | wxJoystick * _result; | |
3eb221f6 | 6867 | int _arg0 = (int ) (wxJOYSTICK1); |
185d7c3e RD |
6868 | char *_kwnames[] = { "joystick", NULL }; |
6869 | char _ptemp[128]; | |
6870 | ||
6871 | self = self; | |
6872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0)) | |
6873 | return NULL; | |
6874 | { | |
4268f798 | 6875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6876 | _result = (wxJoystick *)new_wxJoystick(_arg0); |
185d7c3e | 6877 | |
4268f798 RD |
6878 | wxPyEndAllowThreads(__tstate); |
6879 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6880 | } if (_result) { |
6881 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p"); | |
6882 | _resultobj = Py_BuildValue("s",_ptemp); | |
6883 | } else { | |
6884 | Py_INCREF(Py_None); | |
6885 | _resultobj = Py_None; | |
6886 | } | |
6887 | return _resultobj; | |
6888 | } | |
6889 | ||
ac346f50 RD |
6890 | #define delete_wxJoystick(_swigobj) (delete _swigobj) |
6891 | static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6892 | PyObject * _resultobj; | |
6893 | wxJoystick * _arg0; | |
6894 | PyObject * _argo0 = 0; | |
6895 | char *_kwnames[] = { "self", NULL }; | |
6896 | ||
6897 | self = self; | |
6898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0)) | |
6899 | return NULL; | |
6900 | if (_argo0) { | |
6901 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6902 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6903 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p."); | |
6904 | return NULL; | |
6905 | } | |
6906 | } | |
6907 | { | |
4268f798 | 6908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6909 | delete_wxJoystick(_arg0); |
ac346f50 | 6910 | |
4268f798 RD |
6911 | wxPyEndAllowThreads(__tstate); |
6912 | if (PyErr_Occurred()) return NULL; | |
ac346f50 RD |
6913 | } Py_INCREF(Py_None); |
6914 | _resultobj = Py_None; | |
6915 | return _resultobj; | |
6916 | } | |
6917 | ||
185d7c3e RD |
6918 | #define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition()) |
6919 | static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6920 | PyObject * _resultobj; | |
6921 | wxPoint * _result; | |
6922 | wxJoystick * _arg0; | |
6923 | PyObject * _argo0 = 0; | |
6924 | char *_kwnames[] = { "self", NULL }; | |
6925 | char _ptemp[128]; | |
6926 | ||
6927 | self = self; | |
6928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0)) | |
6929 | return NULL; | |
6930 | if (_argo0) { | |
6931 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6932 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6933 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p."); | |
6934 | return NULL; | |
6935 | } | |
6936 | } | |
6937 | { | |
4268f798 | 6938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6939 | _result = new wxPoint (wxJoystick_GetPosition(_arg0)); |
185d7c3e | 6940 | |
4268f798 RD |
6941 | wxPyEndAllowThreads(__tstate); |
6942 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6943 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p"); |
6944 | _resultobj = Py_BuildValue("s",_ptemp); | |
6945 | return _resultobj; | |
6946 | } | |
6947 | ||
6948 | #define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition()) | |
6949 | static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6950 | PyObject * _resultobj; | |
6951 | int _result; | |
6952 | wxJoystick * _arg0; | |
6953 | PyObject * _argo0 = 0; | |
6954 | char *_kwnames[] = { "self", NULL }; | |
6955 | ||
6956 | self = self; | |
6957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0)) | |
6958 | return NULL; | |
6959 | if (_argo0) { | |
6960 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6961 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6962 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p."); | |
6963 | return NULL; | |
6964 | } | |
6965 | } | |
6966 | { | |
4268f798 | 6967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6968 | _result = (int )wxJoystick_GetZPosition(_arg0); |
185d7c3e | 6969 | |
4268f798 RD |
6970 | wxPyEndAllowThreads(__tstate); |
6971 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
6972 | } _resultobj = Py_BuildValue("i",_result); |
6973 | return _resultobj; | |
6974 | } | |
6975 | ||
6976 | #define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState()) | |
6977 | static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6978 | PyObject * _resultobj; | |
6979 | int _result; | |
6980 | wxJoystick * _arg0; | |
6981 | PyObject * _argo0 = 0; | |
6982 | char *_kwnames[] = { "self", NULL }; | |
6983 | ||
6984 | self = self; | |
6985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0)) | |
6986 | return NULL; | |
6987 | if (_argo0) { | |
6988 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
6989 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
6990 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p."); | |
6991 | return NULL; | |
6992 | } | |
6993 | } | |
6994 | { | |
4268f798 | 6995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 6996 | _result = (int )wxJoystick_GetButtonState(_arg0); |
185d7c3e | 6997 | |
4268f798 RD |
6998 | wxPyEndAllowThreads(__tstate); |
6999 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7000 | } _resultobj = Py_BuildValue("i",_result); |
7001 | return _resultobj; | |
7002 | } | |
7003 | ||
7004 | #define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition()) | |
7005 | static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7006 | PyObject * _resultobj; | |
7007 | int _result; | |
7008 | wxJoystick * _arg0; | |
7009 | PyObject * _argo0 = 0; | |
7010 | char *_kwnames[] = { "self", NULL }; | |
7011 | ||
7012 | self = self; | |
7013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0)) | |
7014 | return NULL; | |
7015 | if (_argo0) { | |
7016 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7017 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7018 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p."); | |
7019 | return NULL; | |
7020 | } | |
7021 | } | |
7022 | { | |
4268f798 | 7023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7024 | _result = (int )wxJoystick_GetPOVPosition(_arg0); |
185d7c3e | 7025 | |
4268f798 RD |
7026 | wxPyEndAllowThreads(__tstate); |
7027 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7028 | } _resultobj = Py_BuildValue("i",_result); |
7029 | return _resultobj; | |
7030 | } | |
7031 | ||
7032 | #define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition()) | |
7033 | static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7034 | PyObject * _resultobj; | |
7035 | int _result; | |
7036 | wxJoystick * _arg0; | |
7037 | PyObject * _argo0 = 0; | |
7038 | char *_kwnames[] = { "self", NULL }; | |
7039 | ||
7040 | self = self; | |
7041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0)) | |
7042 | return NULL; | |
7043 | if (_argo0) { | |
7044 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7045 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7046 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p."); | |
7047 | return NULL; | |
7048 | } | |
7049 | } | |
7050 | { | |
4268f798 | 7051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7052 | _result = (int )wxJoystick_GetPOVCTSPosition(_arg0); |
185d7c3e | 7053 | |
4268f798 RD |
7054 | wxPyEndAllowThreads(__tstate); |
7055 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7056 | } _resultobj = Py_BuildValue("i",_result); |
7057 | return _resultobj; | |
7058 | } | |
7059 | ||
7060 | #define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition()) | |
7061 | static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7062 | PyObject * _resultobj; | |
7063 | int _result; | |
7064 | wxJoystick * _arg0; | |
7065 | PyObject * _argo0 = 0; | |
7066 | char *_kwnames[] = { "self", NULL }; | |
7067 | ||
7068 | self = self; | |
7069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0)) | |
7070 | return NULL; | |
7071 | if (_argo0) { | |
7072 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7073 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p."); | |
7075 | return NULL; | |
7076 | } | |
7077 | } | |
7078 | { | |
4268f798 | 7079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7080 | _result = (int )wxJoystick_GetRudderPosition(_arg0); |
185d7c3e | 7081 | |
4268f798 RD |
7082 | wxPyEndAllowThreads(__tstate); |
7083 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7084 | } _resultobj = Py_BuildValue("i",_result); |
7085 | return _resultobj; | |
7086 | } | |
7087 | ||
7088 | #define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition()) | |
7089 | static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7090 | PyObject * _resultobj; | |
7091 | int _result; | |
7092 | wxJoystick * _arg0; | |
7093 | PyObject * _argo0 = 0; | |
7094 | char *_kwnames[] = { "self", NULL }; | |
7095 | ||
7096 | self = self; | |
7097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0)) | |
7098 | return NULL; | |
7099 | if (_argo0) { | |
7100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p."); | |
7103 | return NULL; | |
7104 | } | |
7105 | } | |
7106 | { | |
4268f798 | 7107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7108 | _result = (int )wxJoystick_GetUPosition(_arg0); |
185d7c3e | 7109 | |
4268f798 RD |
7110 | wxPyEndAllowThreads(__tstate); |
7111 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7112 | } _resultobj = Py_BuildValue("i",_result); |
7113 | return _resultobj; | |
7114 | } | |
7115 | ||
7116 | #define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition()) | |
7117 | static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7118 | PyObject * _resultobj; | |
7119 | int _result; | |
7120 | wxJoystick * _arg0; | |
7121 | PyObject * _argo0 = 0; | |
7122 | char *_kwnames[] = { "self", NULL }; | |
7123 | ||
7124 | self = self; | |
7125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0)) | |
7126 | return NULL; | |
7127 | if (_argo0) { | |
7128 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7129 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7130 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p."); | |
7131 | return NULL; | |
7132 | } | |
7133 | } | |
7134 | { | |
4268f798 | 7135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7136 | _result = (int )wxJoystick_GetVPosition(_arg0); |
185d7c3e | 7137 | |
4268f798 RD |
7138 | wxPyEndAllowThreads(__tstate); |
7139 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7140 | } _resultobj = Py_BuildValue("i",_result); |
7141 | return _resultobj; | |
7142 | } | |
7143 | ||
7144 | #define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold()) | |
7145 | static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7146 | PyObject * _resultobj; | |
7147 | int _result; | |
7148 | wxJoystick * _arg0; | |
7149 | PyObject * _argo0 = 0; | |
7150 | char *_kwnames[] = { "self", NULL }; | |
7151 | ||
7152 | self = self; | |
7153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0)) | |
7154 | return NULL; | |
7155 | if (_argo0) { | |
7156 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7157 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7158 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p."); | |
7159 | return NULL; | |
7160 | } | |
7161 | } | |
7162 | { | |
4268f798 | 7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7164 | _result = (int )wxJoystick_GetMovementThreshold(_arg0); |
185d7c3e | 7165 | |
4268f798 RD |
7166 | wxPyEndAllowThreads(__tstate); |
7167 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7168 | } _resultobj = Py_BuildValue("i",_result); |
7169 | return _resultobj; | |
7170 | } | |
7171 | ||
7172 | #define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0)) | |
7173 | static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7174 | PyObject * _resultobj; | |
7175 | wxJoystick * _arg0; | |
7176 | int _arg1; | |
7177 | PyObject * _argo0 = 0; | |
7178 | char *_kwnames[] = { "self","threshold", NULL }; | |
7179 | ||
7180 | self = self; | |
7181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1)) | |
7182 | return NULL; | |
7183 | if (_argo0) { | |
7184 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7185 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7186 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p."); | |
7187 | return NULL; | |
7188 | } | |
7189 | } | |
7190 | { | |
4268f798 | 7191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7192 | wxJoystick_SetMovementThreshold(_arg0,_arg1); |
185d7c3e | 7193 | |
4268f798 RD |
7194 | wxPyEndAllowThreads(__tstate); |
7195 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7196 | } Py_INCREF(Py_None); |
7197 | _resultobj = Py_None; | |
7198 | return _resultobj; | |
7199 | } | |
7200 | ||
7201 | #define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk()) | |
7202 | static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7203 | PyObject * _resultobj; | |
7204 | bool _result; | |
7205 | wxJoystick * _arg0; | |
7206 | PyObject * _argo0 = 0; | |
7207 | char *_kwnames[] = { "self", NULL }; | |
7208 | ||
7209 | self = self; | |
7210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0)) | |
7211 | return NULL; | |
7212 | if (_argo0) { | |
7213 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7214 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7215 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p."); | |
7216 | return NULL; | |
7217 | } | |
7218 | } | |
7219 | { | |
4268f798 | 7220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7221 | _result = (bool )wxJoystick_IsOk(_arg0); |
185d7c3e | 7222 | |
4268f798 RD |
7223 | wxPyEndAllowThreads(__tstate); |
7224 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7225 | } _resultobj = Py_BuildValue("i",_result); |
7226 | return _resultobj; | |
7227 | } | |
7228 | ||
7229 | #define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks()) | |
7230 | static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7231 | PyObject * _resultobj; | |
7232 | int _result; | |
7233 | wxJoystick * _arg0; | |
7234 | PyObject * _argo0 = 0; | |
7235 | char *_kwnames[] = { "self", NULL }; | |
7236 | ||
7237 | self = self; | |
7238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0)) | |
7239 | return NULL; | |
7240 | if (_argo0) { | |
7241 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7242 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7243 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p."); | |
7244 | return NULL; | |
7245 | } | |
7246 | } | |
7247 | { | |
4268f798 | 7248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7249 | _result = (int )wxJoystick_GetNumberJoysticks(_arg0); |
185d7c3e | 7250 | |
4268f798 RD |
7251 | wxPyEndAllowThreads(__tstate); |
7252 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7253 | } _resultobj = Py_BuildValue("i",_result); |
7254 | return _resultobj; | |
7255 | } | |
7256 | ||
7257 | #define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId()) | |
7258 | static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7259 | PyObject * _resultobj; | |
7260 | int _result; | |
7261 | wxJoystick * _arg0; | |
7262 | PyObject * _argo0 = 0; | |
7263 | char *_kwnames[] = { "self", NULL }; | |
7264 | ||
7265 | self = self; | |
7266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0)) | |
7267 | return NULL; | |
7268 | if (_argo0) { | |
7269 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7270 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7271 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p."); | |
7272 | return NULL; | |
7273 | } | |
7274 | } | |
7275 | { | |
4268f798 | 7276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7277 | _result = (int )wxJoystick_GetManufacturerId(_arg0); |
185d7c3e | 7278 | |
4268f798 RD |
7279 | wxPyEndAllowThreads(__tstate); |
7280 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7281 | } _resultobj = Py_BuildValue("i",_result); |
7282 | return _resultobj; | |
7283 | } | |
7284 | ||
7285 | #define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId()) | |
7286 | static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7287 | PyObject * _resultobj; | |
7288 | int _result; | |
7289 | wxJoystick * _arg0; | |
7290 | PyObject * _argo0 = 0; | |
7291 | char *_kwnames[] = { "self", NULL }; | |
7292 | ||
7293 | self = self; | |
7294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0)) | |
7295 | return NULL; | |
7296 | if (_argo0) { | |
7297 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7298 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7299 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p."); | |
7300 | return NULL; | |
7301 | } | |
7302 | } | |
7303 | { | |
4268f798 | 7304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7305 | _result = (int )wxJoystick_GetProductId(_arg0); |
185d7c3e | 7306 | |
4268f798 RD |
7307 | wxPyEndAllowThreads(__tstate); |
7308 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7309 | } _resultobj = Py_BuildValue("i",_result); |
7310 | return _resultobj; | |
7311 | } | |
7312 | ||
7313 | #define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName()) | |
7314 | static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7315 | PyObject * _resultobj; | |
7316 | wxString * _result; | |
7317 | wxJoystick * _arg0; | |
7318 | PyObject * _argo0 = 0; | |
7319 | char *_kwnames[] = { "self", NULL }; | |
7320 | ||
7321 | self = self; | |
7322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0)) | |
7323 | return NULL; | |
7324 | if (_argo0) { | |
7325 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7326 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7327 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p."); | |
7328 | return NULL; | |
7329 | } | |
7330 | } | |
7331 | { | |
4268f798 | 7332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7333 | _result = new wxString (wxJoystick_GetProductName(_arg0)); |
185d7c3e | 7334 | |
4268f798 RD |
7335 | wxPyEndAllowThreads(__tstate); |
7336 | if (PyErr_Occurred()) return NULL; | |
185d7c3e | 7337 | }{ |
c8bc7bb8 | 7338 | #if wxUSE_UNICODE |
7e50db3f | 7339 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7340 | #else |
185d7c3e | 7341 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 7342 | #endif |
185d7c3e RD |
7343 | } |
7344 | { | |
7345 | delete _result; | |
7346 | } | |
7347 | return _resultobj; | |
7348 | } | |
7349 | ||
7350 | #define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin()) | |
7351 | static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7352 | PyObject * _resultobj; | |
7353 | int _result; | |
7354 | wxJoystick * _arg0; | |
7355 | PyObject * _argo0 = 0; | |
7356 | char *_kwnames[] = { "self", NULL }; | |
7357 | ||
7358 | self = self; | |
7359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0)) | |
7360 | return NULL; | |
7361 | if (_argo0) { | |
7362 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7363 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7364 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p."); | |
7365 | return NULL; | |
7366 | } | |
7367 | } | |
7368 | { | |
4268f798 | 7369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7370 | _result = (int )wxJoystick_GetXMin(_arg0); |
185d7c3e | 7371 | |
4268f798 RD |
7372 | wxPyEndAllowThreads(__tstate); |
7373 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7374 | } _resultobj = Py_BuildValue("i",_result); |
7375 | return _resultobj; | |
7376 | } | |
7377 | ||
7378 | #define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin()) | |
7379 | static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7380 | PyObject * _resultobj; | |
7381 | int _result; | |
7382 | wxJoystick * _arg0; | |
7383 | PyObject * _argo0 = 0; | |
7384 | char *_kwnames[] = { "self", NULL }; | |
7385 | ||
7386 | self = self; | |
7387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0)) | |
7388 | return NULL; | |
7389 | if (_argo0) { | |
7390 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7391 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7392 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p."); | |
7393 | return NULL; | |
7394 | } | |
7395 | } | |
7396 | { | |
4268f798 | 7397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7398 | _result = (int )wxJoystick_GetYMin(_arg0); |
185d7c3e | 7399 | |
4268f798 RD |
7400 | wxPyEndAllowThreads(__tstate); |
7401 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7402 | } _resultobj = Py_BuildValue("i",_result); |
7403 | return _resultobj; | |
7404 | } | |
7405 | ||
7406 | #define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin()) | |
7407 | static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7408 | PyObject * _resultobj; | |
7409 | int _result; | |
7410 | wxJoystick * _arg0; | |
7411 | PyObject * _argo0 = 0; | |
7412 | char *_kwnames[] = { "self", NULL }; | |
7413 | ||
7414 | self = self; | |
7415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0)) | |
7416 | return NULL; | |
7417 | if (_argo0) { | |
7418 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7419 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7420 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p."); | |
7421 | return NULL; | |
7422 | } | |
7423 | } | |
7424 | { | |
4268f798 | 7425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7426 | _result = (int )wxJoystick_GetZMin(_arg0); |
185d7c3e | 7427 | |
4268f798 RD |
7428 | wxPyEndAllowThreads(__tstate); |
7429 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7430 | } _resultobj = Py_BuildValue("i",_result); |
7431 | return _resultobj; | |
7432 | } | |
7433 | ||
7434 | #define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax()) | |
7435 | static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7436 | PyObject * _resultobj; | |
7437 | int _result; | |
7438 | wxJoystick * _arg0; | |
7439 | PyObject * _argo0 = 0; | |
7440 | char *_kwnames[] = { "self", NULL }; | |
7441 | ||
7442 | self = self; | |
7443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0)) | |
7444 | return NULL; | |
7445 | if (_argo0) { | |
7446 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7447 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7448 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p."); | |
7449 | return NULL; | |
7450 | } | |
7451 | } | |
7452 | { | |
4268f798 | 7453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7454 | _result = (int )wxJoystick_GetXMax(_arg0); |
185d7c3e | 7455 | |
4268f798 RD |
7456 | wxPyEndAllowThreads(__tstate); |
7457 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7458 | } _resultobj = Py_BuildValue("i",_result); |
7459 | return _resultobj; | |
7460 | } | |
7461 | ||
7462 | #define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax()) | |
7463 | static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7464 | PyObject * _resultobj; | |
7465 | int _result; | |
7466 | wxJoystick * _arg0; | |
7467 | PyObject * _argo0 = 0; | |
7468 | char *_kwnames[] = { "self", NULL }; | |
7469 | ||
7470 | self = self; | |
7471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0)) | |
7472 | return NULL; | |
7473 | if (_argo0) { | |
7474 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7475 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7476 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p."); | |
7477 | return NULL; | |
7478 | } | |
7479 | } | |
7480 | { | |
4268f798 | 7481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7482 | _result = (int )wxJoystick_GetYMax(_arg0); |
185d7c3e | 7483 | |
4268f798 RD |
7484 | wxPyEndAllowThreads(__tstate); |
7485 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7486 | } _resultobj = Py_BuildValue("i",_result); |
7487 | return _resultobj; | |
7488 | } | |
7489 | ||
7490 | #define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax()) | |
7491 | static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7492 | PyObject * _resultobj; | |
7493 | int _result; | |
7494 | wxJoystick * _arg0; | |
7495 | PyObject * _argo0 = 0; | |
7496 | char *_kwnames[] = { "self", NULL }; | |
7497 | ||
7498 | self = self; | |
7499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0)) | |
7500 | return NULL; | |
7501 | if (_argo0) { | |
7502 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7503 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7504 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p."); | |
7505 | return NULL; | |
7506 | } | |
7507 | } | |
7508 | { | |
4268f798 | 7509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7510 | _result = (int )wxJoystick_GetZMax(_arg0); |
185d7c3e | 7511 | |
4268f798 RD |
7512 | wxPyEndAllowThreads(__tstate); |
7513 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7514 | } _resultobj = Py_BuildValue("i",_result); |
7515 | return _resultobj; | |
7516 | } | |
7517 | ||
7518 | #define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons()) | |
7519 | static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7520 | PyObject * _resultobj; | |
7521 | int _result; | |
7522 | wxJoystick * _arg0; | |
7523 | PyObject * _argo0 = 0; | |
7524 | char *_kwnames[] = { "self", NULL }; | |
7525 | ||
7526 | self = self; | |
7527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0)) | |
7528 | return NULL; | |
7529 | if (_argo0) { | |
7530 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7531 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7532 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p."); | |
7533 | return NULL; | |
7534 | } | |
7535 | } | |
7536 | { | |
4268f798 | 7537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7538 | _result = (int )wxJoystick_GetNumberButtons(_arg0); |
185d7c3e | 7539 | |
4268f798 RD |
7540 | wxPyEndAllowThreads(__tstate); |
7541 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7542 | } _resultobj = Py_BuildValue("i",_result); |
7543 | return _resultobj; | |
7544 | } | |
7545 | ||
7546 | #define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes()) | |
7547 | static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7548 | PyObject * _resultobj; | |
7549 | int _result; | |
7550 | wxJoystick * _arg0; | |
7551 | PyObject * _argo0 = 0; | |
7552 | char *_kwnames[] = { "self", NULL }; | |
7553 | ||
7554 | self = self; | |
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0)) | |
7556 | return NULL; | |
7557 | if (_argo0) { | |
7558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p."); | |
7561 | return NULL; | |
7562 | } | |
7563 | } | |
7564 | { | |
4268f798 | 7565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7566 | _result = (int )wxJoystick_GetNumberAxes(_arg0); |
185d7c3e | 7567 | |
4268f798 RD |
7568 | wxPyEndAllowThreads(__tstate); |
7569 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7570 | } _resultobj = Py_BuildValue("i",_result); |
7571 | return _resultobj; | |
7572 | } | |
7573 | ||
7574 | #define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons()) | |
7575 | static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7576 | PyObject * _resultobj; | |
7577 | int _result; | |
7578 | wxJoystick * _arg0; | |
7579 | PyObject * _argo0 = 0; | |
7580 | char *_kwnames[] = { "self", NULL }; | |
7581 | ||
7582 | self = self; | |
7583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0)) | |
7584 | return NULL; | |
7585 | if (_argo0) { | |
7586 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7587 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7588 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p."); | |
7589 | return NULL; | |
7590 | } | |
7591 | } | |
7592 | { | |
4268f798 | 7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7594 | _result = (int )wxJoystick_GetMaxButtons(_arg0); |
185d7c3e | 7595 | |
4268f798 RD |
7596 | wxPyEndAllowThreads(__tstate); |
7597 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7598 | } _resultobj = Py_BuildValue("i",_result); |
7599 | return _resultobj; | |
7600 | } | |
7601 | ||
7602 | #define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes()) | |
7603 | static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7604 | PyObject * _resultobj; | |
7605 | int _result; | |
7606 | wxJoystick * _arg0; | |
7607 | PyObject * _argo0 = 0; | |
7608 | char *_kwnames[] = { "self", NULL }; | |
7609 | ||
7610 | self = self; | |
7611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0)) | |
7612 | return NULL; | |
7613 | if (_argo0) { | |
7614 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7615 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7616 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p."); | |
7617 | return NULL; | |
7618 | } | |
7619 | } | |
7620 | { | |
4268f798 | 7621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7622 | _result = (int )wxJoystick_GetMaxAxes(_arg0); |
185d7c3e | 7623 | |
4268f798 RD |
7624 | wxPyEndAllowThreads(__tstate); |
7625 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7626 | } _resultobj = Py_BuildValue("i",_result); |
7627 | return _resultobj; | |
7628 | } | |
7629 | ||
7630 | #define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin()) | |
7631 | static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7632 | PyObject * _resultobj; | |
7633 | int _result; | |
7634 | wxJoystick * _arg0; | |
7635 | PyObject * _argo0 = 0; | |
7636 | char *_kwnames[] = { "self", NULL }; | |
7637 | ||
7638 | self = self; | |
7639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0)) | |
7640 | return NULL; | |
7641 | if (_argo0) { | |
7642 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7643 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7644 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p."); | |
7645 | return NULL; | |
7646 | } | |
7647 | } | |
7648 | { | |
4268f798 | 7649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7650 | _result = (int )wxJoystick_GetPollingMin(_arg0); |
185d7c3e | 7651 | |
4268f798 RD |
7652 | wxPyEndAllowThreads(__tstate); |
7653 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7654 | } _resultobj = Py_BuildValue("i",_result); |
7655 | return _resultobj; | |
7656 | } | |
7657 | ||
7658 | #define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax()) | |
7659 | static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7660 | PyObject * _resultobj; | |
7661 | int _result; | |
7662 | wxJoystick * _arg0; | |
7663 | PyObject * _argo0 = 0; | |
7664 | char *_kwnames[] = { "self", NULL }; | |
7665 | ||
7666 | self = self; | |
7667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0)) | |
7668 | return NULL; | |
7669 | if (_argo0) { | |
7670 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7671 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7672 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p."); | |
7673 | return NULL; | |
7674 | } | |
7675 | } | |
7676 | { | |
4268f798 | 7677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7678 | _result = (int )wxJoystick_GetPollingMax(_arg0); |
185d7c3e | 7679 | |
4268f798 RD |
7680 | wxPyEndAllowThreads(__tstate); |
7681 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7682 | } _resultobj = Py_BuildValue("i",_result); |
7683 | return _resultobj; | |
7684 | } | |
7685 | ||
7686 | #define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin()) | |
7687 | static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7688 | PyObject * _resultobj; | |
7689 | int _result; | |
7690 | wxJoystick * _arg0; | |
7691 | PyObject * _argo0 = 0; | |
7692 | char *_kwnames[] = { "self", NULL }; | |
7693 | ||
7694 | self = self; | |
7695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0)) | |
7696 | return NULL; | |
7697 | if (_argo0) { | |
7698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p."); | |
7701 | return NULL; | |
7702 | } | |
7703 | } | |
7704 | { | |
4268f798 | 7705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7706 | _result = (int )wxJoystick_GetRudderMin(_arg0); |
185d7c3e | 7707 | |
4268f798 RD |
7708 | wxPyEndAllowThreads(__tstate); |
7709 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7710 | } _resultobj = Py_BuildValue("i",_result); |
7711 | return _resultobj; | |
7712 | } | |
7713 | ||
7714 | #define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax()) | |
7715 | static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7716 | PyObject * _resultobj; | |
7717 | int _result; | |
7718 | wxJoystick * _arg0; | |
7719 | PyObject * _argo0 = 0; | |
7720 | char *_kwnames[] = { "self", NULL }; | |
7721 | ||
7722 | self = self; | |
7723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0)) | |
7724 | return NULL; | |
7725 | if (_argo0) { | |
7726 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7727 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7728 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p."); | |
7729 | return NULL; | |
7730 | } | |
7731 | } | |
7732 | { | |
4268f798 | 7733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7734 | _result = (int )wxJoystick_GetRudderMax(_arg0); |
185d7c3e | 7735 | |
4268f798 RD |
7736 | wxPyEndAllowThreads(__tstate); |
7737 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7738 | } _resultobj = Py_BuildValue("i",_result); |
7739 | return _resultobj; | |
7740 | } | |
7741 | ||
7742 | #define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin()) | |
7743 | static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7744 | PyObject * _resultobj; | |
7745 | int _result; | |
7746 | wxJoystick * _arg0; | |
7747 | PyObject * _argo0 = 0; | |
7748 | char *_kwnames[] = { "self", NULL }; | |
7749 | ||
7750 | self = self; | |
7751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0)) | |
7752 | return NULL; | |
7753 | if (_argo0) { | |
7754 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7755 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7756 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p."); | |
7757 | return NULL; | |
7758 | } | |
7759 | } | |
7760 | { | |
4268f798 | 7761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7762 | _result = (int )wxJoystick_GetUMin(_arg0); |
185d7c3e | 7763 | |
4268f798 RD |
7764 | wxPyEndAllowThreads(__tstate); |
7765 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7766 | } _resultobj = Py_BuildValue("i",_result); |
7767 | return _resultobj; | |
7768 | } | |
7769 | ||
7770 | #define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax()) | |
7771 | static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject * _resultobj; | |
7773 | int _result; | |
7774 | wxJoystick * _arg0; | |
7775 | PyObject * _argo0 = 0; | |
7776 | char *_kwnames[] = { "self", NULL }; | |
7777 | ||
7778 | self = self; | |
7779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0)) | |
7780 | return NULL; | |
7781 | if (_argo0) { | |
7782 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7783 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7784 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p."); | |
7785 | return NULL; | |
7786 | } | |
7787 | } | |
7788 | { | |
4268f798 | 7789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7790 | _result = (int )wxJoystick_GetUMax(_arg0); |
185d7c3e | 7791 | |
4268f798 RD |
7792 | wxPyEndAllowThreads(__tstate); |
7793 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7794 | } _resultobj = Py_BuildValue("i",_result); |
7795 | return _resultobj; | |
7796 | } | |
7797 | ||
7798 | #define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin()) | |
7799 | static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7800 | PyObject * _resultobj; | |
7801 | int _result; | |
7802 | wxJoystick * _arg0; | |
7803 | PyObject * _argo0 = 0; | |
7804 | char *_kwnames[] = { "self", NULL }; | |
7805 | ||
7806 | self = self; | |
7807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0)) | |
7808 | return NULL; | |
7809 | if (_argo0) { | |
7810 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7811 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7812 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p."); | |
7813 | return NULL; | |
7814 | } | |
7815 | } | |
7816 | { | |
4268f798 | 7817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7818 | _result = (int )wxJoystick_GetVMin(_arg0); |
185d7c3e | 7819 | |
4268f798 RD |
7820 | wxPyEndAllowThreads(__tstate); |
7821 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7822 | } _resultobj = Py_BuildValue("i",_result); |
7823 | return _resultobj; | |
7824 | } | |
7825 | ||
7826 | #define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax()) | |
7827 | static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7828 | PyObject * _resultobj; | |
7829 | int _result; | |
7830 | wxJoystick * _arg0; | |
7831 | PyObject * _argo0 = 0; | |
7832 | char *_kwnames[] = { "self", NULL }; | |
7833 | ||
7834 | self = self; | |
7835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0)) | |
7836 | return NULL; | |
7837 | if (_argo0) { | |
7838 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7839 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7840 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p."); | |
7841 | return NULL; | |
7842 | } | |
7843 | } | |
7844 | { | |
4268f798 | 7845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7846 | _result = (int )wxJoystick_GetVMax(_arg0); |
185d7c3e | 7847 | |
4268f798 RD |
7848 | wxPyEndAllowThreads(__tstate); |
7849 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7850 | } _resultobj = Py_BuildValue("i",_result); |
7851 | return _resultobj; | |
7852 | } | |
7853 | ||
7854 | #define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder()) | |
7855 | static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7856 | PyObject * _resultobj; | |
7857 | bool _result; | |
7858 | wxJoystick * _arg0; | |
7859 | PyObject * _argo0 = 0; | |
7860 | char *_kwnames[] = { "self", NULL }; | |
7861 | ||
7862 | self = self; | |
7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0)) | |
7864 | return NULL; | |
7865 | if (_argo0) { | |
7866 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7867 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7868 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p."); | |
7869 | return NULL; | |
7870 | } | |
7871 | } | |
7872 | { | |
4268f798 | 7873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7874 | _result = (bool )wxJoystick_HasRudder(_arg0); |
185d7c3e | 7875 | |
4268f798 RD |
7876 | wxPyEndAllowThreads(__tstate); |
7877 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7878 | } _resultobj = Py_BuildValue("i",_result); |
7879 | return _resultobj; | |
7880 | } | |
7881 | ||
7882 | #define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ()) | |
7883 | static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7884 | PyObject * _resultobj; | |
7885 | bool _result; | |
7886 | wxJoystick * _arg0; | |
7887 | PyObject * _argo0 = 0; | |
7888 | char *_kwnames[] = { "self", NULL }; | |
7889 | ||
7890 | self = self; | |
7891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0)) | |
7892 | return NULL; | |
7893 | if (_argo0) { | |
7894 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7895 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7896 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p."); | |
7897 | return NULL; | |
7898 | } | |
7899 | } | |
7900 | { | |
4268f798 | 7901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7902 | _result = (bool )wxJoystick_HasZ(_arg0); |
185d7c3e | 7903 | |
4268f798 RD |
7904 | wxPyEndAllowThreads(__tstate); |
7905 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7906 | } _resultobj = Py_BuildValue("i",_result); |
7907 | return _resultobj; | |
7908 | } | |
7909 | ||
7910 | #define wxJoystick_HasU(_swigobj) (_swigobj->HasU()) | |
7911 | static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7912 | PyObject * _resultobj; | |
7913 | bool _result; | |
7914 | wxJoystick * _arg0; | |
7915 | PyObject * _argo0 = 0; | |
7916 | char *_kwnames[] = { "self", NULL }; | |
7917 | ||
7918 | self = self; | |
7919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0)) | |
7920 | return NULL; | |
7921 | if (_argo0) { | |
7922 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7923 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7924 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p."); | |
7925 | return NULL; | |
7926 | } | |
7927 | } | |
7928 | { | |
4268f798 | 7929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7930 | _result = (bool )wxJoystick_HasU(_arg0); |
185d7c3e | 7931 | |
4268f798 RD |
7932 | wxPyEndAllowThreads(__tstate); |
7933 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7934 | } _resultobj = Py_BuildValue("i",_result); |
7935 | return _resultobj; | |
7936 | } | |
7937 | ||
7938 | #define wxJoystick_HasV(_swigobj) (_swigobj->HasV()) | |
7939 | static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7940 | PyObject * _resultobj; | |
7941 | bool _result; | |
7942 | wxJoystick * _arg0; | |
7943 | PyObject * _argo0 = 0; | |
7944 | char *_kwnames[] = { "self", NULL }; | |
7945 | ||
7946 | self = self; | |
7947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0)) | |
7948 | return NULL; | |
7949 | if (_argo0) { | |
7950 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7951 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7952 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p."); | |
7953 | return NULL; | |
7954 | } | |
7955 | } | |
7956 | { | |
4268f798 | 7957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7958 | _result = (bool )wxJoystick_HasV(_arg0); |
185d7c3e | 7959 | |
4268f798 RD |
7960 | wxPyEndAllowThreads(__tstate); |
7961 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7962 | } _resultobj = Py_BuildValue("i",_result); |
7963 | return _resultobj; | |
7964 | } | |
7965 | ||
7966 | #define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV()) | |
7967 | static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7968 | PyObject * _resultobj; | |
7969 | bool _result; | |
7970 | wxJoystick * _arg0; | |
7971 | PyObject * _argo0 = 0; | |
7972 | char *_kwnames[] = { "self", NULL }; | |
7973 | ||
7974 | self = self; | |
7975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0)) | |
7976 | return NULL; | |
7977 | if (_argo0) { | |
7978 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
7979 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
7980 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p."); | |
7981 | return NULL; | |
7982 | } | |
7983 | } | |
7984 | { | |
4268f798 | 7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 7986 | _result = (bool )wxJoystick_HasPOV(_arg0); |
185d7c3e | 7987 | |
4268f798 RD |
7988 | wxPyEndAllowThreads(__tstate); |
7989 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
7990 | } _resultobj = Py_BuildValue("i",_result); |
7991 | return _resultobj; | |
7992 | } | |
7993 | ||
7994 | #define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir()) | |
7995 | static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7996 | PyObject * _resultobj; | |
7997 | bool _result; | |
7998 | wxJoystick * _arg0; | |
7999 | PyObject * _argo0 = 0; | |
8000 | char *_kwnames[] = { "self", NULL }; | |
8001 | ||
8002 | self = self; | |
8003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0)) | |
8004 | return NULL; | |
8005 | if (_argo0) { | |
8006 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8007 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
8008 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p."); | |
8009 | return NULL; | |
8010 | } | |
8011 | } | |
8012 | { | |
4268f798 | 8013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8014 | _result = (bool )wxJoystick_HasPOV4Dir(_arg0); |
185d7c3e | 8015 | |
4268f798 RD |
8016 | wxPyEndAllowThreads(__tstate); |
8017 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
8018 | } _resultobj = Py_BuildValue("i",_result); |
8019 | return _resultobj; | |
8020 | } | |
8021 | ||
8022 | #define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS()) | |
8023 | static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8024 | PyObject * _resultobj; | |
8025 | bool _result; | |
8026 | wxJoystick * _arg0; | |
8027 | PyObject * _argo0 = 0; | |
8028 | char *_kwnames[] = { "self", NULL }; | |
8029 | ||
8030 | self = self; | |
8031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0)) | |
8032 | return NULL; | |
8033 | if (_argo0) { | |
8034 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8035 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
8036 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p."); | |
8037 | return NULL; | |
8038 | } | |
8039 | } | |
8040 | { | |
4268f798 | 8041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8042 | _result = (bool )wxJoystick_HasPOVCTS(_arg0); |
185d7c3e | 8043 | |
4268f798 RD |
8044 | wxPyEndAllowThreads(__tstate); |
8045 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
8046 | } _resultobj = Py_BuildValue("i",_result); |
8047 | return _resultobj; | |
8048 | } | |
8049 | ||
8050 | #define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1)) | |
8051 | static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8052 | PyObject * _resultobj; | |
8053 | bool _result; | |
8054 | wxJoystick * _arg0; | |
8055 | wxWindow * _arg1; | |
8056 | int _arg2 = (int ) 0; | |
8057 | PyObject * _argo0 = 0; | |
8058 | PyObject * _argo1 = 0; | |
8059 | char *_kwnames[] = { "self","win","pollingFreq", NULL }; | |
8060 | ||
8061 | self = self; | |
8062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2)) | |
8063 | return NULL; | |
8064 | if (_argo0) { | |
8065 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8066 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
8067 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p."); | |
8068 | return NULL; | |
8069 | } | |
8070 | } | |
8071 | if (_argo1) { | |
8072 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
8073 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) { | |
8074 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p."); | |
8075 | return NULL; | |
8076 | } | |
8077 | } | |
8078 | { | |
4268f798 | 8079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8080 | _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2); |
185d7c3e | 8081 | |
4268f798 RD |
8082 | wxPyEndAllowThreads(__tstate); |
8083 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
8084 | } _resultobj = Py_BuildValue("i",_result); |
8085 | return _resultobj; | |
8086 | } | |
8087 | ||
8088 | #define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture()) | |
8089 | static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8090 | PyObject * _resultobj; | |
8091 | bool _result; | |
8092 | wxJoystick * _arg0; | |
8093 | PyObject * _argo0 = 0; | |
8094 | char *_kwnames[] = { "self", NULL }; | |
8095 | ||
8096 | self = self; | |
8097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0)) | |
8098 | return NULL; | |
8099 | if (_argo0) { | |
8100 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8101 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) { | |
8102 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p."); | |
8103 | return NULL; | |
8104 | } | |
8105 | } | |
8106 | { | |
4268f798 | 8107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8108 | _result = (bool )wxJoystick_ReleaseCapture(_arg0); |
185d7c3e | 8109 | |
4268f798 RD |
8110 | wxPyEndAllowThreads(__tstate); |
8111 | if (PyErr_Occurred()) return NULL; | |
185d7c3e RD |
8112 | } _resultobj = Py_BuildValue("i",_result); |
8113 | return _resultobj; | |
8114 | } | |
8115 | ||
493f1553 RD |
8116 | static void *SwigwxWaveTowxObject(void *ptr) { |
8117 | wxWave *src; | |
8118 | wxObject *dest; | |
8119 | src = (wxWave *) ptr; | |
8120 | dest = (wxObject *) src; | |
8121 | return (void *) dest; | |
8122 | } | |
8123 | ||
8124 | #define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1)) | |
8125 | static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8126 | PyObject * _resultobj; | |
8127 | wxWave * _result; | |
8128 | wxString * _arg0; | |
8129 | bool _arg1 = (bool ) FALSE; | |
8130 | PyObject * _obj0 = 0; | |
8131 | int tempbool1 = (int) FALSE; | |
8132 | char *_kwnames[] = { "fileName","isResource", NULL }; | |
8133 | char _ptemp[128]; | |
8134 | ||
8135 | self = self; | |
8136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1)) | |
8137 | return NULL; | |
8138 | { | |
c8bc7bb8 RD |
8139 | _arg0 = wxString_in_helper(_obj0); |
8140 | if (_arg0 == NULL) | |
493f1553 | 8141 | return NULL; |
493f1553 RD |
8142 | } |
8143 | _arg1 = (bool ) tempbool1; | |
8144 | { | |
4268f798 | 8145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8146 | _result = (wxWave *)new_wxWave(*_arg0,_arg1); |
493f1553 | 8147 | |
4268f798 RD |
8148 | wxPyEndAllowThreads(__tstate); |
8149 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8150 | } if (_result) { |
8151 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p"); | |
8152 | _resultobj = Py_BuildValue("s",_ptemp); | |
8153 | } else { | |
8154 | Py_INCREF(Py_None); | |
8155 | _resultobj = Py_None; | |
8156 | } | |
8157 | { | |
8158 | if (_obj0) | |
8159 | delete _arg0; | |
8160 | } | |
8161 | return _resultobj; | |
8162 | } | |
8163 | ||
8164 | #define delete_wxWave(_swigobj) (delete _swigobj) | |
8165 | static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8166 | PyObject * _resultobj; | |
8167 | wxWave * _arg0; | |
8168 | PyObject * _argo0 = 0; | |
8169 | char *_kwnames[] = { "self", NULL }; | |
8170 | ||
8171 | self = self; | |
8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0)) | |
8173 | return NULL; | |
8174 | if (_argo0) { | |
8175 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8176 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8177 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p."); | |
8178 | return NULL; | |
8179 | } | |
8180 | } | |
8181 | { | |
4268f798 | 8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8183 | delete_wxWave(_arg0); |
493f1553 | 8184 | |
4268f798 RD |
8185 | wxPyEndAllowThreads(__tstate); |
8186 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8187 | } Py_INCREF(Py_None); |
8188 | _resultobj = Py_None; | |
8189 | return _resultobj; | |
8190 | } | |
8191 | ||
8192 | #define wxWave_IsOk(_swigobj) (_swigobj->IsOk()) | |
8193 | static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8194 | PyObject * _resultobj; | |
8195 | bool _result; | |
8196 | wxWave * _arg0; | |
8197 | PyObject * _argo0 = 0; | |
8198 | char *_kwnames[] = { "self", NULL }; | |
8199 | ||
8200 | self = self; | |
8201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0)) | |
8202 | return NULL; | |
8203 | if (_argo0) { | |
8204 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8205 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8206 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p."); | |
8207 | return NULL; | |
8208 | } | |
8209 | } | |
8210 | { | |
4268f798 | 8211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8212 | _result = (bool )wxWave_IsOk(_arg0); |
493f1553 | 8213 | |
4268f798 RD |
8214 | wxPyEndAllowThreads(__tstate); |
8215 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8216 | } _resultobj = Py_BuildValue("i",_result); |
8217 | return _resultobj; | |
8218 | } | |
8219 | ||
8220 | #define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1)) | |
8221 | static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8222 | PyObject * _resultobj; | |
8223 | bool _result; | |
8224 | wxWave * _arg0; | |
8225 | bool _arg1 = (bool ) TRUE; | |
8226 | bool _arg2 = (bool ) FALSE; | |
8227 | PyObject * _argo0 = 0; | |
8228 | int tempbool1 = (int) TRUE; | |
8229 | int tempbool2 = (int) FALSE; | |
8230 | char *_kwnames[] = { "self","async","looped", NULL }; | |
8231 | ||
8232 | self = self; | |
8233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2)) | |
8234 | return NULL; | |
8235 | if (_argo0) { | |
8236 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8237 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) { | |
8238 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p."); | |
8239 | return NULL; | |
8240 | } | |
8241 | } | |
8242 | _arg1 = (bool ) tempbool1; | |
8243 | _arg2 = (bool ) tempbool2; | |
8244 | { | |
4268f798 | 8245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8246 | _result = (bool )wxWave_Play(_arg0,_arg1,_arg2); |
493f1553 | 8247 | |
4268f798 RD |
8248 | wxPyEndAllowThreads(__tstate); |
8249 | if (PyErr_Occurred()) return NULL; | |
493f1553 RD |
8250 | } _resultobj = Py_BuildValue("i",_result); |
8251 | return _resultobj; | |
8252 | } | |
8253 | ||
b37c7e1d RD |
8254 | #define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3)) |
8255 | static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8256 | PyObject * _resultobj; | |
8257 | wxFileTypeInfo * _result; | |
7e50db3f RD |
8258 | wxString * _arg0; |
8259 | wxString * _arg1; | |
8260 | wxString * _arg2; | |
8261 | wxString * _arg3; | |
8262 | PyObject * _obj0 = 0; | |
8263 | PyObject * _obj1 = 0; | |
8264 | PyObject * _obj2 = 0; | |
8265 | PyObject * _obj3 = 0; | |
b37c7e1d RD |
8266 | char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL }; |
8267 | char _ptemp[128]; | |
8268 | ||
8269 | self = self; | |
7e50db3f | 8270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:new_wxFileTypeInfo",_kwnames,&_obj0,&_obj1,&_obj2,&_obj3)) |
b37c7e1d | 8271 | return NULL; |
7e50db3f RD |
8272 | { |
8273 | _arg0 = wxString_in_helper(_obj0); | |
8274 | if (_arg0 == NULL) | |
8275 | return NULL; | |
8276 | } | |
8277 | { | |
8278 | _arg1 = wxString_in_helper(_obj1); | |
8279 | if (_arg1 == NULL) | |
8280 | return NULL; | |
8281 | } | |
8282 | { | |
8283 | _arg2 = wxString_in_helper(_obj2); | |
8284 | if (_arg2 == NULL) | |
8285 | return NULL; | |
8286 | } | |
8287 | { | |
8288 | _arg3 = wxString_in_helper(_obj3); | |
8289 | if (_arg3 == NULL) | |
8290 | return NULL; | |
8291 | } | |
b37c7e1d | 8292 | { |
4268f798 | 8293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
7e50db3f | 8294 | _result = (wxFileTypeInfo *)new_wxFileTypeInfo(*_arg0,*_arg1,*_arg2,*_arg3); |
b37c7e1d | 8295 | |
4268f798 RD |
8296 | wxPyEndAllowThreads(__tstate); |
8297 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8298 | } if (_result) { |
8299 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8300 | _resultobj = Py_BuildValue("s",_ptemp); | |
8301 | } else { | |
8302 | Py_INCREF(Py_None); | |
8303 | _resultobj = Py_None; | |
8304 | } | |
7e50db3f RD |
8305 | { |
8306 | if (_obj0) | |
8307 | delete _arg0; | |
8308 | } | |
8309 | { | |
8310 | if (_obj1) | |
8311 | delete _arg1; | |
8312 | } | |
8313 | { | |
8314 | if (_obj2) | |
8315 | delete _arg2; | |
8316 | } | |
8317 | { | |
8318 | if (_obj3) | |
8319 | delete _arg3; | |
8320 | } | |
b37c7e1d RD |
8321 | return _resultobj; |
8322 | } | |
8323 | ||
8324 | #define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0)) | |
8325 | static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8326 | PyObject * _resultobj; | |
8327 | wxFileTypeInfo * _result; | |
8328 | wxArrayString * _arg0; | |
8329 | PyObject * _obj0 = 0; | |
8330 | char *_kwnames[] = { "sArray", NULL }; | |
8331 | char _ptemp[128]; | |
8332 | ||
8333 | self = self; | |
8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0)) | |
8335 | return NULL; | |
8336 | { | |
8337 | if (! PySequence_Check(_obj0)) { | |
8338 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
8339 | return NULL; | |
8340 | } | |
8341 | _arg0 = new wxArrayString; | |
8342 | int i, len=PySequence_Length(_obj0); | |
8343 | for (i=0; i<len; i++) { | |
8344 | PyObject* item = PySequence_GetItem(_obj0, i); | |
c8bc7bb8 RD |
8345 | #if wxUSE_UNICODE |
8346 | PyObject* str = PyObject_Unicode(item); | |
c8bc7bb8 | 8347 | #else |
b37c7e1d | 8348 | PyObject* str = PyObject_Str(item); |
c8bc7bb8 | 8349 | #endif |
7e50db3f | 8350 | _arg0->Add(Py2wxString(str)); |
b37c7e1d RD |
8351 | Py_DECREF(item); |
8352 | Py_DECREF(str); | |
8353 | } | |
8354 | } | |
8355 | { | |
4268f798 | 8356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8357 | _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0); |
b37c7e1d | 8358 | |
4268f798 RD |
8359 | wxPyEndAllowThreads(__tstate); |
8360 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8361 | } if (_result) { |
8362 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8363 | _resultobj = Py_BuildValue("s",_ptemp); | |
8364 | } else { | |
8365 | Py_INCREF(Py_None); | |
8366 | _resultobj = Py_None; | |
8367 | } | |
8368 | { | |
8369 | if (_obj0) | |
8370 | delete _arg0; | |
8371 | } | |
8372 | return _resultobj; | |
8373 | } | |
8374 | ||
8375 | #define new_wxNullFileTypeInfo() (new wxFileTypeInfo()) | |
8376 | static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8377 | PyObject * _resultobj; | |
8378 | wxFileTypeInfo * _result; | |
8379 | char *_kwnames[] = { NULL }; | |
8380 | char _ptemp[128]; | |
8381 | ||
8382 | self = self; | |
8383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames)) | |
8384 | return NULL; | |
8385 | { | |
4268f798 | 8386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8387 | _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo(); |
b37c7e1d | 8388 | |
4268f798 RD |
8389 | wxPyEndAllowThreads(__tstate); |
8390 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8391 | } if (_result) { |
8392 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p"); | |
8393 | _resultobj = Py_BuildValue("s",_ptemp); | |
8394 | } else { | |
8395 | Py_INCREF(Py_None); | |
8396 | _resultobj = Py_None; | |
8397 | } | |
8398 | return _resultobj; | |
8399 | } | |
8400 | ||
8401 | #define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid()) | |
8402 | static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8403 | PyObject * _resultobj; | |
8404 | bool _result; | |
8405 | wxFileTypeInfo * _arg0; | |
8406 | PyObject * _argo0 = 0; | |
8407 | char *_kwnames[] = { "self", NULL }; | |
8408 | ||
8409 | self = self; | |
8410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0)) | |
8411 | return NULL; | |
8412 | if (_argo0) { | |
8413 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8414 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8415 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p."); | |
8416 | return NULL; | |
8417 | } | |
8418 | } | |
8419 | { | |
4268f798 | 8420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8421 | _result = (bool )wxFileTypeInfo_IsValid(_arg0); |
b37c7e1d | 8422 | |
4268f798 RD |
8423 | wxPyEndAllowThreads(__tstate); |
8424 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8425 | } _resultobj = Py_BuildValue("i",_result); |
8426 | return _resultobj; | |
8427 | } | |
8428 | ||
8429 | #define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1)) | |
8430 | static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8431 | PyObject * _resultobj; | |
8432 | wxFileTypeInfo * _arg0; | |
8433 | wxString * _arg1; | |
8434 | int _arg2 = (int ) 0; | |
8435 | PyObject * _argo0 = 0; | |
8436 | PyObject * _obj1 = 0; | |
8437 | char *_kwnames[] = { "self","iconFile","iconIndex", NULL }; | |
8438 | ||
8439 | self = self; | |
8440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
8441 | return NULL; | |
8442 | if (_argo0) { | |
8443 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8444 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8445 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p."); | |
8446 | return NULL; | |
8447 | } | |
8448 | } | |
8449 | { | |
c8bc7bb8 RD |
8450 | _arg1 = wxString_in_helper(_obj1); |
8451 | if (_arg1 == NULL) | |
b37c7e1d | 8452 | return NULL; |
b37c7e1d RD |
8453 | } |
8454 | { | |
4268f798 | 8455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8456 | wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 8457 | |
4268f798 RD |
8458 | wxPyEndAllowThreads(__tstate); |
8459 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8460 | } Py_INCREF(Py_None); |
8461 | _resultobj = Py_None; | |
8462 | { | |
8463 | if (_obj1) | |
8464 | delete _arg1; | |
8465 | } | |
8466 | return _resultobj; | |
8467 | } | |
8468 | ||
8469 | #define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0)) | |
8470 | static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8471 | PyObject * _resultobj; | |
8472 | wxFileTypeInfo * _arg0; | |
8473 | wxString * _arg1; | |
8474 | PyObject * _argo0 = 0; | |
8475 | PyObject * _obj1 = 0; | |
8476 | char *_kwnames[] = { "self","shortDesc", NULL }; | |
8477 | ||
8478 | self = self; | |
8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1)) | |
8480 | return NULL; | |
8481 | if (_argo0) { | |
8482 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8483 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8484 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p."); | |
8485 | return NULL; | |
8486 | } | |
8487 | } | |
8488 | { | |
c8bc7bb8 RD |
8489 | _arg1 = wxString_in_helper(_obj1); |
8490 | if (_arg1 == NULL) | |
b37c7e1d | 8491 | return NULL; |
b37c7e1d RD |
8492 | } |
8493 | { | |
4268f798 | 8494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8495 | wxFileTypeInfo_SetShortDesc(_arg0,*_arg1); |
b37c7e1d | 8496 | |
4268f798 RD |
8497 | wxPyEndAllowThreads(__tstate); |
8498 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8499 | } Py_INCREF(Py_None); |
8500 | _resultobj = Py_None; | |
8501 | { | |
8502 | if (_obj1) | |
8503 | delete _arg1; | |
8504 | } | |
8505 | return _resultobj; | |
8506 | } | |
8507 | ||
8508 | #define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType()) | |
8509 | static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8510 | PyObject * _resultobj; | |
8511 | wxString * _result; | |
8512 | wxFileTypeInfo * _arg0; | |
8513 | PyObject * _argo0 = 0; | |
8514 | char *_kwnames[] = { "self", NULL }; | |
8515 | ||
8516 | self = self; | |
8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0)) | |
8518 | return NULL; | |
8519 | if (_argo0) { | |
8520 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8521 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8522 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p."); | |
8523 | return NULL; | |
8524 | } | |
8525 | } | |
8526 | { | |
4268f798 | 8527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8528 | const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0); |
b37c7e1d RD |
8529 | _result = (wxString *) &_result_ref; |
8530 | ||
4268f798 RD |
8531 | wxPyEndAllowThreads(__tstate); |
8532 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8533 | }{ |
c8bc7bb8 | 8534 | #if wxUSE_UNICODE |
7e50db3f | 8535 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8536 | #else |
b37c7e1d | 8537 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8538 | #endif |
b37c7e1d RD |
8539 | } |
8540 | return _resultobj; | |
8541 | } | |
8542 | ||
8543 | #define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand()) | |
8544 | static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8545 | PyObject * _resultobj; | |
8546 | wxString * _result; | |
8547 | wxFileTypeInfo * _arg0; | |
8548 | PyObject * _argo0 = 0; | |
8549 | char *_kwnames[] = { "self", NULL }; | |
8550 | ||
8551 | self = self; | |
8552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0)) | |
8553 | return NULL; | |
8554 | if (_argo0) { | |
8555 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8556 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8557 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p."); | |
8558 | return NULL; | |
8559 | } | |
8560 | } | |
8561 | { | |
4268f798 | 8562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8563 | const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0); |
b37c7e1d RD |
8564 | _result = (wxString *) &_result_ref; |
8565 | ||
4268f798 RD |
8566 | wxPyEndAllowThreads(__tstate); |
8567 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8568 | }{ |
c8bc7bb8 | 8569 | #if wxUSE_UNICODE |
7e50db3f | 8570 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8571 | #else |
b37c7e1d | 8572 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8573 | #endif |
b37c7e1d RD |
8574 | } |
8575 | return _resultobj; | |
8576 | } | |
8577 | ||
8578 | #define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand()) | |
8579 | static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8580 | PyObject * _resultobj; | |
8581 | wxString * _result; | |
8582 | wxFileTypeInfo * _arg0; | |
8583 | PyObject * _argo0 = 0; | |
8584 | char *_kwnames[] = { "self", NULL }; | |
8585 | ||
8586 | self = self; | |
8587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0)) | |
8588 | return NULL; | |
8589 | if (_argo0) { | |
8590 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8591 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8592 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p."); | |
8593 | return NULL; | |
8594 | } | |
8595 | } | |
8596 | { | |
4268f798 | 8597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8598 | const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0); |
b37c7e1d RD |
8599 | _result = (wxString *) &_result_ref; |
8600 | ||
4268f798 RD |
8601 | wxPyEndAllowThreads(__tstate); |
8602 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8603 | }{ |
c8bc7bb8 | 8604 | #if wxUSE_UNICODE |
7e50db3f | 8605 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8606 | #else |
b37c7e1d | 8607 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8608 | #endif |
b37c7e1d RD |
8609 | } |
8610 | return _resultobj; | |
8611 | } | |
8612 | ||
8613 | #define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc()) | |
8614 | static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8615 | PyObject * _resultobj; | |
8616 | wxString * _result; | |
8617 | wxFileTypeInfo * _arg0; | |
8618 | PyObject * _argo0 = 0; | |
8619 | char *_kwnames[] = { "self", NULL }; | |
8620 | ||
8621 | self = self; | |
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0)) | |
8623 | return NULL; | |
8624 | if (_argo0) { | |
8625 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8626 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8627 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p."); | |
8628 | return NULL; | |
8629 | } | |
8630 | } | |
8631 | { | |
4268f798 | 8632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8633 | const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0); |
b37c7e1d RD |
8634 | _result = (wxString *) &_result_ref; |
8635 | ||
4268f798 RD |
8636 | wxPyEndAllowThreads(__tstate); |
8637 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8638 | }{ |
c8bc7bb8 | 8639 | #if wxUSE_UNICODE |
7e50db3f | 8640 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8641 | #else |
b37c7e1d | 8642 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8643 | #endif |
b37c7e1d RD |
8644 | } |
8645 | return _resultobj; | |
8646 | } | |
8647 | ||
8648 | #define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription()) | |
8649 | static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8650 | PyObject * _resultobj; | |
8651 | wxString * _result; | |
8652 | wxFileTypeInfo * _arg0; | |
8653 | PyObject * _argo0 = 0; | |
8654 | char *_kwnames[] = { "self", NULL }; | |
8655 | ||
8656 | self = self; | |
8657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0)) | |
8658 | return NULL; | |
8659 | if (_argo0) { | |
8660 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8661 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8662 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p."); | |
8663 | return NULL; | |
8664 | } | |
8665 | } | |
8666 | { | |
4268f798 | 8667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8668 | const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0); |
b37c7e1d RD |
8669 | _result = (wxString *) &_result_ref; |
8670 | ||
4268f798 RD |
8671 | wxPyEndAllowThreads(__tstate); |
8672 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8673 | }{ |
c8bc7bb8 | 8674 | #if wxUSE_UNICODE |
7e50db3f | 8675 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8676 | #else |
b37c7e1d | 8677 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8678 | #endif |
b37c7e1d RD |
8679 | } |
8680 | return _resultobj; | |
8681 | } | |
8682 | ||
8683 | static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) { | |
8684 | wxArrayString& arr = (wxArrayString&)self->GetExtensions(); | |
8685 | return wxArrayString2PyList_helper(arr); | |
8686 | } | |
8687 | static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8688 | PyObject * _resultobj; | |
8689 | PyObject * _result; | |
8690 | wxFileTypeInfo * _arg0; | |
8691 | PyObject * _argo0 = 0; | |
8692 | char *_kwnames[] = { "self", NULL }; | |
8693 | ||
8694 | self = self; | |
8695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0)) | |
8696 | return NULL; | |
8697 | if (_argo0) { | |
8698 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8699 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8700 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p."); | |
8701 | return NULL; | |
8702 | } | |
8703 | } | |
8704 | { | |
4268f798 | 8705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8706 | _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0); |
b37c7e1d | 8707 | |
4268f798 RD |
8708 | wxPyEndAllowThreads(__tstate); |
8709 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8710 | }{ |
8711 | _resultobj = _result; | |
8712 | } | |
8713 | return _resultobj; | |
8714 | } | |
8715 | ||
8716 | #define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount()) | |
8717 | static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8718 | PyObject * _resultobj; | |
8719 | int _result; | |
8720 | wxFileTypeInfo * _arg0; | |
8721 | PyObject * _argo0 = 0; | |
8722 | char *_kwnames[] = { "self", NULL }; | |
8723 | ||
8724 | self = self; | |
8725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0)) | |
8726 | return NULL; | |
8727 | if (_argo0) { | |
8728 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8729 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8730 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p."); | |
8731 | return NULL; | |
8732 | } | |
8733 | } | |
8734 | { | |
4268f798 | 8735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8736 | _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0); |
b37c7e1d | 8737 | |
4268f798 RD |
8738 | wxPyEndAllowThreads(__tstate); |
8739 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8740 | } _resultobj = Py_BuildValue("i",_result); |
8741 | return _resultobj; | |
8742 | } | |
8743 | ||
8744 | #define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile()) | |
8745 | static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8746 | PyObject * _resultobj; | |
8747 | wxString * _result; | |
8748 | wxFileTypeInfo * _arg0; | |
8749 | PyObject * _argo0 = 0; | |
8750 | char *_kwnames[] = { "self", NULL }; | |
8751 | ||
8752 | self = self; | |
8753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0)) | |
8754 | return NULL; | |
8755 | if (_argo0) { | |
8756 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8757 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8758 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p."); | |
8759 | return NULL; | |
8760 | } | |
8761 | } | |
8762 | { | |
4268f798 | 8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8764 | const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0); |
b37c7e1d RD |
8765 | _result = (wxString *) &_result_ref; |
8766 | ||
4268f798 RD |
8767 | wxPyEndAllowThreads(__tstate); |
8768 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 8769 | }{ |
c8bc7bb8 | 8770 | #if wxUSE_UNICODE |
7e50db3f | 8771 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8772 | #else |
b37c7e1d | 8773 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 8774 | #endif |
b37c7e1d RD |
8775 | } |
8776 | return _resultobj; | |
8777 | } | |
8778 | ||
8779 | #define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex()) | |
8780 | static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8781 | PyObject * _resultobj; | |
8782 | int _result; | |
8783 | wxFileTypeInfo * _arg0; | |
8784 | PyObject * _argo0 = 0; | |
8785 | char *_kwnames[] = { "self", NULL }; | |
8786 | ||
8787 | self = self; | |
8788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0)) | |
8789 | return NULL; | |
8790 | if (_argo0) { | |
8791 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8792 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { | |
8793 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p."); | |
8794 | return NULL; | |
8795 | } | |
8796 | } | |
8797 | { | |
4268f798 | 8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8799 | _result = (int )wxFileTypeInfo_GetIconIndex(_arg0); |
b37c7e1d | 8800 | |
4268f798 RD |
8801 | wxPyEndAllowThreads(__tstate); |
8802 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8803 | } _resultobj = Py_BuildValue("i",_result); |
8804 | return _resultobj; | |
8805 | } | |
8806 | ||
8807 | #define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0)) | |
8808 | static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8809 | PyObject * _resultobj; | |
8810 | wxFileType * _result; | |
8811 | wxFileTypeInfo * _arg0; | |
8812 | PyObject * _argo0 = 0; | |
8813 | char *_kwnames[] = { "ftInfo", NULL }; | |
8814 | char _ptemp[128]; | |
8815 | ||
8816 | self = self; | |
8817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0)) | |
8818 | return NULL; | |
8819 | if (_argo0) { | |
7e50db3f | 8820 | if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) { |
b37c7e1d RD |
8821 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p."); |
8822 | return NULL; | |
8823 | } | |
8824 | } | |
8825 | { | |
4268f798 | 8826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8827 | _result = (wxFileType *)new_wxFileType(*_arg0); |
b37c7e1d | 8828 | |
4268f798 RD |
8829 | wxPyEndAllowThreads(__tstate); |
8830 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8831 | } if (_result) { |
8832 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
8833 | _resultobj = Py_BuildValue("s",_ptemp); | |
8834 | } else { | |
8835 | Py_INCREF(Py_None); | |
8836 | _resultobj = Py_None; | |
8837 | } | |
8838 | return _resultobj; | |
8839 | } | |
8840 | ||
8841 | static PyObject * wxFileType_GetMimeType(wxFileType *self) { | |
8842 | wxString str; | |
c8bc7bb8 RD |
8843 | if (self->GetMimeType(&str)) { |
8844 | #if wxUSE_UNICODE | |
7e50db3f | 8845 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
8846 | #else |
8847 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
8848 | #endif | |
8849 | } | |
b37c7e1d RD |
8850 | else |
8851 | RETURN_NONE(); | |
8852 | } | |
8853 | static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8854 | PyObject * _resultobj; | |
8855 | PyObject * _result; | |
8856 | wxFileType * _arg0; | |
8857 | PyObject * _argo0 = 0; | |
8858 | char *_kwnames[] = { "self", NULL }; | |
8859 | ||
8860 | self = self; | |
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0)) | |
8862 | return NULL; | |
8863 | if (_argo0) { | |
8864 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8865 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8866 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p."); | |
8867 | return NULL; | |
8868 | } | |
8869 | } | |
8870 | { | |
4268f798 | 8871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8872 | _result = (PyObject *)wxFileType_GetMimeType(_arg0); |
b37c7e1d | 8873 | |
4268f798 RD |
8874 | wxPyEndAllowThreads(__tstate); |
8875 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8876 | }{ |
8877 | _resultobj = _result; | |
8878 | } | |
8879 | return _resultobj; | |
8880 | } | |
8881 | ||
8882 | static PyObject * wxFileType_GetMimeTypes(wxFileType *self) { | |
8883 | wxArrayString arr; | |
8884 | if (self->GetMimeTypes(arr)) | |
8885 | return wxArrayString2PyList_helper(arr); | |
8886 | else | |
8887 | RETURN_NONE(); | |
8888 | } | |
8889 | static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8890 | PyObject * _resultobj; | |
8891 | PyObject * _result; | |
8892 | wxFileType * _arg0; | |
8893 | PyObject * _argo0 = 0; | |
8894 | char *_kwnames[] = { "self", NULL }; | |
8895 | ||
8896 | self = self; | |
8897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0)) | |
8898 | return NULL; | |
8899 | if (_argo0) { | |
8900 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8901 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8902 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p."); | |
8903 | return NULL; | |
8904 | } | |
8905 | } | |
8906 | { | |
4268f798 | 8907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8908 | _result = (PyObject *)wxFileType_GetMimeTypes(_arg0); |
b37c7e1d | 8909 | |
4268f798 RD |
8910 | wxPyEndAllowThreads(__tstate); |
8911 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8912 | }{ |
8913 | _resultobj = _result; | |
8914 | } | |
8915 | return _resultobj; | |
8916 | } | |
8917 | ||
8918 | static PyObject * wxFileType_GetExtensions(wxFileType *self) { | |
8919 | wxArrayString arr; | |
8920 | if (self->GetExtensions(arr)) | |
8921 | return wxArrayString2PyList_helper(arr); | |
8922 | else | |
8923 | RETURN_NONE(); | |
8924 | } | |
8925 | static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8926 | PyObject * _resultobj; | |
8927 | PyObject * _result; | |
8928 | wxFileType * _arg0; | |
8929 | PyObject * _argo0 = 0; | |
8930 | char *_kwnames[] = { "self", NULL }; | |
8931 | ||
8932 | self = self; | |
8933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0)) | |
8934 | return NULL; | |
8935 | if (_argo0) { | |
8936 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8937 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8938 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p."); | |
8939 | return NULL; | |
8940 | } | |
8941 | } | |
8942 | { | |
4268f798 | 8943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8944 | _result = (PyObject *)wxFileType_GetExtensions(_arg0); |
b37c7e1d | 8945 | |
4268f798 RD |
8946 | wxPyEndAllowThreads(__tstate); |
8947 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8948 | }{ |
8949 | _resultobj = _result; | |
8950 | } | |
8951 | return _resultobj; | |
8952 | } | |
8953 | ||
8954 | static wxIcon * wxFileType_GetIcon(wxFileType *self) { | |
5a2a9da2 RD |
8955 | wxIconLocation loc; |
8956 | if (self->GetIcon(&loc)) | |
8957 | return new wxIcon(loc); | |
b37c7e1d RD |
8958 | else |
8959 | return NULL; | |
8960 | } | |
8961 | static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8962 | PyObject * _resultobj; | |
8963 | wxIcon * _result; | |
8964 | wxFileType * _arg0; | |
8965 | PyObject * _argo0 = 0; | |
8966 | char *_kwnames[] = { "self", NULL }; | |
8967 | char _ptemp[128]; | |
8968 | ||
8969 | self = self; | |
8970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0)) | |
8971 | return NULL; | |
8972 | if (_argo0) { | |
8973 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
8974 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
8975 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p."); | |
8976 | return NULL; | |
8977 | } | |
8978 | } | |
8979 | { | |
4268f798 | 8980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 8981 | _result = (wxIcon *)wxFileType_GetIcon(_arg0); |
b37c7e1d | 8982 | |
4268f798 RD |
8983 | wxPyEndAllowThreads(__tstate); |
8984 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
8985 | } if (_result) { |
8986 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p"); | |
8987 | _resultobj = Py_BuildValue("s",_ptemp); | |
8988 | } else { | |
8989 | Py_INCREF(Py_None); | |
8990 | _resultobj = Py_None; | |
8991 | } | |
8992 | return _resultobj; | |
8993 | } | |
8994 | ||
8995 | static PyObject * wxFileType_GetIconInfo(wxFileType *self) { | |
5a2a9da2 RD |
8996 | wxIconLocation loc; |
8997 | if (self->GetIcon(&loc)) { | |
8998 | wxString iconFile = loc.GetFileName(); | |
8999 | int iconIndex = -1; | |
9000 | #ifdef __WXMSW__ | |
9001 | iconIndex = loc.GetIndex(); | |
9002 | #endif | |
9003 | // Make a tuple and put the values in it | |
4268f798 | 9004 | wxPyBeginBlockThreads(); |
b37c7e1d | 9005 | PyObject* tuple = PyTuple_New(3); |
5a2a9da2 RD |
9006 | PyTuple_SetItem(tuple, 0, |
9007 | wxPyConstructObject(new wxIcon(loc), wxT("wxIcon"), TRUE)); | |
c8bc7bb8 | 9008 | #if wxUSE_UNICODE |
7e50db3f | 9009 | PyTuple_SetItem(tuple, 1, PyUnicode_FromWideChar(iconFile.c_str(), iconFile.Len())); |
c8bc7bb8 RD |
9010 | #else |
9011 | PyTuple_SetItem(tuple, 1, PyString_FromStringAndSize(iconFile.c_str(), iconFile.Len())); | |
9012 | #endif | |
b37c7e1d | 9013 | PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex)); |
4268f798 | 9014 | wxPyEndBlockThreads(); |
b37c7e1d RD |
9015 | return tuple; |
9016 | } | |
9017 | else | |
9018 | RETURN_NONE(); | |
9019 | } | |
9020 | static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9021 | PyObject * _resultobj; | |
9022 | PyObject * _result; | |
9023 | wxFileType * _arg0; | |
9024 | PyObject * _argo0 = 0; | |
9025 | char *_kwnames[] = { "self", NULL }; | |
9026 | ||
9027 | self = self; | |
9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0)) | |
9029 | return NULL; | |
9030 | if (_argo0) { | |
9031 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9032 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9033 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p."); | |
9034 | return NULL; | |
9035 | } | |
9036 | } | |
9037 | { | |
4268f798 | 9038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9039 | _result = (PyObject *)wxFileType_GetIconInfo(_arg0); |
b37c7e1d | 9040 | |
4268f798 RD |
9041 | wxPyEndAllowThreads(__tstate); |
9042 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9043 | }{ |
9044 | _resultobj = _result; | |
9045 | } | |
9046 | return _resultobj; | |
9047 | } | |
9048 | ||
9049 | static PyObject * wxFileType_GetDescription(wxFileType *self) { | |
9050 | wxString str; | |
c8bc7bb8 RD |
9051 | if (self->GetDescription(&str)) { |
9052 | #if wxUSE_UNICODE | |
7e50db3f | 9053 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
9054 | #else |
9055 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
9056 | #endif | |
9057 | } else | |
b37c7e1d RD |
9058 | RETURN_NONE(); |
9059 | } | |
9060 | static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9061 | PyObject * _resultobj; | |
9062 | PyObject * _result; | |
9063 | wxFileType * _arg0; | |
9064 | PyObject * _argo0 = 0; | |
9065 | char *_kwnames[] = { "self", NULL }; | |
9066 | ||
9067 | self = self; | |
9068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0)) | |
9069 | return NULL; | |
9070 | if (_argo0) { | |
9071 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9072 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9073 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p."); | |
9074 | return NULL; | |
9075 | } | |
9076 | } | |
9077 | { | |
4268f798 | 9078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9079 | _result = (PyObject *)wxFileType_GetDescription(_arg0); |
b37c7e1d | 9080 | |
4268f798 RD |
9081 | wxPyEndAllowThreads(__tstate); |
9082 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9083 | }{ |
9084 | _resultobj = _result; | |
9085 | } | |
9086 | return _resultobj; | |
9087 | } | |
9088 | ||
9089 | static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
9090 | wxString str; | |
c8bc7bb8 RD |
9091 | if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
9092 | #if wxUSE_UNICODE | |
7e50db3f | 9093 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
9094 | #else |
9095 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
9096 | #endif | |
9097 | } else | |
b37c7e1d RD |
9098 | RETURN_NONE(); |
9099 | } | |
9100 | static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9101 | PyObject * _resultobj; | |
9102 | PyObject * _result; | |
9103 | wxFileType * _arg0; | |
9104 | wxString * _arg1; | |
137b5242 | 9105 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9106 | PyObject * _argo0 = 0; |
9107 | PyObject * _obj1 = 0; | |
9108 | PyObject * _obj2 = 0; | |
9109 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9110 | ||
9111 | self = self; | |
9112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9113 | return NULL; | |
9114 | if (_argo0) { | |
9115 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9116 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9117 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p."); | |
9118 | return NULL; | |
9119 | } | |
9120 | } | |
9121 | { | |
c8bc7bb8 RD |
9122 | _arg1 = wxString_in_helper(_obj1); |
9123 | if (_arg1 == NULL) | |
b37c7e1d | 9124 | return NULL; |
b37c7e1d RD |
9125 | } |
9126 | if (_obj2) | |
9127 | { | |
c8bc7bb8 RD |
9128 | _arg2 = wxString_in_helper(_obj2); |
9129 | if (_arg2 == NULL) | |
b37c7e1d | 9130 | return NULL; |
b37c7e1d RD |
9131 | } |
9132 | { | |
4268f798 | 9133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9134 | _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9135 | |
4268f798 RD |
9136 | wxPyEndAllowThreads(__tstate); |
9137 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9138 | }{ |
9139 | _resultobj = _result; | |
9140 | } | |
9141 | { | |
9142 | if (_obj1) | |
9143 | delete _arg1; | |
9144 | } | |
9145 | { | |
9146 | if (_obj2) | |
9147 | delete _arg2; | |
9148 | } | |
9149 | return _resultobj; | |
9150 | } | |
9151 | ||
9152 | static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
9153 | wxString str; | |
c8bc7bb8 RD |
9154 | if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype))) { |
9155 | #if wxUSE_UNICODE | |
7e50db3f | 9156 | return PyUnicode_FromWideChar(str.c_str(), str.Len()); |
c8bc7bb8 RD |
9157 | #else |
9158 | return PyString_FromStringAndSize(str.c_str(), str.Len()); | |
9159 | #endif | |
9160 | } else | |
b37c7e1d RD |
9161 | RETURN_NONE(); |
9162 | } | |
9163 | static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9164 | PyObject * _resultobj; | |
9165 | PyObject * _result; | |
9166 | wxFileType * _arg0; | |
9167 | wxString * _arg1; | |
137b5242 | 9168 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9169 | PyObject * _argo0 = 0; |
9170 | PyObject * _obj1 = 0; | |
9171 | PyObject * _obj2 = 0; | |
9172 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9173 | ||
9174 | self = self; | |
9175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9176 | return NULL; | |
9177 | if (_argo0) { | |
9178 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9179 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9180 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p."); | |
9181 | return NULL; | |
9182 | } | |
9183 | } | |
9184 | { | |
c8bc7bb8 RD |
9185 | _arg1 = wxString_in_helper(_obj1); |
9186 | if (_arg1 == NULL) | |
b37c7e1d | 9187 | return NULL; |
b37c7e1d RD |
9188 | } |
9189 | if (_obj2) | |
9190 | { | |
c8bc7bb8 RD |
9191 | _arg2 = wxString_in_helper(_obj2); |
9192 | if (_arg2 == NULL) | |
b37c7e1d | 9193 | return NULL; |
b37c7e1d RD |
9194 | } |
9195 | { | |
4268f798 | 9196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9197 | _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9198 | |
4268f798 RD |
9199 | wxPyEndAllowThreads(__tstate); |
9200 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9201 | }{ |
9202 | _resultobj = _result; | |
9203 | } | |
9204 | { | |
9205 | if (_obj1) | |
9206 | delete _arg1; | |
9207 | } | |
9208 | { | |
9209 | if (_obj2) | |
9210 | delete _arg2; | |
9211 | } | |
9212 | return _resultobj; | |
9213 | } | |
9214 | ||
9215 | static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) { | |
9216 | wxArrayString verbs; | |
9217 | wxArrayString commands; | |
9218 | if (self->GetAllCommands(&verbs, &commands, | |
9219 | wxFileType::MessageParameters(filename, mimetype))) { | |
4268f798 | 9220 | wxPyBeginBlockThreads(); |
b37c7e1d RD |
9221 | PyObject* tuple = PyTuple_New(2); |
9222 | PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs)); | |
9223 | PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands)); | |
4268f798 | 9224 | wxPyEndBlockThreads(); |
b37c7e1d RD |
9225 | return tuple; |
9226 | } | |
9227 | else | |
9228 | RETURN_NONE(); | |
9229 | } | |
9230 | static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9231 | PyObject * _resultobj; | |
9232 | PyObject * _result; | |
9233 | wxFileType * _arg0; | |
9234 | wxString * _arg1; | |
137b5242 | 9235 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9236 | PyObject * _argo0 = 0; |
9237 | PyObject * _obj1 = 0; | |
9238 | PyObject * _obj2 = 0; | |
9239 | char *_kwnames[] = { "self","filename","mimetype", NULL }; | |
9240 | ||
9241 | self = self; | |
9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2)) | |
9243 | return NULL; | |
9244 | if (_argo0) { | |
9245 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9246 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9247 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p."); | |
9248 | return NULL; | |
9249 | } | |
9250 | } | |
9251 | { | |
c8bc7bb8 RD |
9252 | _arg1 = wxString_in_helper(_obj1); |
9253 | if (_arg1 == NULL) | |
b37c7e1d | 9254 | return NULL; |
b37c7e1d RD |
9255 | } |
9256 | if (_obj2) | |
9257 | { | |
c8bc7bb8 RD |
9258 | _arg2 = wxString_in_helper(_obj2); |
9259 | if (_arg2 == NULL) | |
b37c7e1d | 9260 | return NULL; |
b37c7e1d RD |
9261 | } |
9262 | { | |
4268f798 | 9263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9264 | _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2); |
b37c7e1d | 9265 | |
4268f798 RD |
9266 | wxPyEndAllowThreads(__tstate); |
9267 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9268 | }{ |
9269 | _resultobj = _result; | |
9270 | } | |
9271 | { | |
9272 | if (_obj1) | |
9273 | delete _arg1; | |
9274 | } | |
9275 | { | |
9276 | if (_obj2) | |
9277 | delete _arg2; | |
9278 | } | |
9279 | return _resultobj; | |
9280 | } | |
9281 | ||
9282 | #define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2)) | |
9283 | static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9284 | PyObject * _resultobj; | |
9285 | bool _result; | |
9286 | wxFileType * _arg0; | |
9287 | wxString * _arg1; | |
9288 | wxString * _arg2; | |
9289 | bool _arg3 = (bool ) TRUE; | |
9290 | PyObject * _argo0 = 0; | |
9291 | PyObject * _obj1 = 0; | |
9292 | PyObject * _obj2 = 0; | |
9293 | int tempbool3 = (int) TRUE; | |
9294 | char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL }; | |
9295 | ||
9296 | self = self; | |
9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3)) | |
9298 | return NULL; | |
9299 | if (_argo0) { | |
9300 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9301 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9302 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p."); | |
9303 | return NULL; | |
9304 | } | |
9305 | } | |
9306 | { | |
c8bc7bb8 RD |
9307 | _arg1 = wxString_in_helper(_obj1); |
9308 | if (_arg1 == NULL) | |
b37c7e1d | 9309 | return NULL; |
b37c7e1d RD |
9310 | } |
9311 | { | |
c8bc7bb8 RD |
9312 | _arg2 = wxString_in_helper(_obj2); |
9313 | if (_arg2 == NULL) | |
b37c7e1d | 9314 | return NULL; |
b37c7e1d RD |
9315 | } |
9316 | _arg3 = (bool ) tempbool3; | |
9317 | { | |
4268f798 | 9318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9319 | _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3); |
b37c7e1d | 9320 | |
4268f798 RD |
9321 | wxPyEndAllowThreads(__tstate); |
9322 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9323 | } _resultobj = Py_BuildValue("i",_result); |
9324 | { | |
9325 | if (_obj1) | |
9326 | delete _arg1; | |
9327 | } | |
9328 | { | |
9329 | if (_obj2) | |
9330 | delete _arg2; | |
9331 | } | |
9332 | return _resultobj; | |
9333 | } | |
9334 | ||
9335 | #define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1)) | |
9336 | static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9337 | PyObject * _resultobj; | |
9338 | bool _result; | |
9339 | wxFileType * _arg0; | |
137b5242 | 9340 | wxString * _arg1 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9341 | int _arg2 = (int ) 0; |
9342 | PyObject * _argo0 = 0; | |
9343 | PyObject * _obj1 = 0; | |
9344 | char *_kwnames[] = { "self","cmd","index", NULL }; | |
9345 | ||
9346 | self = self; | |
9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2)) | |
9348 | return NULL; | |
9349 | if (_argo0) { | |
9350 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9351 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9352 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p."); | |
9353 | return NULL; | |
9354 | } | |
9355 | } | |
9356 | if (_obj1) | |
9357 | { | |
c8bc7bb8 RD |
9358 | _arg1 = wxString_in_helper(_obj1); |
9359 | if (_arg1 == NULL) | |
b37c7e1d | 9360 | return NULL; |
b37c7e1d RD |
9361 | } |
9362 | { | |
4268f798 | 9363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9364 | _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2); |
b37c7e1d | 9365 | |
4268f798 RD |
9366 | wxPyEndAllowThreads(__tstate); |
9367 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9368 | } _resultobj = Py_BuildValue("i",_result); |
9369 | { | |
9370 | if (_obj1) | |
9371 | delete _arg1; | |
9372 | } | |
9373 | return _resultobj; | |
9374 | } | |
9375 | ||
9376 | #define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate()) | |
9377 | static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9378 | PyObject * _resultobj; | |
9379 | bool _result; | |
9380 | wxFileType * _arg0; | |
9381 | PyObject * _argo0 = 0; | |
9382 | char *_kwnames[] = { "self", NULL }; | |
9383 | ||
9384 | self = self; | |
9385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0)) | |
9386 | return NULL; | |
9387 | if (_argo0) { | |
9388 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9389 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9390 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p."); | |
9391 | return NULL; | |
9392 | } | |
9393 | } | |
9394 | { | |
4268f798 | 9395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9396 | _result = (bool )wxFileType_Unassociate(_arg0); |
b37c7e1d | 9397 | |
4268f798 RD |
9398 | wxPyEndAllowThreads(__tstate); |
9399 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9400 | } _resultobj = Py_BuildValue("i",_result); |
9401 | return _resultobj; | |
9402 | } | |
9403 | ||
9404 | static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9405 | PyObject * _resultobj; | |
9406 | wxString * _result; | |
9407 | wxString * _arg0; | |
9408 | wxFileType::MessageParameters * _arg1; | |
9409 | PyObject * _obj0 = 0; | |
9410 | PyObject * _argo1 = 0; | |
9411 | char *_kwnames[] = { "command","params", NULL }; | |
9412 | ||
9413 | self = self; | |
9414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1)) | |
9415 | return NULL; | |
9416 | { | |
c8bc7bb8 RD |
9417 | _arg0 = wxString_in_helper(_obj0); |
9418 | if (_arg0 == NULL) | |
b37c7e1d | 9419 | return NULL; |
b37c7e1d RD |
9420 | } |
9421 | if (_argo1) { | |
7e50db3f | 9422 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) { |
b37c7e1d RD |
9423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p."); |
9424 | return NULL; | |
9425 | } | |
9426 | } | |
9427 | { | |
4268f798 | 9428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9429 | _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1)); |
b37c7e1d | 9430 | |
4268f798 RD |
9431 | wxPyEndAllowThreads(__tstate); |
9432 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d | 9433 | }{ |
c8bc7bb8 | 9434 | #if wxUSE_UNICODE |
7e50db3f | 9435 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9436 | #else |
b37c7e1d | 9437 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 9438 | #endif |
b37c7e1d RD |
9439 | } |
9440 | { | |
9441 | if (_obj0) | |
9442 | delete _arg0; | |
9443 | } | |
9444 | { | |
9445 | delete _result; | |
9446 | } | |
9447 | return _resultobj; | |
9448 | } | |
9449 | ||
9450 | #define delete_wxFileType(_swigobj) (delete _swigobj) | |
9451 | static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9452 | PyObject * _resultobj; | |
9453 | wxFileType * _arg0; | |
9454 | PyObject * _argo0 = 0; | |
9455 | char *_kwnames[] = { "self", NULL }; | |
9456 | ||
9457 | self = self; | |
9458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0)) | |
9459 | return NULL; | |
9460 | if (_argo0) { | |
9461 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9462 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) { | |
9463 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p."); | |
9464 | return NULL; | |
9465 | } | |
9466 | } | |
9467 | { | |
4268f798 | 9468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9469 | delete_wxFileType(_arg0); |
b37c7e1d | 9470 | |
4268f798 RD |
9471 | wxPyEndAllowThreads(__tstate); |
9472 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9473 | } Py_INCREF(Py_None); |
9474 | _resultobj = Py_None; | |
9475 | return _resultobj; | |
9476 | } | |
9477 | ||
9478 | static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9479 | PyObject * _resultobj; | |
9480 | bool _result; | |
9481 | wxString * _arg0; | |
9482 | wxString * _arg1; | |
9483 | PyObject * _obj0 = 0; | |
9484 | PyObject * _obj1 = 0; | |
9485 | char *_kwnames[] = { "mimeType","wildcard", NULL }; | |
9486 | ||
9487 | self = self; | |
9488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1)) | |
9489 | return NULL; | |
9490 | { | |
c8bc7bb8 RD |
9491 | _arg0 = wxString_in_helper(_obj0); |
9492 | if (_arg0 == NULL) | |
b37c7e1d | 9493 | return NULL; |
b37c7e1d RD |
9494 | } |
9495 | { | |
c8bc7bb8 RD |
9496 | _arg1 = wxString_in_helper(_obj1); |
9497 | if (_arg1 == NULL) | |
b37c7e1d | 9498 | return NULL; |
b37c7e1d RD |
9499 | } |
9500 | { | |
4268f798 | 9501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9502 | _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1); |
b37c7e1d | 9503 | |
4268f798 RD |
9504 | wxPyEndAllowThreads(__tstate); |
9505 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9506 | } _resultobj = Py_BuildValue("i",_result); |
9507 | { | |
9508 | if (_obj0) | |
9509 | delete _arg0; | |
9510 | } | |
9511 | { | |
9512 | if (_obj1) | |
9513 | delete _arg1; | |
9514 | } | |
9515 | return _resultobj; | |
9516 | } | |
9517 | ||
9518 | #define new_wxMimeTypesManager() (new wxMimeTypesManager()) | |
9519 | static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9520 | PyObject * _resultobj; | |
9521 | wxMimeTypesManager * _result; | |
9522 | char *_kwnames[] = { NULL }; | |
9523 | char _ptemp[128]; | |
9524 | ||
9525 | self = self; | |
9526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames)) | |
9527 | return NULL; | |
9528 | { | |
4268f798 | 9529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9530 | _result = (wxMimeTypesManager *)new_wxMimeTypesManager(); |
b37c7e1d | 9531 | |
4268f798 RD |
9532 | wxPyEndAllowThreads(__tstate); |
9533 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9534 | } if (_result) { |
9535 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p"); | |
9536 | _resultobj = Py_BuildValue("s",_ptemp); | |
9537 | } else { | |
9538 | Py_INCREF(Py_None); | |
9539 | _resultobj = Py_None; | |
9540 | } | |
9541 | return _resultobj; | |
9542 | } | |
9543 | ||
9544 | #define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1)) | |
9545 | static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9546 | PyObject * _resultobj; | |
9547 | wxMimeTypesManager * _arg0; | |
3856ee0b | 9548 | int _arg1 = (int ) (wxMAILCAP_ALL); |
137b5242 | 9549 | wxString * _arg2 = (wxString *) &wxPyEmptyString; |
b37c7e1d RD |
9550 | PyObject * _argo0 = 0; |
9551 | PyObject * _obj2 = 0; | |
9552 | char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL }; | |
9553 | ||
9554 | self = self; | |
9555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2)) | |
9556 | return NULL; | |
9557 | if (_argo0) { | |
9558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p."); | |
9561 | return NULL; | |
9562 | } | |
9563 | } | |
9564 | if (_obj2) | |
9565 | { | |
c8bc7bb8 RD |
9566 | _arg2 = wxString_in_helper(_obj2); |
9567 | if (_arg2 == NULL) | |
b37c7e1d | 9568 | return NULL; |
b37c7e1d RD |
9569 | } |
9570 | { | |
4268f798 | 9571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9572 | wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2); |
b37c7e1d | 9573 | |
4268f798 RD |
9574 | wxPyEndAllowThreads(__tstate); |
9575 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9576 | } Py_INCREF(Py_None); |
9577 | _resultobj = Py_None; | |
9578 | { | |
9579 | if (_obj2) | |
9580 | delete _arg2; | |
9581 | } | |
9582 | return _resultobj; | |
9583 | } | |
9584 | ||
9585 | #define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData()) | |
9586 | static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9587 | PyObject * _resultobj; | |
9588 | wxMimeTypesManager * _arg0; | |
9589 | PyObject * _argo0 = 0; | |
9590 | char *_kwnames[] = { "self", NULL }; | |
9591 | ||
9592 | self = self; | |
9593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0)) | |
9594 | return NULL; | |
9595 | if (_argo0) { | |
9596 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9597 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9598 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p."); | |
9599 | return NULL; | |
9600 | } | |
9601 | } | |
9602 | { | |
4268f798 | 9603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9604 | wxMimeTypesManager_ClearData(_arg0); |
b37c7e1d | 9605 | |
4268f798 RD |
9606 | wxPyEndAllowThreads(__tstate); |
9607 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9608 | } Py_INCREF(Py_None); |
9609 | _resultobj = Py_None; | |
9610 | return _resultobj; | |
9611 | } | |
9612 | ||
9613 | #define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0)) | |
9614 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9615 | PyObject * _resultobj; | |
9616 | wxFileType * _result; | |
9617 | wxMimeTypesManager * _arg0; | |
9618 | wxString * _arg1; | |
9619 | PyObject * _argo0 = 0; | |
9620 | PyObject * _obj1 = 0; | |
9621 | char *_kwnames[] = { "self","ext", NULL }; | |
9622 | char _ptemp[128]; | |
9623 | ||
9624 | self = self; | |
9625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1)) | |
9626 | return NULL; | |
9627 | if (_argo0) { | |
9628 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9629 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9630 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p."); | |
9631 | return NULL; | |
9632 | } | |
9633 | } | |
9634 | { | |
c8bc7bb8 RD |
9635 | _arg1 = wxString_in_helper(_obj1); |
9636 | if (_arg1 == NULL) | |
b37c7e1d | 9637 | return NULL; |
b37c7e1d RD |
9638 | } |
9639 | { | |
4268f798 | 9640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9641 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1); |
b37c7e1d | 9642 | |
4268f798 RD |
9643 | wxPyEndAllowThreads(__tstate); |
9644 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9645 | } if (_result) { |
9646 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9647 | _resultobj = Py_BuildValue("s",_ptemp); | |
9648 | } else { | |
9649 | Py_INCREF(Py_None); | |
9650 | _resultobj = Py_None; | |
9651 | } | |
9652 | { | |
9653 | if (_obj1) | |
9654 | delete _arg1; | |
9655 | } | |
9656 | return _resultobj; | |
9657 | } | |
9658 | ||
9659 | #define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0)) | |
9660 | static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9661 | PyObject * _resultobj; | |
9662 | wxFileType * _result; | |
9663 | wxMimeTypesManager * _arg0; | |
9664 | wxString * _arg1; | |
9665 | PyObject * _argo0 = 0; | |
9666 | PyObject * _obj1 = 0; | |
9667 | char *_kwnames[] = { "self","mimeType", NULL }; | |
9668 | char _ptemp[128]; | |
9669 | ||
9670 | self = self; | |
9671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1)) | |
9672 | return NULL; | |
9673 | if (_argo0) { | |
9674 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9675 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9676 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p."); | |
9677 | return NULL; | |
9678 | } | |
9679 | } | |
9680 | { | |
c8bc7bb8 RD |
9681 | _arg1 = wxString_in_helper(_obj1); |
9682 | if (_arg1 == NULL) | |
b37c7e1d | 9683 | return NULL; |
b37c7e1d RD |
9684 | } |
9685 | { | |
4268f798 | 9686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9687 | _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1); |
b37c7e1d | 9688 | |
4268f798 RD |
9689 | wxPyEndAllowThreads(__tstate); |
9690 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9691 | } if (_result) { |
9692 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9693 | _resultobj = Py_BuildValue("s",_ptemp); | |
9694 | } else { | |
9695 | Py_INCREF(Py_None); | |
9696 | _resultobj = Py_None; | |
9697 | } | |
9698 | { | |
9699 | if (_obj1) | |
9700 | delete _arg1; | |
9701 | } | |
9702 | return _resultobj; | |
9703 | } | |
9704 | ||
9705 | #define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1)) | |
9706 | static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9707 | PyObject * _resultobj; | |
9708 | bool _result; | |
9709 | wxMimeTypesManager * _arg0; | |
9710 | wxString * _arg1; | |
9711 | bool _arg2 = (bool ) FALSE; | |
9712 | PyObject * _argo0 = 0; | |
9713 | PyObject * _obj1 = 0; | |
9714 | int tempbool2 = (int) FALSE; | |
9715 | char *_kwnames[] = { "self","filename","fallback", NULL }; | |
9716 | ||
9717 | self = self; | |
9718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2)) | |
9719 | return NULL; | |
9720 | if (_argo0) { | |
9721 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9722 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9723 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p."); | |
9724 | return NULL; | |
9725 | } | |
9726 | } | |
9727 | { | |
c8bc7bb8 RD |
9728 | _arg1 = wxString_in_helper(_obj1); |
9729 | if (_arg1 == NULL) | |
b37c7e1d | 9730 | return NULL; |
b37c7e1d RD |
9731 | } |
9732 | _arg2 = (bool ) tempbool2; | |
9733 | { | |
4268f798 | 9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9735 | _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2); |
b37c7e1d | 9736 | |
4268f798 RD |
9737 | wxPyEndAllowThreads(__tstate); |
9738 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9739 | } _resultobj = Py_BuildValue("i",_result); |
9740 | { | |
9741 | if (_obj1) | |
9742 | delete _arg1; | |
9743 | } | |
9744 | return _resultobj; | |
9745 | } | |
9746 | ||
9747 | #define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0)) | |
9748 | static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9749 | PyObject * _resultobj; | |
9750 | bool _result; | |
9751 | wxMimeTypesManager * _arg0; | |
9752 | wxString * _arg1; | |
9753 | PyObject * _argo0 = 0; | |
9754 | PyObject * _obj1 = 0; | |
9755 | char *_kwnames[] = { "self","filename", NULL }; | |
9756 | ||
9757 | self = self; | |
9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1)) | |
9759 | return NULL; | |
9760 | if (_argo0) { | |
9761 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9762 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9763 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p."); | |
9764 | return NULL; | |
9765 | } | |
9766 | } | |
9767 | { | |
c8bc7bb8 RD |
9768 | _arg1 = wxString_in_helper(_obj1); |
9769 | if (_arg1 == NULL) | |
b37c7e1d | 9770 | return NULL; |
b37c7e1d RD |
9771 | } |
9772 | { | |
4268f798 | 9773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9774 | _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1); |
b37c7e1d | 9775 | |
4268f798 RD |
9776 | wxPyEndAllowThreads(__tstate); |
9777 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9778 | } _resultobj = Py_BuildValue("i",_result); |
9779 | { | |
9780 | if (_obj1) | |
9781 | delete _arg1; | |
9782 | } | |
9783 | return _resultobj; | |
9784 | } | |
9785 | ||
9786 | static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) { | |
9787 | wxArrayString arr; | |
9788 | self->EnumAllFileTypes(arr); | |
9789 | return wxArrayString2PyList_helper(arr); | |
9790 | } | |
9791 | static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9792 | PyObject * _resultobj; | |
9793 | PyObject * _result; | |
9794 | wxMimeTypesManager * _arg0; | |
9795 | PyObject * _argo0 = 0; | |
9796 | char *_kwnames[] = { "self", NULL }; | |
9797 | ||
9798 | self = self; | |
9799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0)) | |
9800 | return NULL; | |
9801 | if (_argo0) { | |
9802 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9803 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9804 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p."); | |
9805 | return NULL; | |
9806 | } | |
9807 | } | |
9808 | { | |
4268f798 | 9809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9810 | _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0); |
b37c7e1d | 9811 | |
4268f798 RD |
9812 | wxPyEndAllowThreads(__tstate); |
9813 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9814 | }{ |
9815 | _resultobj = _result; | |
9816 | } | |
9817 | return _resultobj; | |
9818 | } | |
9819 | ||
9820 | #define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0)) | |
9821 | static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9822 | PyObject * _resultobj; | |
9823 | wxMimeTypesManager * _arg0; | |
9824 | wxFileTypeInfo * _arg1; | |
9825 | PyObject * _argo0 = 0; | |
9826 | PyObject * _argo1 = 0; | |
9827 | char *_kwnames[] = { "self","ft", NULL }; | |
9828 | ||
9829 | self = self; | |
9830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1)) | |
9831 | return NULL; | |
9832 | if (_argo0) { | |
9833 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9834 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9835 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p."); | |
9836 | return NULL; | |
9837 | } | |
9838 | } | |
9839 | if (_argo1) { | |
7e50db3f | 9840 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { |
b37c7e1d RD |
9841 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p."); |
9842 | return NULL; | |
9843 | } | |
9844 | } | |
9845 | { | |
4268f798 | 9846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9847 | wxMimeTypesManager_AddFallback(_arg0,*_arg1); |
b37c7e1d | 9848 | |
4268f798 RD |
9849 | wxPyEndAllowThreads(__tstate); |
9850 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9851 | } Py_INCREF(Py_None); |
9852 | _resultobj = Py_None; | |
9853 | return _resultobj; | |
9854 | } | |
9855 | ||
9856 | #define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0)) | |
9857 | static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9858 | PyObject * _resultobj; | |
9859 | wxFileType * _result; | |
9860 | wxMimeTypesManager * _arg0; | |
9861 | wxFileTypeInfo * _arg1; | |
9862 | PyObject * _argo0 = 0; | |
9863 | PyObject * _argo1 = 0; | |
9864 | char *_kwnames[] = { "self","ftInfo", NULL }; | |
9865 | char _ptemp[128]; | |
9866 | ||
9867 | self = self; | |
9868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1)) | |
9869 | return NULL; | |
9870 | if (_argo0) { | |
9871 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9872 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9873 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p."); | |
9874 | return NULL; | |
9875 | } | |
9876 | } | |
9877 | if (_argo1) { | |
7e50db3f | 9878 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) { |
b37c7e1d RD |
9879 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p."); |
9880 | return NULL; | |
9881 | } | |
9882 | } | |
9883 | { | |
4268f798 | 9884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9885 | _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1); |
b37c7e1d | 9886 | |
4268f798 RD |
9887 | wxPyEndAllowThreads(__tstate); |
9888 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9889 | } if (_result) { |
9890 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p"); | |
9891 | _resultobj = Py_BuildValue("s",_ptemp); | |
9892 | } else { | |
9893 | Py_INCREF(Py_None); | |
9894 | _resultobj = Py_None; | |
9895 | } | |
9896 | return _resultobj; | |
9897 | } | |
9898 | ||
9899 | #define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0)) | |
9900 | static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject * _resultobj; | |
9902 | bool _result; | |
9903 | wxMimeTypesManager * _arg0; | |
9904 | wxFileType * _arg1; | |
9905 | PyObject * _argo0 = 0; | |
9906 | PyObject * _argo1 = 0; | |
9907 | char *_kwnames[] = { "self","ft", NULL }; | |
9908 | ||
9909 | self = self; | |
9910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1)) | |
9911 | return NULL; | |
9912 | if (_argo0) { | |
9913 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9914 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9915 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p."); | |
9916 | return NULL; | |
9917 | } | |
9918 | } | |
9919 | if (_argo1) { | |
9920 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
9921 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) { | |
9922 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p."); | |
9923 | return NULL; | |
9924 | } | |
9925 | } | |
9926 | { | |
4268f798 | 9927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9928 | _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1); |
b37c7e1d | 9929 | |
4268f798 RD |
9930 | wxPyEndAllowThreads(__tstate); |
9931 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9932 | } _resultobj = Py_BuildValue("i",_result); |
9933 | return _resultobj; | |
9934 | } | |
9935 | ||
9936 | #define delete_wxMimeTypesManager(_swigobj) (delete _swigobj) | |
9937 | static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9938 | PyObject * _resultobj; | |
9939 | wxMimeTypesManager * _arg0; | |
9940 | PyObject * _argo0 = 0; | |
9941 | char *_kwnames[] = { "self", NULL }; | |
9942 | ||
9943 | self = self; | |
9944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0)) | |
9945 | return NULL; | |
9946 | if (_argo0) { | |
9947 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
9948 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) { | |
9949 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p."); | |
9950 | return NULL; | |
9951 | } | |
9952 | } | |
9953 | { | |
4268f798 | 9954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 9955 | delete_wxMimeTypesManager(_arg0); |
b37c7e1d | 9956 | |
4268f798 RD |
9957 | wxPyEndAllowThreads(__tstate); |
9958 | if (PyErr_Occurred()) return NULL; | |
b37c7e1d RD |
9959 | } Py_INCREF(Py_None); |
9960 | _resultobj = Py_None; | |
9961 | return _resultobj; | |
9962 | } | |
9963 | ||
72797a7d RD |
9964 | static void *SwigwxPyArtProviderTowxObject(void *ptr) { |
9965 | wxPyArtProvider *src; | |
9966 | wxObject *dest; | |
9967 | src = (wxPyArtProvider *) ptr; | |
9968 | dest = (wxObject *) src; | |
9969 | return (void *) dest; | |
9970 | } | |
9971 | ||
9972 | #define new_wxArtProvider() (new wxPyArtProvider()) | |
9973 | static PyObject *_wrap_new_wxArtProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9974 | PyObject * _resultobj; | |
9975 | wxPyArtProvider * _result; | |
9976 | char *_kwnames[] = { NULL }; | |
9977 | char _ptemp[128]; | |
9978 | ||
9979 | self = self; | |
9980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxArtProvider",_kwnames)) | |
9981 | return NULL; | |
9982 | { | |
9983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9984 | _result = (wxPyArtProvider *)new_wxArtProvider(); | |
9985 | ||
9986 | wxPyEndAllowThreads(__tstate); | |
9987 | if (PyErr_Occurred()) return NULL; | |
9988 | } if (_result) { | |
9989 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyArtProvider_p"); | |
9990 | _resultobj = Py_BuildValue("s",_ptemp); | |
9991 | } else { | |
9992 | Py_INCREF(Py_None); | |
9993 | _resultobj = Py_None; | |
9994 | } | |
9995 | return _resultobj; | |
9996 | } | |
9997 | ||
9998 | #define wxArtProvider__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1)) | |
9999 | static PyObject *_wrap_wxArtProvider__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject * _resultobj; | |
10001 | wxPyArtProvider * _arg0; | |
10002 | PyObject * _arg1; | |
10003 | PyObject * _arg2; | |
10004 | PyObject * _argo0 = 0; | |
10005 | PyObject * _obj1 = 0; | |
10006 | PyObject * _obj2 = 0; | |
10007 | char *_kwnames[] = { "self","self","_class", NULL }; | |
10008 | ||
10009 | self = self; | |
10010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxArtProvider__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2)) | |
10011 | return NULL; | |
10012 | if (_argo0) { | |
10013 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10014 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
10015 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider__setCallbackInfo. Expected _wxPyArtProvider_p."); | |
10016 | return NULL; | |
10017 | } | |
10018 | } | |
10019 | { | |
10020 | _arg1 = _obj1; | |
10021 | } | |
10022 | { | |
10023 | _arg2 = _obj2; | |
10024 | } | |
10025 | { | |
10026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10027 | wxArtProvider__setCallbackInfo(_arg0,_arg1,_arg2); | |
10028 | ||
10029 | wxPyEndAllowThreads(__tstate); | |
10030 | if (PyErr_Occurred()) return NULL; | |
10031 | } Py_INCREF(Py_None); | |
10032 | _resultobj = Py_None; | |
10033 | return _resultobj; | |
10034 | } | |
10035 | ||
10036 | static PyObject *_wrap_wxArtProvider_PushProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10037 | PyObject * _resultobj; | |
10038 | wxPyArtProvider * _arg0; | |
10039 | PyObject * _argo0 = 0; | |
10040 | char *_kwnames[] = { "provider", NULL }; | |
10041 | ||
10042 | self = self; | |
10043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_PushProvider",_kwnames,&_argo0)) | |
10044 | return NULL; | |
10045 | if (_argo0) { | |
10046 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10047 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
10048 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_PushProvider. Expected _wxPyArtProvider_p."); | |
10049 | return NULL; | |
10050 | } | |
10051 | } | |
10052 | { | |
10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10054 | wxPyArtProvider::PushProvider(_arg0); | |
10055 | ||
10056 | wxPyEndAllowThreads(__tstate); | |
10057 | if (PyErr_Occurred()) return NULL; | |
10058 | } Py_INCREF(Py_None); | |
10059 | _resultobj = Py_None; | |
10060 | return _resultobj; | |
10061 | } | |
10062 | ||
10063 | static PyObject *_wrap_wxArtProvider_PopProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10064 | PyObject * _resultobj; | |
10065 | bool _result; | |
10066 | char *_kwnames[] = { NULL }; | |
10067 | ||
10068 | self = self; | |
10069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxArtProvider_PopProvider",_kwnames)) | |
10070 | return NULL; | |
10071 | { | |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10073 | _result = (bool )wxPyArtProvider::PopProvider(); | |
10074 | ||
10075 | wxPyEndAllowThreads(__tstate); | |
10076 | if (PyErr_Occurred()) return NULL; | |
10077 | } _resultobj = Py_BuildValue("i",_result); | |
10078 | return _resultobj; | |
10079 | } | |
10080 | ||
10081 | static PyObject *_wrap_wxArtProvider_RemoveProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10082 | PyObject * _resultobj; | |
10083 | bool _result; | |
10084 | wxPyArtProvider * _arg0; | |
10085 | PyObject * _argo0 = 0; | |
10086 | char *_kwnames[] = { "provider", NULL }; | |
10087 | ||
10088 | self = self; | |
10089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxArtProvider_RemoveProvider",_kwnames,&_argo0)) | |
10090 | return NULL; | |
10091 | if (_argo0) { | |
10092 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10093 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyArtProvider_p")) { | |
10094 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxArtProvider_RemoveProvider. Expected _wxPyArtProvider_p."); | |
10095 | return NULL; | |
10096 | } | |
10097 | } | |
10098 | { | |
10099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10100 | _result = (bool )wxPyArtProvider::RemoveProvider(_arg0); | |
10101 | ||
10102 | wxPyEndAllowThreads(__tstate); | |
10103 | if (PyErr_Occurred()) return NULL; | |
10104 | } _resultobj = Py_BuildValue("i",_result); | |
10105 | return _resultobj; | |
10106 | } | |
10107 | ||
10108 | static PyObject *_wrap_wxArtProvider_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10109 | PyObject * _resultobj; | |
10110 | wxBitmap * _result; | |
10111 | wxString * _arg0; | |
10112 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
10113 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
10114 | PyObject * _obj0 = 0; | |
10115 | PyObject * _obj1 = 0; | |
10116 | wxSize temp; | |
10117 | PyObject * _obj2 = 0; | |
10118 | char *_kwnames[] = { "id","client","size", NULL }; | |
10119 | char _ptemp[128]; | |
10120 | ||
10121 | self = self; | |
10122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetBitmap",_kwnames,&_obj0,&_obj1,&_obj2)) | |
10123 | return NULL; | |
10124 | { | |
10125 | _arg0 = wxString_in_helper(_obj0); | |
10126 | if (_arg0 == NULL) | |
10127 | return NULL; | |
10128 | } | |
10129 | if (_obj1) | |
10130 | { | |
10131 | _arg1 = wxString_in_helper(_obj1); | |
10132 | if (_arg1 == NULL) | |
10133 | return NULL; | |
10134 | } | |
10135 | if (_obj2) | |
10136 | { | |
10137 | _arg2 = &temp; | |
10138 | if (! wxSize_helper(_obj2, &_arg2)) | |
10139 | return NULL; | |
10140 | } | |
10141 | { | |
10142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10143 | _result = new wxBitmap (wxPyArtProvider::GetBitmap(*_arg0,*_arg1,*_arg2)); | |
10144 | ||
10145 | wxPyEndAllowThreads(__tstate); | |
10146 | if (PyErr_Occurred()) return NULL; | |
10147 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p"); | |
10148 | _resultobj = Py_BuildValue("s",_ptemp); | |
10149 | { | |
10150 | if (_obj0) | |
10151 | delete _arg0; | |
10152 | } | |
10153 | { | |
10154 | if (_obj1) | |
10155 | delete _arg1; | |
10156 | } | |
10157 | return _resultobj; | |
10158 | } | |
10159 | ||
10160 | static PyObject *_wrap_wxArtProvider_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10161 | PyObject * _resultobj; | |
10162 | wxIcon * _result; | |
10163 | wxString * _arg0; | |
10164 | wxString * _arg1 = (wxString *) &wxPyART_OTHER; | |
10165 | wxSize * _arg2 = (wxSize *) &wxDefaultSize; | |
10166 | PyObject * _obj0 = 0; | |
10167 | PyObject * _obj1 = 0; | |
10168 | wxSize temp; | |
10169 | PyObject * _obj2 = 0; | |
10170 | char *_kwnames[] = { "id","client","size", NULL }; | |
10171 | char _ptemp[128]; | |
10172 | ||
10173 | self = self; | |
10174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OO:wxArtProvider_GetIcon",_kwnames,&_obj0,&_obj1,&_obj2)) | |
10175 | return NULL; | |
10176 | { | |
10177 | _arg0 = wxString_in_helper(_obj0); | |
10178 | if (_arg0 == NULL) | |
10179 | return NULL; | |
10180 | } | |
10181 | if (_obj1) | |
10182 | { | |
10183 | _arg1 = wxString_in_helper(_obj1); | |
10184 | if (_arg1 == NULL) | |
10185 | return NULL; | |
10186 | } | |
10187 | if (_obj2) | |
10188 | { | |
10189 | _arg2 = &temp; | |
10190 | if (! wxSize_helper(_obj2, &_arg2)) | |
10191 | return NULL; | |
10192 | } | |
10193 | { | |
10194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10195 | _result = new wxIcon (wxPyArtProvider::GetIcon(*_arg0,*_arg1,*_arg2)); | |
10196 | ||
10197 | wxPyEndAllowThreads(__tstate); | |
10198 | if (PyErr_Occurred()) return NULL; | |
10199 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p"); | |
10200 | _resultobj = Py_BuildValue("s",_ptemp); | |
10201 | { | |
10202 | if (_obj0) | |
10203 | delete _arg0; | |
10204 | } | |
10205 | { | |
10206 | if (_obj1) | |
10207 | delete _arg1; | |
10208 | } | |
10209 | return _resultobj; | |
10210 | } | |
10211 | ||
7dbce44a RD |
10212 | static void *SwigwxFileHistoryTowxObject(void *ptr) { |
10213 | wxFileHistory *src; | |
10214 | wxObject *dest; | |
10215 | src = (wxFileHistory *) ptr; | |
10216 | dest = (wxObject *) src; | |
10217 | return (void *) dest; | |
10218 | } | |
10219 | ||
10220 | #define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0)) | |
10221 | static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10222 | PyObject * _resultobj; | |
10223 | wxFileHistory * _result; | |
10224 | int _arg0 = (int ) 9; | |
10225 | char *_kwnames[] = { "maxFiles", NULL }; | |
10226 | char _ptemp[128]; | |
10227 | ||
10228 | self = self; | |
10229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0)) | |
10230 | return NULL; | |
10231 | { | |
4268f798 | 10232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10233 | _result = (wxFileHistory *)new_wxFileHistory(_arg0); |
7dbce44a | 10234 | |
4268f798 RD |
10235 | wxPyEndAllowThreads(__tstate); |
10236 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10237 | } if (_result) { |
10238 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p"); | |
10239 | _resultobj = Py_BuildValue("s",_ptemp); | |
10240 | } else { | |
10241 | Py_INCREF(Py_None); | |
10242 | _resultobj = Py_None; | |
10243 | } | |
10244 | return _resultobj; | |
10245 | } | |
10246 | ||
10247 | #define delete_wxFileHistory(_swigobj) (delete _swigobj) | |
10248 | static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10249 | PyObject * _resultobj; | |
10250 | wxFileHistory * _arg0; | |
10251 | PyObject * _argo0 = 0; | |
10252 | char *_kwnames[] = { "self", NULL }; | |
10253 | ||
10254 | self = self; | |
10255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0)) | |
10256 | return NULL; | |
10257 | if (_argo0) { | |
10258 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10259 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10260 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p."); | |
10261 | return NULL; | |
10262 | } | |
10263 | } | |
10264 | { | |
4268f798 | 10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10266 | delete_wxFileHistory(_arg0); |
7dbce44a | 10267 | |
4268f798 RD |
10268 | wxPyEndAllowThreads(__tstate); |
10269 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10270 | } Py_INCREF(Py_None); |
10271 | _resultobj = Py_None; | |
10272 | return _resultobj; | |
10273 | } | |
10274 | ||
10275 | #define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0)) | |
10276 | static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10277 | PyObject * _resultobj; | |
10278 | wxFileHistory * _arg0; | |
10279 | wxString * _arg1; | |
10280 | PyObject * _argo0 = 0; | |
10281 | PyObject * _obj1 = 0; | |
10282 | char *_kwnames[] = { "self","file", NULL }; | |
10283 | ||
10284 | self = self; | |
10285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1)) | |
10286 | return NULL; | |
10287 | if (_argo0) { | |
10288 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10289 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10290 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p."); | |
10291 | return NULL; | |
10292 | } | |
10293 | } | |
10294 | { | |
c8bc7bb8 RD |
10295 | _arg1 = wxString_in_helper(_obj1); |
10296 | if (_arg1 == NULL) | |
7dbce44a | 10297 | return NULL; |
7dbce44a RD |
10298 | } |
10299 | { | |
4268f798 | 10300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10301 | wxFileHistory_AddFileToHistory(_arg0,*_arg1); |
7dbce44a | 10302 | |
4268f798 RD |
10303 | wxPyEndAllowThreads(__tstate); |
10304 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10305 | } Py_INCREF(Py_None); |
10306 | _resultobj = Py_None; | |
10307 | { | |
10308 | if (_obj1) | |
10309 | delete _arg1; | |
10310 | } | |
10311 | return _resultobj; | |
10312 | } | |
10313 | ||
10314 | #define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0)) | |
10315 | static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10316 | PyObject * _resultobj; | |
10317 | wxFileHistory * _arg0; | |
10318 | int _arg1; | |
10319 | PyObject * _argo0 = 0; | |
10320 | char *_kwnames[] = { "self","i", NULL }; | |
10321 | ||
10322 | self = self; | |
10323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1)) | |
10324 | return NULL; | |
10325 | if (_argo0) { | |
10326 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10327 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10328 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p."); | |
10329 | return NULL; | |
10330 | } | |
10331 | } | |
10332 | { | |
4268f798 | 10333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10334 | wxFileHistory_RemoveFileFromHistory(_arg0,_arg1); |
7dbce44a | 10335 | |
4268f798 RD |
10336 | wxPyEndAllowThreads(__tstate); |
10337 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10338 | } Py_INCREF(Py_None); |
10339 | _resultobj = Py_None; | |
10340 | return _resultobj; | |
10341 | } | |
10342 | ||
10343 | #define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles()) | |
10344 | static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10345 | PyObject * _resultobj; | |
10346 | int _result; | |
10347 | wxFileHistory * _arg0; | |
10348 | PyObject * _argo0 = 0; | |
10349 | char *_kwnames[] = { "self", NULL }; | |
10350 | ||
10351 | self = self; | |
10352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0)) | |
10353 | return NULL; | |
10354 | if (_argo0) { | |
10355 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10356 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10357 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p."); | |
10358 | return NULL; | |
10359 | } | |
10360 | } | |
10361 | { | |
4268f798 | 10362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10363 | _result = (int )wxFileHistory_GetMaxFiles(_arg0); |
7dbce44a | 10364 | |
4268f798 RD |
10365 | wxPyEndAllowThreads(__tstate); |
10366 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10367 | } _resultobj = Py_BuildValue("i",_result); |
10368 | return _resultobj; | |
10369 | } | |
10370 | ||
10371 | #define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0)) | |
10372 | static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10373 | PyObject * _resultobj; | |
10374 | wxFileHistory * _arg0; | |
10375 | wxMenu * _arg1; | |
10376 | PyObject * _argo0 = 0; | |
10377 | PyObject * _argo1 = 0; | |
10378 | char *_kwnames[] = { "self","menu", NULL }; | |
10379 | ||
10380 | self = self; | |
10381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1)) | |
10382 | return NULL; | |
10383 | if (_argo0) { | |
10384 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10385 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10386 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p."); | |
10387 | return NULL; | |
10388 | } | |
10389 | } | |
10390 | if (_argo1) { | |
10391 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10392 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10393 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p."); | |
10394 | return NULL; | |
10395 | } | |
10396 | } | |
10397 | { | |
4268f798 | 10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10399 | wxFileHistory_UseMenu(_arg0,_arg1); |
7dbce44a | 10400 | |
4268f798 RD |
10401 | wxPyEndAllowThreads(__tstate); |
10402 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10403 | } Py_INCREF(Py_None); |
10404 | _resultobj = Py_None; | |
10405 | return _resultobj; | |
10406 | } | |
10407 | ||
10408 | #define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0)) | |
10409 | static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10410 | PyObject * _resultobj; | |
10411 | wxFileHistory * _arg0; | |
10412 | wxMenu * _arg1; | |
10413 | PyObject * _argo0 = 0; | |
10414 | PyObject * _argo1 = 0; | |
10415 | char *_kwnames[] = { "self","menu", NULL }; | |
10416 | ||
10417 | self = self; | |
10418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1)) | |
10419 | return NULL; | |
10420 | if (_argo0) { | |
10421 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10422 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10423 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p."); | |
10424 | return NULL; | |
10425 | } | |
10426 | } | |
10427 | if (_argo1) { | |
10428 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10429 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
10430 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p."); | |
10431 | return NULL; | |
10432 | } | |
10433 | } | |
10434 | { | |
4268f798 | 10435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10436 | wxFileHistory_RemoveMenu(_arg0,_arg1); |
7dbce44a | 10437 | |
4268f798 RD |
10438 | wxPyEndAllowThreads(__tstate); |
10439 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10440 | } Py_INCREF(Py_None); |
10441 | _resultobj = Py_None; | |
10442 | return _resultobj; | |
10443 | } | |
10444 | ||
10445 | #define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0)) | |
10446 | static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10447 | PyObject * _resultobj; | |
10448 | wxFileHistory * _arg0; | |
10449 | wxConfigBase * _arg1; | |
10450 | PyObject * _argo0 = 0; | |
10451 | PyObject * _argo1 = 0; | |
10452 | char *_kwnames[] = { "self","config", NULL }; | |
10453 | ||
10454 | self = self; | |
10455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1)) | |
10456 | return NULL; | |
10457 | if (_argo0) { | |
10458 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10459 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10460 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p."); | |
10461 | return NULL; | |
10462 | } | |
10463 | } | |
10464 | if (_argo1) { | |
7e50db3f | 10465 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { |
7dbce44a RD |
10466 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p."); |
10467 | return NULL; | |
10468 | } | |
10469 | } | |
10470 | { | |
4268f798 | 10471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10472 | wxFileHistory_Load(_arg0,*_arg1); |
7dbce44a | 10473 | |
4268f798 RD |
10474 | wxPyEndAllowThreads(__tstate); |
10475 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10476 | } Py_INCREF(Py_None); |
10477 | _resultobj = Py_None; | |
10478 | return _resultobj; | |
10479 | } | |
10480 | ||
10481 | #define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0)) | |
10482 | static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10483 | PyObject * _resultobj; | |
10484 | wxFileHistory * _arg0; | |
10485 | wxConfigBase * _arg1; | |
10486 | PyObject * _argo0 = 0; | |
10487 | PyObject * _argo1 = 0; | |
10488 | char *_kwnames[] = { "self","config", NULL }; | |
10489 | ||
10490 | self = self; | |
10491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1)) | |
10492 | return NULL; | |
10493 | if (_argo0) { | |
10494 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10495 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10496 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p."); | |
10497 | return NULL; | |
10498 | } | |
10499 | } | |
10500 | if (_argo1) { | |
7e50db3f | 10501 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) { |
7dbce44a RD |
10502 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p."); |
10503 | return NULL; | |
10504 | } | |
10505 | } | |
10506 | { | |
4268f798 | 10507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10508 | wxFileHistory_Save(_arg0,*_arg1); |
7dbce44a | 10509 | |
4268f798 RD |
10510 | wxPyEndAllowThreads(__tstate); |
10511 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10512 | } Py_INCREF(Py_None); |
10513 | _resultobj = Py_None; | |
10514 | return _resultobj; | |
10515 | } | |
10516 | ||
10517 | #define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu()) | |
10518 | static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10519 | PyObject * _resultobj; | |
10520 | wxFileHistory * _arg0; | |
10521 | PyObject * _argo0 = 0; | |
10522 | char *_kwnames[] = { "self", NULL }; | |
10523 | ||
10524 | self = self; | |
10525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0)) | |
10526 | return NULL; | |
10527 | if (_argo0) { | |
10528 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10529 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10530 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p."); | |
10531 | return NULL; | |
10532 | } | |
10533 | } | |
10534 | { | |
4268f798 | 10535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10536 | wxFileHistory_AddFilesToMenu(_arg0); |
7dbce44a | 10537 | |
4268f798 RD |
10538 | wxPyEndAllowThreads(__tstate); |
10539 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10540 | } Py_INCREF(Py_None); |
10541 | _resultobj = Py_None; | |
10542 | return _resultobj; | |
10543 | } | |
10544 | ||
68bc8549 RD |
10545 | #define wxFileHistory_AddFilesToThisMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0)) |
10546 | static PyObject *_wrap_wxFileHistory_AddFilesToThisMenu(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7dbce44a RD |
10547 | PyObject * _resultobj; |
10548 | wxFileHistory * _arg0; | |
10549 | wxMenu * _arg1; | |
10550 | PyObject * _argo0 = 0; | |
10551 | PyObject * _argo1 = 0; | |
10552 | char *_kwnames[] = { "self","menu", NULL }; | |
10553 | ||
10554 | self = self; | |
68bc8549 | 10555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToThisMenu",_kwnames,&_argo0,&_argo1)) |
7dbce44a RD |
10556 | return NULL; |
10557 | if (_argo0) { | |
10558 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10559 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
68bc8549 | 10560 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToThisMenu. Expected _wxFileHistory_p."); |
7dbce44a RD |
10561 | return NULL; |
10562 | } | |
10563 | } | |
10564 | if (_argo1) { | |
10565 | if (_argo1 == Py_None) { _arg1 = NULL; } | |
10566 | else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) { | |
68bc8549 | 10567 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToThisMenu. Expected _wxMenu_p."); |
7dbce44a RD |
10568 | return NULL; |
10569 | } | |
10570 | } | |
10571 | { | |
4268f798 | 10572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
68bc8549 | 10573 | wxFileHistory_AddFilesToThisMenu(_arg0,_arg1); |
7dbce44a | 10574 | |
4268f798 RD |
10575 | wxPyEndAllowThreads(__tstate); |
10576 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10577 | } Py_INCREF(Py_None); |
10578 | _resultobj = Py_None; | |
10579 | return _resultobj; | |
10580 | } | |
10581 | ||
10582 | #define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0)) | |
10583 | static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10584 | PyObject * _resultobj; | |
10585 | wxString * _result; | |
10586 | wxFileHistory * _arg0; | |
10587 | int _arg1; | |
10588 | PyObject * _argo0 = 0; | |
10589 | char *_kwnames[] = { "self","i", NULL }; | |
10590 | ||
10591 | self = self; | |
10592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1)) | |
10593 | return NULL; | |
10594 | if (_argo0) { | |
10595 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10596 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10597 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p."); | |
10598 | return NULL; | |
10599 | } | |
10600 | } | |
10601 | { | |
4268f798 | 10602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10603 | _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1)); |
7dbce44a | 10604 | |
4268f798 RD |
10605 | wxPyEndAllowThreads(__tstate); |
10606 | if (PyErr_Occurred()) return NULL; | |
7dbce44a | 10607 | }{ |
c8bc7bb8 | 10608 | #if wxUSE_UNICODE |
7e50db3f | 10609 | _resultobj = PyUnicode_FromWideChar(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10610 | #else |
7dbce44a | 10611 | _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len()); |
c8bc7bb8 | 10612 | #endif |
7dbce44a RD |
10613 | } |
10614 | { | |
10615 | delete _result; | |
10616 | } | |
10617 | return _resultobj; | |
10618 | } | |
10619 | ||
10620 | #define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount()) | |
10621 | static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10622 | PyObject * _resultobj; | |
10623 | int _result; | |
10624 | wxFileHistory * _arg0; | |
10625 | PyObject * _argo0 = 0; | |
10626 | char *_kwnames[] = { "self", NULL }; | |
10627 | ||
10628 | self = self; | |
10629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0)) | |
10630 | return NULL; | |
10631 | if (_argo0) { | |
10632 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10633 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) { | |
10634 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p."); | |
10635 | return NULL; | |
10636 | } | |
10637 | } | |
10638 | { | |
4268f798 | 10639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
c8bc7bb8 | 10640 | _result = (int )wxFileHistory_GetCount(_arg0); |
7dbce44a | 10641 | |
4268f798 RD |
10642 | wxPyEndAllowThreads(__tstate); |
10643 | if (PyErr_Occurred()) return NULL; | |
7dbce44a RD |
10644 | } _resultobj = Py_BuildValue("i",_result); |
10645 | return _resultobj; | |
10646 | } | |
10647 | ||
67a92fff RD |
10648 | static void *SwigwxEffectsTowxObject(void *ptr) { |
10649 | wxEffects *src; | |
10650 | wxObject *dest; | |
10651 | src = (wxEffects *) ptr; | |
10652 | dest = (wxObject *) src; | |
10653 | return (void *) dest; | |
10654 | } | |
10655 | ||
10656 | #define new_wxEffects() (new wxEffects()) | |
10657 | static PyObject *_wrap_new_wxEffects(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10658 | PyObject * _resultobj; | |
10659 | wxEffects * _result; | |
10660 | char *_kwnames[] = { NULL }; | |
10661 | char _ptemp[128]; | |
10662 | ||
10663 | self = self; | |
10664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxEffects",_kwnames)) | |
10665 | return NULL; | |
10666 | { | |
10667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10668 | _result = (wxEffects *)new_wxEffects(); | |
10669 | ||
10670 | wxPyEndAllowThreads(__tstate); | |
10671 | if (PyErr_Occurred()) return NULL; | |
10672 | } if (_result) { | |
10673 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxEffects_p"); | |
10674 | _resultobj = Py_BuildValue("s",_ptemp); | |
10675 | } else { | |
10676 | Py_INCREF(Py_None); | |
10677 | _resultobj = Py_None; | |
10678 | } | |
10679 | return _resultobj; | |
10680 | } | |
10681 | ||
10682 | #define wxEffects_GetHighlightColour(_swigobj) (_swigobj->GetHighlightColour()) | |
10683 | static PyObject *_wrap_wxEffects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10684 | PyObject * _resultobj; | |
10685 | wxColour * _result; | |
10686 | wxEffects * _arg0; | |
10687 | PyObject * _argo0 = 0; | |
10688 | char *_kwnames[] = { "self", NULL }; | |
10689 | char _ptemp[128]; | |
10690 | ||
10691 | self = self; | |
10692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetHighlightColour",_kwnames,&_argo0)) | |
10693 | return NULL; | |
10694 | if (_argo0) { | |
10695 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10696 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10697 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetHighlightColour. Expected _wxEffects_p."); | |
10698 | return NULL; | |
10699 | } | |
10700 | } | |
10701 | { | |
10702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10703 | _result = new wxColour (wxEffects_GetHighlightColour(_arg0)); | |
10704 | ||
10705 | wxPyEndAllowThreads(__tstate); | |
10706 | if (PyErr_Occurred()) return NULL; | |
10707 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10708 | _resultobj = Py_BuildValue("s",_ptemp); | |
10709 | return _resultobj; | |
10710 | } | |
10711 | ||
10712 | #define wxEffects_GetLightShadow(_swigobj) (_swigobj->GetLightShadow()) | |
10713 | static PyObject *_wrap_wxEffects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10714 | PyObject * _resultobj; | |
10715 | wxColour * _result; | |
10716 | wxEffects * _arg0; | |
10717 | PyObject * _argo0 = 0; | |
10718 | char *_kwnames[] = { "self", NULL }; | |
10719 | char _ptemp[128]; | |
10720 | ||
10721 | self = self; | |
10722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetLightShadow",_kwnames,&_argo0)) | |
10723 | return NULL; | |
10724 | if (_argo0) { | |
10725 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10726 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10727 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetLightShadow. Expected _wxEffects_p."); | |
10728 | return NULL; | |
10729 | } | |
10730 | } | |
10731 | { | |
10732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10733 | _result = new wxColour (wxEffects_GetLightShadow(_arg0)); | |
10734 | ||
10735 | wxPyEndAllowThreads(__tstate); | |
10736 | if (PyErr_Occurred()) return NULL; | |
10737 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10738 | _resultobj = Py_BuildValue("s",_ptemp); | |
10739 | return _resultobj; | |
10740 | } | |
10741 | ||
10742 | #define wxEffects_GetFaceColour(_swigobj) (_swigobj->GetFaceColour()) | |
10743 | static PyObject *_wrap_wxEffects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10744 | PyObject * _resultobj; | |
10745 | wxColour * _result; | |
10746 | wxEffects * _arg0; | |
10747 | PyObject * _argo0 = 0; | |
10748 | char *_kwnames[] = { "self", NULL }; | |
10749 | char _ptemp[128]; | |
10750 | ||
10751 | self = self; | |
10752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetFaceColour",_kwnames,&_argo0)) | |
10753 | return NULL; | |
10754 | if (_argo0) { | |
10755 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10756 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10757 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetFaceColour. Expected _wxEffects_p."); | |
10758 | return NULL; | |
10759 | } | |
10760 | } | |
10761 | { | |
10762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10763 | _result = new wxColour (wxEffects_GetFaceColour(_arg0)); | |
10764 | ||
10765 | wxPyEndAllowThreads(__tstate); | |
10766 | if (PyErr_Occurred()) return NULL; | |
10767 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10768 | _resultobj = Py_BuildValue("s",_ptemp); | |
10769 | return _resultobj; | |
10770 | } | |
10771 | ||
10772 | #define wxEffects_GetMediumShadow(_swigobj) (_swigobj->GetMediumShadow()) | |
10773 | static PyObject *_wrap_wxEffects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10774 | PyObject * _resultobj; | |
10775 | wxColour * _result; | |
10776 | wxEffects * _arg0; | |
10777 | PyObject * _argo0 = 0; | |
10778 | char *_kwnames[] = { "self", NULL }; | |
10779 | char _ptemp[128]; | |
10780 | ||
10781 | self = self; | |
10782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetMediumShadow",_kwnames,&_argo0)) | |
10783 | return NULL; | |
10784 | if (_argo0) { | |
10785 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10786 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10787 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetMediumShadow. Expected _wxEffects_p."); | |
10788 | return NULL; | |
10789 | } | |
10790 | } | |
10791 | { | |
10792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10793 | _result = new wxColour (wxEffects_GetMediumShadow(_arg0)); | |
10794 | ||
10795 | wxPyEndAllowThreads(__tstate); | |
10796 | if (PyErr_Occurred()) return NULL; | |
10797 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10798 | _resultobj = Py_BuildValue("s",_ptemp); | |
10799 | return _resultobj; | |
10800 | } | |
10801 | ||
10802 | #define wxEffects_GetDarkShadow(_swigobj) (_swigobj->GetDarkShadow()) | |
10803 | static PyObject *_wrap_wxEffects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10804 | PyObject * _resultobj; | |
10805 | wxColour * _result; | |
10806 | wxEffects * _arg0; | |
10807 | PyObject * _argo0 = 0; | |
10808 | char *_kwnames[] = { "self", NULL }; | |
10809 | char _ptemp[128]; | |
10810 | ||
10811 | self = self; | |
10812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxEffects_GetDarkShadow",_kwnames,&_argo0)) | |
10813 | return NULL; | |
10814 | if (_argo0) { | |
10815 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10816 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10817 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_GetDarkShadow. Expected _wxEffects_p."); | |
10818 | return NULL; | |
10819 | } | |
10820 | } | |
10821 | { | |
10822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10823 | _result = new wxColour (wxEffects_GetDarkShadow(_arg0)); | |
10824 | ||
10825 | wxPyEndAllowThreads(__tstate); | |
10826 | if (PyErr_Occurred()) return NULL; | |
10827 | } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p"); | |
10828 | _resultobj = Py_BuildValue("s",_ptemp); | |
10829 | return _resultobj; | |
10830 | } | |
10831 | ||
10832 | #define wxEffects_SetHighlightColour(_swigobj,_swigarg0) (_swigobj->SetHighlightColour(_swigarg0)) | |
10833 | static PyObject *_wrap_wxEffects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10834 | PyObject * _resultobj; | |
10835 | wxEffects * _arg0; | |
10836 | wxColour * _arg1; | |
10837 | PyObject * _argo0 = 0; | |
10838 | wxColour temp; | |
10839 | PyObject * _obj1 = 0; | |
10840 | char *_kwnames[] = { "self","c", NULL }; | |
10841 | ||
10842 | self = self; | |
10843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetHighlightColour",_kwnames,&_argo0,&_obj1)) | |
10844 | return NULL; | |
10845 | if (_argo0) { | |
10846 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10847 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10848 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetHighlightColour. Expected _wxEffects_p."); | |
10849 | return NULL; | |
10850 | } | |
10851 | } | |
10852 | { | |
10853 | _arg1 = &temp; | |
10854 | if (! wxColour_helper(_obj1, &_arg1)) | |
10855 | return NULL; | |
10856 | } | |
10857 | { | |
10858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10859 | wxEffects_SetHighlightColour(_arg0,*_arg1); | |
10860 | ||
10861 | wxPyEndAllowThreads(__tstate); | |
10862 | if (PyErr_Occurred()) return NULL; | |
10863 | } Py_INCREF(Py_None); | |
10864 | _resultobj = Py_None; | |
10865 | return _resultobj; | |
10866 | } | |
10867 | ||
10868 | #define wxEffects_SetLightShadow(_swigobj,_swigarg0) (_swigobj->SetLightShadow(_swigarg0)) | |
10869 | static PyObject *_wrap_wxEffects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10870 | PyObject * _resultobj; | |
10871 | wxEffects * _arg0; | |
10872 | wxColour * _arg1; | |
10873 | PyObject * _argo0 = 0; | |
10874 | wxColour temp; | |
10875 | PyObject * _obj1 = 0; | |
10876 | char *_kwnames[] = { "self","c", NULL }; | |
10877 | ||
10878 | self = self; | |
10879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetLightShadow",_kwnames,&_argo0,&_obj1)) | |
10880 | return NULL; | |
10881 | if (_argo0) { | |
10882 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10883 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10884 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetLightShadow. Expected _wxEffects_p."); | |
10885 | return NULL; | |
10886 | } | |
10887 | } | |
10888 | { | |
10889 | _arg1 = &temp; | |
10890 | if (! wxColour_helper(_obj1, &_arg1)) | |
10891 | return NULL; | |
10892 | } | |
10893 | { | |
10894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10895 | wxEffects_SetLightShadow(_arg0,*_arg1); | |
10896 | ||
10897 | wxPyEndAllowThreads(__tstate); | |
10898 | if (PyErr_Occurred()) return NULL; | |
10899 | } Py_INCREF(Py_None); | |
10900 | _resultobj = Py_None; | |
10901 | return _resultobj; | |
10902 | } | |
10903 | ||
10904 | #define wxEffects_SetFaceColour(_swigobj,_swigarg0) (_swigobj->SetFaceColour(_swigarg0)) | |
10905 | static PyObject *_wrap_wxEffects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10906 | PyObject * _resultobj; | |
10907 | wxEffects * _arg0; | |
10908 | wxColour * _arg1; | |
10909 | PyObject * _argo0 = 0; | |
10910 | wxColour temp; | |
10911 | PyObject * _obj1 = 0; | |
10912 | char *_kwnames[] = { "self","c", NULL }; | |
10913 | ||
10914 | self = self; | |
10915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetFaceColour",_kwnames,&_argo0,&_obj1)) | |
10916 | return NULL; | |
10917 | if (_argo0) { | |
10918 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10919 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10920 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetFaceColour. Expected _wxEffects_p."); | |
10921 | return NULL; | |
10922 | } | |
10923 | } | |
10924 | { | |
10925 | _arg1 = &temp; | |
10926 | if (! wxColour_helper(_obj1, &_arg1)) | |
10927 | return NULL; | |
10928 | } | |
10929 | { | |
10930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10931 | wxEffects_SetFaceColour(_arg0,*_arg1); | |
10932 | ||
10933 | wxPyEndAllowThreads(__tstate); | |
10934 | if (PyErr_Occurred()) return NULL; | |
10935 | } Py_INCREF(Py_None); | |
10936 | _resultobj = Py_None; | |
10937 | return _resultobj; | |
10938 | } | |
10939 | ||
10940 | #define wxEffects_SetMediumShadow(_swigobj,_swigarg0) (_swigobj->SetMediumShadow(_swigarg0)) | |
10941 | static PyObject *_wrap_wxEffects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10942 | PyObject * _resultobj; | |
10943 | wxEffects * _arg0; | |
10944 | wxColour * _arg1; | |
10945 | PyObject * _argo0 = 0; | |
10946 | wxColour temp; | |
10947 | PyObject * _obj1 = 0; | |
10948 | char *_kwnames[] = { "self","c", NULL }; | |
10949 | ||
10950 | self = self; | |
10951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetMediumShadow",_kwnames,&_argo0,&_obj1)) | |
10952 | return NULL; | |
10953 | if (_argo0) { | |
10954 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10955 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10956 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetMediumShadow. Expected _wxEffects_p."); | |
10957 | return NULL; | |
10958 | } | |
10959 | } | |
10960 | { | |
10961 | _arg1 = &temp; | |
10962 | if (! wxColour_helper(_obj1, &_arg1)) | |
10963 | return NULL; | |
10964 | } | |
10965 | { | |
10966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10967 | wxEffects_SetMediumShadow(_arg0,*_arg1); | |
10968 | ||
10969 | wxPyEndAllowThreads(__tstate); | |
10970 | if (PyErr_Occurred()) return NULL; | |
10971 | } Py_INCREF(Py_None); | |
10972 | _resultobj = Py_None; | |
10973 | return _resultobj; | |
10974 | } | |
10975 | ||
10976 | #define wxEffects_SetDarkShadow(_swigobj,_swigarg0) (_swigobj->SetDarkShadow(_swigarg0)) | |
10977 | static PyObject *_wrap_wxEffects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10978 | PyObject * _resultobj; | |
10979 | wxEffects * _arg0; | |
10980 | wxColour * _arg1; | |
10981 | PyObject * _argo0 = 0; | |
10982 | wxColour temp; | |
10983 | PyObject * _obj1 = 0; | |
10984 | char *_kwnames[] = { "self","c", NULL }; | |
10985 | ||
10986 | self = self; | |
10987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxEffects_SetDarkShadow",_kwnames,&_argo0,&_obj1)) | |
10988 | return NULL; | |
10989 | if (_argo0) { | |
10990 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
10991 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
10992 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_SetDarkShadow. Expected _wxEffects_p."); | |
10993 | return NULL; | |
10994 | } | |
10995 | } | |
10996 | { | |
10997 | _arg1 = &temp; | |
10998 | if (! wxColour_helper(_obj1, &_arg1)) | |
10999 | return NULL; | |
11000 | } | |
11001 | { | |
11002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11003 | wxEffects_SetDarkShadow(_arg0,*_arg1); | |
11004 | ||
11005 | wxPyEndAllowThreads(__tstate); | |
11006 | if (PyErr_Occurred()) return NULL; | |
11007 | } Py_INCREF(Py_None); | |
11008 | _resultobj = Py_None; | |
11009 | return _resultobj; | |
11010 | } | |
11011 | ||
11012 | #define wxEffects_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4)) | |
11013 | static PyObject *_wrap_wxEffects_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11014 | PyObject * _resultobj; | |
11015 | wxEffects * _arg0; | |
11016 | wxColour * _arg1; | |
11017 | wxColour * _arg2; | |
11018 | wxColour * _arg3; | |
11019 | wxColour * _arg4; | |
11020 | wxColour * _arg5; | |
11021 | PyObject * _argo0 = 0; | |
11022 | wxColour temp; | |
11023 | PyObject * _obj1 = 0; | |
11024 | wxColour temp0; | |
11025 | PyObject * _obj2 = 0; | |
11026 | wxColour temp1; | |
11027 | PyObject * _obj3 = 0; | |
11028 | wxColour temp2; | |
11029 | PyObject * _obj4 = 0; | |
11030 | wxColour temp3; | |
11031 | PyObject * _obj5 = 0; | |
11032 | char *_kwnames[] = { "self","highlightColour","lightShadow","faceColour","mediumShadow","darkShadow", NULL }; | |
11033 | ||
11034 | self = self; | |
11035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOOOO:wxEffects_Set",_kwnames,&_argo0,&_obj1,&_obj2,&_obj3,&_obj4,&_obj5)) | |
11036 | return NULL; | |
11037 | if (_argo0) { | |
11038 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11039 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
11040 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_Set. Expected _wxEffects_p."); | |
11041 | return NULL; | |
11042 | } | |
11043 | } | |
11044 | { | |
11045 | _arg1 = &temp; | |
11046 | if (! wxColour_helper(_obj1, &_arg1)) | |
11047 | return NULL; | |
11048 | } | |
11049 | { | |
11050 | _arg2 = &temp0; | |
11051 | if (! wxColour_helper(_obj2, &_arg2)) | |
11052 | return NULL; | |
11053 | } | |
11054 | { | |
11055 | _arg3 = &temp1; | |
11056 | if (! wxColour_helper(_obj3, &_arg3)) | |
11057 | return NULL; | |
11058 | } | |
11059 | { | |
11060 | _arg4 = &temp2; | |
11061 | if (! wxColour_helper(_obj4, &_arg4)) | |
11062 | return NULL; | |
11063 | } | |
11064 | { | |
11065 | _arg5 = &temp3; | |
11066 | if (! wxColour_helper(_obj5, &_arg5)) | |
11067 | return NULL; | |
11068 | } | |
11069 | { | |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | wxEffects_Set(_arg0,*_arg1,*_arg2,*_arg3,*_arg4,*_arg5); | |
11072 | ||
11073 | wxPyEndAllowThreads(__tstate); | |
11074 | if (PyErr_Occurred()) return NULL; | |
11075 | } Py_INCREF(Py_None); | |
11076 | _resultobj = Py_None; | |
11077 | return _resultobj; | |
11078 | } | |
11079 | ||
11080 | #define wxEffects_DrawSunkenEdge(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawSunkenEdge(_swigarg0,_swigarg1,_swigarg2)) | |
11081 | static PyObject *_wrap_wxEffects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11082 | PyObject * _resultobj; | |
11083 | wxEffects * _arg0; | |
11084 | wxDC * _arg1; | |
11085 | wxRect * _arg2; | |
11086 | int _arg3 = (int ) 1; | |
11087 | PyObject * _argo0 = 0; | |
11088 | PyObject * _argo1 = 0; | |
11089 | wxRect temp; | |
11090 | PyObject * _obj2 = 0; | |
11091 | char *_kwnames[] = { "self","dc","rect","borderSize", NULL }; | |
11092 | ||
11093 | self = self; | |
11094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxEffects_DrawSunkenEdge",_kwnames,&_argo0,&_argo1,&_obj2,&_arg3)) | |
11095 | return NULL; | |
11096 | if (_argo0) { | |
11097 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11098 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
11099 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_DrawSunkenEdge. Expected _wxEffects_p."); | |
11100 | return NULL; | |
11101 | } | |
11102 | } | |
11103 | if (_argo1) { | |
7e50db3f | 11104 | if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDC_p")) { |
67a92fff RD |
11105 | PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxEffects_DrawSunkenEdge. Expected _wxDC_p."); |
11106 | return NULL; | |
11107 | } | |
11108 | } | |
11109 | { | |
11110 | _arg2 = &temp; | |
11111 | if (! wxRect_helper(_obj2, &_arg2)) | |
11112 | return NULL; | |
11113 | } | |
11114 | { | |
11115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11116 | wxEffects_DrawSunkenEdge(_arg0,*_arg1,*_arg2,_arg3); | |
11117 | ||
11118 | wxPyEndAllowThreads(__tstate); | |
11119 | if (PyErr_Occurred()) return NULL; | |
11120 | } Py_INCREF(Py_None); | |
11121 | _resultobj = Py_None; | |
11122 | return _resultobj; | |
11123 | } | |
11124 | ||
11125 | #define wxEffects_TileBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->TileBitmap(_swigarg0,_swigarg1,_swigarg2)) | |
11126 | static PyObject *_wrap_wxEffects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11127 | PyObject * _resultobj; | |
11128 | bool _result; | |
11129 | wxEffects * _arg0; | |
11130 | wxRect * _arg1; | |
11131 | wxDC * _arg2; | |
11132 | wxBitmap * _arg3; | |
11133 | PyObject * _argo0 = 0; | |
11134 | wxRect temp; | |
11135 | PyObject * _obj1 = 0; | |
11136 | PyObject * _argo2 = 0; | |
11137 | PyObject * _argo3 = 0; | |
11138 | char *_kwnames[] = { "self","rect","dc","bitmap", NULL }; | |
11139 | ||
11140 | self = self; | |
11141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxEffects_TileBitmap",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3)) | |
11142 | return NULL; | |
11143 | if (_argo0) { | |
11144 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11145 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEffects_p")) { | |
11146 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxEffects_TileBitmap. Expected _wxEffects_p."); | |
11147 | return NULL; | |
11148 | } | |
11149 | } | |
11150 | { | |
11151 | _arg1 = &temp; | |
11152 | if (! wxRect_helper(_obj1, &_arg1)) | |
11153 | return NULL; | |
11154 | } | |
11155 | if (_argo2) { | |
7e50db3f | 11156 | if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) { |
67a92fff RD |
11157 | PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxEffects_TileBitmap. Expected _wxDC_p."); |
11158 | return NULL; | |
11159 | } | |
11160 | } | |
11161 | if (_argo3) { | |
7e50db3f | 11162 | if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) { |
67a92fff RD |
11163 | PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxEffects_TileBitmap. Expected _wxBitmap_p."); |
11164 | return NULL; | |
11165 | } | |
11166 | } | |
11167 | { | |
11168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11169 | _result = (bool )wxEffects_TileBitmap(_arg0,*_arg1,*_arg2,*_arg3); | |
11170 | ||
11171 | wxPyEndAllowThreads(__tstate); | |
11172 | if (PyErr_Occurred()) return NULL; | |
11173 | } _resultobj = Py_BuildValue("i",_result); | |
11174 | return _resultobj; | |
11175 | } | |
11176 | ||
11177 | #define new_wxSingleInstanceChecker(_swigarg0,_swigarg1) (new wxSingleInstanceChecker(_swigarg0,_swigarg1)) | |
11178 | static PyObject *_wrap_new_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11179 | PyObject * _resultobj; | |
11180 | wxSingleInstanceChecker * _result; | |
11181 | wxString * _arg0; | |
11182 | wxString * _arg1 = (wxString *) &wxPyEmptyString; | |
11183 | PyObject * _obj0 = 0; | |
11184 | PyObject * _obj1 = 0; | |
11185 | char *_kwnames[] = { "name","path", NULL }; | |
11186 | char _ptemp[128]; | |
11187 | ||
11188 | self = self; | |
11189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxSingleInstanceChecker",_kwnames,&_obj0,&_obj1)) | |
11190 | return NULL; | |
11191 | { | |
11192 | _arg0 = wxString_in_helper(_obj0); | |
11193 | if (_arg0 == NULL) | |
11194 | return NULL; | |
11195 | } | |
11196 | if (_obj1) | |
11197 | { | |
11198 | _arg1 = wxString_in_helper(_obj1); | |
11199 | if (_arg1 == NULL) | |
11200 | return NULL; | |
11201 | } | |
11202 | { | |
11203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11204 | _result = (wxSingleInstanceChecker *)new_wxSingleInstanceChecker(*_arg0,*_arg1); | |
11205 | ||
11206 | wxPyEndAllowThreads(__tstate); | |
11207 | if (PyErr_Occurred()) return NULL; | |
11208 | } if (_result) { | |
11209 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11210 | _resultobj = Py_BuildValue("s",_ptemp); | |
11211 | } else { | |
11212 | Py_INCREF(Py_None); | |
11213 | _resultobj = Py_None; | |
11214 | } | |
11215 | { | |
11216 | if (_obj0) | |
11217 | delete _arg0; | |
11218 | } | |
11219 | { | |
11220 | if (_obj1) | |
11221 | delete _arg1; | |
11222 | } | |
11223 | return _resultobj; | |
11224 | } | |
11225 | ||
11226 | #define new_wxPreSingleInstanceChecker() (new wxSingleInstanceChecker()) | |
11227 | static PyObject *_wrap_new_wxPreSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11228 | PyObject * _resultobj; | |
11229 | wxSingleInstanceChecker * _result; | |
11230 | char *_kwnames[] = { NULL }; | |
11231 | char _ptemp[128]; | |
11232 | ||
11233 | self = self; | |
11234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPreSingleInstanceChecker",_kwnames)) | |
11235 | return NULL; | |
11236 | { | |
11237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11238 | _result = (wxSingleInstanceChecker *)new_wxPreSingleInstanceChecker(); | |
11239 | ||
11240 | wxPyEndAllowThreads(__tstate); | |
11241 | if (PyErr_Occurred()) return NULL; | |
11242 | } if (_result) { | |
11243 | SWIG_MakePtr(_ptemp, (char *) _result,"_wxSingleInstanceChecker_p"); | |
11244 | _resultobj = Py_BuildValue("s",_ptemp); | |
11245 | } else { | |
11246 | Py_INCREF(Py_None); | |
11247 | _resultobj = Py_None; | |
11248 | } | |
11249 | return _resultobj; | |
11250 | } | |
11251 | ||
11252 | #define delete_wxSingleInstanceChecker(_swigobj) (delete _swigobj) | |
11253 | static PyObject *_wrap_delete_wxSingleInstanceChecker(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11254 | PyObject * _resultobj; | |
11255 | wxSingleInstanceChecker * _arg0; | |
11256 | PyObject * _argo0 = 0; | |
11257 | char *_kwnames[] = { "self", NULL }; | |
11258 | ||
11259 | self = self; | |
11260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxSingleInstanceChecker",_kwnames,&_argo0)) | |
11261 | return NULL; | |
11262 | if (_argo0) { | |
11263 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11264 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11265 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxSingleInstanceChecker. Expected _wxSingleInstanceChecker_p."); | |
11266 | return NULL; | |
11267 | } | |
11268 | } | |
11269 | { | |
11270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11271 | delete_wxSingleInstanceChecker(_arg0); | |
11272 | ||
11273 | wxPyEndAllowThreads(__tstate); | |
11274 | if (PyErr_Occurred()) return NULL; | |
11275 | } Py_INCREF(Py_None); | |
11276 | _resultobj = Py_None; | |
11277 | return _resultobj; | |
11278 | } | |
11279 | ||
11280 | #define wxSingleInstanceChecker_Create(_swigobj,_swigarg0,_swigarg1) (_swigobj->Create(_swigarg0,_swigarg1)) | |
11281 | static PyObject *_wrap_wxSingleInstanceChecker_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11282 | PyObject * _resultobj; | |
11283 | bool _result; | |
11284 | wxSingleInstanceChecker * _arg0; | |
11285 | wxString * _arg1; | |
11286 | wxString * _arg2 = (wxString *) &wxPyEmptyString; | |
11287 | PyObject * _argo0 = 0; | |
11288 | PyObject * _obj1 = 0; | |
11289 | PyObject * _obj2 = 0; | |
11290 | char *_kwnames[] = { "self","name","path", NULL }; | |
11291 | ||
11292 | self = self; | |
11293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxSingleInstanceChecker_Create",_kwnames,&_argo0,&_obj1,&_obj2)) | |
11294 | return NULL; | |
11295 | if (_argo0) { | |
11296 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11297 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11298 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_Create. Expected _wxSingleInstanceChecker_p."); | |
11299 | return NULL; | |
11300 | } | |
11301 | } | |
11302 | { | |
11303 | _arg1 = wxString_in_helper(_obj1); | |
11304 | if (_arg1 == NULL) | |
11305 | return NULL; | |
11306 | } | |
11307 | if (_obj2) | |
11308 | { | |
11309 | _arg2 = wxString_in_helper(_obj2); | |
11310 | if (_arg2 == NULL) | |
11311 | return NULL; | |
11312 | } | |
11313 | { | |
11314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11315 | _result = (bool )wxSingleInstanceChecker_Create(_arg0,*_arg1,*_arg2); | |
11316 | ||
11317 | wxPyEndAllowThreads(__tstate); | |
11318 | if (PyErr_Occurred()) return NULL; | |
11319 | } _resultobj = Py_BuildValue("i",_result); | |
11320 | { | |
11321 | if (_obj1) | |
11322 | delete _arg1; | |
11323 | } | |
11324 | { | |
11325 | if (_obj2) | |
11326 | delete _arg2; | |
11327 | } | |
11328 | return _resultobj; | |
11329 | } | |
11330 | ||
11331 | #define wxSingleInstanceChecker_IsAnotherRunning(_swigobj) (_swigobj->IsAnotherRunning()) | |
11332 | static PyObject *_wrap_wxSingleInstanceChecker_IsAnotherRunning(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11333 | PyObject * _resultobj; | |
11334 | bool _result; | |
11335 | wxSingleInstanceChecker * _arg0; | |
11336 | PyObject * _argo0 = 0; | |
11337 | char *_kwnames[] = { "self", NULL }; | |
11338 | ||
11339 | self = self; | |
11340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSingleInstanceChecker_IsAnotherRunning",_kwnames,&_argo0)) | |
11341 | return NULL; | |
11342 | if (_argo0) { | |
11343 | if (_argo0 == Py_None) { _arg0 = NULL; } | |
11344 | else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxSingleInstanceChecker_p")) { | |
11345 | PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSingleInstanceChecker_IsAnotherRunning. Expected _wxSingleInstanceChecker_p."); | |
11346 | return NULL; | |
11347 | } | |
11348 | } | |
11349 | { | |
11350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11351 | _result = (bool )wxSingleInstanceChecker_IsAnotherRunning(_arg0); | |
11352 | ||
11353 | wxPyEndAllowThreads(__tstate); | |
11354 | if (PyErr_Occurred()) return NULL; | |
11355 | } _resultobj = Py_BuildValue("i",_result); | |
11356 | return _resultobj; | |
11357 | } | |
11358 | ||
bb0054cd | 11359 | static PyMethodDef misc2cMethods[] = { |
67a92fff RD |
11360 | { "wxSingleInstanceChecker_IsAnotherRunning", (PyCFunction) _wrap_wxSingleInstanceChecker_IsAnotherRunning, METH_VARARGS | METH_KEYWORDS }, |
11361 | { "wxSingleInstanceChecker_Create", (PyCFunction) _wrap_wxSingleInstanceChecker_Create, METH_VARARGS | METH_KEYWORDS }, | |
11362 | { "delete_wxSingleInstanceChecker", (PyCFunction) _wrap_delete_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11363 | { "new_wxPreSingleInstanceChecker", (PyCFunction) _wrap_new_wxPreSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11364 | { "new_wxSingleInstanceChecker", (PyCFunction) _wrap_new_wxSingleInstanceChecker, METH_VARARGS | METH_KEYWORDS }, | |
11365 | { "wxEffects_TileBitmap", (PyCFunction) _wrap_wxEffects_TileBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11366 | { "wxEffects_DrawSunkenEdge", (PyCFunction) _wrap_wxEffects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS }, | |
11367 | { "wxEffects_Set", (PyCFunction) _wrap_wxEffects_Set, METH_VARARGS | METH_KEYWORDS }, | |
11368 | { "wxEffects_SetDarkShadow", (PyCFunction) _wrap_wxEffects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11369 | { "wxEffects_SetMediumShadow", (PyCFunction) _wrap_wxEffects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11370 | { "wxEffects_SetFaceColour", (PyCFunction) _wrap_wxEffects_SetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11371 | { "wxEffects_SetLightShadow", (PyCFunction) _wrap_wxEffects_SetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11372 | { "wxEffects_SetHighlightColour", (PyCFunction) _wrap_wxEffects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11373 | { "wxEffects_GetDarkShadow", (PyCFunction) _wrap_wxEffects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS }, | |
11374 | { "wxEffects_GetMediumShadow", (PyCFunction) _wrap_wxEffects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS }, | |
11375 | { "wxEffects_GetFaceColour", (PyCFunction) _wrap_wxEffects_GetFaceColour, METH_VARARGS | METH_KEYWORDS }, | |
11376 | { "wxEffects_GetLightShadow", (PyCFunction) _wrap_wxEffects_GetLightShadow, METH_VARARGS | METH_KEYWORDS }, | |
11377 | { "wxEffects_GetHighlightColour", (PyCFunction) _wrap_wxEffects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS }, | |
11378 | { "new_wxEffects", (PyCFunction) _wrap_new_wxEffects, METH_VARARGS | METH_KEYWORDS }, | |
7dbce44a RD |
11379 | { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS }, |
11380 | { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS }, | |
68bc8549 | 11381 | { "wxFileHistory_AddFilesToThisMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToThisMenu, METH_VARARGS | METH_KEYWORDS }, |
7dbce44a RD |
11382 | { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS }, |
11383 | { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS }, | |
11384 | { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS }, | |
11385 | { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS }, | |
11386 | { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS }, | |
11387 | { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS }, | |
11388 | { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS }, | |
11389 | { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS }, | |
11390 | { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
11391 | { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS }, | |
72797a7d RD |
11392 | { "wxArtProvider_GetIcon", (PyCFunction) _wrap_wxArtProvider_GetIcon, METH_VARARGS | METH_KEYWORDS }, |
11393 | { "wxArtProvider_GetBitmap", (PyCFunction) _wrap_wxArtProvider_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
11394 | { "wxArtProvider_RemoveProvider", (PyCFunction) _wrap_wxArtProvider_RemoveProvider, METH_VARARGS | METH_KEYWORDS }, | |
11395 | { "wxArtProvider_PopProvider", (PyCFunction) _wrap_wxArtProvider_PopProvider, METH_VARARGS | METH_KEYWORDS }, | |
11396 | { "wxArtProvider_PushProvider", (PyCFunction) _wrap_wxArtProvider_PushProvider, METH_VARARGS | METH_KEYWORDS }, | |
11397 | { "wxArtProvider__setCallbackInfo", (PyCFunction) _wrap_wxArtProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
11398 | { "new_wxArtProvider", (PyCFunction) _wrap_new_wxArtProvider, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
11399 | { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, |
11400 | { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11401 | { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS }, | |
11402 | { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS }, | |
11403 | { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS }, | |
11404 | { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11405 | { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS }, | |
11406 | { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11407 | { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS }, | |
11408 | { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS }, | |
11409 | { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS }, | |
11410 | { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS }, | |
11411 | { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS }, | |
11412 | { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11413 | { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS }, | |
11414 | { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS }, | |
11415 | { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS }, | |
11416 | { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS }, | |
11417 | { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS }, | |
11418 | { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11419 | { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11420 | { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11421 | { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS }, | |
11422 | { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11423 | { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11424 | { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS }, | |
11425 | { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11426 | { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS }, | |
11427 | { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS }, | |
11428 | { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS }, | |
11429 | { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS }, | |
11430 | { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS }, | |
11431 | { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS }, | |
11432 | { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11433 | { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS }, | |
11434 | { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS }, | |
11435 | { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS }, | |
11436 | { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS }, | |
11437 | { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
11438 | { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS }, | |
11439 | { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
11440 | { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS }, | |
11441 | { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS }, | |
493f1553 RD |
11442 | { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS }, |
11443 | { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11444 | { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
11445 | { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS }, | |
185d7c3e RD |
11446 | { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS }, |
11447 | { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS }, | |
11448 | { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS }, | |
11449 | { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS }, | |
11450 | { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS }, | |
11451 | { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS }, | |
11452 | { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS }, | |
11453 | { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS }, | |
11454 | { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS }, | |
11455 | { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS }, | |
11456 | { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS }, | |
11457 | { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS }, | |
11458 | { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS }, | |
11459 | { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS }, | |
11460 | { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS }, | |
11461 | { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS }, | |
11462 | { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS }, | |
11463 | { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS }, | |
11464 | { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS }, | |
11465 | { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS }, | |
11466 | { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS }, | |
11467 | { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS }, | |
11468 | { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS }, | |
11469 | { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS }, | |
11470 | { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS }, | |
11471 | { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS }, | |
11472 | { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS }, | |
11473 | { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS }, | |
11474 | { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS }, | |
11475 | { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS }, | |
11476 | { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS }, | |
11477 | { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11478 | { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11479 | { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS }, | |
11480 | { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11481 | { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS }, | |
11482 | { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS }, | |
11483 | { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS }, | |
11484 | { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS }, | |
11485 | { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS }, | |
11486 | { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS }, | |
11487 | { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
ac346f50 | 11488 | { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
185d7c3e | 11489 | { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS }, |
85260f24 RD |
11490 | { "wxProcess_IsErrorAvailable", (PyCFunction) _wrap_wxProcess_IsErrorAvailable, METH_VARARGS | METH_KEYWORDS }, |
11491 | { "wxProcess_IsInputAvailable", (PyCFunction) _wrap_wxProcess_IsInputAvailable, METH_VARARGS | METH_KEYWORDS }, | |
11492 | { "wxProcess_IsInputOpened", (PyCFunction) _wrap_wxProcess_IsInputOpened, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11493 | { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS }, |
11494 | { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS }, | |
11495 | { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS }, | |
11496 | { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS }, | |
11497 | { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS }, | |
11498 | { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS }, | |
11499 | { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS }, | |
11500 | { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS }, | |
0122b7e3 | 11501 | { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
c368d904 RD |
11502 | { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS }, |
11503 | { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS }, | |
814f509c RD |
11504 | { "wxProcess_Open", (PyCFunction) _wrap_wxProcess_Open, METH_VARARGS | METH_KEYWORDS }, |
11505 | { "wxProcess_Exists", (PyCFunction) _wrap_wxProcess_Exists, METH_VARARGS | METH_KEYWORDS }, | |
11506 | { "wxProcess_Kill", (PyCFunction) _wrap_wxProcess_Kill, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11507 | { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS }, |
11508 | { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS }, | |
11509 | { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS }, | |
11510 | { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS }, | |
11511 | { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS }, | |
11512 | { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS }, | |
11513 | { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 11514 | { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS }, |
0122b7e3 | 11515 | { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11516 | { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS }, |
19e30148 RD |
11517 | { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS }, |
11518 | { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
11519 | { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS }, |
11520 | { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11521 | { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS }, | |
11522 | { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS }, | |
11523 | { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11524 | { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS }, |
11525 | { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS }, | |
11526 | { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS }, | |
11527 | { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS }, | |
11528 | { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS }, | |
11529 | { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS }, | |
11530 | { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS }, | |
11531 | { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
11532 | { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 | 11533 | { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS }, |
7e50db3f RD |
11534 | { "wxLog_GetLogLevel", (PyCFunction) _wrap_wxLog_GetLogLevel, METH_VARARGS | METH_KEYWORDS }, |
11535 | { "wxLog_SetLogLevel", (PyCFunction) _wrap_wxLog_SetLogLevel, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11536 | { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS }, |
11537 | { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11538 | { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
76bfdc78 RD |
11539 | { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS }, |
11540 | { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS }, | |
67a92fff | 11541 | { "wxLog_GetTraceMasks", (PyCFunction) _wrap_wxLog_GetTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
76bfdc78 | 11542 | { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11543 | { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS }, |
11544 | { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11545 | { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11546 | { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS }, | |
11547 | { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS }, | |
11548 | { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11549 | { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS }, | |
11550 | { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11551 | { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS }, | |
11552 | { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11553 | { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS }, |
11554 | { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS }, | |
11555 | { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS }, | |
11556 | { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
11557 | { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS }, | |
b37c7e1d RD |
11558 | { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS }, |
11559 | { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS }, | |
11560 | { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS }, | |
11561 | { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS }, | |
68320e40 | 11562 | { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
b37c7e1d | 11563 | { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11564 | { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS }, |
11565 | { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS }, | |
11566 | { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS }, | |
11567 | { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS }, | |
11568 | { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS }, | |
11569 | { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS }, | |
11570 | { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11571 | { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS }, | |
11572 | { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
11573 | { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
11574 | { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
11575 | { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
11576 | { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
11577 | { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 11578 | { "wxDragImage_BeginDragBounded", (PyCFunction) _wrap_wxDragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11579 | { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, |
10e07c70 | 11580 | { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11581 | { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cdf14688 RD |
11582 | { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS }, |
11583 | { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
11584 | { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS }, | |
11585 | { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 | 11586 | { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS }, |
cf276873 | 11587 | { "wxPyTipProvider__setCallbackInfo", (PyCFunction) _wrap_wxPyTipProvider__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 | 11588 | { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS }, |
67a92fff | 11589 | { "wxTipProvider_PreprocessTip", (PyCFunction) _wrap_wxTipProvider_PreprocessTip, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11590 | { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS }, |
11591 | { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11592 | { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
11593 | { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, |
11594 | { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS }, | |
c368d904 RD |
11595 | { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, |
11596 | { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS }, | |
2abc0a0f RD |
11597 | { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, |
11598 | { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
11599 | { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS }, |
11600 | { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS }, | |
a1df7a95 RD |
11601 | { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS }, |
11602 | { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS }, | |
f0261a72 RD |
11603 | { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS }, |
11604 | { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS }, | |
11605 | { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS }, | |
11606 | { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS }, | |
11607 | { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS }, | |
11608 | { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
11609 | { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS }, | |
11610 | { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
11611 | { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
11612 | { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
11613 | { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS }, | |
edf2f43e RD |
11614 | { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS }, |
11615 | { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS }, | |
efc5f224 RD |
11616 | { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS }, |
11617 | { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS }, | |
11618 | { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS }, | |
11619 | { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS }, | |
5a2a9da2 RD |
11620 | { "wxSystemOptions_HasOption", (PyCFunction) _wrap_wxSystemOptions_HasOption, METH_VARARGS | METH_KEYWORDS }, |
11621 | { "wxSystemOptions_GetOptionInt", (PyCFunction) _wrap_wxSystemOptions_GetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
11622 | { "wxSystemOptions_GetOption", (PyCFunction) _wrap_wxSystemOptions_GetOption, METH_VARARGS | METH_KEYWORDS }, | |
11623 | { "wxSystemOptions_SetOptionInt", (PyCFunction) _wrap_wxSystemOptions_SetOptionInt, METH_VARARGS | METH_KEYWORDS }, | |
11624 | { "wxSystemOptions_SetOption", (PyCFunction) _wrap_wxSystemOptions_SetOption, METH_VARARGS | METH_KEYWORDS }, | |
11625 | { "new_wxSystemOptions", (PyCFunction) _wrap_new_wxSystemOptions, METH_VARARGS | METH_KEYWORDS }, | |
e67409dc RD |
11626 | { "wxSystemSettings_SetScreenType", (PyCFunction) _wrap_wxSystemSettings_SetScreenType, METH_VARARGS | METH_KEYWORDS }, |
11627 | { "wxSystemSettings_GetScreenType", (PyCFunction) _wrap_wxSystemSettings_GetScreenType, METH_VARARGS | METH_KEYWORDS }, | |
b5a5d647 RD |
11628 | { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS }, |
11629 | { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS }, | |
11630 | { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
11631 | { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS }, | |
8a12f92d | 11632 | { "wxDrawWindowOnDC", (PyCFunction) _wrap_wxDrawWindowOnDC, METH_VARARGS | METH_KEYWORDS }, |
493f1553 | 11633 | { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS }, |
c368d904 | 11634 | { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS }, |
0b85cc38 | 11635 | { "wxSafeShowMessage", (PyCFunction) _wrap_wxSafeShowMessage, METH_VARARGS | METH_KEYWORDS }, |
be13a6af RD |
11636 | { "wxLogGeneric", (PyCFunction) _wrap_wxLogGeneric, METH_VARARGS | METH_KEYWORDS }, |
11637 | { "wxLogTraceMask", (PyCFunction) _wrap_wxLogTraceMask, METH_VARARGS | METH_KEYWORDS }, | |
11638 | { "wxLogTrace", (PyCFunction) _wrap_wxLogTrace, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11639 | { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS }, |
11640 | { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS }, | |
11641 | { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS }, | |
11642 | { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS }, | |
7e50db3f | 11643 | { "wxLogDebug", (PyCFunction) _wrap_wxLogDebug, METH_VARARGS | METH_KEYWORDS }, |
f6bcfd97 BP |
11644 | { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS }, |
11645 | { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS }, | |
11646 | { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS }, | |
11647 | { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS }, | |
11648 | { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS }, | |
11649 | { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS }, | |
11650 | { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS }, | |
f6bcfd97 BP |
11651 | { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS }, |
11652 | { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS }, | |
6e18ca6c RD |
11653 | { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS }, |
11654 | { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS }, | |
11655 | { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS }, | |
11656 | { "wxWakeUpMainThread", (PyCFunction) _wrap_wxWakeUpMainThread, METH_VARARGS | METH_KEYWORDS }, | |
694759cf | 11657 | { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS }, |
b1462dfa | 11658 | { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS }, |
6e18ca6c | 11659 | { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS }, |
f0261a72 RD |
11660 | { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS }, |
11661 | { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS }, | |
2a74d141 | 11662 | { "wxGetTopLevelParent", (PyCFunction) _wrap_wxGetTopLevelParent, METH_VARARGS | METH_KEYWORDS }, |
493f1553 RD |
11663 | { "wxCheckForInterrupt", (PyCFunction) _wrap_wxCheckForInterrupt, METH_VARARGS | METH_KEYWORDS }, |
11664 | { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
11665 | { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
11666 | { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS }, |
11667 | { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 11668 | { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS }, |
91c41b30 RD |
11669 | { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, |
11670 | { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS }, | |
1e7ecb7b RD |
11671 | { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, |
11672 | { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS }, | |
11673 | { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11674 | { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS }, | |
11675 | { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 RD |
11676 | { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS }, |
11677 | { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS }, | |
11678 | { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS }, | |
11679 | { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS }, | |
11680 | { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS }, | |
11681 | { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS }, | |
1b62f00d | 11682 | { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS }, |
06c0fba4 | 11683 | { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS }, |
7cdaed0b | 11684 | { "wxDirSelector", (PyCFunction) _wrap_wxDirSelector, METH_VARARGS | METH_KEYWORDS }, |
a541c325 RD |
11685 | { "wxSaveFileSelector", (PyCFunction) _wrap_wxSaveFileSelector, METH_VARARGS | METH_KEYWORDS }, |
11686 | { "wxLoadFileSelector", (PyCFunction) _wrap_wxLoadFileSelector, METH_VARARGS | METH_KEYWORDS }, | |
06c0fba4 | 11687 | { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS }, |
bb0054cd RD |
11688 | { NULL, NULL } |
11689 | }; | |
1d99702e RD |
11690 | #ifdef __cplusplus |
11691 | } | |
11692 | #endif | |
11693 | /* | |
11694 | * This table is used by the pointer type-checker | |
11695 | */ | |
11696 | static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = { | |
c368d904 | 11697 | { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent}, |
1d99702e | 11698 | { "_signed_long","_long",0}, |
b1462dfa | 11699 | { "_wxPrintQuality","_wxCoord",0}, |
1d99702e RD |
11700 | { "_wxPrintQuality","_int",0}, |
11701 | { "_wxPrintQuality","_signed_int",0}, | |
11702 | { "_wxPrintQuality","_unsigned_int",0}, | |
11703 | { "_wxPrintQuality","_wxWindowID",0}, | |
11704 | { "_wxPrintQuality","_uint",0}, | |
11705 | { "_wxPrintQuality","_EBool",0}, | |
11706 | { "_wxPrintQuality","_size_t",0}, | |
c368d904 | 11707 | { "_wxPrintQuality","_time_t",0}, |
76bfdc78 RD |
11708 | { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog}, |
11709 | { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog}, | |
f6bcfd97 | 11710 | { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog}, |
f6bcfd97 | 11711 | { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog}, |
f6bcfd97 | 11712 | { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog}, |
f6bcfd97 | 11713 | { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog}, |
1d99702e | 11714 | { "_byte","_unsigned_char",0}, |
1d99702e RD |
11715 | { "_long","_unsigned_long",0}, |
11716 | { "_long","_signed_long",0}, | |
b1462dfa | 11717 | { "_size_t","_wxCoord",0}, |
1d99702e | 11718 | { "_size_t","_wxPrintQuality",0}, |
c368d904 | 11719 | { "_size_t","_time_t",0}, |
1d99702e RD |
11720 | { "_size_t","_unsigned_int",0}, |
11721 | { "_size_t","_int",0}, | |
11722 | { "_size_t","_wxWindowID",0}, | |
11723 | { "_size_t","_uint",0}, | |
b1462dfa | 11724 | { "_uint","_wxCoord",0}, |
1d99702e | 11725 | { "_uint","_wxPrintQuality",0}, |
c368d904 | 11726 | { "_uint","_time_t",0}, |
1d99702e RD |
11727 | { "_uint","_size_t",0}, |
11728 | { "_uint","_unsigned_int",0}, | |
11729 | { "_uint","_int",0}, | |
11730 | { "_uint","_wxWindowID",0}, | |
f6bcfd97 | 11731 | { "_wxChar","_char",0}, |
f6bcfd97 | 11732 | { "_char","_wxChar",0}, |
cdf14688 | 11733 | { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0}, |
b1462dfa | 11734 | { "_EBool","_wxCoord",0}, |
1d99702e RD |
11735 | { "_EBool","_wxPrintQuality",0}, |
11736 | { "_EBool","_signed_int",0}, | |
11737 | { "_EBool","_int",0}, | |
11738 | { "_EBool","_wxWindowID",0}, | |
1d99702e | 11739 | { "_unsigned_long","_long",0}, |
cdf14688 | 11740 | { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0}, |
b1462dfa | 11741 | { "_signed_int","_wxCoord",0}, |
1d99702e RD |
11742 | { "_signed_int","_wxPrintQuality",0}, |
11743 | { "_signed_int","_EBool",0}, | |
11744 | { "_signed_int","_wxWindowID",0}, | |
11745 | { "_signed_int","_int",0}, | |
7dbce44a | 11746 | { "_WXTYPE","_wxDateTime_t",0}, |
1d99702e RD |
11747 | { "_WXTYPE","_short",0}, |
11748 | { "_WXTYPE","_signed_short",0}, | |
11749 | { "_WXTYPE","_unsigned_short",0}, | |
f6bcfd97 | 11750 | { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider}, |
7dbce44a | 11751 | { "_unsigned_short","_wxDateTime_t",0}, |
1d99702e RD |
11752 | { "_unsigned_short","_WXTYPE",0}, |
11753 | { "_unsigned_short","_short",0}, | |
67a92fff | 11754 | { "_wxObject","_wxEffects",SwigwxEffectsTowxObject}, |
7dbce44a | 11755 | { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject}, |
72797a7d | 11756 | { "_wxObject","_wxPyArtProvider",SwigwxPyArtProviderTowxObject}, |
493f1553 | 11757 | { "_wxObject","_wxWave",SwigwxWaveTowxObject}, |
9416aa89 | 11758 | { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject}, |
9416aa89 | 11759 | { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject}, |
9416aa89 | 11760 | { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject}, |
9416aa89 | 11761 | { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject}, |
9416aa89 | 11762 | { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject}, |
9416aa89 | 11763 | { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject}, |
5a2a9da2 | 11764 | { "_wxObject","_wxSystemOptions",SwigwxSystemOptionsTowxObject}, |
1d99702e RD |
11765 | { "_signed_short","_WXTYPE",0}, |
11766 | { "_signed_short","_short",0}, | |
1d99702e | 11767 | { "_unsigned_char","_byte",0}, |
b1462dfa | 11768 | { "_unsigned_int","_wxCoord",0}, |
1d99702e | 11769 | { "_unsigned_int","_wxPrintQuality",0}, |
c368d904 | 11770 | { "_unsigned_int","_time_t",0}, |
1d99702e RD |
11771 | { "_unsigned_int","_size_t",0}, |
11772 | { "_unsigned_int","_uint",0}, | |
11773 | { "_unsigned_int","_wxWindowID",0}, | |
11774 | { "_unsigned_int","_int",0}, | |
7dbce44a | 11775 | { "_short","_wxDateTime_t",0}, |
1d99702e RD |
11776 | { "_short","_WXTYPE",0}, |
11777 | { "_short","_unsigned_short",0}, | |
11778 | { "_short","_signed_short",0}, | |
b1462dfa | 11779 | { "_wxWindowID","_wxCoord",0}, |
1d99702e | 11780 | { "_wxWindowID","_wxPrintQuality",0}, |
c368d904 | 11781 | { "_wxWindowID","_time_t",0}, |
1d99702e RD |
11782 | { "_wxWindowID","_size_t",0}, |
11783 | { "_wxWindowID","_EBool",0}, | |
11784 | { "_wxWindowID","_uint",0}, | |
11785 | { "_wxWindowID","_int",0}, | |
11786 | { "_wxWindowID","_signed_int",0}, | |
11787 | { "_wxWindowID","_unsigned_int",0}, | |
b1462dfa | 11788 | { "_int","_wxCoord",0}, |
1d99702e | 11789 | { "_int","_wxPrintQuality",0}, |
c368d904 | 11790 | { "_int","_time_t",0}, |
1d99702e RD |
11791 | { "_int","_size_t",0}, |
11792 | { "_int","_EBool",0}, | |
11793 | { "_int","_uint",0}, | |
11794 | { "_int","_wxWindowID",0}, | |
11795 | { "_int","_unsigned_int",0}, | |
11796 | { "_int","_signed_int",0}, | |
7dbce44a RD |
11797 | { "_wxDateTime_t","_unsigned_short",0}, |
11798 | { "_wxDateTime_t","_short",0}, | |
11799 | { "_wxDateTime_t","_WXTYPE",0}, | |
c368d904 RD |
11800 | { "_time_t","_wxCoord",0}, |
11801 | { "_time_t","_wxPrintQuality",0}, | |
11802 | { "_time_t","_unsigned_int",0}, | |
11803 | { "_time_t","_int",0}, | |
11804 | { "_time_t","_wxWindowID",0}, | |
11805 | { "_time_t","_uint",0}, | |
11806 | { "_time_t","_size_t",0}, | |
b1462dfa RD |
11807 | { "_wxCoord","_int",0}, |
11808 | { "_wxCoord","_signed_int",0}, | |
11809 | { "_wxCoord","_unsigned_int",0}, | |
11810 | { "_wxCoord","_wxWindowID",0}, | |
11811 | { "_wxCoord","_uint",0}, | |
11812 | { "_wxCoord","_EBool",0}, | |
11813 | { "_wxCoord","_size_t",0}, | |
c368d904 | 11814 | { "_wxCoord","_time_t",0}, |
b1462dfa | 11815 | { "_wxCoord","_wxPrintQuality",0}, |
c368d904 | 11816 | { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler}, |
1d99702e RD |
11817 | {0,0,0}}; |
11818 | ||
bb0054cd RD |
11819 | static PyObject *SWIG_globals; |
11820 | #ifdef __cplusplus | |
11821 | extern "C" | |
11822 | #endif | |
1d99702e | 11823 | SWIGEXPORT(void) initmisc2c() { |
bb0054cd RD |
11824 | PyObject *m, *d; |
11825 | SWIG_globals = SWIG_newvarlink(); | |
11826 | m = Py_InitModule("misc2c", misc2cMethods); | |
11827 | d = PyModule_GetDict(m); | |
06c0fba4 RD |
11828 | PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT)); |
11829 | PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT)); | |
11830 | PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT)); | |
11831 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT)); | |
11832 | PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT)); | |
11833 | PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE)); | |
11834 | PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT)); | |
11835 | PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT)); | |
11836 | PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR)); | |
11837 | PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND)); | |
c6c593e8 | 11838 | PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP)); |
06c0fba4 RD |
11839 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION)); |
11840 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION)); | |
11841 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU)); | |
11842 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW)); | |
11843 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME)); | |
11844 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT)); | |
11845 | PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT)); | |
11846 | PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT)); | |
11847 | PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER)); | |
11848 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER)); | |
11849 | PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE)); | |
11850 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT)); | |
11851 | PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT)); | |
11852 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE)); | |
c6c593e8 | 11853 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE)); |
06c0fba4 | 11854 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW)); |
c6c593e8 | 11855 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW)); |
06c0fba4 RD |
11856 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT)); |
11857 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT)); | |
11858 | PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT)); | |
11859 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT)); | |
c6c593e8 RD |
11860 | PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT)); |
11861 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT)); | |
11862 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT)); | |
06c0fba4 RD |
11863 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW)); |
11864 | PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT)); | |
11865 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT)); | |
11866 | PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK)); | |
b5a5d647 | 11867 | PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX)); |
c6c593e8 RD |
11868 | PyDict_SetItemString(d,"wxSYS_COLOUR_HOTLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HOTLIGHT)); |
11869 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTACTIVECAPTION)); | |
11870 | PyDict_SetItemString(d,"wxSYS_COLOUR_GRADIENTINACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_GRADIENTINACTIVECAPTION)); | |
11871 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_MENUHILIGHT)); | |
11872 | PyDict_SetItemString(d,"wxSYS_COLOUR_MENUBAR", PyInt_FromLong((long) wxSYS_COLOUR_MENUBAR)); | |
11873 | PyDict_SetItemString(d,"wxSYS_COLOUR_MAX", PyInt_FromLong((long) wxSYS_COLOUR_MAX)); | |
06c0fba4 RD |
11874 | PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS)); |
11875 | PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X)); | |
11876 | PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y)); | |
11877 | PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X)); | |
11878 | PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y)); | |
11879 | PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X)); | |
11880 | PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y)); | |
11881 | PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X)); | |
11882 | PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y)); | |
11883 | PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X)); | |
11884 | PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y)); | |
11885 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X)); | |
11886 | PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y)); | |
11887 | PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X)); | |
11888 | PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X)); | |
11889 | PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y)); | |
11890 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X)); | |
11891 | PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y)); | |
11892 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X)); | |
11893 | PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y)); | |
11894 | PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X)); | |
11895 | PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y)); | |
11896 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X)); | |
11897 | PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y)); | |
11898 | PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X)); | |
11899 | PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y)); | |
11900 | PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y)); | |
11901 | PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X)); | |
11902 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X)); | |
11903 | PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y)); | |
11904 | PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y)); | |
11905 | PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y)); | |
11906 | PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y)); | |
11907 | PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT)); | |
11908 | PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT)); | |
11909 | PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS)); | |
11910 | PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS)); | |
b5a5d647 RD |
11911 | PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS)); |
11912 | PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME)); | |
daa3eac9 | 11913 | PyDict_SetItemString(d,"wxSYS_SCREEN_NONE", PyInt_FromLong((long) wxSYS_SCREEN_NONE)); |
daa3eac9 | 11914 | PyDict_SetItemString(d,"wxSYS_SCREEN_TINY", PyInt_FromLong((long) wxSYS_SCREEN_TINY)); |
e67409dc RD |
11915 | PyDict_SetItemString(d,"wxSYS_SCREEN_PDA", PyInt_FromLong((long) wxSYS_SCREEN_PDA)); |
11916 | PyDict_SetItemString(d,"wxSYS_SCREEN_SMALL", PyInt_FromLong((long) wxSYS_SCREEN_SMALL)); | |
11917 | PyDict_SetItemString(d,"wxSYS_SCREEN_DESKTOP", PyInt_FromLong((long) wxSYS_SCREEN_DESKTOP)); | |
f6bcfd97 BP |
11918 | PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError)); |
11919 | PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error)); | |
11920 | PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning)); | |
11921 | PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message)); | |
11922 | PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info)); | |
11923 | PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status)); | |
11924 | PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug)); | |
11925 | PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace)); | |
11926 | PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress)); | |
11927 | PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User)); | |
8baa46e9 RD |
11928 | PyDict_SetItemString(d,"wxTRACE_MemAlloc", PyString_FromString("memalloc")); |
11929 | PyDict_SetItemString(d,"wxTRACE_Messages", PyString_FromString("messages")); | |
11930 | PyDict_SetItemString(d,"wxTRACE_ResAlloc", PyString_FromString("resalloc")); | |
11931 | PyDict_SetItemString(d,"wxTRACE_RefCount", PyString_FromString("refcount")); | |
11932 | PyDict_SetItemString(d,"wxTRACE_OleCalls", PyString_FromString("ole")); | |
11933 | PyDict_SetItemString(d,"wxTraceMemAlloc", PyInt_FromLong((long) wxTraceMemAlloc)); | |
11934 | PyDict_SetItemString(d,"wxTraceMessages", PyInt_FromLong((long) wxTraceMessages)); | |
11935 | PyDict_SetItemString(d,"wxTraceResAlloc", PyInt_FromLong((long) wxTraceResAlloc)); | |
11936 | PyDict_SetItemString(d,"wxTraceRefCount", PyInt_FromLong((long) wxTraceRefCount)); | |
11937 | PyDict_SetItemString(d,"wxTraceOleCalls", PyInt_FromLong((long) wxTraceOleCalls)); | |
814f509c RD |
11938 | PyDict_SetItemString(d,"wxKILL_OK", PyInt_FromLong((long) wxKILL_OK)); |
11939 | PyDict_SetItemString(d,"wxKILL_BAD_SIGNAL", PyInt_FromLong((long) wxKILL_BAD_SIGNAL)); | |
11940 | PyDict_SetItemString(d,"wxKILL_ACCESS_DENIED", PyInt_FromLong((long) wxKILL_ACCESS_DENIED)); | |
11941 | PyDict_SetItemString(d,"wxKILL_NO_PROCESS", PyInt_FromLong((long) wxKILL_NO_PROCESS)); | |
11942 | PyDict_SetItemString(d,"wxKILL_ERROR", PyInt_FromLong((long) wxKILL_ERROR)); | |
1883480f RD |
11943 | PyDict_SetItemString(d,"wxSIGNONE", PyInt_FromLong((long) wxSIGNONE)); |
11944 | PyDict_SetItemString(d,"wxSIGHUP", PyInt_FromLong((long) wxSIGHUP)); | |
11945 | PyDict_SetItemString(d,"wxSIGINT", PyInt_FromLong((long) wxSIGINT)); | |
11946 | PyDict_SetItemString(d,"wxSIGQUIT", PyInt_FromLong((long) wxSIGQUIT)); | |
11947 | PyDict_SetItemString(d,"wxSIGILL", PyInt_FromLong((long) wxSIGILL)); | |
11948 | PyDict_SetItemString(d,"wxSIGTRAP", PyInt_FromLong((long) wxSIGTRAP)); | |
11949 | PyDict_SetItemString(d,"wxSIGABRT", PyInt_FromLong((long) wxSIGABRT)); | |
11950 | PyDict_SetItemString(d,"wxSIGIOT", PyInt_FromLong((long) wxSIGIOT)); | |
11951 | PyDict_SetItemString(d,"wxSIGEMT", PyInt_FromLong((long) wxSIGEMT)); | |
11952 | PyDict_SetItemString(d,"wxSIGFPE", PyInt_FromLong((long) wxSIGFPE)); | |
11953 | PyDict_SetItemString(d,"wxSIGKILL", PyInt_FromLong((long) wxSIGKILL)); | |
11954 | PyDict_SetItemString(d,"wxSIGBUS", PyInt_FromLong((long) wxSIGBUS)); | |
11955 | PyDict_SetItemString(d,"wxSIGSEGV", PyInt_FromLong((long) wxSIGSEGV)); | |
11956 | PyDict_SetItemString(d,"wxSIGSYS", PyInt_FromLong((long) wxSIGSYS)); | |
11957 | PyDict_SetItemString(d,"wxSIGPIPE", PyInt_FromLong((long) wxSIGPIPE)); | |
11958 | PyDict_SetItemString(d,"wxSIGALRM", PyInt_FromLong((long) wxSIGALRM)); | |
11959 | PyDict_SetItemString(d,"wxSIGTERM", PyInt_FromLong((long) wxSIGTERM)); | |
11960 | PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS)); | |
b96c7a38 RD |
11961 | PyDict_SetItemString(d,"wxEXEC_ASYNC", PyInt_FromLong((long) wxEXEC_ASYNC)); |
11962 | PyDict_SetItemString(d,"wxEXEC_SYNC", PyInt_FromLong((long) wxEXEC_SYNC)); | |
11963 | PyDict_SetItemString(d,"wxEXEC_NOHIDE", PyInt_FromLong((long) wxEXEC_NOHIDE)); | |
d6eacb25 | 11964 | PyDict_SetItemString(d,"wxEXEC_MAKE_GROUP_LEADER", PyInt_FromLong((long) wxEXEC_MAKE_GROUP_LEADER)); |
3eb221f6 RD |
11965 | PyDict_SetItemString(d,"wxJOYSTICK1", PyInt_FromLong((long) wxJOYSTICK1)); |
11966 | PyDict_SetItemString(d,"wxJOYSTICK2", PyInt_FromLong((long) wxJOYSTICK2)); | |
11967 | PyDict_SetItemString(d,"wxJOY_BUTTON_ANY", PyInt_FromLong((long) wxJOY_BUTTON_ANY)); | |
11968 | PyDict_SetItemString(d,"wxJOY_BUTTON1", PyInt_FromLong((long) wxJOY_BUTTON1)); | |
11969 | PyDict_SetItemString(d,"wxJOY_BUTTON2", PyInt_FromLong((long) wxJOY_BUTTON2)); | |
11970 | PyDict_SetItemString(d,"wxJOY_BUTTON3", PyInt_FromLong((long) wxJOY_BUTTON3)); | |
11971 | PyDict_SetItemString(d,"wxJOY_BUTTON4", PyInt_FromLong((long) wxJOY_BUTTON4)); | |
b37c7e1d RD |
11972 | PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD)); |
11973 | PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE)); | |
11974 | PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE)); | |
11975 | PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME)); | |
11976 | PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL)); | |
11977 | PyDict_SetItemString(d,"cvar", SWIG_globals); | |
11978 | SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set); | |
9416aa89 | 11979 | |
9416aa89 RD |
11980 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); |
11981 | wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess"); | |
72797a7d | 11982 | wxPyPtrTypeMap_Add("wxArtProvider", "wxPyArtProvider"); |
8baa46e9 | 11983 | |
1d99702e RD |
11984 | { |
11985 | int i; | |
11986 | for (i = 0; _swig_mapping[i].n1; i++) | |
11987 | SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv); | |
11988 | } | |
bb0054cd | 11989 | } |