]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/misc2.cpp
SWIGged updates for wxMac
[wxWidgets.git] / wxPython / src / mac / misc2.cpp
CommitLineData
e6056257
RD
1/*
2 * FILE : src/mac/misc2.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
30# define SWIGEXPORT(a) a _export
31# else
32# define SWIGEXPORT(a) a
33# endif
34# endif
35#else
36# define SWIGEXPORT(a) a
37#endif
38
39#include "Python.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initmisc2c
55
56#define SWIG_name "misc2c"
57
58#include "helpers.h"
59#include <wx/resource.h>
60#include <wx/tooltip.h>
61#include <wx/caret.h>
62#include <wx/fontenum.h>
63#include <wx/tipdlg.h>
64#include <wx/process.h>
65
66#if wxUSE_JOYSTICK || defined(__WXMSW__)
67#include <wx/joystick.h>
68#endif
69
70#if wxUSE_WAVE || defined(__WXMSW__)
71#include <wx/wave.h>
72#endif
73
b6e5c445
RD
74#include <wx/mimetype.h>
75
e6056257
RD
76
77static PyObject* t_output_helper(PyObject* target, PyObject* o) {
78 PyObject* o2;
79 PyObject* o3;
80
81 if (!target) {
82 target = o;
83 } else if (target == Py_None) {
84 Py_DECREF(Py_None);
85 target = o;
86 } else {
87 if (!PyTuple_Check(target)) {
88 o2 = target;
89 target = PyTuple_New(1);
90 PyTuple_SetItem(target, 0, o2);
91 }
92 o3 = PyTuple_New(1);
93 PyTuple_SetItem(o3, 0, o);
94
95 o2 = target;
96 target = PySequence_Concat(o2, o3);
97 Py_DECREF(o2);
98 Py_DECREF(o3);
99 }
100 return target;
101}
102
103#if PYTHON_API_VERSION >= 1009
104 static char* wxStringErrorMsg = "String or Unicode type required";
105#else
106 static char* wxStringErrorMsg = "String type required";
107#endif
108
109 static wxString wxPyEmptyStr("");
110
e6056257
RD
111 int wxCaret_GetBlinkTime() {
112 return wxCaret::GetBlinkTime();
113 }
114
115 void wxCaret_SetBlinkTime(int milliseconds) {
116 wxCaret::SetBlinkTime(milliseconds);
117 }
118
119class wxPyFontEnumerator : public wxFontEnumerator {
120public:
121 wxPyFontEnumerator() {}
122 ~wxPyFontEnumerator() {}
123
124 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
125 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
126
127 PYPRIVATE;
128};
129
130IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
131IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
132
133
134 bool wxThread_IsMain() {
71737445 135#ifdef WXP_WITH_THREAD
e6056257 136 return wxThread::IsMain();
71737445
RD
137#else
138 return TRUE;
139#endif
e6056257
RD
140 }
141
142class wxPyTipProvider : public wxTipProvider {
143public:
144 wxPyTipProvider(size_t currentTip)
145 : wxTipProvider(currentTip) {}
146
147 DEC_PYCALLBACK_STRING__pure(GetTip);
148
149 PYPRIVATE;
150};
151
152IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
153
154
155#include <wx/generic/dragimgg.h>
156
157// A Log class that can be derived from in wxPython
158class wxPyLog : public wxLog {
159public:
160 wxPyLog() : wxLog() {}
161
162 virtual void DoLog(wxLogLevel level, const wxChar *szString, time_t t) {
163 bool found;
0e2ff151 164 wxPyBeginBlockThreads();
e6056257
RD
165 if ((found = wxPyCBH_findCallback(m_myInst, "DoLog")))
166 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(isi)", level, szString, t));
0e2ff151 167 wxPyEndBlockThreads();
e6056257
RD
168 if (! found)
169 wxLog::DoLog(level, szString, t);
170 }
171
172 virtual void DoLogString(const wxChar *szString, time_t t) {
173 bool found;
0e2ff151 174 wxPyBeginBlockThreads();
e6056257
RD
175 if ((found = wxPyCBH_findCallback(m_myInst, "DoLogString")))
176 wxPyCBH_callCallback(m_myInst, Py_BuildValue("(si)", szString, t));
0e2ff151 177 wxPyEndBlockThreads();
e6056257
RD
178 if (! found)
179 wxLog::DoLogString(szString, t);
180 }
181
182 PYPRIVATE;
183};
184 // C++ version of wxProcess derived class
185
186class wxPyProcess : public wxProcess {
187public:
188 wxPyProcess(wxEvtHandler *parent = NULL, int id = -1)
189 : wxProcess(parent, id)
190 {}
191
192 DEC_PYCALLBACK_VOID_INTINT(OnTerminate);
193
194 PYPRIVATE;
195};
196
197IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
198
199
200#if !wxUSE_JOYSTICK && !defined(__WXMSW__)
201// A C++ stub class for wxJoystick for platforms that don't have it.
202class wxJoystick : public wxObject {
203public:
204 wxJoystick(int joystick = wxJOYSTICK1) {
0e2ff151 205 wxPyBeginBlockThreads();
e6056257 206 PyErr_SetString(PyExc_NotImplementedError, "wxJoystick is not available on this platform.");
0e2ff151 207 wxPyEndBlockThreads();
e6056257
RD
208 }
209 wxPoint GetPosition() { return wxPoint(-1,-1); }
210 int GetZPosition() { return -1; }
211 int GetButtonState() { return -1; }
212 int GetPOVPosition() { return -1; }
213 int GetPOVCTSPosition() { return -1; }
214 int GetRudderPosition() { return -1; }
215 int GetUPosition() { return -1; }
216 int GetVPosition() { return -1; }
217 int GetMovementThreshold() { return -1; }
218 void SetMovementThreshold(int threshold) {}
219
220 bool IsOk(void) { return FALSE; }
221 int GetNumberJoysticks() { return -1; }
222 int GetManufacturerId() { return -1; }
223 int GetProductId() { return -1; }
224 wxString GetProductName() { return ""; }
225 int GetXMin() { return -1; }
226 int GetYMin() { return -1; }
227 int GetZMin() { return -1; }
228 int GetXMax() { return -1; }
229 int GetYMax() { return -1; }
230 int GetZMax() { return -1; }
231 int GetNumberButtons() { return -1; }
232 int GetNumberAxes() { return -1; }
233 int GetMaxButtons() { return -1; }
234 int GetMaxAxes() { return -1; }
235 int GetPollingMin() { return -1; }
236 int GetPollingMax() { return -1; }
237 int GetRudderMin() { return -1; }
238 int GetRudderMax() { return -1; }
239 int GetUMin() { return -1; }
240 int GetUMax() { return -1; }
241 int GetVMin() { return -1; }
242 int GetVMax() { return -1; }
243
244 bool HasRudder() { return FALSE; }
245 bool HasZ() { return FALSE; }
246 bool HasU() { return FALSE; }
247 bool HasV() { return FALSE; }
248 bool HasPOV() { return FALSE; }
249 bool HasPOV4Dir() { return FALSE; }
250 bool HasPOVCTS() { return FALSE; }
251
252 bool SetCapture(wxWindow* win, int pollingFreq = 0) { return FALSE; }
253 bool ReleaseCapture() { return FALSE; }
254};
255#endif
256
257#if !wxUSE_WAVE
258// A C++ stub class for wxWave for platforms that don't have it.
259class wxWave : public wxObject
260{
261public:
262 wxWave(const wxString& fileName, bool isResource = FALSE) {
0e2ff151 263 wxPyBeginBlockThreads();
e6056257 264 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
0e2ff151 265 wxPyEndBlockThreads();
e6056257
RD
266 }
267 wxWave(int size, const wxByte* data) {
0e2ff151 268 wxPyBeginBlockThreads();
e6056257 269 PyErr_SetString(PyExc_NotImplementedError, "wxWave is not available on this platform.");
0e2ff151 270 wxPyEndBlockThreads();
e6056257
RD
271 }
272
273 ~wxWave() {}
274
275 bool IsOk() const { return FALSE; }
276 bool Play(bool async = TRUE, bool looped = FALSE) const { return FALSE; }
277};
278
279#endif
280 // Implementations of some alternate "constructors"
281 wxWave* wxWaveData(const wxString& data) {
282 return new wxWave(data.Len(), (wxByte*)data.c_str());
283 }
b6e5c445
RD
284
285#if 0
286extern wxMimeTypesManager * wxTheMimeTypesManager;
287
288#endif
742fc581
RD
289
290#include <wx/docview.h>
e6056257
RD
291#ifdef __cplusplus
292extern "C" {
293#endif
294static PyObject *_wrap_wxFileSelector(PyObject *self, PyObject *args, PyObject *kwargs) {
295 PyObject * _resultobj;
296 wxString * _result;
297 char * _arg0;
298 char * _arg1 = (char *) NULL;
299 char * _arg2 = (char *) NULL;
300 char * _arg3 = (char *) NULL;
301 char * _arg4 = (char *) "*.*";
302 int _arg5 = (int ) 0;
303 wxWindow * _arg6 = (wxWindow *) NULL;
304 int _arg7 = (int ) -1;
305 int _arg8 = (int ) -1;
306 PyObject * _argo6 = 0;
307 char *_kwnames[] = { "message","default_path","default_filename","default_extension","wildcard","flags","parent","x","y", NULL };
308
309 self = self;
310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|ssssiOii:wxFileSelector",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_argo6,&_arg7,&_arg8))
311 return NULL;
312 if (_argo6) {
313 if (_argo6 == Py_None) { _arg6 = NULL; }
314 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) {
315 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxFileSelector. Expected _wxWindow_p.");
316 return NULL;
317 }
318 }
319{
0e2ff151 320 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
321 _result = new wxString (wxFileSelector(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8));
322
0e2ff151
RD
323 wxPyEndAllowThreads(__tstate);
324 if (PyErr_Occurred()) return NULL;
e6056257
RD
325}{
326 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
327}
328{
329 delete _result;
330}
331 return _resultobj;
332}
333
334static PyObject *_wrap_wxGetTextFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
335 PyObject * _resultobj;
336 wxString * _result;
337 wxString * _arg0;
338 wxString * _arg1 = (wxString *) &wxPyEmptyStr;
339 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
340 wxWindow * _arg3 = (wxWindow *) NULL;
341 int _arg4 = (int ) -1;
342 int _arg5 = (int ) -1;
343 bool _arg6 = (bool ) TRUE;
344 PyObject * _obj0 = 0;
345 PyObject * _obj1 = 0;
346 PyObject * _obj2 = 0;
347 PyObject * _argo3 = 0;
348 int tempbool6 = (int) TRUE;
349 char *_kwnames[] = { "message","caption","default_value","parent","x","y","centre", NULL };
350
351 self = self;
352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOOiii:wxGetTextFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3,&_arg4,&_arg5,&tempbool6))
353 return NULL;
354{
355#if PYTHON_API_VERSION >= 1009
356 char* tmpPtr; int tmpSize;
357 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
358 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
359 return NULL;
360 }
361 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
362 return NULL;
363 _arg0 = new wxString(tmpPtr, tmpSize);
364#else
365 if (!PyString_Check(_obj0)) {
366 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
367 return NULL;
368 }
369 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
370#endif
371}
372 if (_obj1)
373{
374#if PYTHON_API_VERSION >= 1009
375 char* tmpPtr; int tmpSize;
376 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
377 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
378 return NULL;
379 }
380 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
381 return NULL;
382 _arg1 = new wxString(tmpPtr, tmpSize);
383#else
384 if (!PyString_Check(_obj1)) {
385 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
386 return NULL;
387 }
388 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
389#endif
390}
391 if (_obj2)
392{
393#if PYTHON_API_VERSION >= 1009
394 char* tmpPtr; int tmpSize;
395 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
396 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
397 return NULL;
398 }
399 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
400 return NULL;
401 _arg2 = new wxString(tmpPtr, tmpSize);
402#else
403 if (!PyString_Check(_obj2)) {
404 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
405 return NULL;
406 }
407 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
408#endif
409}
410 if (_argo3) {
411 if (_argo3 == Py_None) { _arg3 = NULL; }
412 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
413 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetTextFromUser. Expected _wxWindow_p.");
414 return NULL;
415 }
416 }
417 _arg6 = (bool ) tempbool6;
418{
0e2ff151 419 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
420 _result = new wxString (wxGetTextFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6));
421
0e2ff151
RD
422 wxPyEndAllowThreads(__tstate);
423 if (PyErr_Occurred()) return NULL;
e6056257
RD
424}{
425 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
426}
427{
428 if (_obj0)
429 delete _arg0;
430}
431{
432 if (_obj1)
433 delete _arg1;
434}
435{
436 if (_obj2)
437 delete _arg2;
438}
439{
440 delete _result;
441}
442 return _resultobj;
443}
444
445static PyObject *_wrap_wxGetPasswordFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
446 PyObject * _resultobj;
447 wxString * _result;
448 wxString * _arg0;
449 wxString * _arg1 = (wxString *) &wxPyEmptyStr;
450 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
451 wxWindow * _arg3 = (wxWindow *) NULL;
452 PyObject * _obj0 = 0;
453 PyObject * _obj1 = 0;
454 PyObject * _obj2 = 0;
455 PyObject * _argo3 = 0;
456 char *_kwnames[] = { "message","caption","default_value","parent", NULL };
457
458 self = self;
459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OOO:wxGetPasswordFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_argo3))
460 return NULL;
461{
462#if PYTHON_API_VERSION >= 1009
463 char* tmpPtr; int tmpSize;
464 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
465 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
466 return NULL;
467 }
468 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
469 return NULL;
470 _arg0 = new wxString(tmpPtr, tmpSize);
471#else
472 if (!PyString_Check(_obj0)) {
473 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
474 return NULL;
475 }
476 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
477#endif
478}
479 if (_obj1)
480{
481#if PYTHON_API_VERSION >= 1009
482 char* tmpPtr; int tmpSize;
483 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
484 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
485 return NULL;
486 }
487 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
488 return NULL;
489 _arg1 = new wxString(tmpPtr, tmpSize);
490#else
491 if (!PyString_Check(_obj1)) {
492 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
493 return NULL;
494 }
495 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
496#endif
497}
498 if (_obj2)
499{
500#if PYTHON_API_VERSION >= 1009
501 char* tmpPtr; int tmpSize;
502 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
503 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
504 return NULL;
505 }
506 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
507 return NULL;
508 _arg2 = new wxString(tmpPtr, tmpSize);
509#else
510 if (!PyString_Check(_obj2)) {
511 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
512 return NULL;
513 }
514 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
515#endif
516}
517 if (_argo3) {
518 if (_argo3 == Py_None) { _arg3 = NULL; }
519 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
520 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxGetPasswordFromUser. Expected _wxWindow_p.");
521 return NULL;
522 }
523 }
524{
0e2ff151 525 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
526 _result = new wxString (wxGetPasswordFromUser(*_arg0,*_arg1,*_arg2,_arg3));
527
0e2ff151
RD
528 wxPyEndAllowThreads(__tstate);
529 if (PyErr_Occurred()) return NULL;
e6056257
RD
530}{
531 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
532}
533{
534 if (_obj0)
535 delete _arg0;
536}
537{
538 if (_obj1)
539 delete _arg1;
540}
541{
542 if (_obj2)
543 delete _arg2;
544}
545{
546 delete _result;
547}
548 return _resultobj;
549}
550
551static PyObject *_wrap_wxGetSingleChoice(PyObject *self, PyObject *args, PyObject *kwargs) {
552 PyObject * _resultobj;
553 wxString * _result;
554 wxString * _arg0;
555 wxString * _arg1;
556 int _arg2;
557 wxString * _arg3;
558 wxWindow * _arg4 = (wxWindow *) NULL;
559 int _arg5 = (int ) -1;
560 int _arg6 = (int ) -1;
561 bool _arg7 = (bool ) TRUE;
562 int _arg8 = (int ) 150;
563 int _arg9 = (int ) 200;
564 PyObject * _obj0 = 0;
565 PyObject * _obj1 = 0;
566 PyObject * _obj3 = 0;
567 PyObject * _argo4 = 0;
568 int tempbool7 = (int) TRUE;
569 char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL };
570
571 self = self;
572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoice",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9))
573 return NULL;
574{
575#if PYTHON_API_VERSION >= 1009
576 char* tmpPtr; int tmpSize;
577 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
578 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
579 return NULL;
580 }
581 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
582 return NULL;
583 _arg0 = new wxString(tmpPtr, tmpSize);
584#else
585 if (!PyString_Check(_obj0)) {
586 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
587 return NULL;
588 }
589 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
590#endif
591}
592{
593#if PYTHON_API_VERSION >= 1009
594 char* tmpPtr; int tmpSize;
595 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
596 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
597 return NULL;
598 }
599 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
600 return NULL;
601 _arg1 = new wxString(tmpPtr, tmpSize);
602#else
603 if (!PyString_Check(_obj1)) {
604 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
605 return NULL;
606 }
607 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
608#endif
609}
610 if (_obj3)
611{
612 _arg3 = wxString_LIST_helper(_obj3);
613 if (_arg3 == NULL) {
614 return NULL;
615 }
616}
617 if (_argo4) {
618 if (_argo4 == Py_None) { _arg4 = NULL; }
619 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) {
620 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoice. Expected _wxWindow_p.");
621 return NULL;
622 }
623 }
624 _arg7 = (bool ) tempbool7;
625{
626 if (_obj3) {
627 _arg2 = PyList_Size(_obj3);
628 }
629 else {
630 _arg2 = 0;
631 }
632}
633{
0e2ff151 634 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
635 _result = new wxString (wxGetSingleChoice(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9));
636
0e2ff151
RD
637 wxPyEndAllowThreads(__tstate);
638 if (PyErr_Occurred()) return NULL;
e6056257
RD
639}{
640 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
641}
642{
643 if (_obj0)
644 delete _arg0;
645}
646{
647 if (_obj1)
648 delete _arg1;
649}
650{
651 delete [] _arg3;
652}
653{
654 delete _result;
655}
656 return _resultobj;
657}
658
659static PyObject *_wrap_wxGetSingleChoiceIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
660 PyObject * _resultobj;
661 int _result;
662 wxString * _arg0;
663 wxString * _arg1;
664 int _arg2;
665 wxString * _arg3;
666 wxWindow * _arg4 = (wxWindow *) NULL;
667 int _arg5 = (int ) -1;
668 int _arg6 = (int ) -1;
669 bool _arg7 = (bool ) TRUE;
670 int _arg8 = (int ) 150;
671 int _arg9 = (int ) 200;
672 PyObject * _obj0 = 0;
673 PyObject * _obj1 = 0;
674 PyObject * _obj3 = 0;
675 PyObject * _argo4 = 0;
676 int tempbool7 = (int) TRUE;
677 char *_kwnames[] = { "message","caption","choices","parent","x","y","centre","width","height", NULL };
678
679 self = self;
680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|Oiiiii:wxGetSingleChoiceIndex",_kwnames,&_obj0,&_obj1,&_obj3,&_argo4,&_arg5,&_arg6,&tempbool7,&_arg8,&_arg9))
681 return NULL;
682{
683#if PYTHON_API_VERSION >= 1009
684 char* tmpPtr; int tmpSize;
685 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
686 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
687 return NULL;
688 }
689 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
690 return NULL;
691 _arg0 = new wxString(tmpPtr, tmpSize);
692#else
693 if (!PyString_Check(_obj0)) {
694 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
695 return NULL;
696 }
697 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
698#endif
699}
700{
701#if PYTHON_API_VERSION >= 1009
702 char* tmpPtr; int tmpSize;
703 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
704 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
705 return NULL;
706 }
707 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
708 return NULL;
709 _arg1 = new wxString(tmpPtr, tmpSize);
710#else
711 if (!PyString_Check(_obj1)) {
712 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
713 return NULL;
714 }
715 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
716#endif
717}
718 if (_obj3)
719{
720 _arg3 = wxString_LIST_helper(_obj3);
721 if (_arg3 == NULL) {
722 return NULL;
723 }
724}
725 if (_argo4) {
726 if (_argo4 == Py_None) { _arg4 = NULL; }
727 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_wxWindow_p")) {
728 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxGetSingleChoiceIndex. Expected _wxWindow_p.");
729 return NULL;
730 }
731 }
732 _arg7 = (bool ) tempbool7;
733{
734 if (_obj3) {
735 _arg2 = PyList_Size(_obj3);
736 }
737 else {
738 _arg2 = 0;
739 }
740}
741{
0e2ff151 742 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
743 _result = (int )wxGetSingleChoiceIndex(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
744
0e2ff151
RD
745 wxPyEndAllowThreads(__tstate);
746 if (PyErr_Occurred()) return NULL;
e6056257
RD
747} _resultobj = Py_BuildValue("i",_result);
748{
749 if (_obj0)
750 delete _arg0;
751}
752{
753 if (_obj1)
754 delete _arg1;
755}
756{
757 delete [] _arg3;
758}
759 return _resultobj;
760}
761
762static PyObject *_wrap_wxMessageBox(PyObject *self, PyObject *args, PyObject *kwargs) {
763 PyObject * _resultobj;
764 int _result;
765 wxString * _arg0;
766 wxString * _arg1 = (wxString *) &wxPyEmptyStr;
767 int _arg2 = (int ) wxOK|wxCENTRE;
768 wxWindow * _arg3 = (wxWindow *) NULL;
769 int _arg4 = (int ) -1;
770 int _arg5 = (int ) -1;
771 PyObject * _obj0 = 0;
772 PyObject * _obj1 = 0;
773 PyObject * _argo3 = 0;
774 char *_kwnames[] = { "message","caption","style","parent","x","y", NULL };
775
776 self = self;
777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|OiOii:wxMessageBox",_kwnames,&_obj0,&_obj1,&_arg2,&_argo3,&_arg4,&_arg5))
778 return NULL;
779{
780#if PYTHON_API_VERSION >= 1009
781 char* tmpPtr; int tmpSize;
782 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
783 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
784 return NULL;
785 }
786 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
787 return NULL;
788 _arg0 = new wxString(tmpPtr, tmpSize);
789#else
790 if (!PyString_Check(_obj0)) {
791 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
792 return NULL;
793 }
794 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
795#endif
796}
797 if (_obj1)
798{
799#if PYTHON_API_VERSION >= 1009
800 char* tmpPtr; int tmpSize;
801 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
802 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
803 return NULL;
804 }
805 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
806 return NULL;
807 _arg1 = new wxString(tmpPtr, tmpSize);
808#else
809 if (!PyString_Check(_obj1)) {
810 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
811 return NULL;
812 }
813 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
814#endif
815}
816 if (_argo3) {
817 if (_argo3 == Py_None) { _arg3 = NULL; }
818 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
819 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxMessageBox. Expected _wxWindow_p.");
820 return NULL;
821 }
822 }
823{
0e2ff151 824 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
825 _result = (int )wxMessageBox(*_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5);
826
0e2ff151
RD
827 wxPyEndAllowThreads(__tstate);
828 if (PyErr_Occurred()) return NULL;
e6056257
RD
829} _resultobj = Py_BuildValue("i",_result);
830{
831 if (_obj0)
832 delete _arg0;
833}
834{
835 if (_obj1)
836 delete _arg1;
837}
838 return _resultobj;
839}
840
841static PyObject *_wrap_wxGetNumberFromUser(PyObject *self, PyObject *args, PyObject *kwargs) {
842 PyObject * _resultobj;
843 long _result;
844 wxString * _arg0;
845 wxString * _arg1;
846 wxString * _arg2;
847 long _arg3;
848 long _arg4 = (long ) 0;
849 long _arg5 = (long ) 100;
850 wxWindow * _arg6 = (wxWindow *) NULL;
851 wxPoint * _arg7 = (wxPoint *) &wxDefaultPosition;
852 PyObject * _obj0 = 0;
853 PyObject * _obj1 = 0;
854 PyObject * _obj2 = 0;
855 PyObject * _argo6 = 0;
856 wxPoint temp;
857 PyObject * _obj7 = 0;
858 char *_kwnames[] = { "message","prompt","caption","value","min","max","parent","pos", NULL };
859
860 self = self;
861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOl|llOO:wxGetNumberFromUser",_kwnames,&_obj0,&_obj1,&_obj2,&_arg3,&_arg4,&_arg5,&_argo6,&_obj7))
862 return NULL;
863{
864#if PYTHON_API_VERSION >= 1009
865 char* tmpPtr; int tmpSize;
866 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
867 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
868 return NULL;
869 }
870 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
871 return NULL;
872 _arg0 = new wxString(tmpPtr, tmpSize);
873#else
874 if (!PyString_Check(_obj0)) {
875 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
876 return NULL;
877 }
878 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
879#endif
880}
881{
882#if PYTHON_API_VERSION >= 1009
883 char* tmpPtr; int tmpSize;
884 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
885 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
886 return NULL;
887 }
888 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
889 return NULL;
890 _arg1 = new wxString(tmpPtr, tmpSize);
891#else
892 if (!PyString_Check(_obj1)) {
893 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
894 return NULL;
895 }
896 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
897#endif
898}
899{
900#if PYTHON_API_VERSION >= 1009
901 char* tmpPtr; int tmpSize;
902 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
903 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
904 return NULL;
905 }
906 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
907 return NULL;
908 _arg2 = new wxString(tmpPtr, tmpSize);
909#else
910 if (!PyString_Check(_obj2)) {
911 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
912 return NULL;
913 }
914 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
915#endif
916}
917 if (_argo6) {
918 if (_argo6 == Py_None) { _arg6 = NULL; }
919 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxWindow_p")) {
920 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxGetNumberFromUser. Expected _wxWindow_p.");
921 return NULL;
922 }
923 }
924 if (_obj7)
925{
926 _arg7 = &temp;
927 if (! wxPoint_helper(_obj7, &_arg7))
928 return NULL;
929}
930{
0e2ff151 931 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
932 _result = (long )wxGetNumberFromUser(*_arg0,*_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6,*_arg7);
933
0e2ff151
RD
934 wxPyEndAllowThreads(__tstate);
935 if (PyErr_Occurred()) return NULL;
e6056257
RD
936} _resultobj = Py_BuildValue("l",_result);
937{
938 if (_obj0)
939 delete _arg0;
940}
941{
942 if (_obj1)
943 delete _arg1;
944}
945{
946 if (_obj2)
947 delete _arg2;
948}
949 return _resultobj;
950}
951
952static PyObject *_wrap_wxColourDisplay(PyObject *self, PyObject *args, PyObject *kwargs) {
953 PyObject * _resultobj;
954 bool _result;
955 char *_kwnames[] = { NULL };
956
957 self = self;
958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxColourDisplay",_kwnames))
959 return NULL;
960{
0e2ff151 961 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
962 _result = (bool )wxColourDisplay();
963
0e2ff151
RD
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) return NULL;
e6056257
RD
966} _resultobj = Py_BuildValue("i",_result);
967 return _resultobj;
968}
969
970static PyObject *_wrap_wxDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
971 PyObject * _resultobj;
972 int _result;
973 char *_kwnames[] = { NULL };
974
975 self = self;
976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplayDepth",_kwnames))
977 return NULL;
978{
0e2ff151 979 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
980 _result = (int )wxDisplayDepth();
981
0e2ff151
RD
982 wxPyEndAllowThreads(__tstate);
983 if (PyErr_Occurred()) return NULL;
e6056257
RD
984} _resultobj = Py_BuildValue("i",_result);
985 return _resultobj;
986}
987
988static PyObject *_wrap_wxGetDisplayDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
989 PyObject * _resultobj;
990 int _result;
991 char *_kwnames[] = { NULL };
992
993 self = self;
994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplayDepth",_kwnames))
995 return NULL;
996{
0e2ff151 997 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
998 _result = (int )wxGetDisplayDepth();
999
0e2ff151
RD
1000 wxPyEndAllowThreads(__tstate);
1001 if (PyErr_Occurred()) return NULL;
e6056257
RD
1002} _resultobj = Py_BuildValue("i",_result);
1003 return _resultobj;
1004}
1005
1006static PyObject *_wrap_wxDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
1007 PyObject * _resultobj;
1008 int * _arg0;
1009 int temp;
1010 int * _arg1;
1011 int temp0;
1012 char *_kwnames[] = { NULL };
1013
1014 self = self;
1015{
1016 _arg0 = &temp;
1017}
1018{
1019 _arg1 = &temp0;
1020}
1021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySize",_kwnames))
1022 return NULL;
1023{
0e2ff151 1024 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1025 wxDisplaySize(_arg0,_arg1);
1026
0e2ff151
RD
1027 wxPyEndAllowThreads(__tstate);
1028 if (PyErr_Occurred()) return NULL;
e6056257
RD
1029} Py_INCREF(Py_None);
1030 _resultobj = Py_None;
1031{
1032 PyObject *o;
1033 o = PyInt_FromLong((long) (*_arg0));
1034 _resultobj = t_output_helper(_resultobj, o);
1035}
1036{
1037 PyObject *o;
1038 o = PyInt_FromLong((long) (*_arg1));
1039 _resultobj = t_output_helper(_resultobj, o);
1040}
1041 return _resultobj;
1042}
1043
1044static PyObject *_wrap_wxGetDisplaySize(PyObject *self, PyObject *args, PyObject *kwargs) {
1045 PyObject * _resultobj;
1046 wxSize * _result;
1047 char *_kwnames[] = { NULL };
1048 char _ptemp[128];
1049
1050 self = self;
1051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySize",_kwnames))
1052 return NULL;
1053{
0e2ff151 1054 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1055 _result = new wxSize (wxGetDisplaySize());
1056
0e2ff151
RD
1057 wxPyEndAllowThreads(__tstate);
1058 if (PyErr_Occurred()) return NULL;
e6056257
RD
1059} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1060 _resultobj = Py_BuildValue("s",_ptemp);
1061 return _resultobj;
1062}
1063
1064static PyObject *_wrap_wxDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
1065 PyObject * _resultobj;
1066 int * _arg0;
1067 int temp;
1068 int * _arg1;
1069 int temp0;
1070 char *_kwnames[] = { NULL };
1071
1072 self = self;
1073{
1074 _arg0 = &temp;
1075}
1076{
1077 _arg1 = &temp0;
1078}
1079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxDisplaySizeMM",_kwnames))
1080 return NULL;
1081{
0e2ff151 1082 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1083 wxDisplaySizeMM(_arg0,_arg1);
1084
0e2ff151
RD
1085 wxPyEndAllowThreads(__tstate);
1086 if (PyErr_Occurred()) return NULL;
e6056257
RD
1087} Py_INCREF(Py_None);
1088 _resultobj = Py_None;
1089{
1090 PyObject *o;
1091 o = PyInt_FromLong((long) (*_arg0));
1092 _resultobj = t_output_helper(_resultobj, o);
1093}
1094{
1095 PyObject *o;
1096 o = PyInt_FromLong((long) (*_arg1));
1097 _resultobj = t_output_helper(_resultobj, o);
1098}
1099 return _resultobj;
1100}
1101
1102static PyObject *_wrap_wxGetDisplaySizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
1103 PyObject * _resultobj;
1104 wxSize * _result;
1105 char *_kwnames[] = { NULL };
1106 char _ptemp[128];
1107
1108 self = self;
1109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetDisplaySizeMM",_kwnames))
1110 return NULL;
1111{
0e2ff151 1112 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1113 _result = new wxSize (wxGetDisplaySizeMM());
1114
0e2ff151
RD
1115 wxPyEndAllowThreads(__tstate);
1116 if (PyErr_Occurred()) return NULL;
e6056257
RD
1117} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
1118 _resultobj = Py_BuildValue("s",_ptemp);
1119 return _resultobj;
1120}
1121
1122static PyObject *_wrap_wxClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
1123 PyObject * _resultobj;
1124 int * _arg0;
1125 int temp;
1126 int * _arg1;
1127 int temp0;
1128 int * _arg2;
1129 int temp1;
1130 int * _arg3;
1131 int temp2;
1132 char *_kwnames[] = { NULL };
1133
1134 self = self;
1135{
1136 _arg0 = &temp;
1137}
1138{
1139 _arg1 = &temp0;
1140}
1141{
1142 _arg2 = &temp1;
1143}
1144{
1145 _arg3 = &temp2;
1146}
1147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxClientDisplayRect",_kwnames))
1148 return NULL;
1149{
0e2ff151 1150 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1151 wxClientDisplayRect(_arg0,_arg1,_arg2,_arg3);
1152
0e2ff151
RD
1153 wxPyEndAllowThreads(__tstate);
1154 if (PyErr_Occurred()) return NULL;
e6056257
RD
1155} Py_INCREF(Py_None);
1156 _resultobj = Py_None;
1157{
1158 PyObject *o;
1159 o = PyInt_FromLong((long) (*_arg0));
1160 _resultobj = t_output_helper(_resultobj, o);
1161}
1162{
1163 PyObject *o;
1164 o = PyInt_FromLong((long) (*_arg1));
1165 _resultobj = t_output_helper(_resultobj, o);
1166}
1167{
1168 PyObject *o;
1169 o = PyInt_FromLong((long) (*_arg2));
1170 _resultobj = t_output_helper(_resultobj, o);
1171}
1172{
1173 PyObject *o;
1174 o = PyInt_FromLong((long) (*_arg3));
1175 _resultobj = t_output_helper(_resultobj, o);
1176}
1177 return _resultobj;
1178}
1179
1180static PyObject *_wrap_wxGetClientDisplayRect(PyObject *self, PyObject *args, PyObject *kwargs) {
1181 PyObject * _resultobj;
1182 wxRect * _result;
1183 char *_kwnames[] = { NULL };
1184 char _ptemp[128];
1185
1186 self = self;
1187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetClientDisplayRect",_kwnames))
1188 return NULL;
1189{
0e2ff151 1190 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1191 _result = new wxRect (wxGetClientDisplayRect());
1192
0e2ff151
RD
1193 wxPyEndAllowThreads(__tstate);
1194 if (PyErr_Occurred()) return NULL;
e6056257
RD
1195} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
1196 _resultobj = Py_BuildValue("s",_ptemp);
1197 return _resultobj;
1198}
1199
1200static PyObject *_wrap_wxSetCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
1201 PyObject * _resultobj;
1202 wxCursor * _arg0;
1203 PyObject * _argo0 = 0;
1204 char *_kwnames[] = { "cursor", NULL };
1205
1206 self = self;
1207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxSetCursor",_kwnames,&_argo0))
1208 return NULL;
1209 if (_argo0) {
1210 if (_argo0 == Py_None) { _arg0 = NULL; }
1211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
1212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSetCursor. Expected _wxCursor_p.");
1213 return NULL;
1214 }
1215 }
1216{
0e2ff151 1217 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1218 wxSetCursor(*_arg0);
1219
0e2ff151
RD
1220 wxPyEndAllowThreads(__tstate);
1221 if (PyErr_Occurred()) return NULL;
e6056257
RD
1222} Py_INCREF(Py_None);
1223 _resultobj = Py_None;
1224 return _resultobj;
1225}
1226
1227static PyObject *_wrap_wxFindWindowByLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
1228 PyObject * _resultobj;
1229 wxWindow * _result;
1230 wxString * _arg0;
1231 wxWindow * _arg1 = (wxWindow *) NULL;
1232 PyObject * _obj0 = 0;
1233 PyObject * _argo1 = 0;
1234 char *_kwnames[] = { "label","parent", NULL };
1235
1236 self = self;
1237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByLabel",_kwnames,&_obj0,&_argo1))
1238 return NULL;
1239{
1240#if PYTHON_API_VERSION >= 1009
1241 char* tmpPtr; int tmpSize;
1242 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1243 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1244 return NULL;
1245 }
1246 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1247 return NULL;
1248 _arg0 = new wxString(tmpPtr, tmpSize);
1249#else
1250 if (!PyString_Check(_obj0)) {
1251 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1252 return NULL;
1253 }
1254 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1255#endif
1256}
1257 if (_argo1) {
1258 if (_argo1 == Py_None) { _arg1 = NULL; }
1259 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1260 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByLabel. Expected _wxWindow_p.");
1261 return NULL;
1262 }
1263 }
1264{
0e2ff151 1265 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1266 _result = (wxWindow *)wxFindWindowByLabel(*_arg0,_arg1);
1267
0e2ff151
RD
1268 wxPyEndAllowThreads(__tstate);
1269 if (PyErr_Occurred()) return NULL;
e6056257
RD
1270}{ _resultobj = wxPyMake_wxObject(_result); }
1271{
1272 if (_obj0)
1273 delete _arg0;
1274}
1275 return _resultobj;
1276}
1277
1278static PyObject *_wrap_wxFindWindowByName(PyObject *self, PyObject *args, PyObject *kwargs) {
1279 PyObject * _resultobj;
1280 wxWindow * _result;
1281 wxString * _arg0;
1282 wxWindow * _arg1 = (wxWindow *) NULL;
1283 PyObject * _obj0 = 0;
1284 PyObject * _argo1 = 0;
1285 char *_kwnames[] = { "name","parent", NULL };
1286
1287 self = self;
1288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxFindWindowByName",_kwnames,&_obj0,&_argo1))
1289 return NULL;
1290{
1291#if PYTHON_API_VERSION >= 1009
1292 char* tmpPtr; int tmpSize;
1293 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1294 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1295 return NULL;
1296 }
1297 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1298 return NULL;
1299 _arg0 = new wxString(tmpPtr, tmpSize);
1300#else
1301 if (!PyString_Check(_obj0)) {
1302 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1303 return NULL;
1304 }
1305 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1306#endif
1307}
1308 if (_argo1) {
1309 if (_argo1 == Py_None) { _arg1 = NULL; }
1310 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
1311 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFindWindowByName. Expected _wxWindow_p.");
1312 return NULL;
1313 }
1314 }
1315{
0e2ff151 1316 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1317 _result = (wxWindow *)wxFindWindowByName(*_arg0,_arg1);
1318
0e2ff151
RD
1319 wxPyEndAllowThreads(__tstate);
1320 if (PyErr_Occurred()) return NULL;
e6056257
RD
1321}{ _resultobj = wxPyMake_wxObject(_result); }
1322{
1323 if (_obj0)
1324 delete _arg0;
1325}
1326 return _resultobj;
1327}
1328
1329static PyObject *_wrap_wxBeginBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
1330 PyObject * _resultobj;
1331 wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR;
1332 PyObject * _argo0 = 0;
1333 char *_kwnames[] = { "cursor", NULL };
1334
1335 self = self;
1336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxBeginBusyCursor",_kwnames,&_argo0))
1337 return NULL;
1338 if (_argo0) {
1339 if (_argo0 == Py_None) { _arg0 = NULL; }
1340 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
1341 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBeginBusyCursor. Expected _wxCursor_p.");
1342 return NULL;
1343 }
1344 }
1345{
0e2ff151 1346 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1347 wxBeginBusyCursor(_arg0);
1348
0e2ff151
RD
1349 wxPyEndAllowThreads(__tstate);
1350 if (PyErr_Occurred()) return NULL;
e6056257
RD
1351} Py_INCREF(Py_None);
1352 _resultobj = Py_None;
1353 return _resultobj;
1354}
1355
1356static PyObject *_wrap_wxGetActiveWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
1357 PyObject * _resultobj;
1358 wxWindow * _result;
1359 char *_kwnames[] = { NULL };
1360
1361 self = self;
1362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxGetActiveWindow",_kwnames))
1363 return NULL;
1364{
0e2ff151 1365 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1366 _result = (wxWindow *)wxGetActiveWindow();
1367
0e2ff151
RD
1368 wxPyEndAllowThreads(__tstate);
1369 if (PyErr_Occurred()) return NULL;
e6056257
RD
1370}{ _resultobj = wxPyMake_wxObject(_result); }
1371 return _resultobj;
1372}
1373
1374static PyObject *_wrap_wxGenericFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1375 PyObject * _resultobj;
1376 wxWindow * _result;
1377 wxPoint * _arg0;
1378 wxPoint temp;
1379 PyObject * _obj0 = 0;
1380 char *_kwnames[] = { "pt", NULL };
1381
1382 self = self;
1383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGenericFindWindowAtPoint",_kwnames,&_obj0))
1384 return NULL;
1385{
1386 _arg0 = &temp;
1387 if (! wxPoint_helper(_obj0, &_arg0))
1388 return NULL;
1389}
1390{
0e2ff151 1391 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1392 _result = (wxWindow *)wxGenericFindWindowAtPoint(*_arg0);
1393
0e2ff151
RD
1394 wxPyEndAllowThreads(__tstate);
1395 if (PyErr_Occurred()) return NULL;
e6056257
RD
1396}{ _resultobj = wxPyMake_wxObject(_result); }
1397 return _resultobj;
1398}
1399
1400static PyObject *_wrap_wxFindWindowAtPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
1401 PyObject * _resultobj;
1402 wxWindow * _result;
1403 wxPoint * _arg0;
1404 wxPoint temp;
1405 PyObject * _obj0 = 0;
1406 char *_kwnames[] = { "pt", NULL };
1407
1408 self = self;
1409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFindWindowAtPoint",_kwnames,&_obj0))
1410 return NULL;
1411{
1412 _arg0 = &temp;
1413 if (! wxPoint_helper(_obj0, &_arg0))
1414 return NULL;
1415}
1416{
0e2ff151 1417 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1418 _result = (wxWindow *)wxFindWindowAtPoint(*_arg0);
1419
0e2ff151
RD
1420 wxPyEndAllowThreads(__tstate);
1421 if (PyErr_Occurred()) return NULL;
e6056257
RD
1422}{ _resultobj = wxPyMake_wxObject(_result); }
1423 return _resultobj;
1424}
1425
1426static PyObject *_wrap_wxResourceAddIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
1427 PyObject * _resultobj;
1428 bool _result;
1429 char * _arg0;
1430 int _arg1;
1431 char *_kwnames[] = { "name","value", NULL };
1432
1433 self = self;
1434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"si:wxResourceAddIdentifier",_kwnames,&_arg0,&_arg1))
1435 return NULL;
1436{
0e2ff151 1437 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1438 _result = (bool )wxResourceAddIdentifier(_arg0,_arg1);
1439
0e2ff151
RD
1440 wxPyEndAllowThreads(__tstate);
1441 if (PyErr_Occurred()) return NULL;
e6056257
RD
1442} _resultobj = Py_BuildValue("i",_result);
1443 return _resultobj;
1444}
1445
1446static PyObject *_wrap_wxResourceClear(PyObject *self, PyObject *args, PyObject *kwargs) {
1447 PyObject * _resultobj;
1448 char *_kwnames[] = { NULL };
1449
1450 self = self;
1451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxResourceClear",_kwnames))
1452 return NULL;
1453{
0e2ff151 1454 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1455 wxResourceClear();
1456
0e2ff151
RD
1457 wxPyEndAllowThreads(__tstate);
1458 if (PyErr_Occurred()) return NULL;
e6056257
RD
1459} Py_INCREF(Py_None);
1460 _resultobj = Py_None;
1461 return _resultobj;
1462}
1463
1464static PyObject *_wrap_wxResourceCreateBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1465 PyObject * _resultobj;
1466 wxBitmap * _result;
1467 char * _arg0;
1468 char *_kwnames[] = { "resource", NULL };
1469 char _ptemp[128];
1470
1471 self = self;
1472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateBitmap",_kwnames,&_arg0))
1473 return NULL;
1474{
0e2ff151 1475 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1476 _result = new wxBitmap (wxResourceCreateBitmap(_arg0));
1477
0e2ff151
RD
1478 wxPyEndAllowThreads(__tstate);
1479 if (PyErr_Occurred()) return NULL;
e6056257
RD
1480} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
1481 _resultobj = Py_BuildValue("s",_ptemp);
1482 return _resultobj;
1483}
1484
1485static PyObject *_wrap_wxResourceCreateIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
1486 PyObject * _resultobj;
1487 wxIcon * _result;
1488 char * _arg0;
1489 char *_kwnames[] = { "resource", NULL };
1490 char _ptemp[128];
1491
1492 self = self;
1493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateIcon",_kwnames,&_arg0))
1494 return NULL;
1495{
0e2ff151 1496 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1497 _result = new wxIcon (wxResourceCreateIcon(_arg0));
1498
0e2ff151
RD
1499 wxPyEndAllowThreads(__tstate);
1500 if (PyErr_Occurred()) return NULL;
e6056257
RD
1501} SWIG_MakePtr(_ptemp, (void *) _result,"_wxIcon_p");
1502 _resultobj = Py_BuildValue("s",_ptemp);
1503 return _resultobj;
1504}
1505
1506static PyObject *_wrap_wxResourceCreateMenuBar(PyObject *self, PyObject *args, PyObject *kwargs) {
1507 PyObject * _resultobj;
1508 wxMenuBar * _result;
1509 char * _arg0;
1510 char *_kwnames[] = { "resource", NULL };
1511
1512 self = self;
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceCreateMenuBar",_kwnames,&_arg0))
1514 return NULL;
1515{
0e2ff151 1516 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1517 _result = (wxMenuBar *)wxResourceCreateMenuBar(_arg0);
1518
0e2ff151
RD
1519 wxPyEndAllowThreads(__tstate);
1520 if (PyErr_Occurred()) return NULL;
e6056257
RD
1521}{ _resultobj = wxPyMake_wxObject(_result); }
1522 return _resultobj;
1523}
1524
1525static PyObject *_wrap_wxResourceGetIdentifier(PyObject *self, PyObject *args, PyObject *kwargs) {
1526 PyObject * _resultobj;
1527 int _result;
1528 char * _arg0;
1529 char *_kwnames[] = { "name", NULL };
1530
1531 self = self;
1532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxResourceGetIdentifier",_kwnames,&_arg0))
1533 return NULL;
1534{
0e2ff151 1535 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1536 _result = (int )wxResourceGetIdentifier(_arg0);
1537
0e2ff151
RD
1538 wxPyEndAllowThreads(__tstate);
1539 if (PyErr_Occurred()) return NULL;
e6056257
RD
1540} _resultobj = Py_BuildValue("i",_result);
1541 return _resultobj;
1542}
1543
1544static PyObject *_wrap_wxResourceParseData(PyObject *self, PyObject *args, PyObject *kwargs) {
1545 PyObject * _resultobj;
1546 bool _result;
1547 char * _arg0;
1548 wxResourceTable * _arg1 = (wxResourceTable *) NULL;
1549 PyObject * _argo1 = 0;
1550 char *_kwnames[] = { "resource","table", NULL };
1551
1552 self = self;
1553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseData",_kwnames,&_arg0,&_argo1))
1554 return NULL;
1555 if (_argo1) {
1556 if (_argo1 == Py_None) { _arg1 = NULL; }
1557 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
1558 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseData. Expected _wxResourceTable_p.");
1559 return NULL;
1560 }
1561 }
1562{
0e2ff151 1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1564 _result = (bool )wxResourceParseData(_arg0,_arg1);
1565
0e2ff151
RD
1566 wxPyEndAllowThreads(__tstate);
1567 if (PyErr_Occurred()) return NULL;
e6056257
RD
1568} _resultobj = Py_BuildValue("i",_result);
1569 return _resultobj;
1570}
1571
1572static PyObject *_wrap_wxResourceParseFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject * _resultobj;
1574 bool _result;
1575 char * _arg0;
1576 wxResourceTable * _arg1 = (wxResourceTable *) NULL;
1577 PyObject * _argo1 = 0;
1578 char *_kwnames[] = { "filename","table", NULL };
1579
1580 self = self;
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseFile",_kwnames,&_arg0,&_argo1))
1582 return NULL;
1583 if (_argo1) {
1584 if (_argo1 == Py_None) { _arg1 = NULL; }
1585 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
1586 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseFile. Expected _wxResourceTable_p.");
1587 return NULL;
1588 }
1589 }
1590{
0e2ff151 1591 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1592 _result = (bool )wxResourceParseFile(_arg0,_arg1);
1593
0e2ff151
RD
1594 wxPyEndAllowThreads(__tstate);
1595 if (PyErr_Occurred()) return NULL;
e6056257
RD
1596} _resultobj = Py_BuildValue("i",_result);
1597 return _resultobj;
1598}
1599
1600static PyObject *_wrap_wxResourceParseString(PyObject *self, PyObject *args, PyObject *kwargs) {
1601 PyObject * _resultobj;
1602 bool _result;
1603 char * _arg0;
1604 wxResourceTable * _arg1 = (wxResourceTable *) NULL;
1605 PyObject * _argo1 = 0;
1606 char *_kwnames[] = { "resource","table", NULL };
1607
1608 self = self;
1609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s|O:wxResourceParseString",_kwnames,&_arg0,&_argo1))
1610 return NULL;
1611 if (_argo1) {
1612 if (_argo1 == Py_None) { _arg1 = NULL; }
1613 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxResourceTable_p")) {
1614 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxResourceParseString. Expected _wxResourceTable_p.");
1615 return NULL;
1616 }
1617 }
1618{
0e2ff151 1619 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1620 _result = (bool )wxResourceParseString(_arg0,_arg1);
1621
0e2ff151
RD
1622 wxPyEndAllowThreads(__tstate);
1623 if (PyErr_Occurred()) return NULL;
e6056257
RD
1624} _resultobj = Py_BuildValue("i",_result);
1625 return _resultobj;
1626}
1627
e6056257
RD
1628static PyObject *_wrap_wxCaret_GetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1629 PyObject * _resultobj;
1630 int _result;
1631 char *_kwnames[] = { NULL };
1632
1633 self = self;
1634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxCaret_GetBlinkTime",_kwnames))
1635 return NULL;
1636{
0e2ff151 1637 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1638 _result = (int )wxCaret_GetBlinkTime();
1639
0e2ff151
RD
1640 wxPyEndAllowThreads(__tstate);
1641 if (PyErr_Occurred()) return NULL;
e6056257
RD
1642} _resultobj = Py_BuildValue("i",_result);
1643 return _resultobj;
1644}
1645
1646static PyObject *_wrap_wxCaret_SetBlinkTime(PyObject *self, PyObject *args, PyObject *kwargs) {
1647 PyObject * _resultobj;
1648 int _arg0;
1649 char *_kwnames[] = { "milliseconds", NULL };
1650
1651 self = self;
1652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxCaret_SetBlinkTime",_kwnames,&_arg0))
1653 return NULL;
1654{
0e2ff151 1655 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1656 wxCaret_SetBlinkTime(_arg0);
1657
0e2ff151
RD
1658 wxPyEndAllowThreads(__tstate);
1659 if (PyErr_Occurred()) return NULL;
e6056257
RD
1660} Py_INCREF(Py_None);
1661 _resultobj = Py_None;
1662 return _resultobj;
1663}
1664
1665static PyObject *_wrap_wxSafeYield(PyObject *self, PyObject *args, PyObject *kwargs) {
1666 PyObject * _resultobj;
1667 bool _result;
1668 wxWindow * _arg0 = (wxWindow *) NULL;
1669 PyObject * _argo0 = 0;
1670 char *_kwnames[] = { "win", NULL };
1671
1672 self = self;
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:wxSafeYield",_kwnames,&_argo0))
1674 return NULL;
1675 if (_argo0) {
1676 if (_argo0 == Py_None) { _arg0 = NULL; }
1677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxSafeYield. Expected _wxWindow_p.");
1679 return NULL;
1680 }
1681 }
1682{
0e2ff151 1683 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1684 _result = (bool )wxSafeYield(_arg0);
1685
0e2ff151
RD
1686 wxPyEndAllowThreads(__tstate);
1687 if (PyErr_Occurred()) return NULL;
e6056257
RD
1688} _resultobj = Py_BuildValue("i",_result);
1689 return _resultobj;
1690}
1691
1692static PyObject *_wrap_wxPostEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
1693 PyObject * _resultobj;
1694 wxEvtHandler * _arg0;
1695 wxEvent * _arg1;
1696 PyObject * _argo0 = 0;
1697 PyObject * _argo1 = 0;
1698 char *_kwnames[] = { "dest","event", NULL };
1699
1700 self = self;
1701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPostEvent",_kwnames,&_argo0,&_argo1))
1702 return NULL;
1703 if (_argo0) {
1704 if (_argo0 == Py_None) { _arg0 = NULL; }
1705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
1706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPostEvent. Expected _wxEvtHandler_p.");
1707 return NULL;
1708 }
1709 }
1710 if (_argo1) {
1711 if (_argo1 == Py_None) { _arg1 = NULL; }
1712 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvent_p")) {
1713 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPostEvent. Expected _wxEvent_p.");
1714 return NULL;
1715 }
1716 }
1717{
0e2ff151 1718 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1719 wxPostEvent(_arg0,*_arg1);
1720
0e2ff151
RD
1721 wxPyEndAllowThreads(__tstate);
1722 if (PyErr_Occurred()) return NULL;
e6056257
RD
1723} Py_INCREF(Py_None);
1724 _resultobj = Py_None;
1725 return _resultobj;
1726}
1727
1728static PyObject *_wrap_wxWakeUpIdle(PyObject *self, PyObject *args, PyObject *kwargs) {
1729 PyObject * _resultobj;
1730 char *_kwnames[] = { NULL };
1731
1732 self = self;
1733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxWakeUpIdle",_kwnames))
1734 return NULL;
1735{
0e2ff151 1736 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1737 wxWakeUpIdle();
1738
0e2ff151
RD
1739 wxPyEndAllowThreads(__tstate);
1740 if (PyErr_Occurred()) return NULL;
e6056257
RD
1741} Py_INCREF(Py_None);
1742 _resultobj = Py_None;
1743 return _resultobj;
1744}
1745
1746static PyObject *_wrap_wxMutexGuiEnter(PyObject *self, PyObject *args, PyObject *kwargs) {
1747 PyObject * _resultobj;
1748 char *_kwnames[] = { NULL };
1749
1750 self = self;
1751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiEnter",_kwnames))
1752 return NULL;
1753{
0e2ff151 1754 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1755 wxMutexGuiEnter();
1756
0e2ff151
RD
1757 wxPyEndAllowThreads(__tstate);
1758 if (PyErr_Occurred()) return NULL;
e6056257
RD
1759} Py_INCREF(Py_None);
1760 _resultobj = Py_None;
1761 return _resultobj;
1762}
1763
1764static PyObject *_wrap_wxMutexGuiLeave(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject * _resultobj;
1766 char *_kwnames[] = { NULL };
1767
1768 self = self;
1769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxMutexGuiLeave",_kwnames))
1770 return NULL;
1771{
0e2ff151 1772 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1773 wxMutexGuiLeave();
1774
0e2ff151
RD
1775 wxPyEndAllowThreads(__tstate);
1776 if (PyErr_Occurred()) return NULL;
e6056257
RD
1777} Py_INCREF(Py_None);
1778 _resultobj = Py_None;
1779 return _resultobj;
1780}
1781
1782static PyObject *_wrap_wxThread_IsMain(PyObject *self, PyObject *args, PyObject *kwargs) {
1783 PyObject * _resultobj;
1784 bool _result;
1785 char *_kwnames[] = { NULL };
1786
1787 self = self;
1788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxThread_IsMain",_kwnames))
1789 return NULL;
1790{
0e2ff151 1791 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1792 _result = (bool )wxThread_IsMain();
1793
0e2ff151
RD
1794 wxPyEndAllowThreads(__tstate);
1795 if (PyErr_Occurred()) return NULL;
e6056257
RD
1796} _resultobj = Py_BuildValue("i",_result);
1797 return _resultobj;
1798}
1799
1800static PyObject *_wrap_wxShowTip(PyObject *self, PyObject *args, PyObject *kwargs) {
1801 PyObject * _resultobj;
1802 bool _result;
1803 wxWindow * _arg0;
1804 wxTipProvider * _arg1;
1805 bool _arg2 = (bool ) TRUE;
1806 PyObject * _argo0 = 0;
1807 PyObject * _argo1 = 0;
1808 int tempbool2 = (int) TRUE;
1809 char *_kwnames[] = { "parent","tipProvider","showAtStartup", NULL };
1810
1811 self = self;
1812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxShowTip",_kwnames,&_argo0,&_argo1,&tempbool2))
1813 return NULL;
1814 if (_argo0) {
1815 if (_argo0 == Py_None) { _arg0 = NULL; }
1816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
1817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxShowTip. Expected _wxWindow_p.");
1818 return NULL;
1819 }
1820 }
1821 if (_argo1) {
1822 if (_argo1 == Py_None) { _arg1 = NULL; }
1823 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTipProvider_p")) {
1824 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxShowTip. Expected _wxTipProvider_p.");
1825 return NULL;
1826 }
1827 }
1828 _arg2 = (bool ) tempbool2;
1829{
0e2ff151 1830 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1831 _result = (bool )wxShowTip(_arg0,_arg1,_arg2);
1832
0e2ff151
RD
1833 wxPyEndAllowThreads(__tstate);
1834 if (PyErr_Occurred()) return NULL;
e6056257
RD
1835} _resultobj = Py_BuildValue("i",_result);
1836 return _resultobj;
1837}
1838
1839static PyObject *_wrap_wxCreateFileTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
1840 PyObject * _resultobj;
1841 wxTipProvider * _result;
1842 wxString * _arg0;
1843 size_t _arg1;
1844 PyObject * _obj0 = 0;
1845 char *_kwnames[] = { "filename","currentTip", NULL };
1846 char _ptemp[128];
1847
1848 self = self;
1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCreateFileTipProvider",_kwnames,&_obj0,&_arg1))
1850 return NULL;
1851{
1852#if PYTHON_API_VERSION >= 1009
1853 char* tmpPtr; int tmpSize;
1854 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1855 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1856 return NULL;
1857 }
1858 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1859 return NULL;
1860 _arg0 = new wxString(tmpPtr, tmpSize);
1861#else
1862 if (!PyString_Check(_obj0)) {
1863 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1864 return NULL;
1865 }
1866 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1867#endif
1868}
1869{
0e2ff151 1870 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1871 _result = (wxTipProvider *)wxCreateFileTipProvider(*_arg0,_arg1);
1872
0e2ff151
RD
1873 wxPyEndAllowThreads(__tstate);
1874 if (PyErr_Occurred()) return NULL;
e6056257
RD
1875} if (_result) {
1876 SWIG_MakePtr(_ptemp, (char *) _result,"_wxTipProvider_p");
1877 _resultobj = Py_BuildValue("s",_ptemp);
1878 } else {
1879 Py_INCREF(Py_None);
1880 _resultobj = Py_None;
1881 }
1882{
1883 if (_obj0)
1884 delete _arg0;
1885}
1886 return _resultobj;
1887}
1888
1889static PyObject *_wrap_wxSysErrorCode(PyObject *self, PyObject *args, PyObject *kwargs) {
1890 PyObject * _resultobj;
1891 unsigned long _result;
1892 char *_kwnames[] = { NULL };
1893
1894 self = self;
1895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxSysErrorCode",_kwnames))
1896 return NULL;
1897{
0e2ff151 1898 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1899 _result = (unsigned long )wxSysErrorCode();
1900
0e2ff151
RD
1901 wxPyEndAllowThreads(__tstate);
1902 if (PyErr_Occurred()) return NULL;
e6056257
RD
1903} _resultobj = Py_BuildValue("l",_result);
1904 return _resultobj;
1905}
1906
1907static PyObject *_wrap_wxSysErrorMsg(PyObject *self, PyObject *args, PyObject *kwargs) {
1908 PyObject * _resultobj;
1909 char * _result;
1910 unsigned long _arg0 = (unsigned long ) 0;
1911 char *_kwnames[] = { "nErrCode", NULL };
1912
1913 self = self;
1914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|l:wxSysErrorMsg",_kwnames,&_arg0))
1915 return NULL;
1916{
0e2ff151 1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1918 _result = (char *)wxSysErrorMsg(_arg0);
1919
0e2ff151
RD
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) return NULL;
e6056257
RD
1922} _resultobj = Py_BuildValue("s", _result);
1923 return _resultobj;
1924}
1925
1926static PyObject *_wrap_wxLogFatalError(PyObject *self, PyObject *args, PyObject *kwargs) {
1927 PyObject * _resultobj;
1928 char * _arg0;
1929 char *_kwnames[] = { "szFormat", NULL };
1930
1931 self = self;
1932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogFatalError",_kwnames,&_arg0))
1933 return NULL;
1934{
0e2ff151 1935 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1936 wxLogFatalError(_arg0);
1937
0e2ff151
RD
1938 wxPyEndAllowThreads(__tstate);
1939 if (PyErr_Occurred()) return NULL;
e6056257
RD
1940} Py_INCREF(Py_None);
1941 _resultobj = Py_None;
1942 return _resultobj;
1943}
1944
1945static PyObject *_wrap_wxLogError(PyObject *self, PyObject *args, PyObject *kwargs) {
1946 PyObject * _resultobj;
1947 char * _arg0;
1948 char *_kwnames[] = { "szFormat", NULL };
1949
1950 self = self;
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogError",_kwnames,&_arg0))
1952 return NULL;
1953{
0e2ff151 1954 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1955 wxLogError(_arg0);
1956
0e2ff151
RD
1957 wxPyEndAllowThreads(__tstate);
1958 if (PyErr_Occurred()) return NULL;
e6056257
RD
1959} Py_INCREF(Py_None);
1960 _resultobj = Py_None;
1961 return _resultobj;
1962}
1963
1964static PyObject *_wrap_wxLogWarning(PyObject *self, PyObject *args, PyObject *kwargs) {
1965 PyObject * _resultobj;
1966 char * _arg0;
1967 char *_kwnames[] = { "szFormat", NULL };
1968
1969 self = self;
1970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogWarning",_kwnames,&_arg0))
1971 return NULL;
1972{
0e2ff151 1973 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1974 wxLogWarning(_arg0);
1975
0e2ff151
RD
1976 wxPyEndAllowThreads(__tstate);
1977 if (PyErr_Occurred()) return NULL;
e6056257
RD
1978} Py_INCREF(Py_None);
1979 _resultobj = Py_None;
1980 return _resultobj;
1981}
1982
1983static PyObject *_wrap_wxLogMessage(PyObject *self, PyObject *args, PyObject *kwargs) {
1984 PyObject * _resultobj;
1985 char * _arg0;
1986 char *_kwnames[] = { "szFormat", NULL };
1987
1988 self = self;
1989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogMessage",_kwnames,&_arg0))
1990 return NULL;
1991{
0e2ff151 1992 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
1993 wxLogMessage(_arg0);
1994
0e2ff151
RD
1995 wxPyEndAllowThreads(__tstate);
1996 if (PyErr_Occurred()) return NULL;
e6056257
RD
1997} Py_INCREF(Py_None);
1998 _resultobj = Py_None;
1999 return _resultobj;
2000}
2001
2002static PyObject *_wrap_wxLogInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
2003 PyObject * _resultobj;
2004 char * _arg0;
2005 char *_kwnames[] = { "szFormat", NULL };
2006
2007 self = self;
2008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogInfo",_kwnames,&_arg0))
2009 return NULL;
2010{
0e2ff151 2011 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2012 wxLogInfo(_arg0);
2013
0e2ff151
RD
2014 wxPyEndAllowThreads(__tstate);
2015 if (PyErr_Occurred()) return NULL;
e6056257
RD
2016} Py_INCREF(Py_None);
2017 _resultobj = Py_None;
2018 return _resultobj;
2019}
2020
2021static PyObject *_wrap_wxLogVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
2022 PyObject * _resultobj;
2023 char * _arg0;
2024 char *_kwnames[] = { "szFormat", NULL };
2025
2026 self = self;
2027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogVerbose",_kwnames,&_arg0))
2028 return NULL;
2029{
0e2ff151 2030 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2031 wxLogVerbose(_arg0);
2032
0e2ff151
RD
2033 wxPyEndAllowThreads(__tstate);
2034 if (PyErr_Occurred()) return NULL;
e6056257
RD
2035} Py_INCREF(Py_None);
2036 _resultobj = Py_None;
2037 return _resultobj;
2038}
2039
2040static PyObject *_wrap_wxLogStatus(PyObject *self, PyObject *args, PyObject *kwargs) {
2041 PyObject * _resultobj;
2042 char * _arg0;
2043 char *_kwnames[] = { "szFormat", NULL };
2044
2045 self = self;
2046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogStatus",_kwnames,&_arg0))
2047 return NULL;
2048{
0e2ff151 2049 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2050 wxLogStatus(_arg0);
2051
0e2ff151
RD
2052 wxPyEndAllowThreads(__tstate);
2053 if (PyErr_Occurred()) return NULL;
e6056257
RD
2054} Py_INCREF(Py_None);
2055 _resultobj = Py_None;
2056 return _resultobj;
2057}
2058
2059static PyObject *_wrap_wxLogStatusFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
2060 PyObject * _resultobj;
2061 wxFrame * _arg0;
2062 char * _arg1;
2063 PyObject * _argo0 = 0;
2064 char *_kwnames[] = { "pFrame","szFormat", NULL };
2065
2066 self = self;
2067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os:wxLogStatusFrame",_kwnames,&_argo0,&_arg1))
2068 return NULL;
2069 if (_argo0) {
2070 if (_argo0 == Py_None) { _arg0 = NULL; }
2071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
2072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogStatusFrame. Expected _wxFrame_p.");
2073 return NULL;
2074 }
2075 }
2076{
0e2ff151 2077 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2078 wxLogStatus(_arg0,_arg1);
2079
0e2ff151
RD
2080 wxPyEndAllowThreads(__tstate);
2081 if (PyErr_Occurred()) return NULL;
e6056257
RD
2082} Py_INCREF(Py_None);
2083 _resultobj = Py_None;
2084 return _resultobj;
2085}
2086
2087static PyObject *_wrap_wxLogSysError(PyObject *self, PyObject *args, PyObject *kwargs) {
2088 PyObject * _resultobj;
2089 char * _arg0;
2090 char *_kwnames[] = { "szFormat", NULL };
2091
2092 self = self;
2093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLogSysError",_kwnames,&_arg0))
2094 return NULL;
2095{
0e2ff151 2096 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2097 wxLogSysError(_arg0);
2098
0e2ff151
RD
2099 wxPyEndAllowThreads(__tstate);
2100 if (PyErr_Occurred()) return NULL;
e6056257
RD
2101} Py_INCREF(Py_None);
2102 _resultobj = Py_None;
2103 return _resultobj;
2104}
2105
2106static PyObject *_wrap_wxExecute(PyObject *self, PyObject *args, PyObject *kwargs) {
2107 PyObject * _resultobj;
2108 long _result;
2109 wxString * _arg0;
2110 int _arg1 = (int ) FALSE;
2111 wxPyProcess * _arg2 = (wxPyProcess *) NULL;
2112 PyObject * _obj0 = 0;
2113 PyObject * _argo2 = 0;
2114 char *_kwnames[] = { "command","sync","process", NULL };
2115
2116 self = self;
2117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxExecute",_kwnames,&_obj0,&_arg1,&_argo2))
2118 return NULL;
2119{
2120#if PYTHON_API_VERSION >= 1009
2121 char* tmpPtr; int tmpSize;
2122 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2123 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2124 return NULL;
2125 }
2126 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2127 return NULL;
2128 _arg0 = new wxString(tmpPtr, tmpSize);
2129#else
2130 if (!PyString_Check(_obj0)) {
2131 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2132 return NULL;
2133 }
2134 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2135#endif
2136}
2137 if (_argo2) {
2138 if (_argo2 == Py_None) { _arg2 = NULL; }
2139 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxPyProcess_p")) {
2140 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxExecute. Expected _wxPyProcess_p.");
2141 return NULL;
2142 }
2143 }
2144{
0e2ff151 2145 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2146 _result = (long )wxExecute(*_arg0,_arg1,_arg2);
2147
0e2ff151
RD
2148 wxPyEndAllowThreads(__tstate);
2149 if (PyErr_Occurred()) return NULL;
e6056257
RD
2150} _resultobj = Py_BuildValue("l",_result);
2151{
2152 if (_obj0)
2153 delete _arg0;
2154}
2155 return _resultobj;
2156}
2157
2158static PyObject *_wrap_wxWaveData(PyObject *self, PyObject *args, PyObject *kwargs) {
2159 PyObject * _resultobj;
2160 wxWave * _result;
2161 wxString * _arg0;
2162 PyObject * _obj0 = 0;
2163 char *_kwnames[] = { "data", NULL };
2164 char _ptemp[128];
2165
2166 self = self;
2167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWaveData",_kwnames,&_obj0))
2168 return NULL;
2169{
2170#if PYTHON_API_VERSION >= 1009
2171 char* tmpPtr; int tmpSize;
2172 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2173 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2174 return NULL;
2175 }
2176 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2177 return NULL;
2178 _arg0 = new wxString(tmpPtr, tmpSize);
2179#else
2180 if (!PyString_Check(_obj0)) {
2181 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2182 return NULL;
2183 }
2184 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2185#endif
2186}
2187{
0e2ff151 2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2189 _result = (wxWave *)wxWaveData(*_arg0);
2190
0e2ff151
RD
2191 wxPyEndAllowThreads(__tstate);
2192 if (PyErr_Occurred()) return NULL;
e6056257
RD
2193} if (_result) {
2194 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p");
2195 _resultobj = Py_BuildValue("s",_ptemp);
2196 } else {
2197 Py_INCREF(Py_None);
2198 _resultobj = Py_None;
2199 }
2200{
2201 if (_obj0)
2202 delete _arg0;
2203}
2204 return _resultobj;
2205}
2206
b6e5c445
RD
2207static int _wrap_wxTheMimeTypesManager_set(PyObject *val) {
2208
2209 PyErr_SetString(PyExc_TypeError,"Variable wxTheMimeTypesManager is read-only.");
2210 return 1;
2211}
2212
2213static PyObject *_wrap_wxTheMimeTypesManager_get() {
2214 PyObject * pyobj;
2215 char ptemp[128];
2216
2217 SWIG_MakePtr(ptemp, (char *) wxTheMimeTypesManager,"_wxMimeTypesManager_p");
2218 pyobj = PyString_FromString(ptemp);
2219 return pyobj;
2220}
2221
6abe8375
RD
2222static PyObject *_wrap_wxSystemSettings_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2223 PyObject * _resultobj;
2224 wxColour * _result;
2225 wxSystemColour _arg0;
2226 char *_kwnames[] = { "index", NULL };
2227 char _ptemp[128];
2228
2229 self = self;
2230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetColour",_kwnames,&_arg0))
2231 return NULL;
2232{
2233 PyThreadState* __tstate = wxPyBeginAllowThreads();
2234 _result = new wxColour (wxSystemSettings::GetColour(_arg0));
2235
2236 wxPyEndAllowThreads(__tstate);
2237 if (PyErr_Occurred()) return NULL;
2238} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
2239 _resultobj = Py_BuildValue("s",_ptemp);
2240 return _resultobj;
2241}
2242
2243static PyObject *_wrap_wxSystemSettings_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
2244 PyObject * _resultobj;
2245 wxFont * _result;
2246 wxSystemFont _arg0;
2247 char *_kwnames[] = { "index", NULL };
2248 char _ptemp[128];
2249
2250 self = self;
2251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetFont",_kwnames,&_arg0))
2252 return NULL;
2253{
2254 PyThreadState* __tstate = wxPyBeginAllowThreads();
2255 _result = new wxFont (wxSystemSettings::GetFont(_arg0));
2256
2257 wxPyEndAllowThreads(__tstate);
2258 if (PyErr_Occurred()) return NULL;
2259} SWIG_MakePtr(_ptemp, (void *) _result,"_wxFont_p");
2260 _resultobj = Py_BuildValue("s",_ptemp);
2261 return _resultobj;
2262}
2263
2264static PyObject *_wrap_wxSystemSettings_GetMetric(PyObject *self, PyObject *args, PyObject *kwargs) {
2265 PyObject * _resultobj;
2266 int _result;
2267 wxSystemMetric _arg0;
2268 char *_kwnames[] = { "index", NULL };
2269
2270 self = self;
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_GetMetric",_kwnames,&_arg0))
2272 return NULL;
2273{
2274 PyThreadState* __tstate = wxPyBeginAllowThreads();
2275 _result = (int )wxSystemSettings::GetMetric(_arg0);
2276
2277 wxPyEndAllowThreads(__tstate);
2278 if (PyErr_Occurred()) return NULL;
2279} _resultobj = Py_BuildValue("i",_result);
2280 return _resultobj;
2281}
2282
2283static PyObject *_wrap_wxSystemSettings_HasFeature(PyObject *self, PyObject *args, PyObject *kwargs) {
2284 PyObject * _resultobj;
2285 bool _result;
2286 wxSystemFeature _arg0;
2287 char *_kwnames[] = { "index", NULL };
2288
2289 self = self;
2290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxSystemSettings_HasFeature",_kwnames,&_arg0))
2291 return NULL;
2292{
2293 PyThreadState* __tstate = wxPyBeginAllowThreads();
2294 _result = (bool )wxSystemSettings::HasFeature(_arg0);
2295
2296 wxPyEndAllowThreads(__tstate);
2297 if (PyErr_Occurred()) return NULL;
2298} _resultobj = Py_BuildValue("i",_result);
2299 return _resultobj;
2300}
2301
e6056257
RD
2302static void *SwigwxToolTipTowxObject(void *ptr) {
2303 wxToolTip *src;
2304 wxObject *dest;
2305 src = (wxToolTip *) ptr;
2306 dest = (wxObject *) src;
2307 return (void *) dest;
2308}
2309
2310#define new_wxToolTip(_swigarg0) (new wxToolTip(_swigarg0))
2311static PyObject *_wrap_new_wxToolTip(PyObject *self, PyObject *args, PyObject *kwargs) {
2312 PyObject * _resultobj;
2313 wxToolTip * _result;
2314 wxString * _arg0;
2315 PyObject * _obj0 = 0;
2316 char *_kwnames[] = { "tip", NULL };
2317 char _ptemp[128];
2318
2319 self = self;
2320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxToolTip",_kwnames,&_obj0))
2321 return NULL;
2322{
2323#if PYTHON_API_VERSION >= 1009
2324 char* tmpPtr; int tmpSize;
2325 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2326 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2327 return NULL;
2328 }
2329 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2330 return NULL;
2331 _arg0 = new wxString(tmpPtr, tmpSize);
2332#else
2333 if (!PyString_Check(_obj0)) {
2334 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2335 return NULL;
2336 }
2337 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2338#endif
2339}
2340{
0e2ff151 2341 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2342 _result = (wxToolTip *)new_wxToolTip(*_arg0);
2343
0e2ff151
RD
2344 wxPyEndAllowThreads(__tstate);
2345 if (PyErr_Occurred()) return NULL;
e6056257
RD
2346} if (_result) {
2347 SWIG_MakePtr(_ptemp, (char *) _result,"_wxToolTip_p");
2348 _resultobj = Py_BuildValue("s",_ptemp);
2349 } else {
2350 Py_INCREF(Py_None);
2351 _resultobj = Py_None;
2352 }
2353{
2354 if (_obj0)
2355 delete _arg0;
2356}
2357 return _resultobj;
2358}
2359
2360#define wxToolTip_SetTip(_swigobj,_swigarg0) (_swigobj->SetTip(_swigarg0))
2361static PyObject *_wrap_wxToolTip_SetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
2362 PyObject * _resultobj;
2363 wxToolTip * _arg0;
2364 wxString * _arg1;
2365 PyObject * _argo0 = 0;
2366 PyObject * _obj1 = 0;
2367 char *_kwnames[] = { "self","tip", NULL };
2368
2369 self = self;
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxToolTip_SetTip",_kwnames,&_argo0,&_obj1))
2371 return NULL;
2372 if (_argo0) {
2373 if (_argo0 == Py_None) { _arg0 = NULL; }
2374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) {
2375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_SetTip. Expected _wxToolTip_p.");
2376 return NULL;
2377 }
2378 }
2379{
2380#if PYTHON_API_VERSION >= 1009
2381 char* tmpPtr; int tmpSize;
2382 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2383 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2384 return NULL;
2385 }
2386 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2387 return NULL;
2388 _arg1 = new wxString(tmpPtr, tmpSize);
2389#else
2390 if (!PyString_Check(_obj1)) {
2391 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2392 return NULL;
2393 }
2394 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2395#endif
2396}
2397{
0e2ff151 2398 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2399 wxToolTip_SetTip(_arg0,*_arg1);
2400
0e2ff151
RD
2401 wxPyEndAllowThreads(__tstate);
2402 if (PyErr_Occurred()) return NULL;
e6056257
RD
2403} Py_INCREF(Py_None);
2404 _resultobj = Py_None;
2405{
2406 if (_obj1)
2407 delete _arg1;
2408}
2409 return _resultobj;
2410}
2411
2412#define wxToolTip_GetTip(_swigobj) (_swigobj->GetTip())
2413static PyObject *_wrap_wxToolTip_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
2414 PyObject * _resultobj;
2415 wxString * _result;
2416 wxToolTip * _arg0;
2417 PyObject * _argo0 = 0;
2418 char *_kwnames[] = { "self", NULL };
2419
2420 self = self;
2421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetTip",_kwnames,&_argo0))
2422 return NULL;
2423 if (_argo0) {
2424 if (_argo0 == Py_None) { _arg0 = NULL; }
2425 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) {
2426 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetTip. Expected _wxToolTip_p.");
2427 return NULL;
2428 }
2429 }
2430{
0e2ff151 2431 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2432 _result = new wxString (wxToolTip_GetTip(_arg0));
2433
0e2ff151
RD
2434 wxPyEndAllowThreads(__tstate);
2435 if (PyErr_Occurred()) return NULL;
e6056257
RD
2436}{
2437 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
2438}
2439{
2440 delete _result;
2441}
2442 return _resultobj;
2443}
2444
2445#define wxToolTip_GetWindow(_swigobj) (_swigobj->GetWindow())
2446static PyObject *_wrap_wxToolTip_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2447 PyObject * _resultobj;
2448 wxWindow * _result;
2449 wxToolTip * _arg0;
2450 PyObject * _argo0 = 0;
2451 char *_kwnames[] = { "self", NULL };
2452
2453 self = self;
2454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxToolTip_GetWindow",_kwnames,&_argo0))
2455 return NULL;
2456 if (_argo0) {
2457 if (_argo0 == Py_None) { _arg0 = NULL; }
2458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxToolTip_p")) {
2459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxToolTip_GetWindow. Expected _wxToolTip_p.");
2460 return NULL;
2461 }
2462 }
2463{
0e2ff151 2464 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2465 _result = (wxWindow *)wxToolTip_GetWindow(_arg0);
2466
0e2ff151
RD
2467 wxPyEndAllowThreads(__tstate);
2468 if (PyErr_Occurred()) return NULL;
e6056257
RD
2469}{ _resultobj = wxPyMake_wxObject(_result); }
2470 return _resultobj;
2471}
2472
2473static PyObject *_wrap_wxToolTip_Enable(PyObject *self, PyObject *args, PyObject *kwargs) {
2474 PyObject * _resultobj;
2475 bool _arg0;
2476 int tempbool0;
2477 char *_kwnames[] = { "flag", NULL };
2478
2479 self = self;
2480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxToolTip_Enable",_kwnames,&tempbool0))
2481 return NULL;
2482 _arg0 = (bool ) tempbool0;
2483{
0e2ff151 2484 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2485 wxToolTip::Enable(_arg0);
2486
0e2ff151
RD
2487 wxPyEndAllowThreads(__tstate);
2488 if (PyErr_Occurred()) return NULL;
e6056257
RD
2489} Py_INCREF(Py_None);
2490 _resultobj = Py_None;
2491 return _resultobj;
2492}
2493
2494static PyObject *_wrap_wxToolTip_SetDelay(PyObject *self, PyObject *args, PyObject *kwargs) {
2495 PyObject * _resultobj;
2496 long _arg0;
2497 char *_kwnames[] = { "milliseconds", NULL };
2498
2499 self = self;
2500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"l:wxToolTip_SetDelay",_kwnames,&_arg0))
2501 return NULL;
2502{
0e2ff151 2503 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2504 wxToolTip::SetDelay(_arg0);
2505
0e2ff151
RD
2506 wxPyEndAllowThreads(__tstate);
2507 if (PyErr_Occurred()) return NULL;
e6056257
RD
2508} Py_INCREF(Py_None);
2509 _resultobj = Py_None;
2510 return _resultobj;
2511}
2512
2513#define new_wxCaret(_swigarg0,_swigarg1) (new wxCaret(_swigarg0,_swigarg1))
2514static PyObject *_wrap_new_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
2515 PyObject * _resultobj;
2516 wxCaret * _result;
2517 wxWindow * _arg0;
2518 wxSize * _arg1;
2519 PyObject * _argo0 = 0;
2520 wxSize temp;
2521 PyObject * _obj1 = 0;
2522 char *_kwnames[] = { "window","size", NULL };
2523 char _ptemp[128];
2524
2525 self = self;
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxCaret",_kwnames,&_argo0,&_obj1))
2527 return NULL;
2528 if (_argo0) {
2529 if (_argo0 == Py_None) { _arg0 = NULL; }
2530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
2531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxCaret. Expected _wxWindow_p.");
2532 return NULL;
2533 }
2534 }
2535{
2536 _arg1 = &temp;
2537 if (! wxSize_helper(_obj1, &_arg1))
2538 return NULL;
2539}
2540{
0e2ff151 2541 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2542 _result = (wxCaret *)new_wxCaret(_arg0,*_arg1);
2543
0e2ff151
RD
2544 wxPyEndAllowThreads(__tstate);
2545 if (PyErr_Occurred()) return NULL;
e6056257
RD
2546} if (_result) {
2547 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCaret_p");
2548 _resultobj = Py_BuildValue("s",_ptemp);
2549 } else {
2550 Py_INCREF(Py_None);
2551 _resultobj = Py_None;
2552 }
2553 return _resultobj;
2554}
2555
2556#define delete_wxCaret(_swigobj) (delete _swigobj)
2557static PyObject *_wrap_delete_wxCaret(PyObject *self, PyObject *args, PyObject *kwargs) {
2558 PyObject * _resultobj;
2559 wxCaret * _arg0;
2560 PyObject * _argo0 = 0;
2561 char *_kwnames[] = { "self", NULL };
2562
2563 self = self;
2564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCaret",_kwnames,&_argo0))
2565 return NULL;
2566 if (_argo0) {
2567 if (_argo0 == Py_None) { _arg0 = NULL; }
2568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCaret. Expected _wxCaret_p.");
2570 return NULL;
2571 }
2572 }
2573{
0e2ff151 2574 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2575 delete_wxCaret(_arg0);
2576
0e2ff151
RD
2577 wxPyEndAllowThreads(__tstate);
2578 if (PyErr_Occurred()) return NULL;
e6056257
RD
2579} Py_INCREF(Py_None);
2580 _resultobj = Py_None;
2581 return _resultobj;
2582}
2583
2584#define wxCaret_IsOk(_swigobj) (_swigobj->IsOk())
2585static PyObject *_wrap_wxCaret_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
2586 PyObject * _resultobj;
2587 bool _result;
2588 wxCaret * _arg0;
2589 PyObject * _argo0 = 0;
2590 char *_kwnames[] = { "self", NULL };
2591
2592 self = self;
2593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsOk",_kwnames,&_argo0))
2594 return NULL;
2595 if (_argo0) {
2596 if (_argo0 == Py_None) { _arg0 = NULL; }
2597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsOk. Expected _wxCaret_p.");
2599 return NULL;
2600 }
2601 }
2602{
0e2ff151 2603 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2604 _result = (bool )wxCaret_IsOk(_arg0);
2605
0e2ff151
RD
2606 wxPyEndAllowThreads(__tstate);
2607 if (PyErr_Occurred()) return NULL;
e6056257
RD
2608} _resultobj = Py_BuildValue("i",_result);
2609 return _resultobj;
2610}
2611
2612#define wxCaret_IsVisible(_swigobj) (_swigobj->IsVisible())
2613static PyObject *_wrap_wxCaret_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
2614 PyObject * _resultobj;
2615 bool _result;
2616 wxCaret * _arg0;
2617 PyObject * _argo0 = 0;
2618 char *_kwnames[] = { "self", NULL };
2619
2620 self = self;
2621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_IsVisible",_kwnames,&_argo0))
2622 return NULL;
2623 if (_argo0) {
2624 if (_argo0 == Py_None) { _arg0 = NULL; }
2625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_IsVisible. Expected _wxCaret_p.");
2627 return NULL;
2628 }
2629 }
2630{
0e2ff151 2631 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2632 _result = (bool )wxCaret_IsVisible(_arg0);
2633
0e2ff151
RD
2634 wxPyEndAllowThreads(__tstate);
2635 if (PyErr_Occurred()) return NULL;
e6056257
RD
2636} _resultobj = Py_BuildValue("i",_result);
2637 return _resultobj;
2638}
2639
2640#define wxCaret_GetPositionTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetPosition(_swigarg0,_swigarg1))
2641static PyObject *_wrap_wxCaret_GetPositionTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2642 PyObject * _resultobj;
2643 wxCaret * _arg0;
2644 int * _arg1;
2645 int temp;
2646 int * _arg2;
2647 int temp0;
2648 PyObject * _argo0 = 0;
2649 char *_kwnames[] = { "self", NULL };
2650
2651 self = self;
2652{
2653 _arg1 = &temp;
2654}
2655{
2656 _arg2 = &temp0;
2657}
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPositionTuple",_kwnames,&_argo0))
2659 return NULL;
2660 if (_argo0) {
2661 if (_argo0 == Py_None) { _arg0 = NULL; }
2662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPositionTuple. Expected _wxCaret_p.");
2664 return NULL;
2665 }
2666 }
2667{
0e2ff151 2668 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2669 wxCaret_GetPositionTuple(_arg0,_arg1,_arg2);
2670
0e2ff151
RD
2671 wxPyEndAllowThreads(__tstate);
2672 if (PyErr_Occurred()) return NULL;
e6056257
RD
2673} Py_INCREF(Py_None);
2674 _resultobj = Py_None;
2675{
2676 PyObject *o;
2677 o = PyInt_FromLong((long) (*_arg1));
2678 _resultobj = t_output_helper(_resultobj, o);
2679}
2680{
2681 PyObject *o;
2682 o = PyInt_FromLong((long) (*_arg2));
2683 _resultobj = t_output_helper(_resultobj, o);
2684}
2685 return _resultobj;
2686}
2687
2688#define wxCaret_GetPosition(_swigobj) (_swigobj->GetPosition())
2689static PyObject *_wrap_wxCaret_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
2690 PyObject * _resultobj;
2691 wxPoint * _result;
2692 wxCaret * _arg0;
2693 PyObject * _argo0 = 0;
2694 char *_kwnames[] = { "self", NULL };
2695 char _ptemp[128];
2696
2697 self = self;
2698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetPosition",_kwnames,&_argo0))
2699 return NULL;
2700 if (_argo0) {
2701 if (_argo0 == Py_None) { _arg0 = NULL; }
2702 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2703 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetPosition. Expected _wxCaret_p.");
2704 return NULL;
2705 }
2706 }
2707{
0e2ff151 2708 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2709 _result = new wxPoint (wxCaret_GetPosition(_arg0));
2710
0e2ff151
RD
2711 wxPyEndAllowThreads(__tstate);
2712 if (PyErr_Occurred()) return NULL;
e6056257
RD
2713} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
2714 _resultobj = Py_BuildValue("s",_ptemp);
2715 return _resultobj;
2716}
2717
2718#define wxCaret_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
2719static PyObject *_wrap_wxCaret_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
2720 PyObject * _resultobj;
2721 wxCaret * _arg0;
2722 int * _arg1;
2723 int temp;
2724 int * _arg2;
2725 int temp0;
2726 PyObject * _argo0 = 0;
2727 char *_kwnames[] = { "self", NULL };
2728
2729 self = self;
2730{
2731 _arg1 = &temp;
2732}
2733{
2734 _arg2 = &temp0;
2735}
2736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSizeTuple",_kwnames,&_argo0))
2737 return NULL;
2738 if (_argo0) {
2739 if (_argo0 == Py_None) { _arg0 = NULL; }
2740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSizeTuple. Expected _wxCaret_p.");
2742 return NULL;
2743 }
2744 }
2745{
0e2ff151 2746 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2747 wxCaret_GetSizeTuple(_arg0,_arg1,_arg2);
2748
0e2ff151
RD
2749 wxPyEndAllowThreads(__tstate);
2750 if (PyErr_Occurred()) return NULL;
e6056257
RD
2751} Py_INCREF(Py_None);
2752 _resultobj = Py_None;
2753{
2754 PyObject *o;
2755 o = PyInt_FromLong((long) (*_arg1));
2756 _resultobj = t_output_helper(_resultobj, o);
2757}
2758{
2759 PyObject *o;
2760 o = PyInt_FromLong((long) (*_arg2));
2761 _resultobj = t_output_helper(_resultobj, o);
2762}
2763 return _resultobj;
2764}
2765
2766#define wxCaret_GetSize(_swigobj) (_swigobj->GetSize())
2767static PyObject *_wrap_wxCaret_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2768 PyObject * _resultobj;
2769 wxSize * _result;
2770 wxCaret * _arg0;
2771 PyObject * _argo0 = 0;
2772 char *_kwnames[] = { "self", NULL };
2773 char _ptemp[128];
2774
2775 self = self;
2776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetSize",_kwnames,&_argo0))
2777 return NULL;
2778 if (_argo0) {
2779 if (_argo0 == Py_None) { _arg0 = NULL; }
2780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetSize. Expected _wxCaret_p.");
2782 return NULL;
2783 }
2784 }
2785{
0e2ff151 2786 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2787 _result = new wxSize (wxCaret_GetSize(_arg0));
2788
0e2ff151
RD
2789 wxPyEndAllowThreads(__tstate);
2790 if (PyErr_Occurred()) return NULL;
e6056257
RD
2791} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
2792 _resultobj = Py_BuildValue("s",_ptemp);
2793 return _resultobj;
2794}
2795
2796#define wxCaret_GetWindow(_swigobj) (_swigobj->GetWindow())
2797static PyObject *_wrap_wxCaret_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
2798 PyObject * _resultobj;
2799 wxWindow * _result;
2800 wxCaret * _arg0;
2801 PyObject * _argo0 = 0;
2802 char *_kwnames[] = { "self", NULL };
2803
2804 self = self;
2805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_GetWindow",_kwnames,&_argo0))
2806 return NULL;
2807 if (_argo0) {
2808 if (_argo0 == Py_None) { _arg0 = NULL; }
2809 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2810 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_GetWindow. Expected _wxCaret_p.");
2811 return NULL;
2812 }
2813 }
2814{
0e2ff151 2815 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2816 _result = (wxWindow *)wxCaret_GetWindow(_arg0);
2817
0e2ff151
RD
2818 wxPyEndAllowThreads(__tstate);
2819 if (PyErr_Occurred()) return NULL;
e6056257
RD
2820}{ _resultobj = wxPyMake_wxObject(_result); }
2821 return _resultobj;
2822}
2823
2824#define wxCaret_MoveXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Move(_swigarg0,_swigarg1))
2825static PyObject *_wrap_wxCaret_MoveXY(PyObject *self, PyObject *args, PyObject *kwargs) {
2826 PyObject * _resultobj;
2827 wxCaret * _arg0;
2828 int _arg1;
2829 int _arg2;
2830 PyObject * _argo0 = 0;
2831 char *_kwnames[] = { "self","x","y", NULL };
2832
2833 self = self;
2834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_MoveXY",_kwnames,&_argo0,&_arg1,&_arg2))
2835 return NULL;
2836 if (_argo0) {
2837 if (_argo0 == Py_None) { _arg0 = NULL; }
2838 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2839 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_MoveXY. Expected _wxCaret_p.");
2840 return NULL;
2841 }
2842 }
2843{
0e2ff151 2844 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2845 wxCaret_MoveXY(_arg0,_arg1,_arg2);
2846
0e2ff151
RD
2847 wxPyEndAllowThreads(__tstate);
2848 if (PyErr_Occurred()) return NULL;
e6056257
RD
2849} Py_INCREF(Py_None);
2850 _resultobj = Py_None;
2851 return _resultobj;
2852}
2853
2854#define wxCaret_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
2855static PyObject *_wrap_wxCaret_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
2856 PyObject * _resultobj;
2857 wxCaret * _arg0;
2858 wxPoint * _arg1;
2859 PyObject * _argo0 = 0;
2860 wxPoint temp;
2861 PyObject * _obj1 = 0;
2862 char *_kwnames[] = { "self","pt", NULL };
2863
2864 self = self;
2865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_Move",_kwnames,&_argo0,&_obj1))
2866 return NULL;
2867 if (_argo0) {
2868 if (_argo0 == Py_None) { _arg0 = NULL; }
2869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Move. Expected _wxCaret_p.");
2871 return NULL;
2872 }
2873 }
2874{
2875 _arg1 = &temp;
2876 if (! wxPoint_helper(_obj1, &_arg1))
2877 return NULL;
2878}
2879{
0e2ff151 2880 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2881 wxCaret_Move(_arg0,*_arg1);
2882
0e2ff151
RD
2883 wxPyEndAllowThreads(__tstate);
2884 if (PyErr_Occurred()) return NULL;
e6056257
RD
2885} Py_INCREF(Py_None);
2886 _resultobj = Py_None;
2887 return _resultobj;
2888}
2889
2890#define wxCaret_SetSizeWH(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetSize(_swigarg0,_swigarg1))
2891static PyObject *_wrap_wxCaret_SetSizeWH(PyObject *self, PyObject *args, PyObject *kwargs) {
2892 PyObject * _resultobj;
2893 wxCaret * _arg0;
2894 int _arg1;
2895 int _arg2;
2896 PyObject * _argo0 = 0;
2897 char *_kwnames[] = { "self","width","height", NULL };
2898
2899 self = self;
2900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxCaret_SetSizeWH",_kwnames,&_argo0,&_arg1,&_arg2))
2901 return NULL;
2902 if (_argo0) {
2903 if (_argo0 == Py_None) { _arg0 = NULL; }
2904 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2905 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSizeWH. Expected _wxCaret_p.");
2906 return NULL;
2907 }
2908 }
2909{
0e2ff151 2910 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2911 wxCaret_SetSizeWH(_arg0,_arg1,_arg2);
2912
0e2ff151
RD
2913 wxPyEndAllowThreads(__tstate);
2914 if (PyErr_Occurred()) return NULL;
e6056257
RD
2915} Py_INCREF(Py_None);
2916 _resultobj = Py_None;
2917 return _resultobj;
2918}
2919
2920#define wxCaret_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2921static PyObject *_wrap_wxCaret_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2922 PyObject * _resultobj;
2923 wxCaret * _arg0;
2924 wxSize * _arg1;
2925 PyObject * _argo0 = 0;
2926 wxSize temp;
2927 PyObject * _obj1 = 0;
2928 char *_kwnames[] = { "self","size", NULL };
2929
2930 self = self;
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCaret_SetSize",_kwnames,&_argo0,&_obj1))
2932 return NULL;
2933 if (_argo0) {
2934 if (_argo0 == Py_None) { _arg0 = NULL; }
2935 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2936 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_SetSize. Expected _wxCaret_p.");
2937 return NULL;
2938 }
2939 }
2940{
2941 _arg1 = &temp;
2942 if (! wxSize_helper(_obj1, &_arg1))
2943 return NULL;
2944}
2945{
0e2ff151 2946 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2947 wxCaret_SetSize(_arg0,*_arg1);
2948
0e2ff151
RD
2949 wxPyEndAllowThreads(__tstate);
2950 if (PyErr_Occurred()) return NULL;
e6056257
RD
2951} Py_INCREF(Py_None);
2952 _resultobj = Py_None;
2953 return _resultobj;
2954}
2955
2956#define wxCaret_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
2957static PyObject *_wrap_wxCaret_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
2958 PyObject * _resultobj;
2959 wxCaret * _arg0;
2960 int _arg1 = (int ) TRUE;
2961 PyObject * _argo0 = 0;
2962 char *_kwnames[] = { "self","show", NULL };
2963
2964 self = self;
2965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxCaret_Show",_kwnames,&_argo0,&_arg1))
2966 return NULL;
2967 if (_argo0) {
2968 if (_argo0 == Py_None) { _arg0 = NULL; }
2969 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2970 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Show. Expected _wxCaret_p.");
2971 return NULL;
2972 }
2973 }
2974{
0e2ff151 2975 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
2976 wxCaret_Show(_arg0,_arg1);
2977
0e2ff151
RD
2978 wxPyEndAllowThreads(__tstate);
2979 if (PyErr_Occurred()) return NULL;
e6056257
RD
2980} Py_INCREF(Py_None);
2981 _resultobj = Py_None;
2982 return _resultobj;
2983}
2984
2985#define wxCaret_Hide(_swigobj) (_swigobj->Hide())
2986static PyObject *_wrap_wxCaret_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
2987 PyObject * _resultobj;
2988 wxCaret * _arg0;
2989 PyObject * _argo0 = 0;
2990 char *_kwnames[] = { "self", NULL };
2991
2992 self = self;
2993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCaret_Hide",_kwnames,&_argo0))
2994 return NULL;
2995 if (_argo0) {
2996 if (_argo0 == Py_None) { _arg0 = NULL; }
2997 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCaret_p")) {
2998 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCaret_Hide. Expected _wxCaret_p.");
2999 return NULL;
3000 }
3001 }
3002{
0e2ff151 3003 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3004 wxCaret_Hide(_arg0);
3005
0e2ff151
RD
3006 wxPyEndAllowThreads(__tstate);
3007 if (PyErr_Occurred()) return NULL;
e6056257
RD
3008} Py_INCREF(Py_None);
3009 _resultobj = Py_None;
3010 return _resultobj;
3011}
3012
3013#define new_wxFontEnumerator() (new wxPyFontEnumerator())
3014static PyObject *_wrap_new_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
3015 PyObject * _resultobj;
3016 wxPyFontEnumerator * _result;
3017 char *_kwnames[] = { NULL };
3018 char _ptemp[128];
3019
3020 self = self;
3021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontEnumerator",_kwnames))
3022 return NULL;
3023{
0e2ff151 3024 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3025 _result = (wxPyFontEnumerator *)new_wxFontEnumerator();
3026
0e2ff151
RD
3027 wxPyEndAllowThreads(__tstate);
3028 if (PyErr_Occurred()) return NULL;
e6056257
RD
3029} if (_result) {
3030 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyFontEnumerator_p");
3031 _resultobj = Py_BuildValue("s",_ptemp);
3032 } else {
3033 Py_INCREF(Py_None);
3034 _resultobj = Py_None;
3035 }
3036 return _resultobj;
3037}
3038
3039#define delete_wxPyFontEnumerator(_swigobj) (delete _swigobj)
3040static PyObject *_wrap_delete_wxFontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
3041 PyObject * _resultobj;
3042 wxPyFontEnumerator * _arg0;
3043 PyObject * _argo0 = 0;
3044 char *_kwnames[] = { "self", NULL };
3045
3046 self = self;
3047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontEnumerator",_kwnames,&_argo0))
3048 return NULL;
3049 if (_argo0) {
3050 if (_argo0 == Py_None) { _arg0 = NULL; }
3051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontEnumerator. Expected _wxPyFontEnumerator_p.");
3053 return NULL;
3054 }
3055 }
3056{
0e2ff151 3057 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3058 delete_wxPyFontEnumerator(_arg0);
3059
0e2ff151
RD
3060 wxPyEndAllowThreads(__tstate);
3061 if (PyErr_Occurred()) return NULL;
e6056257
RD
3062} Py_INCREF(Py_None);
3063 _resultobj = Py_None;
3064 return _resultobj;
3065}
3066
ab51f6db 3067#define wxFontEnumerator__setCallbackInfo(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1,_swigarg2))
e6056257
RD
3068static PyObject *_wrap_wxFontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3069 PyObject * _resultobj;
3070 wxPyFontEnumerator * _arg0;
3071 PyObject * _arg1;
3072 PyObject * _arg2;
ab51f6db 3073 bool _arg3;
e6056257
RD
3074 PyObject * _argo0 = 0;
3075 PyObject * _obj1 = 0;
3076 PyObject * _obj2 = 0;
ab51f6db
RD
3077 int tempbool3;
3078 char *_kwnames[] = { "self","self","_class","incref", NULL };
e6056257
RD
3079
3080 self = self;
ab51f6db 3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOi:wxFontEnumerator__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3))
e6056257
RD
3082 return NULL;
3083 if (_argo0) {
3084 if (_argo0 == Py_None) { _arg0 = NULL; }
3085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator__setCallbackInfo. Expected _wxPyFontEnumerator_p.");
3087 return NULL;
3088 }
3089 }
3090{
3091 _arg1 = _obj1;
3092}
3093{
3094 _arg2 = _obj2;
3095}
ab51f6db 3096 _arg3 = (bool ) tempbool3;
e6056257 3097{
0e2ff151 3098 PyThreadState* __tstate = wxPyBeginAllowThreads();
ab51f6db 3099 wxFontEnumerator__setCallbackInfo(_arg0,_arg1,_arg2,_arg3);
e6056257 3100
0e2ff151
RD
3101 wxPyEndAllowThreads(__tstate);
3102 if (PyErr_Occurred()) return NULL;
e6056257
RD
3103} Py_INCREF(Py_None);
3104 _resultobj = Py_None;
3105 return _resultobj;
3106}
3107
3108#define wxFontEnumerator_EnumerateFacenames(_swigobj,_swigarg0,_swigarg1) (_swigobj->EnumerateFacenames(_swigarg0,_swigarg1))
3109static PyObject *_wrap_wxFontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
3110 PyObject * _resultobj;
3111 bool _result;
3112 wxPyFontEnumerator * _arg0;
3113 wxFontEncoding _arg1 = (wxFontEncoding ) wxFONTENCODING_SYSTEM;
3114 bool _arg2 = (bool ) FALSE;
3115 PyObject * _argo0 = 0;
3116 int tempbool2 = (int) FALSE;
3117 char *_kwnames[] = { "self","encoding","fixedWidthOnly", NULL };
3118
3119 self = self;
3120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxFontEnumerator_EnumerateFacenames",_kwnames,&_argo0,&_arg1,&tempbool2))
3121 return NULL;
3122 if (_argo0) {
3123 if (_argo0 == Py_None) { _arg0 = NULL; }
3124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateFacenames. Expected _wxPyFontEnumerator_p.");
3126 return NULL;
3127 }
3128 }
3129 _arg2 = (bool ) tempbool2;
3130{
0e2ff151 3131 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3132 _result = (bool )wxFontEnumerator_EnumerateFacenames(_arg0,_arg1,_arg2);
3133
0e2ff151
RD
3134 wxPyEndAllowThreads(__tstate);
3135 if (PyErr_Occurred()) return NULL;
e6056257
RD
3136} _resultobj = Py_BuildValue("i",_result);
3137 return _resultobj;
3138}
3139
3140#define wxFontEnumerator_EnumerateEncodings(_swigobj,_swigarg0) (_swigobj->EnumerateEncodings(_swigarg0))
3141static PyObject *_wrap_wxFontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
3142 PyObject * _resultobj;
3143 bool _result;
3144 wxPyFontEnumerator * _arg0;
3145 char * _arg1 = (char *) "";
3146 PyObject * _argo0 = 0;
3147 char *_kwnames[] = { "self","facename", NULL };
3148
3149 self = self;
3150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|s:wxFontEnumerator_EnumerateEncodings",_kwnames,&_argo0,&_arg1))
3151 return NULL;
3152 if (_argo0) {
3153 if (_argo0 == Py_None) { _arg0 = NULL; }
3154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_EnumerateEncodings. Expected _wxPyFontEnumerator_p.");
3156 return NULL;
3157 }
3158 }
3159{
0e2ff151 3160 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3161 _result = (bool )wxFontEnumerator_EnumerateEncodings(_arg0,_arg1);
3162
0e2ff151
RD
3163 wxPyEndAllowThreads(__tstate);
3164 if (PyErr_Occurred()) return NULL;
e6056257
RD
3165} _resultobj = Py_BuildValue("i",_result);
3166 return _resultobj;
3167}
3168
3169static PyObject * wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self) {
3170 wxArrayString* arr = self->GetEncodings();
ab51f6db 3171 return wxArrayString2PyList_helper(*arr);
e6056257
RD
3172 }
3173static PyObject *_wrap_wxFontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
3174 PyObject * _resultobj;
3175 PyObject * _result;
3176 wxPyFontEnumerator * _arg0;
3177 PyObject * _argo0 = 0;
3178 char *_kwnames[] = { "self", NULL };
3179
3180 self = self;
3181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetEncodings",_kwnames,&_argo0))
3182 return NULL;
3183 if (_argo0) {
3184 if (_argo0 == Py_None) { _arg0 = NULL; }
3185 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3186 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetEncodings. Expected _wxPyFontEnumerator_p.");
3187 return NULL;
3188 }
3189 }
3190{
0e2ff151 3191 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3192 _result = (PyObject *)wxPyFontEnumerator_GetEncodings(_arg0);
3193
0e2ff151
RD
3194 wxPyEndAllowThreads(__tstate);
3195 if (PyErr_Occurred()) return NULL;
e6056257
RD
3196}{
3197 _resultobj = _result;
3198}
3199 return _resultobj;
3200}
3201
3202static PyObject * wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self) {
3203 wxArrayString* arr = self->GetFacenames();
ab51f6db 3204 return wxArrayString2PyList_helper(*arr);
e6056257
RD
3205 }
3206static PyObject *_wrap_wxFontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
3207 PyObject * _resultobj;
3208 PyObject * _result;
3209 wxPyFontEnumerator * _arg0;
3210 PyObject * _argo0 = 0;
3211 char *_kwnames[] = { "self", NULL };
3212
3213 self = self;
3214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontEnumerator_GetFacenames",_kwnames,&_argo0))
3215 return NULL;
3216 if (_argo0) {
3217 if (_argo0 == Py_None) { _arg0 = NULL; }
3218 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyFontEnumerator_p")) {
3219 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontEnumerator_GetFacenames. Expected _wxPyFontEnumerator_p.");
3220 return NULL;
3221 }
3222 }
3223{
0e2ff151 3224 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3225 _result = (PyObject *)wxPyFontEnumerator_GetFacenames(_arg0);
3226
0e2ff151
RD
3227 wxPyEndAllowThreads(__tstate);
3228 if (PyErr_Occurred()) return NULL;
e6056257
RD
3229}{
3230 _resultobj = _result;
3231}
3232 return _resultobj;
3233}
3234
3235#define new_wxBusyCursor(_swigarg0) (new wxBusyCursor(_swigarg0))
3236static PyObject *_wrap_new_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3237 PyObject * _resultobj;
3238 wxBusyCursor * _result;
3239 wxCursor * _arg0 = (wxCursor *) wxHOURGLASS_CURSOR;
3240 PyObject * _argo0 = 0;
3241 char *_kwnames[] = { "cursor", NULL };
3242 char _ptemp[128];
3243
3244 self = self;
3245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxBusyCursor",_kwnames,&_argo0))
3246 return NULL;
3247 if (_argo0) {
3248 if (_argo0 == Py_None) { _arg0 = NULL; }
3249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxBusyCursor. Expected _wxCursor_p.");
3251 return NULL;
3252 }
3253 }
3254{
0e2ff151 3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3256 _result = (wxBusyCursor *)new_wxBusyCursor(_arg0);
3257
0e2ff151
RD
3258 wxPyEndAllowThreads(__tstate);
3259 if (PyErr_Occurred()) return NULL;
e6056257
RD
3260} if (_result) {
3261 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBusyCursor_p");
3262 _resultobj = Py_BuildValue("s",_ptemp);
3263 } else {
3264 Py_INCREF(Py_None);
3265 _resultobj = Py_None;
3266 }
3267 return _resultobj;
3268}
3269
3270#define delete_wxBusyCursor(_swigobj) (delete _swigobj)
3271static PyObject *_wrap_delete_wxBusyCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject * _resultobj;
3273 wxBusyCursor * _arg0;
3274 PyObject * _argo0 = 0;
3275 char *_kwnames[] = { "self", NULL };
3276
3277 self = self;
3278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBusyCursor",_kwnames,&_argo0))
3279 return NULL;
3280 if (_argo0) {
3281 if (_argo0 == Py_None) { _arg0 = NULL; }
3282 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBusyCursor_p")) {
3283 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBusyCursor. Expected _wxBusyCursor_p.");
3284 return NULL;
3285 }
3286 }
3287{
0e2ff151 3288 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3289 delete_wxBusyCursor(_arg0);
3290
0e2ff151
RD
3291 wxPyEndAllowThreads(__tstate);
3292 if (PyErr_Occurred()) return NULL;
e6056257
RD
3293} Py_INCREF(Py_None);
3294 _resultobj = Py_None;
3295 return _resultobj;
3296}
3297
3298#define new_wxWindowDisabler(_swigarg0) (new wxWindowDisabler(_swigarg0))
3299static PyObject *_wrap_new_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
3300 PyObject * _resultobj;
3301 wxWindowDisabler * _result;
3302 wxWindow * _arg0 = (wxWindow *) NULL;
3303 PyObject * _argo0 = 0;
3304 char *_kwnames[] = { "winToSkip", NULL };
3305 char _ptemp[128];
3306
3307 self = self;
3308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxWindowDisabler",_kwnames,&_argo0))
3309 return NULL;
3310 if (_argo0) {
3311 if (_argo0 == Py_None) { _arg0 = NULL; }
3312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
3313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDisabler. Expected _wxWindow_p.");
3314 return NULL;
3315 }
3316 }
3317{
0e2ff151 3318 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3319 _result = (wxWindowDisabler *)new_wxWindowDisabler(_arg0);
3320
0e2ff151
RD
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) return NULL;
e6056257
RD
3323} if (_result) {
3324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDisabler_p");
3325 _resultobj = Py_BuildValue("s",_ptemp);
3326 } else {
3327 Py_INCREF(Py_None);
3328 _resultobj = Py_None;
3329 }
3330 return _resultobj;
3331}
3332
3333#define delete_wxWindowDisabler(_swigobj) (delete _swigobj)
3334static PyObject *_wrap_delete_wxWindowDisabler(PyObject *self, PyObject *args, PyObject *kwargs) {
3335 PyObject * _resultobj;
3336 wxWindowDisabler * _arg0;
3337 PyObject * _argo0 = 0;
3338 char *_kwnames[] = { "self", NULL };
3339
3340 self = self;
3341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWindowDisabler",_kwnames,&_argo0))
3342 return NULL;
3343 if (_argo0) {
3344 if (_argo0 == Py_None) { _arg0 = NULL; }
3345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindowDisabler_p")) {
3346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWindowDisabler. Expected _wxWindowDisabler_p.");
3347 return NULL;
3348 }
3349 }
3350{
0e2ff151 3351 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3352 delete_wxWindowDisabler(_arg0);
3353
0e2ff151
RD
3354 wxPyEndAllowThreads(__tstate);
3355 if (PyErr_Occurred()) return NULL;
e6056257
RD
3356} Py_INCREF(Py_None);
3357 _resultobj = Py_None;
3358 return _resultobj;
3359}
3360
3361#define new_wxMutexGuiLocker() (new wxMutexGuiLocker())
3362static PyObject *_wrap_new_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3363 PyObject * _resultobj;
3364 wxMutexGuiLocker * _result;
3365 char *_kwnames[] = { NULL };
3366 char _ptemp[128];
3367
3368 self = self;
3369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMutexGuiLocker",_kwnames))
3370 return NULL;
3371{
0e2ff151 3372 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3373 _result = (wxMutexGuiLocker *)new_wxMutexGuiLocker();
3374
0e2ff151
RD
3375 wxPyEndAllowThreads(__tstate);
3376 if (PyErr_Occurred()) return NULL;
e6056257
RD
3377} if (_result) {
3378 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMutexGuiLocker_p");
3379 _resultobj = Py_BuildValue("s",_ptemp);
3380 } else {
3381 Py_INCREF(Py_None);
3382 _resultobj = Py_None;
3383 }
3384 return _resultobj;
3385}
3386
3387#define delete_wxMutexGuiLocker(_swigobj) (delete _swigobj)
3388static PyObject *_wrap_delete_wxMutexGuiLocker(PyObject *self, PyObject *args, PyObject *kwargs) {
3389 PyObject * _resultobj;
3390 wxMutexGuiLocker * _arg0;
3391 PyObject * _argo0 = 0;
3392 char *_kwnames[] = { "self", NULL };
3393
3394 self = self;
3395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMutexGuiLocker",_kwnames,&_argo0))
3396 return NULL;
3397 if (_argo0) {
3398 if (_argo0 == Py_None) { _arg0 = NULL; }
3399 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMutexGuiLocker_p")) {
3400 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMutexGuiLocker. Expected _wxMutexGuiLocker_p.");
3401 return NULL;
3402 }
3403 }
3404{
0e2ff151 3405 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3406 delete_wxMutexGuiLocker(_arg0);
3407
0e2ff151
RD
3408 wxPyEndAllowThreads(__tstate);
3409 if (PyErr_Occurred()) return NULL;
e6056257
RD
3410} Py_INCREF(Py_None);
3411 _resultobj = Py_None;
3412 return _resultobj;
3413}
3414
3415#define delete_wxTipProvider(_swigobj) (delete _swigobj)
3416static PyObject *_wrap_delete_wxTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
3417 PyObject * _resultobj;
3418 wxTipProvider * _arg0;
3419 PyObject * _argo0 = 0;
3420 char *_kwnames[] = { "self", NULL };
3421
3422 self = self;
3423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxTipProvider",_kwnames,&_argo0))
3424 return NULL;
3425 if (_argo0) {
3426 if (_argo0 == Py_None) { _arg0 = NULL; }
3427 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) {
3428 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxTipProvider. Expected _wxTipProvider_p.");
3429 return NULL;
3430 }
3431 }
3432{
0e2ff151 3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3434 delete_wxTipProvider(_arg0);
3435
0e2ff151
RD
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) return NULL;
e6056257
RD
3438} Py_INCREF(Py_None);
3439 _resultobj = Py_None;
3440 return _resultobj;
3441}
3442
3443#define wxTipProvider_GetTip(_swigobj) (_swigobj->GetTip())
3444static PyObject *_wrap_wxTipProvider_GetTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3445 PyObject * _resultobj;
3446 wxString * _result;
3447 wxTipProvider * _arg0;
3448 PyObject * _argo0 = 0;
3449 char *_kwnames[] = { "self", NULL };
3450
3451 self = self;
3452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetTip",_kwnames,&_argo0))
3453 return NULL;
3454 if (_argo0) {
3455 if (_argo0 == Py_None) { _arg0 = NULL; }
3456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) {
3457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetTip. Expected _wxTipProvider_p.");
3458 return NULL;
3459 }
3460 }
3461{
0e2ff151 3462 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3463 _result = new wxString (wxTipProvider_GetTip(_arg0));
3464
0e2ff151
RD
3465 wxPyEndAllowThreads(__tstate);
3466 if (PyErr_Occurred()) return NULL;
e6056257
RD
3467}{
3468 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3469}
3470{
3471 delete _result;
3472}
3473 return _resultobj;
3474}
3475
3476#define wxTipProvider_GetCurrentTip(_swigobj) (_swigobj->GetCurrentTip())
3477static PyObject *_wrap_wxTipProvider_GetCurrentTip(PyObject *self, PyObject *args, PyObject *kwargs) {
3478 PyObject * _resultobj;
3479 size_t _result;
3480 wxTipProvider * _arg0;
3481 PyObject * _argo0 = 0;
3482 char *_kwnames[] = { "self", NULL };
3483
3484 self = self;
3485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxTipProvider_GetCurrentTip",_kwnames,&_argo0))
3486 return NULL;
3487 if (_argo0) {
3488 if (_argo0 == Py_None) { _arg0 = NULL; }
3489 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTipProvider_p")) {
3490 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxTipProvider_GetCurrentTip. Expected _wxTipProvider_p.");
3491 return NULL;
3492 }
3493 }
3494{
0e2ff151 3495 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3496 _result = (size_t )wxTipProvider_GetCurrentTip(_arg0);
3497
0e2ff151
RD
3498 wxPyEndAllowThreads(__tstate);
3499 if (PyErr_Occurred()) return NULL;
e6056257
RD
3500} _resultobj = Py_BuildValue("i",_result);
3501 return _resultobj;
3502}
3503
3504static void *SwigwxPyTipProviderTowxTipProvider(void *ptr) {
3505 wxPyTipProvider *src;
3506 wxTipProvider *dest;
3507 src = (wxPyTipProvider *) ptr;
3508 dest = (wxTipProvider *) src;
3509 return (void *) dest;
3510}
3511
3512#define new_wxPyTipProvider(_swigarg0) (new wxPyTipProvider(_swigarg0))
3513static PyObject *_wrap_new_wxPyTipProvider(PyObject *self, PyObject *args, PyObject *kwargs) {
3514 PyObject * _resultobj;
3515 wxPyTipProvider * _result;
3516 size_t _arg0;
3517 char *_kwnames[] = { "currentTip", NULL };
3518 char _ptemp[128];
3519
3520 self = self;
3521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:new_wxPyTipProvider",_kwnames,&_arg0))
3522 return NULL;
3523{
0e2ff151 3524 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3525 _result = (wxPyTipProvider *)new_wxPyTipProvider(_arg0);
3526
0e2ff151
RD
3527 wxPyEndAllowThreads(__tstate);
3528 if (PyErr_Occurred()) return NULL;
e6056257
RD
3529} if (_result) {
3530 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTipProvider_p");
3531 _resultobj = Py_BuildValue("s",_ptemp);
3532 } else {
3533 Py_INCREF(Py_None);
3534 _resultobj = Py_None;
3535 }
3536 return _resultobj;
3537}
3538
3539static void *SwigwxGenericDragImageTowxObject(void *ptr) {
3540 wxGenericDragImage *src;
3541 wxObject *dest;
3542 src = (wxGenericDragImage *) ptr;
3543 dest = (wxObject *) src;
3544 return (void *) dest;
3545}
3546
3547#define new_wxDragImage(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3548static PyObject *_wrap_new_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3549 PyObject * _resultobj;
3550 wxGenericDragImage * _result;
3551 wxBitmap * _arg0;
3552 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
3553 PyObject * _argo0 = 0;
3554 PyObject * _argo1 = 0;
3555 char *_kwnames[] = { "image","cursor", NULL };
3556 char _ptemp[128];
3557
3558 self = self;
3559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragImage",_kwnames,&_argo0,&_argo1))
3560 return NULL;
3561 if (_argo0) {
3562 if (_argo0 == Py_None) { _arg0 = NULL; }
3563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
3564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragImage. Expected _wxBitmap_p.");
3565 return NULL;
3566 }
3567 }
3568 if (_argo1) {
3569 if (_argo1 == Py_None) { _arg1 = NULL; }
3570 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3571 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragImage. Expected _wxCursor_p.");
3572 return NULL;
3573 }
3574 }
3575{
0e2ff151 3576 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3577 _result = (wxGenericDragImage *)new_wxDragImage(*_arg0,*_arg1);
3578
0e2ff151
RD
3579 wxPyEndAllowThreads(__tstate);
3580 if (PyErr_Occurred()) return NULL;
e6056257
RD
3581} if (_result) {
3582 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3583 _resultobj = Py_BuildValue("s",_ptemp);
3584 } else {
3585 Py_INCREF(Py_None);
3586 _resultobj = Py_None;
3587 }
3588 return _resultobj;
3589}
3590
3591#define new_wxDragIcon(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3592static PyObject *_wrap_new_wxDragIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3593 PyObject * _resultobj;
3594 wxGenericDragImage * _result;
3595 wxIcon * _arg0;
3596 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
3597 PyObject * _argo0 = 0;
3598 PyObject * _argo1 = 0;
3599 char *_kwnames[] = { "image","cursor", NULL };
3600 char _ptemp[128];
3601
3602 self = self;
3603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragIcon",_kwnames,&_argo0,&_argo1))
3604 return NULL;
3605 if (_argo0) {
3606 if (_argo0 == Py_None) { _arg0 = NULL; }
3607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
3608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragIcon. Expected _wxIcon_p.");
3609 return NULL;
3610 }
3611 }
3612 if (_argo1) {
3613 if (_argo1 == Py_None) { _arg1 = NULL; }
3614 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3615 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragIcon. Expected _wxCursor_p.");
3616 return NULL;
3617 }
3618 }
3619{
0e2ff151 3620 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3621 _result = (wxGenericDragImage *)new_wxDragIcon(*_arg0,*_arg1);
3622
0e2ff151
RD
3623 wxPyEndAllowThreads(__tstate);
3624 if (PyErr_Occurred()) return NULL;
e6056257
RD
3625} if (_result) {
3626 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3627 _resultobj = Py_BuildValue("s",_ptemp);
3628 } else {
3629 Py_INCREF(Py_None);
3630 _resultobj = Py_None;
3631 }
3632 return _resultobj;
3633}
3634
3635#define new_wxDragString(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3636static PyObject *_wrap_new_wxDragString(PyObject *self, PyObject *args, PyObject *kwargs) {
3637 PyObject * _resultobj;
3638 wxGenericDragImage * _result;
3639 wxString * _arg0;
3640 wxCursor * _arg1 = (wxCursor *) &wxNullCursor;
3641 PyObject * _obj0 = 0;
3642 PyObject * _argo1 = 0;
3643 char *_kwnames[] = { "str","cursor", NULL };
3644 char _ptemp[128];
3645
3646 self = self;
3647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:new_wxDragString",_kwnames,&_obj0,&_argo1))
3648 return NULL;
3649{
3650#if PYTHON_API_VERSION >= 1009
3651 char* tmpPtr; int tmpSize;
3652 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
3653 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3654 return NULL;
3655 }
3656 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
3657 return NULL;
3658 _arg0 = new wxString(tmpPtr, tmpSize);
3659#else
3660 if (!PyString_Check(_obj0)) {
3661 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3662 return NULL;
3663 }
3664 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
3665#endif
3666}
3667 if (_argo1) {
3668 if (_argo1 == Py_None) { _arg1 = NULL; }
3669 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
3670 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragString. Expected _wxCursor_p.");
3671 return NULL;
3672 }
3673 }
3674{
0e2ff151 3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3676 _result = (wxGenericDragImage *)new_wxDragString(*_arg0,*_arg1);
3677
0e2ff151
RD
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) return NULL;
e6056257
RD
3680} if (_result) {
3681 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3682 _resultobj = Py_BuildValue("s",_ptemp);
3683 } else {
3684 Py_INCREF(Py_None);
3685 _resultobj = Py_None;
3686 }
3687{
3688 if (_obj0)
3689 delete _arg0;
3690}
3691 return _resultobj;
3692}
3693
3694#define new_wxDragTreeItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3695static PyObject *_wrap_new_wxDragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3696 PyObject * _resultobj;
3697 wxGenericDragImage * _result;
3698 wxTreeCtrl * _arg0;
3699 wxTreeItemId * _arg1;
3700 PyObject * _argo0 = 0;
3701 PyObject * _argo1 = 0;
3702 char *_kwnames[] = { "treeCtrl","id", NULL };
3703 char _ptemp[128];
3704
3705 self = self;
3706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:new_wxDragTreeItem",_kwnames,&_argo0,&_argo1))
3707 return NULL;
3708 if (_argo0) {
3709 if (_argo0 == Py_None) { _arg0 = NULL; }
3710 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTreeCtrl_p")) {
3711 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragTreeItem. Expected _wxTreeCtrl_p.");
3712 return NULL;
3713 }
3714 }
3715 if (_argo1) {
3716 if (_argo1 == Py_None) { _arg1 = NULL; }
3717 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxTreeItemId_p")) {
3718 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of new_wxDragTreeItem. Expected _wxTreeItemId_p.");
3719 return NULL;
3720 }
3721 }
3722{
0e2ff151 3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3724 _result = (wxGenericDragImage *)new_wxDragTreeItem(*_arg0,*_arg1);
3725
0e2ff151
RD
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) return NULL;
e6056257
RD
3728} if (_result) {
3729 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3730 _resultobj = Py_BuildValue("s",_ptemp);
3731 } else {
3732 Py_INCREF(Py_None);
3733 _resultobj = Py_None;
3734 }
3735 return _resultobj;
3736}
3737
3738#define new_wxDragListItem(_swigarg0,_swigarg1) (new wxGenericDragImage(_swigarg0,_swigarg1))
3739static PyObject *_wrap_new_wxDragListItem(PyObject *self, PyObject *args, PyObject *kwargs) {
3740 PyObject * _resultobj;
3741 wxGenericDragImage * _result;
3742 wxListCtrl * _arg0;
3743 long _arg1;
3744 PyObject * _argo0 = 0;
3745 char *_kwnames[] = { "listCtrl","id", NULL };
3746 char _ptemp[128];
3747
3748 self = self;
3749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:new_wxDragListItem",_kwnames,&_argo0,&_arg1))
3750 return NULL;
3751 if (_argo0) {
3752 if (_argo0 == Py_None) { _arg0 = NULL; }
3753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxListCtrl_p")) {
3754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxDragListItem. Expected _wxListCtrl_p.");
3755 return NULL;
3756 }
3757 }
3758{
0e2ff151 3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3760 _result = (wxGenericDragImage *)new_wxDragListItem(*_arg0,_arg1);
3761
0e2ff151
RD
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) return NULL;
e6056257
RD
3764} if (_result) {
3765 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGenericDragImage_p");
3766 _resultobj = Py_BuildValue("s",_ptemp);
3767 } else {
3768 Py_INCREF(Py_None);
3769 _resultobj = Py_None;
3770 }
3771 return _resultobj;
3772}
3773
3774#define delete_wxGenericDragImage(_swigobj) (delete _swigobj)
3775static PyObject *_wrap_delete_wxDragImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3776 PyObject * _resultobj;
3777 wxGenericDragImage * _arg0;
3778 PyObject * _argo0 = 0;
3779 char *_kwnames[] = { "self", NULL };
3780
3781 self = self;
3782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDragImage",_kwnames,&_argo0))
3783 return NULL;
3784 if (_argo0) {
3785 if (_argo0 == Py_None) { _arg0 = NULL; }
3786 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3787 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDragImage. Expected _wxGenericDragImage_p.");
3788 return NULL;
3789 }
3790 }
3791{
0e2ff151 3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3793 delete_wxGenericDragImage(_arg0);
3794
0e2ff151
RD
3795 wxPyEndAllowThreads(__tstate);
3796 if (PyErr_Occurred()) return NULL;
e6056257
RD
3797} Py_INCREF(Py_None);
3798 _resultobj = Py_None;
3799 return _resultobj;
3800}
3801
3802#define wxDragImage_SetBackingBitmap(_swigobj,_swigarg0) (_swigobj->SetBackingBitmap(_swigarg0))
3803static PyObject *_wrap_wxDragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3804 PyObject * _resultobj;
3805 wxGenericDragImage * _arg0;
3806 wxBitmap * _arg1;
3807 PyObject * _argo0 = 0;
3808 PyObject * _argo1 = 0;
3809 char *_kwnames[] = { "self","bitmap", NULL };
3810
3811 self = self;
3812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_SetBackingBitmap",_kwnames,&_argo0,&_argo1))
3813 return NULL;
3814 if (_argo0) {
3815 if (_argo0 == Py_None) { _arg0 = NULL; }
3816 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3817 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_SetBackingBitmap. Expected _wxGenericDragImage_p.");
3818 return NULL;
3819 }
3820 }
3821 if (_argo1) {
3822 if (_argo1 == Py_None) { _arg1 = NULL; }
3823 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
3824 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDragImage_SetBackingBitmap. Expected _wxBitmap_p.");
3825 return NULL;
3826 }
3827 }
3828{
0e2ff151 3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3830 wxDragImage_SetBackingBitmap(_arg0,_arg1);
3831
0e2ff151
RD
3832 wxPyEndAllowThreads(__tstate);
3833 if (PyErr_Occurred()) return NULL;
e6056257
RD
3834} Py_INCREF(Py_None);
3835 _resultobj = Py_None;
3836 return _resultobj;
3837}
3838
3839#define wxDragImage_BeginDrag(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
3840static PyObject *_wrap_wxDragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
3841 PyObject * _resultobj;
3842 bool _result;
3843 wxGenericDragImage * _arg0;
3844 wxPoint * _arg1;
3845 wxWindow * _arg2;
3846 bool _arg3 = (bool ) FALSE;
3847 wxRect * _arg4 = (wxRect *) NULL;
3848 PyObject * _argo0 = 0;
3849 wxPoint temp;
3850 PyObject * _obj1 = 0;
3851 PyObject * _argo2 = 0;
3852 int tempbool3 = (int) FALSE;
3853 wxRect temp0;
3854 PyObject * _obj4 = 0;
3855 char *_kwnames[] = { "self","hotspot","window","fullScreen","rect", NULL };
3856
3857 self = self;
3858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|iO:wxDragImage_BeginDrag",_kwnames,&_argo0,&_obj1,&_argo2,&tempbool3,&_obj4))
3859 return NULL;
3860 if (_argo0) {
3861 if (_argo0 == Py_None) { _arg0 = NULL; }
3862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag. Expected _wxGenericDragImage_p.");
3864 return NULL;
3865 }
3866 }
3867{
3868 _arg1 = &temp;
3869 if (! wxPoint_helper(_obj1, &_arg1))
3870 return NULL;
3871}
3872 if (_argo2) {
3873 if (_argo2 == Py_None) { _arg2 = NULL; }
3874 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
3875 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag. Expected _wxWindow_p.");
3876 return NULL;
3877 }
3878 }
3879 _arg3 = (bool ) tempbool3;
3880 if (_obj4)
3881{
3882 _arg4 = &temp0;
3883 if (! wxRect_helper(_obj4, &_arg4))
3884 return NULL;
3885}
3886{
0e2ff151 3887 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3888 _result = (bool )wxDragImage_BeginDrag(_arg0,*_arg1,_arg2,_arg3,_arg4);
3889
0e2ff151
RD
3890 wxPyEndAllowThreads(__tstate);
3891 if (PyErr_Occurred()) return NULL;
e6056257
RD
3892} _resultobj = Py_BuildValue("i",_result);
3893 return _resultobj;
3894}
3895
3896#define wxDragImage_BeginDrag2(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->BeginDrag(_swigarg0,_swigarg1,_swigarg2))
3897static PyObject *_wrap_wxDragImage_BeginDrag2(PyObject *self, PyObject *args, PyObject *kwargs) {
3898 PyObject * _resultobj;
3899 bool _result;
3900 wxGenericDragImage * _arg0;
3901 wxPoint * _arg1;
3902 wxWindow * _arg2;
3903 wxWindow * _arg3;
3904 PyObject * _argo0 = 0;
3905 wxPoint temp;
3906 PyObject * _obj1 = 0;
3907 PyObject * _argo2 = 0;
3908 PyObject * _argo3 = 0;
3909 char *_kwnames[] = { "self","hotspot","window","fullScreenRect", NULL };
3910
3911 self = self;
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOO:wxDragImage_BeginDrag2",_kwnames,&_argo0,&_obj1,&_argo2,&_argo3))
3913 return NULL;
3914 if (_argo0) {
3915 if (_argo0 == Py_None) { _arg0 = NULL; }
3916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_BeginDrag2. Expected _wxGenericDragImage_p.");
3918 return NULL;
3919 }
3920 }
3921{
3922 _arg1 = &temp;
3923 if (! wxPoint_helper(_obj1, &_arg1))
3924 return NULL;
3925}
3926 if (_argo2) {
3927 if (_argo2 == Py_None) { _arg2 = NULL; }
3928 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
3929 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxDragImage_BeginDrag2. Expected _wxWindow_p.");
3930 return NULL;
3931 }
3932 }
3933 if (_argo3) {
3934 if (_argo3 == Py_None) { _arg3 = NULL; }
3935 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxWindow_p")) {
3936 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxDragImage_BeginDrag2. Expected _wxWindow_p.");
3937 return NULL;
3938 }
3939 }
3940{
0e2ff151 3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3942 _result = (bool )wxDragImage_BeginDrag2(_arg0,*_arg1,_arg2,_arg3);
3943
0e2ff151
RD
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) return NULL;
e6056257
RD
3946} _resultobj = Py_BuildValue("i",_result);
3947 return _resultobj;
3948}
3949
3950#define wxDragImage_EndDrag(_swigobj) (_swigobj->EndDrag())
3951static PyObject *_wrap_wxDragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) {
3952 PyObject * _resultobj;
3953 bool _result;
3954 wxGenericDragImage * _arg0;
3955 PyObject * _argo0 = 0;
3956 char *_kwnames[] = { "self", NULL };
3957
3958 self = self;
3959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_EndDrag",_kwnames,&_argo0))
3960 return NULL;
3961 if (_argo0) {
3962 if (_argo0 == Py_None) { _arg0 = NULL; }
3963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_EndDrag. Expected _wxGenericDragImage_p.");
3965 return NULL;
3966 }
3967 }
3968{
0e2ff151 3969 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
3970 _result = (bool )wxDragImage_EndDrag(_arg0);
3971
0e2ff151
RD
3972 wxPyEndAllowThreads(__tstate);
3973 if (PyErr_Occurred()) return NULL;
e6056257
RD
3974} _resultobj = Py_BuildValue("i",_result);
3975 return _resultobj;
3976}
3977
3978#define wxDragImage_Move(_swigobj,_swigarg0) (_swigobj->Move(_swigarg0))
3979static PyObject *_wrap_wxDragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) {
3980 PyObject * _resultobj;
3981 bool _result;
3982 wxGenericDragImage * _arg0;
3983 wxPoint * _arg1;
3984 PyObject * _argo0 = 0;
3985 wxPoint temp;
3986 PyObject * _obj1 = 0;
3987 char *_kwnames[] = { "self","pt", NULL };
3988
3989 self = self;
3990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_Move",_kwnames,&_argo0,&_obj1))
3991 return NULL;
3992 if (_argo0) {
3993 if (_argo0 == Py_None) { _arg0 = NULL; }
3994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
3995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Move. Expected _wxGenericDragImage_p.");
3996 return NULL;
3997 }
3998 }
3999{
4000 _arg1 = &temp;
4001 if (! wxPoint_helper(_obj1, &_arg1))
4002 return NULL;
4003}
4004{
0e2ff151 4005 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4006 _result = (bool )wxDragImage_Move(_arg0,*_arg1);
4007
0e2ff151
RD
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) return NULL;
e6056257
RD
4010} _resultobj = Py_BuildValue("i",_result);
4011 return _resultobj;
4012}
4013
4014#define wxDragImage_Show(_swigobj) (_swigobj->Show())
4015static PyObject *_wrap_wxDragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
4016 PyObject * _resultobj;
4017 bool _result;
4018 wxGenericDragImage * _arg0;
4019 PyObject * _argo0 = 0;
4020 char *_kwnames[] = { "self", NULL };
4021
4022 self = self;
4023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Show",_kwnames,&_argo0))
4024 return NULL;
4025 if (_argo0) {
4026 if (_argo0 == Py_None) { _arg0 = NULL; }
4027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
4028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Show. Expected _wxGenericDragImage_p.");
4029 return NULL;
4030 }
4031 }
4032{
0e2ff151 4033 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4034 _result = (bool )wxDragImage_Show(_arg0);
4035
0e2ff151
RD
4036 wxPyEndAllowThreads(__tstate);
4037 if (PyErr_Occurred()) return NULL;
e6056257
RD
4038} _resultobj = Py_BuildValue("i",_result);
4039 return _resultobj;
4040}
4041
4042#define wxDragImage_Hide(_swigobj) (_swigobj->Hide())
4043static PyObject *_wrap_wxDragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) {
4044 PyObject * _resultobj;
4045 bool _result;
4046 wxGenericDragImage * _arg0;
4047 PyObject * _argo0 = 0;
4048 char *_kwnames[] = { "self", NULL };
4049
4050 self = self;
4051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDragImage_Hide",_kwnames,&_argo0))
4052 return NULL;
4053 if (_argo0) {
4054 if (_argo0 == Py_None) { _arg0 = NULL; }
4055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
4056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_Hide. Expected _wxGenericDragImage_p.");
4057 return NULL;
4058 }
4059 }
4060{
0e2ff151 4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4062 _result = (bool )wxDragImage_Hide(_arg0);
4063
0e2ff151
RD
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) return NULL;
e6056257
RD
4066} _resultobj = Py_BuildValue("i",_result);
4067 return _resultobj;
4068}
4069
4070#define wxDragImage_GetImageRect(_swigobj,_swigarg0) (_swigobj->GetImageRect(_swigarg0))
4071static PyObject *_wrap_wxDragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4072 PyObject * _resultobj;
4073 wxRect * _result;
4074 wxGenericDragImage * _arg0;
4075 wxPoint * _arg1;
4076 PyObject * _argo0 = 0;
4077 wxPoint temp;
4078 PyObject * _obj1 = 0;
4079 char *_kwnames[] = { "self","pos", NULL };
4080 char _ptemp[128];
4081
4082 self = self;
4083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDragImage_GetImageRect",_kwnames,&_argo0,&_obj1))
4084 return NULL;
4085 if (_argo0) {
4086 if (_argo0 == Py_None) { _arg0 = NULL; }
4087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
4088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_GetImageRect. Expected _wxGenericDragImage_p.");
4089 return NULL;
4090 }
4091 }
4092{
4093 _arg1 = &temp;
4094 if (! wxPoint_helper(_obj1, &_arg1))
4095 return NULL;
4096}
4097{
0e2ff151 4098 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4099 _result = new wxRect (wxDragImage_GetImageRect(_arg0,*_arg1));
4100
0e2ff151
RD
4101 wxPyEndAllowThreads(__tstate);
4102 if (PyErr_Occurred()) return NULL;
e6056257
RD
4103} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
4104 _resultobj = Py_BuildValue("s",_ptemp);
4105 return _resultobj;
4106}
4107
4108#define wxDragImage_RedrawImage(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->RedrawImage(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
4109static PyObject *_wrap_wxDragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4110 PyObject * _resultobj;
4111 bool _result;
4112 wxGenericDragImage * _arg0;
4113 wxPoint * _arg1;
4114 wxPoint * _arg2;
4115 bool _arg3;
4116 bool _arg4;
4117 PyObject * _argo0 = 0;
4118 wxPoint temp;
4119 PyObject * _obj1 = 0;
4120 wxPoint temp0;
4121 PyObject * _obj2 = 0;
4122 int tempbool3;
4123 int tempbool4;
4124 char *_kwnames[] = { "self","oldPos","newPos","eraseOld","drawNew", NULL };
4125
4126 self = self;
4127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOOii:wxDragImage_RedrawImage",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3,&tempbool4))
4128 return NULL;
4129 if (_argo0) {
4130 if (_argo0 == Py_None) { _arg0 = NULL; }
4131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGenericDragImage_p")) {
4132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDragImage_RedrawImage. Expected _wxGenericDragImage_p.");
4133 return NULL;
4134 }
4135 }
4136{
4137 _arg1 = &temp;
4138 if (! wxPoint_helper(_obj1, &_arg1))
4139 return NULL;
4140}
4141{
4142 _arg2 = &temp0;
4143 if (! wxPoint_helper(_obj2, &_arg2))
4144 return NULL;
4145}
4146 _arg3 = (bool ) tempbool3;
4147 _arg4 = (bool ) tempbool4;
4148{
0e2ff151 4149 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4150 _result = (bool )wxDragImage_RedrawImage(_arg0,*_arg1,*_arg2,_arg3,_arg4);
4151
0e2ff151
RD
4152 wxPyEndAllowThreads(__tstate);
4153 if (PyErr_Occurred()) return NULL;
e6056257
RD
4154} _resultobj = Py_BuildValue("i",_result);
4155 return _resultobj;
4156}
4157
4158static void *SwigwxPyTimerTowxObject(void *ptr) {
4159 wxPyTimer *src;
4160 wxObject *dest;
4161 src = (wxPyTimer *) ptr;
4162 dest = (wxObject *) src;
4163 return (void *) dest;
4164}
4165
4166#define new_wxPyTimer(_swigarg0) (new wxPyTimer(_swigarg0))
4167static PyObject *_wrap_new_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
4168 PyObject * _resultobj;
4169 wxPyTimer * _result;
4170 PyObject * _arg0;
4171 PyObject * _obj0 = 0;
4172 char *_kwnames[] = { "notify", NULL };
4173 char _ptemp[128];
4174
4175 self = self;
4176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPyTimer",_kwnames,&_obj0))
4177 return NULL;
4178{
4179 _arg0 = _obj0;
4180}
4181{
0e2ff151 4182 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4183 _result = (wxPyTimer *)new_wxPyTimer(_arg0);
4184
0e2ff151
RD
4185 wxPyEndAllowThreads(__tstate);
4186 if (PyErr_Occurred()) return NULL;
e6056257
RD
4187} if (_result) {
4188 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyTimer_p");
4189 _resultobj = Py_BuildValue("s",_ptemp);
4190 } else {
4191 Py_INCREF(Py_None);
4192 _resultobj = Py_None;
4193 }
4194 return _resultobj;
4195}
4196
4197#define delete_wxPyTimer(_swigobj) (delete _swigobj)
4198static PyObject *_wrap_delete_wxPyTimer(PyObject *self, PyObject *args, PyObject *kwargs) {
4199 PyObject * _resultobj;
4200 wxPyTimer * _arg0;
4201 PyObject * _argo0 = 0;
4202 char *_kwnames[] = { "self", NULL };
4203
4204 self = self;
4205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyTimer",_kwnames,&_argo0))
4206 return NULL;
4207 if (_argo0) {
4208 if (_argo0 == Py_None) { _arg0 = NULL; }
4209 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4210 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyTimer. Expected _wxPyTimer_p.");
4211 return NULL;
4212 }
4213 }
4214{
0e2ff151 4215 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4216 delete_wxPyTimer(_arg0);
4217
0e2ff151
RD
4218 wxPyEndAllowThreads(__tstate);
4219 if (PyErr_Occurred()) return NULL;
e6056257
RD
4220} Py_INCREF(Py_None);
4221 _resultobj = Py_None;
4222 return _resultobj;
4223}
4224
4225#define wxPyTimer_GetInterval(_swigobj) (_swigobj->GetInterval())
4226static PyObject *_wrap_wxPyTimer_GetInterval(PyObject *self, PyObject *args, PyObject *kwargs) {
4227 PyObject * _resultobj;
4228 int _result;
4229 wxPyTimer * _arg0;
4230 PyObject * _argo0 = 0;
4231 char *_kwnames[] = { "self", NULL };
4232
4233 self = self;
4234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_GetInterval",_kwnames,&_argo0))
4235 return NULL;
4236 if (_argo0) {
4237 if (_argo0 == Py_None) { _arg0 = NULL; }
4238 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4239 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_GetInterval. Expected _wxPyTimer_p.");
4240 return NULL;
4241 }
4242 }
4243{
0e2ff151 4244 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4245 _result = (int )wxPyTimer_GetInterval(_arg0);
4246
0e2ff151
RD
4247 wxPyEndAllowThreads(__tstate);
4248 if (PyErr_Occurred()) return NULL;
e6056257
RD
4249} _resultobj = Py_BuildValue("i",_result);
4250 return _resultobj;
4251}
4252
4253#define wxPyTimer_IsOneShot(_swigobj) (_swigobj->IsOneShot())
4254static PyObject *_wrap_wxPyTimer_IsOneShot(PyObject *self, PyObject *args, PyObject *kwargs) {
4255 PyObject * _resultobj;
4256 bool _result;
4257 wxPyTimer * _arg0;
4258 PyObject * _argo0 = 0;
4259 char *_kwnames[] = { "self", NULL };
4260
4261 self = self;
4262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsOneShot",_kwnames,&_argo0))
4263 return NULL;
4264 if (_argo0) {
4265 if (_argo0 == Py_None) { _arg0 = NULL; }
4266 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4267 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsOneShot. Expected _wxPyTimer_p.");
4268 return NULL;
4269 }
4270 }
4271{
0e2ff151 4272 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4273 _result = (bool )wxPyTimer_IsOneShot(_arg0);
4274
0e2ff151
RD
4275 wxPyEndAllowThreads(__tstate);
4276 if (PyErr_Occurred()) return NULL;
e6056257
RD
4277} _resultobj = Py_BuildValue("i",_result);
4278 return _resultobj;
4279}
4280
4281#define wxPyTimer_IsRunning(_swigobj) (_swigobj->IsRunning())
4282static PyObject *_wrap_wxPyTimer_IsRunning(PyObject *self, PyObject *args, PyObject *kwargs) {
4283 PyObject * _resultobj;
4284 bool _result;
4285 wxPyTimer * _arg0;
4286 PyObject * _argo0 = 0;
4287 char *_kwnames[] = { "self", NULL };
4288
4289 self = self;
4290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_IsRunning",_kwnames,&_argo0))
4291 return NULL;
4292 if (_argo0) {
4293 if (_argo0 == Py_None) { _arg0 = NULL; }
4294 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4295 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_IsRunning. Expected _wxPyTimer_p.");
4296 return NULL;
4297 }
4298 }
4299{
0e2ff151 4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4301 _result = (bool )wxPyTimer_IsRunning(_arg0);
4302
0e2ff151
RD
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) return NULL;
e6056257
RD
4305} _resultobj = Py_BuildValue("i",_result);
4306 return _resultobj;
4307}
4308
4309#define wxPyTimer_SetOwner(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetOwner(_swigarg0,_swigarg1))
4310static PyObject *_wrap_wxPyTimer_SetOwner(PyObject *self, PyObject *args, PyObject *kwargs) {
4311 PyObject * _resultobj;
4312 wxPyTimer * _arg0;
4313 wxEvtHandler * _arg1;
4314 int _arg2 = (int ) -1;
4315 PyObject * _argo0 = 0;
4316 PyObject * _argo1 = 0;
4317 char *_kwnames[] = { "self","owner","id", NULL };
4318
4319 self = self;
4320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxPyTimer_SetOwner",_kwnames,&_argo0,&_argo1,&_arg2))
4321 return NULL;
4322 if (_argo0) {
4323 if (_argo0 == Py_None) { _arg0 = NULL; }
4324 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4325 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_SetOwner. Expected _wxPyTimer_p.");
4326 return NULL;
4327 }
4328 }
4329 if (_argo1) {
4330 if (_argo1 == Py_None) { _arg1 = NULL; }
4331 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxEvtHandler_p")) {
4332 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPyTimer_SetOwner. Expected _wxEvtHandler_p.");
4333 return NULL;
4334 }
4335 }
4336{
0e2ff151 4337 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4338 wxPyTimer_SetOwner(_arg0,_arg1,_arg2);
4339
0e2ff151
RD
4340 wxPyEndAllowThreads(__tstate);
4341 if (PyErr_Occurred()) return NULL;
e6056257
RD
4342} Py_INCREF(Py_None);
4343 _resultobj = Py_None;
4344 return _resultobj;
4345}
4346
4347#define wxPyTimer_Start(_swigobj,_swigarg0,_swigarg1) (_swigobj->Start(_swigarg0,_swigarg1))
4348static PyObject *_wrap_wxPyTimer_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
4349 PyObject * _resultobj;
4350 wxPyTimer * _arg0;
4351 int _arg1 = (int ) -1;
4352 int _arg2 = (int ) FALSE;
4353 PyObject * _argo0 = 0;
4354 char *_kwnames[] = { "self","milliseconds","oneShot", NULL };
4355
4356 self = self;
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxPyTimer_Start",_kwnames,&_argo0,&_arg1,&_arg2))
4358 return NULL;
4359 if (_argo0) {
4360 if (_argo0 == Py_None) { _arg0 = NULL; }
4361 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4362 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Start. Expected _wxPyTimer_p.");
4363 return NULL;
4364 }
4365 }
4366{
0e2ff151 4367 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4368 wxPyTimer_Start(_arg0,_arg1,_arg2);
4369
0e2ff151
RD
4370 wxPyEndAllowThreads(__tstate);
4371 if (PyErr_Occurred()) return NULL;
e6056257
RD
4372} Py_INCREF(Py_None);
4373 _resultobj = Py_None;
4374 return _resultobj;
4375}
4376
4377#define wxPyTimer_Stop(_swigobj) (_swigobj->Stop())
4378static PyObject *_wrap_wxPyTimer_Stop(PyObject *self, PyObject *args, PyObject *kwargs) {
4379 PyObject * _resultobj;
4380 wxPyTimer * _arg0;
4381 PyObject * _argo0 = 0;
4382 char *_kwnames[] = { "self", NULL };
4383
4384 self = self;
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyTimer_Stop",_kwnames,&_argo0))
4386 return NULL;
4387 if (_argo0) {
4388 if (_argo0 == Py_None) { _arg0 = NULL; }
4389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyTimer_p")) {
4390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyTimer_Stop. Expected _wxPyTimer_p.");
4391 return NULL;
4392 }
4393 }
4394{
0e2ff151 4395 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4396 wxPyTimer_Stop(_arg0);
4397
0e2ff151
RD
4398 wxPyEndAllowThreads(__tstate);
4399 if (PyErr_Occurred()) return NULL;
e6056257
RD
4400} Py_INCREF(Py_None);
4401 _resultobj = Py_None;
4402 return _resultobj;
4403}
4404
b6e5c445
RD
4405#define new_wxStopWatch() (new wxStopWatch())
4406static PyObject *_wrap_new_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
4407 PyObject * _resultobj;
4408 wxStopWatch * _result;
4409 char *_kwnames[] = { NULL };
4410 char _ptemp[128];
4411
4412 self = self;
4413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxStopWatch",_kwnames))
4414 return NULL;
4415{
0e2ff151 4416 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
4417 _result = (wxStopWatch *)new_wxStopWatch();
4418
0e2ff151
RD
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
4421} if (_result) {
4422 SWIG_MakePtr(_ptemp, (char *) _result,"_wxStopWatch_p");
4423 _resultobj = Py_BuildValue("s",_ptemp);
4424 } else {
4425 Py_INCREF(Py_None);
4426 _resultobj = Py_None;
4427 }
4428 return _resultobj;
4429}
4430
d1e76a37
RD
4431#define delete_wxStopWatch(_swigobj) (delete _swigobj)
4432static PyObject *_wrap_delete_wxStopWatch(PyObject *self, PyObject *args, PyObject *kwargs) {
4433 PyObject * _resultobj;
4434 wxStopWatch * _arg0;
4435 PyObject * _argo0 = 0;
4436 char *_kwnames[] = { "self", NULL };
4437
4438 self = self;
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxStopWatch",_kwnames,&_argo0))
4440 return NULL;
4441 if (_argo0) {
4442 if (_argo0 == Py_None) { _arg0 = NULL; }
4443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxStopWatch. Expected _wxStopWatch_p.");
4445 return NULL;
4446 }
4447 }
4448{
4449 PyThreadState* __tstate = wxPyBeginAllowThreads();
4450 delete_wxStopWatch(_arg0);
4451
4452 wxPyEndAllowThreads(__tstate);
4453 if (PyErr_Occurred()) return NULL;
4454} Py_INCREF(Py_None);
4455 _resultobj = Py_None;
4456 return _resultobj;
4457}
4458
b6e5c445
RD
4459#define wxStopWatch_Start(_swigobj,_swigarg0) (_swigobj->Start(_swigarg0))
4460static PyObject *_wrap_wxStopWatch_Start(PyObject *self, PyObject *args, PyObject *kwargs) {
4461 PyObject * _resultobj;
4462 wxStopWatch * _arg0;
4463 long _arg1 = (long ) 0;
4464 PyObject * _argo0 = 0;
4465 char *_kwnames[] = { "self","t", NULL };
4466
4467 self = self;
4468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|l:wxStopWatch_Start",_kwnames,&_argo0,&_arg1))
4469 return NULL;
4470 if (_argo0) {
4471 if (_argo0 == Py_None) { _arg0 = NULL; }
4472 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4473 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Start. Expected _wxStopWatch_p.");
4474 return NULL;
4475 }
4476 }
4477{
0e2ff151 4478 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
4479 wxStopWatch_Start(_arg0,_arg1);
4480
0e2ff151
RD
4481 wxPyEndAllowThreads(__tstate);
4482 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
4483} Py_INCREF(Py_None);
4484 _resultobj = Py_None;
4485 return _resultobj;
4486}
4487
4488#define wxStopWatch_Pause(_swigobj) (_swigobj->Pause())
4489static PyObject *_wrap_wxStopWatch_Pause(PyObject *self, PyObject *args, PyObject *kwargs) {
4490 PyObject * _resultobj;
4491 wxStopWatch * _arg0;
4492 PyObject * _argo0 = 0;
4493 char *_kwnames[] = { "self", NULL };
4494
4495 self = self;
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Pause",_kwnames,&_argo0))
4497 return NULL;
4498 if (_argo0) {
4499 if (_argo0 == Py_None) { _arg0 = NULL; }
4500 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4501 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Pause. Expected _wxStopWatch_p.");
4502 return NULL;
4503 }
4504 }
4505{
0e2ff151 4506 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
4507 wxStopWatch_Pause(_arg0);
4508
0e2ff151
RD
4509 wxPyEndAllowThreads(__tstate);
4510 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
4511} Py_INCREF(Py_None);
4512 _resultobj = Py_None;
4513 return _resultobj;
4514}
4515
4516#define wxStopWatch_Resume(_swigobj) (_swigobj->Resume())
4517static PyObject *_wrap_wxStopWatch_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
4518 PyObject * _resultobj;
4519 wxStopWatch * _arg0;
4520 PyObject * _argo0 = 0;
4521 char *_kwnames[] = { "self", NULL };
4522
4523 self = self;
4524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Resume",_kwnames,&_argo0))
4525 return NULL;
4526 if (_argo0) {
4527 if (_argo0 == Py_None) { _arg0 = NULL; }
4528 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4529 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Resume. Expected _wxStopWatch_p.");
4530 return NULL;
4531 }
4532 }
4533{
0e2ff151 4534 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
4535 wxStopWatch_Resume(_arg0);
4536
0e2ff151
RD
4537 wxPyEndAllowThreads(__tstate);
4538 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
4539} Py_INCREF(Py_None);
4540 _resultobj = Py_None;
4541 return _resultobj;
4542}
4543
4544#define wxStopWatch_Time(_swigobj) (_swigobj->Time())
4545static PyObject *_wrap_wxStopWatch_Time(PyObject *self, PyObject *args, PyObject *kwargs) {
4546 PyObject * _resultobj;
4547 long _result;
4548 wxStopWatch * _arg0;
4549 PyObject * _argo0 = 0;
4550 char *_kwnames[] = { "self", NULL };
4551
4552 self = self;
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxStopWatch_Time",_kwnames,&_argo0))
4554 return NULL;
4555 if (_argo0) {
4556 if (_argo0 == Py_None) { _arg0 = NULL; }
4557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxStopWatch_p")) {
4558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxStopWatch_Time. Expected _wxStopWatch_p.");
4559 return NULL;
4560 }
4561 }
4562{
0e2ff151 4563 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
4564 _result = (long )wxStopWatch_Time(_arg0);
4565
0e2ff151
RD
4566 wxPyEndAllowThreads(__tstate);
4567 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
4568} _resultobj = Py_BuildValue("l",_result);
4569 return _resultobj;
4570}
4571
e6056257
RD
4572#define new_wxLog() (new wxLog())
4573static PyObject *_wrap_new_wxLog(PyObject *self, PyObject *args, PyObject *kwargs) {
4574 PyObject * _resultobj;
4575 wxLog * _result;
4576 char *_kwnames[] = { NULL };
4577 char _ptemp[128];
4578
4579 self = self;
4580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLog",_kwnames))
4581 return NULL;
4582{
0e2ff151 4583 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4584 _result = (wxLog *)new_wxLog();
4585
0e2ff151
RD
4586 wxPyEndAllowThreads(__tstate);
4587 if (PyErr_Occurred()) return NULL;
e6056257
RD
4588} if (_result) {
4589 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4590 _resultobj = Py_BuildValue("s",_ptemp);
4591 } else {
4592 Py_INCREF(Py_None);
4593 _resultobj = Py_None;
4594 }
4595 return _resultobj;
4596}
4597
4598static PyObject *_wrap_wxLog_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) {
4599 PyObject * _resultobj;
4600 bool _result;
4601 char *_kwnames[] = { NULL };
4602
4603 self = self;
4604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_IsEnabled",_kwnames))
4605 return NULL;
4606{
0e2ff151 4607 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4608 _result = (bool )wxLog::IsEnabled();
4609
0e2ff151
RD
4610 wxPyEndAllowThreads(__tstate);
4611 if (PyErr_Occurred()) return NULL;
e6056257
RD
4612} _resultobj = Py_BuildValue("i",_result);
4613 return _resultobj;
4614}
4615
4616static PyObject *_wrap_wxLog_EnableLogging(PyObject *self, PyObject *args, PyObject *kwargs) {
4617 PyObject * _resultobj;
4618 bool _result;
4619 bool _arg0 = (bool ) TRUE;
4620 int tempbool0 = (int) TRUE;
4621 char *_kwnames[] = { "doIt", NULL };
4622
4623 self = self;
4624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:wxLog_EnableLogging",_kwnames,&tempbool0))
4625 return NULL;
4626 _arg0 = (bool ) tempbool0;
4627{
0e2ff151 4628 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4629 _result = (bool )wxLog::EnableLogging(_arg0);
4630
0e2ff151
RD
4631 wxPyEndAllowThreads(__tstate);
4632 if (PyErr_Occurred()) return NULL;
e6056257
RD
4633} _resultobj = Py_BuildValue("i",_result);
4634 return _resultobj;
4635}
4636
4637static PyObject *_wrap_wxLog_OnLog(PyObject *self, PyObject *args, PyObject *kwargs) {
4638 PyObject * _resultobj;
4639 wxLogLevel * _arg0;
4640 char * _arg1;
4641 int _arg2 = (int ) 0;
4642 PyObject * _argo0 = 0;
4643 char *_kwnames[] = { "level","szString","t", NULL };
4644
4645 self = self;
4646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|i:wxLog_OnLog",_kwnames,&_argo0,&_arg1,&_arg2))
4647 return NULL;
4648 if (_argo0) {
4649 if (_argo0 == Py_None) { _arg0 = NULL; }
4650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogLevel_p")) {
4651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_OnLog. Expected _wxLogLevel_p.");
4652 return NULL;
4653 }
4654 }
4655{
0e2ff151 4656 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4657 wxLog::OnLog(*_arg0,_arg1,_arg2);
4658
0e2ff151
RD
4659 wxPyEndAllowThreads(__tstate);
4660 if (PyErr_Occurred()) return NULL;
e6056257
RD
4661} Py_INCREF(Py_None);
4662 _resultobj = Py_None;
4663 return _resultobj;
4664}
4665
4666#define wxLog_Flush(_swigobj) (_swigobj->Flush())
4667static PyObject *_wrap_wxLog_Flush(PyObject *self, PyObject *args, PyObject *kwargs) {
4668 PyObject * _resultobj;
4669 wxLog * _arg0;
4670 PyObject * _argo0 = 0;
4671 char *_kwnames[] = { "self", NULL };
4672
4673 self = self;
4674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_Flush",_kwnames,&_argo0))
4675 return NULL;
4676 if (_argo0) {
4677 if (_argo0 == Py_None) { _arg0 = NULL; }
4678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_Flush. Expected _wxLog_p.");
4680 return NULL;
4681 }
4682 }
4683{
0e2ff151 4684 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4685 wxLog_Flush(_arg0);
4686
0e2ff151
RD
4687 wxPyEndAllowThreads(__tstate);
4688 if (PyErr_Occurred()) return NULL;
e6056257
RD
4689} Py_INCREF(Py_None);
4690 _resultobj = Py_None;
4691 return _resultobj;
4692}
4693
4694#define wxLog_HasPendingMessages(_swigobj) (_swigobj->HasPendingMessages())
4695static PyObject *_wrap_wxLog_HasPendingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
4696 PyObject * _resultobj;
4697 bool _result;
4698 wxLog * _arg0;
4699 PyObject * _argo0 = 0;
4700 char *_kwnames[] = { "self", NULL };
4701
4702 self = self;
4703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_HasPendingMessages",_kwnames,&_argo0))
4704 return NULL;
4705 if (_argo0) {
4706 if (_argo0 == Py_None) { _arg0 = NULL; }
4707 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4708 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_HasPendingMessages. Expected _wxLog_p.");
4709 return NULL;
4710 }
4711 }
4712{
0e2ff151 4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4714 _result = (bool )wxLog_HasPendingMessages(_arg0);
4715
0e2ff151
RD
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) return NULL;
e6056257
RD
4718} _resultobj = Py_BuildValue("i",_result);
4719 return _resultobj;
4720}
4721
4722static PyObject *_wrap_wxLog_FlushActive(PyObject *self, PyObject *args, PyObject *kwargs) {
4723 PyObject * _resultobj;
4724 char *_kwnames[] = { NULL };
4725
4726 self = self;
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_FlushActive",_kwnames))
4728 return NULL;
4729{
0e2ff151 4730 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4731 wxLog::FlushActive();
4732
0e2ff151
RD
4733 wxPyEndAllowThreads(__tstate);
4734 if (PyErr_Occurred()) return NULL;
e6056257
RD
4735} Py_INCREF(Py_None);
4736 _resultobj = Py_None;
4737 return _resultobj;
4738}
4739
4740static PyObject *_wrap_wxLog_GetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4741 PyObject * _resultobj;
4742 wxLog * _result;
4743 char *_kwnames[] = { NULL };
4744 char _ptemp[128];
4745
4746 self = self;
4747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetActiveTarget",_kwnames))
4748 return NULL;
4749{
0e2ff151 4750 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4751 _result = (wxLog *)wxLog::GetActiveTarget();
4752
0e2ff151
RD
4753 wxPyEndAllowThreads(__tstate);
4754 if (PyErr_Occurred()) return NULL;
e6056257
RD
4755} if (_result) {
4756 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4757 _resultobj = Py_BuildValue("s",_ptemp);
4758 } else {
4759 Py_INCREF(Py_None);
4760 _resultobj = Py_None;
4761 }
4762 return _resultobj;
4763}
4764
4765static PyObject *_wrap_wxLog_SetActiveTarget(PyObject *self, PyObject *args, PyObject *kwargs) {
4766 PyObject * _resultobj;
4767 wxLog * _result;
4768 wxLog * _arg0;
4769 PyObject * _argo0 = 0;
4770 char *_kwnames[] = { "pLogger", NULL };
4771 char _ptemp[128];
4772
4773 self = self;
4774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetActiveTarget",_kwnames,&_argo0))
4775 return NULL;
4776 if (_argo0) {
4777 if (_argo0 == Py_None) { _arg0 = NULL; }
4778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetActiveTarget. Expected _wxLog_p.");
4780 return NULL;
4781 }
4782 }
4783{
0e2ff151 4784 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4785 _result = (wxLog *)wxLog::SetActiveTarget(_arg0);
4786
0e2ff151
RD
4787 wxPyEndAllowThreads(__tstate);
4788 if (PyErr_Occurred()) return NULL;
e6056257
RD
4789} if (_result) {
4790 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
4791 _resultobj = Py_BuildValue("s",_ptemp);
4792 } else {
4793 Py_INCREF(Py_None);
4794 _resultobj = Py_None;
4795 }
4796 return _resultobj;
4797}
4798
4799static PyObject *_wrap_wxLog_Suspend(PyObject *self, PyObject *args, PyObject *kwargs) {
4800 PyObject * _resultobj;
4801 char *_kwnames[] = { NULL };
4802
4803 self = self;
4804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Suspend",_kwnames))
4805 return NULL;
4806{
0e2ff151 4807 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4808 wxLog::Suspend();
4809
0e2ff151
RD
4810 wxPyEndAllowThreads(__tstate);
4811 if (PyErr_Occurred()) return NULL;
e6056257
RD
4812} Py_INCREF(Py_None);
4813 _resultobj = Py_None;
4814 return _resultobj;
4815}
4816
4817static PyObject *_wrap_wxLog_Resume(PyObject *self, PyObject *args, PyObject *kwargs) {
4818 PyObject * _resultobj;
4819 char *_kwnames[] = { NULL };
4820
4821 self = self;
4822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_Resume",_kwnames))
4823 return NULL;
4824{
0e2ff151 4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4826 wxLog::Resume();
4827
0e2ff151
RD
4828 wxPyEndAllowThreads(__tstate);
4829 if (PyErr_Occurred()) return NULL;
e6056257
RD
4830} Py_INCREF(Py_None);
4831 _resultobj = Py_None;
4832 return _resultobj;
4833}
4834
4835#define wxLog_SetVerbose(_swigobj,_swigarg0) (_swigobj->SetVerbose(_swigarg0))
4836static PyObject *_wrap_wxLog_SetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
4837 PyObject * _resultobj;
4838 wxLog * _arg0;
4839 bool _arg1 = (bool ) TRUE;
4840 PyObject * _argo0 = 0;
4841 int tempbool1 = (int) TRUE;
4842 char *_kwnames[] = { "self","bVerbose", NULL };
4843
4844 self = self;
4845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLog_SetVerbose",_kwnames,&_argo0,&tempbool1))
4846 return NULL;
4847 if (_argo0) {
4848 if (_argo0 == Py_None) { _arg0 = NULL; }
4849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
4850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetVerbose. Expected _wxLog_p.");
4851 return NULL;
4852 }
4853 }
4854 _arg1 = (bool ) tempbool1;
4855{
0e2ff151 4856 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4857 wxLog_SetVerbose(_arg0,_arg1);
4858
0e2ff151
RD
4859 wxPyEndAllowThreads(__tstate);
4860 if (PyErr_Occurred()) return NULL;
e6056257
RD
4861} Py_INCREF(Py_None);
4862 _resultobj = Py_None;
4863 return _resultobj;
4864}
4865
4866static PyObject *_wrap_wxLog_DontCreateOnDemand(PyObject *self, PyObject *args, PyObject *kwargs) {
4867 PyObject * _resultobj;
4868 char *_kwnames[] = { NULL };
4869
4870 self = self;
4871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_DontCreateOnDemand",_kwnames))
4872 return NULL;
4873{
0e2ff151 4874 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4875 wxLog::DontCreateOnDemand();
4876
0e2ff151
RD
4877 wxPyEndAllowThreads(__tstate);
4878 if (PyErr_Occurred()) return NULL;
e6056257
RD
4879} Py_INCREF(Py_None);
4880 _resultobj = Py_None;
4881 return _resultobj;
4882}
4883
4884static PyObject *_wrap_wxLog_SetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4885 PyObject * _resultobj;
4886 wxTraceMask * _arg0;
4887 PyObject * _argo0 = 0;
4888 char *_kwnames[] = { "ulMask", NULL };
4889
4890 self = self;
4891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_SetTraceMask",_kwnames,&_argo0))
4892 return NULL;
4893 if (_argo0) {
4894 if (_argo0 == Py_None) { _arg0 = NULL; }
4895 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTraceMask_p")) {
4896 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_SetTraceMask. Expected _wxTraceMask_p.");
4897 return NULL;
4898 }
4899 }
4900{
0e2ff151 4901 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4902 wxLog::SetTraceMask(*_arg0);
4903
0e2ff151
RD
4904 wxPyEndAllowThreads(__tstate);
4905 if (PyErr_Occurred()) return NULL;
e6056257
RD
4906} Py_INCREF(Py_None);
4907 _resultobj = Py_None;
4908 return _resultobj;
4909}
4910
4911static PyObject *_wrap_wxLog_AddTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4912 PyObject * _resultobj;
4913 wxString * _arg0;
4914 PyObject * _obj0 = 0;
4915 char *_kwnames[] = { "str", NULL };
4916
4917 self = self;
4918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_AddTraceMask",_kwnames,&_obj0))
4919 return NULL;
4920{
4921#if PYTHON_API_VERSION >= 1009
4922 char* tmpPtr; int tmpSize;
4923 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
4924 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4925 return NULL;
4926 }
4927 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
4928 return NULL;
4929 _arg0 = new wxString(tmpPtr, tmpSize);
4930#else
4931 if (!PyString_Check(_obj0)) {
4932 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4933 return NULL;
4934 }
4935 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
4936#endif
4937}
4938{
0e2ff151 4939 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4940 wxLog::AddTraceMask(*_arg0);
4941
0e2ff151
RD
4942 wxPyEndAllowThreads(__tstate);
4943 if (PyErr_Occurred()) return NULL;
e6056257
RD
4944} Py_INCREF(Py_None);
4945 _resultobj = Py_None;
4946{
4947 if (_obj0)
4948 delete _arg0;
4949}
4950 return _resultobj;
4951}
4952
4953static PyObject *_wrap_wxLog_RemoveTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
4954 PyObject * _resultobj;
4955 wxString * _arg0;
4956 PyObject * _obj0 = 0;
4957 char *_kwnames[] = { "str", NULL };
4958
4959 self = self;
4960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_RemoveTraceMask",_kwnames,&_obj0))
4961 return NULL;
4962{
4963#if PYTHON_API_VERSION >= 1009
4964 char* tmpPtr; int tmpSize;
4965 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
4966 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4967 return NULL;
4968 }
4969 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
4970 return NULL;
4971 _arg0 = new wxString(tmpPtr, tmpSize);
4972#else
4973 if (!PyString_Check(_obj0)) {
4974 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4975 return NULL;
4976 }
4977 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
4978#endif
4979}
4980{
0e2ff151 4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
4982 wxLog::RemoveTraceMask(*_arg0);
4983
0e2ff151
RD
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) return NULL;
e6056257
RD
4986} Py_INCREF(Py_None);
4987 _resultobj = Py_None;
4988{
4989 if (_obj0)
4990 delete _arg0;
4991}
4992 return _resultobj;
4993}
4994
4995static PyObject *_wrap_wxLog_ClearTraceMasks(PyObject *self, PyObject *args, PyObject *kwargs) {
4996 PyObject * _resultobj;
4997 char *_kwnames[] = { NULL };
4998
4999 self = self;
5000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_ClearTraceMasks",_kwnames))
5001 return NULL;
5002{
0e2ff151 5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5004 wxLog::ClearTraceMasks();
5005
0e2ff151
RD
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) return NULL;
e6056257
RD
5008} Py_INCREF(Py_None);
5009 _resultobj = Py_None;
5010 return _resultobj;
5011}
5012
5013static PyObject *_wrap_wxLog_SetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
5014 PyObject * _resultobj;
5015 wxChar * _arg0;
5016 char *_kwnames[] = { "ts", NULL };
5017
5018 self = self;
5019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_SetTimestamp",_kwnames,&_arg0))
5020 return NULL;
5021{
0e2ff151 5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5023 wxLog::SetTimestamp(_arg0);
5024
0e2ff151
RD
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) return NULL;
e6056257
RD
5027} Py_INCREF(Py_None);
5028 _resultobj = Py_None;
5029 return _resultobj;
5030}
5031
5032static PyObject *_wrap_wxLog_GetTimestamp(PyObject *self, PyObject *args, PyObject *kwargs) {
5033 PyObject * _resultobj;
5034 wxChar * _result;
5035 char *_kwnames[] = { NULL };
5036
5037 self = self;
5038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTimestamp",_kwnames))
5039 return NULL;
5040{
0e2ff151 5041 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5042 _result = (wxChar *)wxLog::GetTimestamp();
5043
0e2ff151
RD
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) return NULL;
e6056257
RD
5046} _resultobj = Py_BuildValue("s", _result);
5047 return _resultobj;
5048}
5049
5050#define wxLog_GetVerbose(_swigobj) (_swigobj->GetVerbose())
5051static PyObject *_wrap_wxLog_GetVerbose(PyObject *self, PyObject *args, PyObject *kwargs) {
5052 PyObject * _resultobj;
5053 bool _result;
5054 wxLog * _arg0;
5055 PyObject * _argo0 = 0;
5056 char *_kwnames[] = { "self", NULL };
5057
5058 self = self;
5059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_GetVerbose",_kwnames,&_argo0))
5060 return NULL;
5061 if (_argo0) {
5062 if (_argo0 == Py_None) { _arg0 = NULL; }
5063 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5064 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_GetVerbose. Expected _wxLog_p.");
5065 return NULL;
5066 }
5067 }
5068{
0e2ff151 5069 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5070 _result = (bool )wxLog_GetVerbose(_arg0);
5071
0e2ff151
RD
5072 wxPyEndAllowThreads(__tstate);
5073 if (PyErr_Occurred()) return NULL;
e6056257
RD
5074} _resultobj = Py_BuildValue("i",_result);
5075 return _resultobj;
5076}
5077
5078static PyObject *_wrap_wxLog_GetTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
5079 PyObject * _resultobj;
5080 wxTraceMask * _result;
5081 char *_kwnames[] = { NULL };
5082 char _ptemp[128];
5083
5084 self = self;
5085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxLog_GetTraceMask",_kwnames))
5086 return NULL;
5087{
0e2ff151 5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5089 _result = new wxTraceMask (wxLog::GetTraceMask());
5090
0e2ff151
RD
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) return NULL;
e6056257
RD
5093} SWIG_MakePtr(_ptemp, (void *) _result,"_wxTraceMask_p");
5094 _resultobj = Py_BuildValue("s",_ptemp);
5095 return _resultobj;
5096}
5097
5098static PyObject *_wrap_wxLog_IsAllowedTraceMask(PyObject *self, PyObject *args, PyObject *kwargs) {
5099 PyObject * _resultobj;
5100 bool _result;
5101 char * _arg0;
5102 char *_kwnames[] = { "mask", NULL };
5103
5104 self = self;
5105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"s:wxLog_IsAllowedTraceMask",_kwnames,&_arg0))
5106 return NULL;
5107{
0e2ff151 5108 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5109 _result = (bool )wxLog::IsAllowedTraceMask(_arg0);
5110
0e2ff151
RD
5111 wxPyEndAllowThreads(__tstate);
5112 if (PyErr_Occurred()) return NULL;
e6056257
RD
5113} _resultobj = Py_BuildValue("i",_result);
5114 return _resultobj;
5115}
5116
5117static wxString wxLog_TimeStamp(wxLog *self) {
5118 wxString msg;
5119 wxLog::TimeStamp(&msg);
5120 return msg;
5121 }
5122static PyObject *_wrap_wxLog_TimeStamp(PyObject *self, PyObject *args, PyObject *kwargs) {
5123 PyObject * _resultobj;
5124 wxString * _result;
5125 wxLog * _arg0;
5126 PyObject * _argo0 = 0;
5127 char *_kwnames[] = { "self", NULL };
5128
5129 self = self;
5130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLog_TimeStamp",_kwnames,&_argo0))
5131 return NULL;
5132 if (_argo0) {
5133 if (_argo0 == Py_None) { _arg0 = NULL; }
5134 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5135 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLog_TimeStamp. Expected _wxLog_p.");
5136 return NULL;
5137 }
5138 }
5139{
0e2ff151 5140 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5141 _result = new wxString (wxLog_TimeStamp(_arg0));
5142
0e2ff151
RD
5143 wxPyEndAllowThreads(__tstate);
5144 if (PyErr_Occurred()) return NULL;
e6056257
RD
5145}{
5146 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5147}
5148{
5149 delete _result;
5150}
5151 return _resultobj;
5152}
5153
5154static void *SwigwxLogStderrTowxLog(void *ptr) {
5155 wxLogStderr *src;
5156 wxLog *dest;
5157 src = (wxLogStderr *) ptr;
5158 dest = (wxLog *) src;
5159 return (void *) dest;
5160}
5161
5162#define new_wxLogStderr() (new wxLogStderr())
5163static PyObject *_wrap_new_wxLogStderr(PyObject *self, PyObject *args, PyObject *kwargs) {
5164 PyObject * _resultobj;
5165 wxLogStderr * _result;
5166 char *_kwnames[] = { NULL };
5167 char _ptemp[128];
5168
5169 self = self;
5170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogStderr",_kwnames))
5171 return NULL;
5172{
0e2ff151 5173 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5174 _result = (wxLogStderr *)new_wxLogStderr();
5175
0e2ff151
RD
5176 wxPyEndAllowThreads(__tstate);
5177 if (PyErr_Occurred()) return NULL;
e6056257
RD
5178} if (_result) {
5179 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogStderr_p");
5180 _resultobj = Py_BuildValue("s",_ptemp);
5181 } else {
5182 Py_INCREF(Py_None);
5183 _resultobj = Py_None;
5184 }
5185 return _resultobj;
5186}
5187
5188static void *SwigwxLogTextCtrlTowxLog(void *ptr) {
5189 wxLogTextCtrl *src;
5190 wxLog *dest;
5191 src = (wxLogTextCtrl *) ptr;
5192 dest = (wxLog *) src;
5193 return (void *) dest;
5194}
5195
5196#define new_wxLogTextCtrl(_swigarg0) (new wxLogTextCtrl(_swigarg0))
5197static PyObject *_wrap_new_wxLogTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) {
5198 PyObject * _resultobj;
5199 wxLogTextCtrl * _result;
5200 wxTextCtrl * _arg0;
5201 PyObject * _argo0 = 0;
5202 char *_kwnames[] = { "pTextCtrl", NULL };
5203 char _ptemp[128];
5204
5205 self = self;
5206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogTextCtrl",_kwnames,&_argo0))
5207 return NULL;
5208 if (_argo0) {
5209 if (_argo0 == Py_None) { _arg0 = NULL; }
5210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxTextCtrl_p")) {
5211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogTextCtrl. Expected _wxTextCtrl_p.");
5212 return NULL;
5213 }
5214 }
5215{
0e2ff151 5216 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5217 _result = (wxLogTextCtrl *)new_wxLogTextCtrl(_arg0);
5218
0e2ff151
RD
5219 wxPyEndAllowThreads(__tstate);
5220 if (PyErr_Occurred()) return NULL;
e6056257
RD
5221} if (_result) {
5222 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogTextCtrl_p");
5223 _resultobj = Py_BuildValue("s",_ptemp);
5224 } else {
5225 Py_INCREF(Py_None);
5226 _resultobj = Py_None;
5227 }
5228 return _resultobj;
5229}
5230
5231static void *SwigwxLogGuiTowxLog(void *ptr) {
5232 wxLogGui *src;
5233 wxLog *dest;
5234 src = (wxLogGui *) ptr;
5235 dest = (wxLog *) src;
5236 return (void *) dest;
5237}
5238
5239#define new_wxLogGui() (new wxLogGui())
5240static PyObject *_wrap_new_wxLogGui(PyObject *self, PyObject *args, PyObject *kwargs) {
5241 PyObject * _resultobj;
5242 wxLogGui * _result;
5243 char *_kwnames[] = { NULL };
5244 char _ptemp[128];
5245
5246 self = self;
5247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogGui",_kwnames))
5248 return NULL;
5249{
0e2ff151 5250 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5251 _result = (wxLogGui *)new_wxLogGui();
5252
0e2ff151
RD
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) return NULL;
e6056257
RD
5255} if (_result) {
5256 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogGui_p");
5257 _resultobj = Py_BuildValue("s",_ptemp);
5258 } else {
5259 Py_INCREF(Py_None);
5260 _resultobj = Py_None;
5261 }
5262 return _resultobj;
5263}
5264
5265static void *SwigwxLogWindowTowxLog(void *ptr) {
5266 wxLogWindow *src;
5267 wxLog *dest;
5268 src = (wxLogWindow *) ptr;
5269 dest = (wxLog *) src;
5270 return (void *) dest;
5271}
5272
5273#define new_wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxLogWindow(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5274static PyObject *_wrap_new_wxLogWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
5275 PyObject * _resultobj;
5276 wxLogWindow * _result;
5277 wxFrame * _arg0;
5278 char * _arg1;
5279 bool _arg2 = (bool ) TRUE;
5280 bool _arg3 = (bool ) TRUE;
5281 PyObject * _argo0 = 0;
5282 int tempbool2 = (int) TRUE;
5283 int tempbool3 = (int) TRUE;
5284 char *_kwnames[] = { "pParent","szTitle","bShow","bPassToOld", NULL };
5285 char _ptemp[128];
5286
5287 self = self;
5288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Os|ii:new_wxLogWindow",_kwnames,&_argo0,&_arg1,&tempbool2,&tempbool3))
5289 return NULL;
5290 if (_argo0) {
5291 if (_argo0 == Py_None) { _arg0 = NULL; }
5292 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFrame_p")) {
5293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogWindow. Expected _wxFrame_p.");
5294 return NULL;
5295 }
5296 }
5297 _arg2 = (bool ) tempbool2;
5298 _arg3 = (bool ) tempbool3;
5299{
0e2ff151 5300 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5301 _result = (wxLogWindow *)new_wxLogWindow(_arg0,_arg1,_arg2,_arg3);
5302
0e2ff151
RD
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) return NULL;
e6056257
RD
5305} if (_result) {
5306 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogWindow_p");
5307 _resultobj = Py_BuildValue("s",_ptemp);
5308 } else {
5309 Py_INCREF(Py_None);
5310 _resultobj = Py_None;
5311 }
5312 return _resultobj;
5313}
5314
5315#define wxLogWindow_Show(_swigobj,_swigarg0) (_swigobj->Show(_swigarg0))
5316static PyObject *_wrap_wxLogWindow_Show(PyObject *self, PyObject *args, PyObject *kwargs) {
5317 PyObject * _resultobj;
5318 wxLogWindow * _arg0;
5319 bool _arg1 = (bool ) TRUE;
5320 PyObject * _argo0 = 0;
5321 int tempbool1 = (int) TRUE;
5322 char *_kwnames[] = { "self","bShow", NULL };
5323
5324 self = self;
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:wxLogWindow_Show",_kwnames,&_argo0,&tempbool1))
5326 return NULL;
5327 if (_argo0) {
5328 if (_argo0 == Py_None) { _arg0 = NULL; }
5329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_Show. Expected _wxLogWindow_p.");
5331 return NULL;
5332 }
5333 }
5334 _arg1 = (bool ) tempbool1;
5335{
0e2ff151 5336 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5337 wxLogWindow_Show(_arg0,_arg1);
5338
0e2ff151
RD
5339 wxPyEndAllowThreads(__tstate);
5340 if (PyErr_Occurred()) return NULL;
e6056257
RD
5341} Py_INCREF(Py_None);
5342 _resultobj = Py_None;
5343 return _resultobj;
5344}
5345
5346#define wxLogWindow_GetFrame(_swigobj) (_swigobj->GetFrame())
5347static PyObject *_wrap_wxLogWindow_GetFrame(PyObject *self, PyObject *args, PyObject *kwargs) {
5348 PyObject * _resultobj;
5349 wxFrame * _result;
5350 wxLogWindow * _arg0;
5351 PyObject * _argo0 = 0;
5352 char *_kwnames[] = { "self", NULL };
5353
5354 self = self;
5355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetFrame",_kwnames,&_argo0))
5356 return NULL;
5357 if (_argo0) {
5358 if (_argo0 == Py_None) { _arg0 = NULL; }
5359 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5360 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetFrame. Expected _wxLogWindow_p.");
5361 return NULL;
5362 }
5363 }
5364{
0e2ff151 5365 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5366 _result = (wxFrame *)wxLogWindow_GetFrame(_arg0);
5367
0e2ff151
RD
5368 wxPyEndAllowThreads(__tstate);
5369 if (PyErr_Occurred()) return NULL;
e6056257
RD
5370}{ _resultobj = wxPyMake_wxObject(_result); }
5371 return _resultobj;
5372}
5373
5374#define wxLogWindow_GetOldLog(_swigobj) (_swigobj->GetOldLog())
5375static PyObject *_wrap_wxLogWindow_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5376 PyObject * _resultobj;
5377 wxLog * _result;
5378 wxLogWindow * _arg0;
5379 PyObject * _argo0 = 0;
5380 char *_kwnames[] = { "self", NULL };
5381 char _ptemp[128];
5382
5383 self = self;
5384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_GetOldLog",_kwnames,&_argo0))
5385 return NULL;
5386 if (_argo0) {
5387 if (_argo0 == Py_None) { _arg0 = NULL; }
5388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_GetOldLog. Expected _wxLogWindow_p.");
5390 return NULL;
5391 }
5392 }
5393{
0e2ff151 5394 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5395 _result = (wxLog *)wxLogWindow_GetOldLog(_arg0);
5396
0e2ff151
RD
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) return NULL;
e6056257
RD
5399} if (_result) {
5400 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
5401 _resultobj = Py_BuildValue("s",_ptemp);
5402 } else {
5403 Py_INCREF(Py_None);
5404 _resultobj = Py_None;
5405 }
5406 return _resultobj;
5407}
5408
5409#define wxLogWindow_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages())
5410static PyObject *_wrap_wxLogWindow_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5411 PyObject * _resultobj;
5412 bool _result;
5413 wxLogWindow * _arg0;
5414 PyObject * _argo0 = 0;
5415 char *_kwnames[] = { "self", NULL };
5416
5417 self = self;
5418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogWindow_IsPassingMessages",_kwnames,&_argo0))
5419 return NULL;
5420 if (_argo0) {
5421 if (_argo0 == Py_None) { _arg0 = NULL; }
5422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_IsPassingMessages. Expected _wxLogWindow_p.");
5424 return NULL;
5425 }
5426 }
5427{
0e2ff151 5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5429 _result = (bool )wxLogWindow_IsPassingMessages(_arg0);
5430
0e2ff151
RD
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) return NULL;
e6056257
RD
5433} _resultobj = Py_BuildValue("i",_result);
5434 return _resultobj;
5435}
5436
5437#define wxLogWindow_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0))
5438static PyObject *_wrap_wxLogWindow_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5439 PyObject * _resultobj;
5440 wxLogWindow * _arg0;
5441 bool _arg1;
5442 PyObject * _argo0 = 0;
5443 int tempbool1;
5444 char *_kwnames[] = { "self","bDoPass", NULL };
5445
5446 self = self;
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogWindow_PassMessages",_kwnames,&_argo0,&tempbool1))
5448 return NULL;
5449 if (_argo0) {
5450 if (_argo0 == Py_None) { _arg0 = NULL; }
5451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogWindow_p")) {
5452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogWindow_PassMessages. Expected _wxLogWindow_p.");
5453 return NULL;
5454 }
5455 }
5456 _arg1 = (bool ) tempbool1;
5457{
0e2ff151 5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5459 wxLogWindow_PassMessages(_arg0,_arg1);
5460
0e2ff151
RD
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) return NULL;
e6056257
RD
5463} Py_INCREF(Py_None);
5464 _resultobj = Py_None;
5465 return _resultobj;
5466}
5467
5468#define new_wxLogNull() (new wxLogNull())
5469static PyObject *_wrap_new_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
5470 PyObject * _resultobj;
5471 wxLogNull * _result;
5472 char *_kwnames[] = { NULL };
5473 char _ptemp[128];
5474
5475 self = self;
5476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxLogNull",_kwnames))
5477 return NULL;
5478{
0e2ff151 5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5480 _result = (wxLogNull *)new_wxLogNull();
5481
0e2ff151
RD
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) return NULL;
e6056257
RD
5484} if (_result) {
5485 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogNull_p");
5486 _resultobj = Py_BuildValue("s",_ptemp);
5487 } else {
5488 Py_INCREF(Py_None);
5489 _resultobj = Py_None;
5490 }
5491 return _resultobj;
5492}
5493
5494#define delete_wxLogNull(_swigobj) (delete _swigobj)
5495static PyObject *_wrap_delete_wxLogNull(PyObject *self, PyObject *args, PyObject *kwargs) {
5496 PyObject * _resultobj;
5497 wxLogNull * _arg0;
5498 PyObject * _argo0 = 0;
5499 char *_kwnames[] = { "self", NULL };
5500
5501 self = self;
5502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxLogNull",_kwnames,&_argo0))
5503 return NULL;
5504 if (_argo0) {
5505 if (_argo0 == Py_None) { _arg0 = NULL; }
5506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogNull_p")) {
5507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxLogNull. Expected _wxLogNull_p.");
5508 return NULL;
5509 }
5510 }
5511{
0e2ff151 5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5513 delete_wxLogNull(_arg0);
5514
0e2ff151
RD
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) return NULL;
e6056257
RD
5517} Py_INCREF(Py_None);
5518 _resultobj = Py_None;
5519 return _resultobj;
5520}
5521
5522static void *SwigwxLogChainTowxLog(void *ptr) {
5523 wxLogChain *src;
5524 wxLog *dest;
5525 src = (wxLogChain *) ptr;
5526 dest = (wxLog *) src;
5527 return (void *) dest;
5528}
5529
5530#define new_wxLogChain(_swigarg0) (new wxLogChain(_swigarg0))
5531static PyObject *_wrap_new_wxLogChain(PyObject *self, PyObject *args, PyObject *kwargs) {
5532 PyObject * _resultobj;
5533 wxLogChain * _result;
5534 wxLog * _arg0;
5535 PyObject * _argo0 = 0;
5536 char *_kwnames[] = { "logger", NULL };
5537 char _ptemp[128];
5538
5539 self = self;
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxLogChain",_kwnames,&_argo0))
5541 return NULL;
5542 if (_argo0) {
5543 if (_argo0 == Py_None) { _arg0 = NULL; }
5544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLog_p")) {
5545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxLogChain. Expected _wxLog_p.");
5546 return NULL;
5547 }
5548 }
5549{
0e2ff151 5550 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5551 _result = (wxLogChain *)new_wxLogChain(_arg0);
5552
0e2ff151
RD
5553 wxPyEndAllowThreads(__tstate);
5554 if (PyErr_Occurred()) return NULL;
e6056257
RD
5555} if (_result) {
5556 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLogChain_p");
5557 _resultobj = Py_BuildValue("s",_ptemp);
5558 } else {
5559 Py_INCREF(Py_None);
5560 _resultobj = Py_None;
5561 }
5562 return _resultobj;
5563}
5564
5565#define wxLogChain_SetLog(_swigobj,_swigarg0) (_swigobj->SetLog(_swigarg0))
5566static PyObject *_wrap_wxLogChain_SetLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5567 PyObject * _resultobj;
5568 wxLogChain * _arg0;
5569 wxLog * _arg1;
5570 PyObject * _argo0 = 0;
5571 PyObject * _argo1 = 0;
5572 char *_kwnames[] = { "self","logger", NULL };
5573
5574 self = self;
5575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxLogChain_SetLog",_kwnames,&_argo0,&_argo1))
5576 return NULL;
5577 if (_argo0) {
5578 if (_argo0 == Py_None) { _arg0 = NULL; }
5579 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5580 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_SetLog. Expected _wxLogChain_p.");
5581 return NULL;
5582 }
5583 }
5584 if (_argo1) {
5585 if (_argo1 == Py_None) { _arg1 = NULL; }
5586 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxLog_p")) {
5587 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxLogChain_SetLog. Expected _wxLog_p.");
5588 return NULL;
5589 }
5590 }
5591{
0e2ff151 5592 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5593 wxLogChain_SetLog(_arg0,_arg1);
5594
0e2ff151
RD
5595 wxPyEndAllowThreads(__tstate);
5596 if (PyErr_Occurred()) return NULL;
e6056257
RD
5597} Py_INCREF(Py_None);
5598 _resultobj = Py_None;
5599 return _resultobj;
5600}
5601
5602#define wxLogChain_PassMessages(_swigobj,_swigarg0) (_swigobj->PassMessages(_swigarg0))
5603static PyObject *_wrap_wxLogChain_PassMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5604 PyObject * _resultobj;
5605 wxLogChain * _arg0;
5606 bool _arg1;
5607 PyObject * _argo0 = 0;
5608 int tempbool1;
5609 char *_kwnames[] = { "self","bDoPass", NULL };
5610
5611 self = self;
5612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxLogChain_PassMessages",_kwnames,&_argo0,&tempbool1))
5613 return NULL;
5614 if (_argo0) {
5615 if (_argo0 == Py_None) { _arg0 = NULL; }
5616 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5617 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_PassMessages. Expected _wxLogChain_p.");
5618 return NULL;
5619 }
5620 }
5621 _arg1 = (bool ) tempbool1;
5622{
0e2ff151 5623 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5624 wxLogChain_PassMessages(_arg0,_arg1);
5625
0e2ff151
RD
5626 wxPyEndAllowThreads(__tstate);
5627 if (PyErr_Occurred()) return NULL;
e6056257
RD
5628} Py_INCREF(Py_None);
5629 _resultobj = Py_None;
5630 return _resultobj;
5631}
5632
5633#define wxLogChain_IsPassingMessages(_swigobj) (_swigobj->IsPassingMessages())
5634static PyObject *_wrap_wxLogChain_IsPassingMessages(PyObject *self, PyObject *args, PyObject *kwargs) {
5635 PyObject * _resultobj;
5636 bool _result;
5637 wxLogChain * _arg0;
5638 PyObject * _argo0 = 0;
5639 char *_kwnames[] = { "self", NULL };
5640
5641 self = self;
5642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_IsPassingMessages",_kwnames,&_argo0))
5643 return NULL;
5644 if (_argo0) {
5645 if (_argo0 == Py_None) { _arg0 = NULL; }
5646 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5647 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_IsPassingMessages. Expected _wxLogChain_p.");
5648 return NULL;
5649 }
5650 }
5651{
0e2ff151 5652 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5653 _result = (bool )wxLogChain_IsPassingMessages(_arg0);
5654
0e2ff151
RD
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) return NULL;
e6056257
RD
5657} _resultobj = Py_BuildValue("i",_result);
5658 return _resultobj;
5659}
5660
5661#define wxLogChain_GetOldLog(_swigobj) (_swigobj->GetOldLog())
5662static PyObject *_wrap_wxLogChain_GetOldLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5663 PyObject * _resultobj;
5664 wxLog * _result;
5665 wxLogChain * _arg0;
5666 PyObject * _argo0 = 0;
5667 char *_kwnames[] = { "self", NULL };
5668 char _ptemp[128];
5669
5670 self = self;
5671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxLogChain_GetOldLog",_kwnames,&_argo0))
5672 return NULL;
5673 if (_argo0) {
5674 if (_argo0 == Py_None) { _arg0 = NULL; }
5675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxLogChain_p")) {
5676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxLogChain_GetOldLog. Expected _wxLogChain_p.");
5677 return NULL;
5678 }
5679 }
5680{
0e2ff151 5681 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5682 _result = (wxLog *)wxLogChain_GetOldLog(_arg0);
5683
0e2ff151
RD
5684 wxPyEndAllowThreads(__tstate);
5685 if (PyErr_Occurred()) return NULL;
e6056257
RD
5686} if (_result) {
5687 SWIG_MakePtr(_ptemp, (char *) _result,"_wxLog_p");
5688 _resultobj = Py_BuildValue("s",_ptemp);
5689 } else {
5690 Py_INCREF(Py_None);
5691 _resultobj = Py_None;
5692 }
5693 return _resultobj;
5694}
5695
5696static void *SwigwxPyLogTowxLog(void *ptr) {
5697 wxPyLog *src;
5698 wxLog *dest;
5699 src = (wxPyLog *) ptr;
5700 dest = (wxLog *) src;
5701 return (void *) dest;
5702}
5703
5704#define new_wxPyLog() (new wxPyLog())
5705static PyObject *_wrap_new_wxPyLog(PyObject *self, PyObject *args, PyObject *kwargs) {
5706 PyObject * _resultobj;
5707 wxPyLog * _result;
5708 char *_kwnames[] = { NULL };
5709 char _ptemp[128];
5710
5711 self = self;
5712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxPyLog",_kwnames))
5713 return NULL;
5714{
0e2ff151 5715 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5716 _result = (wxPyLog *)new_wxPyLog();
5717
0e2ff151
RD
5718 wxPyEndAllowThreads(__tstate);
5719 if (PyErr_Occurred()) return NULL;
e6056257
RD
5720} if (_result) {
5721 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyLog_p");
5722 _resultobj = Py_BuildValue("s",_ptemp);
5723 } else {
5724 Py_INCREF(Py_None);
5725 _resultobj = Py_None;
5726 }
5727 return _resultobj;
5728}
5729
5730#define wxPyLog__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
5731static PyObject *_wrap_wxPyLog__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5732 PyObject * _resultobj;
5733 wxPyLog * _arg0;
5734 PyObject * _arg1;
5735 PyObject * _arg2;
5736 PyObject * _argo0 = 0;
5737 PyObject * _obj1 = 0;
5738 PyObject * _obj2 = 0;
5739 char *_kwnames[] = { "self","self","_class", NULL };
5740
5741 self = self;
5742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxPyLog__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
5743 return NULL;
5744 if (_argo0) {
5745 if (_argo0 == Py_None) { _arg0 = NULL; }
5746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) {
5747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog__setCallbackInfo. Expected _wxPyLog_p.");
5748 return NULL;
5749 }
5750 }
5751{
5752 _arg1 = _obj1;
5753}
5754{
5755 _arg2 = _obj2;
5756}
5757{
0e2ff151 5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5759 wxPyLog__setCallbackInfo(_arg0,_arg1,_arg2);
5760
0e2ff151
RD
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) return NULL;
e6056257
RD
5763} Py_INCREF(Py_None);
5764 _resultobj = Py_None;
5765 return _resultobj;
5766}
5767
5768static void wxPyLog_Destroy(wxPyLog *self) { delete self; }
5769static PyObject *_wrap_wxPyLog_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
5770 PyObject * _resultobj;
5771 wxPyLog * _arg0;
5772 PyObject * _argo0 = 0;
5773 char *_kwnames[] = { "self", NULL };
5774
5775 self = self;
5776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPyLog_Destroy",_kwnames,&_argo0))
5777 return NULL;
5778 if (_argo0) {
5779 if (_argo0 == Py_None) { _arg0 = NULL; }
5780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyLog_p")) {
5781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyLog_Destroy. Expected _wxPyLog_p.");
5782 return NULL;
5783 }
5784 }
5785{
0e2ff151 5786 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5787 wxPyLog_Destroy(_arg0);
5788
0e2ff151
RD
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) return NULL;
e6056257
RD
5791} Py_INCREF(Py_None);
5792 _resultobj = Py_None;
5793 return _resultobj;
5794}
5795
5796static void *SwigwxProcessEventTowxEvent(void *ptr) {
5797 wxProcessEvent *src;
5798 wxEvent *dest;
5799 src = (wxProcessEvent *) ptr;
5800 dest = (wxEvent *) src;
5801 return (void *) dest;
5802}
5803
5804static void *SwigwxProcessEventTowxObject(void *ptr) {
5805 wxProcessEvent *src;
5806 wxObject *dest;
5807 src = (wxProcessEvent *) ptr;
5808 dest = (wxObject *) src;
5809 return (void *) dest;
5810}
5811
5812#define new_wxProcessEvent(_swigarg0,_swigarg1,_swigarg2) (new wxProcessEvent(_swigarg0,_swigarg1,_swigarg2))
5813static PyObject *_wrap_new_wxProcessEvent(PyObject *self, PyObject *args, PyObject *kwargs) {
5814 PyObject * _resultobj;
5815 wxProcessEvent * _result;
5816 int _arg0 = (int ) 0;
5817 int _arg1 = (int ) 0;
5818 int _arg2 = (int ) 0;
5819 char *_kwnames[] = { "id","pid","exitcode", NULL };
5820 char _ptemp[128];
5821
5822 self = self;
5823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|iii:new_wxProcessEvent",_kwnames,&_arg0,&_arg1,&_arg2))
5824 return NULL;
5825{
0e2ff151 5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5827 _result = (wxProcessEvent *)new_wxProcessEvent(_arg0,_arg1,_arg2);
5828
0e2ff151
RD
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) return NULL;
e6056257
RD
5831} if (_result) {
5832 SWIG_MakePtr(_ptemp, (char *) _result,"_wxProcessEvent_p");
5833 _resultobj = Py_BuildValue("s",_ptemp);
5834 } else {
5835 Py_INCREF(Py_None);
5836 _resultobj = Py_None;
5837 }
5838 return _resultobj;
5839}
5840
5841#define wxProcessEvent_GetPid(_swigobj) (_swigobj->GetPid())
5842static PyObject *_wrap_wxProcessEvent_GetPid(PyObject *self, PyObject *args, PyObject *kwargs) {
5843 PyObject * _resultobj;
5844 int _result;
5845 wxProcessEvent * _arg0;
5846 PyObject * _argo0 = 0;
5847 char *_kwnames[] = { "self", NULL };
5848
5849 self = self;
5850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetPid",_kwnames,&_argo0))
5851 return NULL;
5852 if (_argo0) {
5853 if (_argo0 == Py_None) { _arg0 = NULL; }
5854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetPid. Expected _wxProcessEvent_p.");
5856 return NULL;
5857 }
5858 }
5859{
0e2ff151 5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5861 _result = (int )wxProcessEvent_GetPid(_arg0);
5862
0e2ff151
RD
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) return NULL;
e6056257
RD
5865} _resultobj = Py_BuildValue("i",_result);
5866 return _resultobj;
5867}
5868
5869#define wxProcessEvent_GetExitCode(_swigobj) (_swigobj->GetExitCode())
5870static PyObject *_wrap_wxProcessEvent_GetExitCode(PyObject *self, PyObject *args, PyObject *kwargs) {
5871 PyObject * _resultobj;
5872 int _result;
5873 wxProcessEvent * _arg0;
5874 PyObject * _argo0 = 0;
5875 char *_kwnames[] = { "self", NULL };
5876
5877 self = self;
5878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_GetExitCode",_kwnames,&_argo0))
5879 return NULL;
5880 if (_argo0) {
5881 if (_argo0 == Py_None) { _arg0 = NULL; }
5882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_GetExitCode. Expected _wxProcessEvent_p.");
5884 return NULL;
5885 }
5886 }
5887{
0e2ff151 5888 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5889 _result = (int )wxProcessEvent_GetExitCode(_arg0);
5890
0e2ff151
RD
5891 wxPyEndAllowThreads(__tstate);
5892 if (PyErr_Occurred()) return NULL;
e6056257
RD
5893} _resultobj = Py_BuildValue("i",_result);
5894 return _resultobj;
5895}
5896
5897#define wxProcessEvent_m_pid_set(_swigobj,_swigval) (_swigobj->m_pid = _swigval,_swigval)
5898static PyObject *_wrap_wxProcessEvent_m_pid_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5899 PyObject * _resultobj;
5900 int _result;
5901 wxProcessEvent * _arg0;
5902 int _arg1;
5903 PyObject * _argo0 = 0;
5904 char *_kwnames[] = { "self","m_pid", NULL };
5905
5906 self = self;
5907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_pid_set",_kwnames,&_argo0,&_arg1))
5908 return NULL;
5909 if (_argo0) {
5910 if (_argo0 == Py_None) { _arg0 = NULL; }
5911 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5912 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_set. Expected _wxProcessEvent_p.");
5913 return NULL;
5914 }
5915 }
5916{
0e2ff151 5917 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5918 _result = (int )wxProcessEvent_m_pid_set(_arg0,_arg1);
5919
0e2ff151
RD
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) return NULL;
e6056257
RD
5922} _resultobj = Py_BuildValue("i",_result);
5923 return _resultobj;
5924}
5925
5926#define wxProcessEvent_m_pid_get(_swigobj) ((int ) _swigobj->m_pid)
5927static PyObject *_wrap_wxProcessEvent_m_pid_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5928 PyObject * _resultobj;
5929 int _result;
5930 wxProcessEvent * _arg0;
5931 PyObject * _argo0 = 0;
5932 char *_kwnames[] = { "self", NULL };
5933
5934 self = self;
5935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_pid_get",_kwnames,&_argo0))
5936 return NULL;
5937 if (_argo0) {
5938 if (_argo0 == Py_None) { _arg0 = NULL; }
5939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_pid_get. Expected _wxProcessEvent_p.");
5941 return NULL;
5942 }
5943 }
5944{
0e2ff151 5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5946 _result = (int )wxProcessEvent_m_pid_get(_arg0);
5947
0e2ff151
RD
5948 wxPyEndAllowThreads(__tstate);
5949 if (PyErr_Occurred()) return NULL;
e6056257
RD
5950} _resultobj = Py_BuildValue("i",_result);
5951 return _resultobj;
5952}
5953
5954#define wxProcessEvent_m_exitcode_set(_swigobj,_swigval) (_swigobj->m_exitcode = _swigval,_swigval)
5955static PyObject *_wrap_wxProcessEvent_m_exitcode_set(PyObject *self, PyObject *args, PyObject *kwargs) {
5956 PyObject * _resultobj;
5957 int _result;
5958 wxProcessEvent * _arg0;
5959 int _arg1;
5960 PyObject * _argo0 = 0;
5961 char *_kwnames[] = { "self","m_exitcode", NULL };
5962
5963 self = self;
5964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxProcessEvent_m_exitcode_set",_kwnames,&_argo0,&_arg1))
5965 return NULL;
5966 if (_argo0) {
5967 if (_argo0 == Py_None) { _arg0 = NULL; }
5968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_set. Expected _wxProcessEvent_p.");
5970 return NULL;
5971 }
5972 }
5973{
0e2ff151 5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
5975 _result = (int )wxProcessEvent_m_exitcode_set(_arg0,_arg1);
5976
0e2ff151
RD
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) return NULL;
e6056257
RD
5979} _resultobj = Py_BuildValue("i",_result);
5980 return _resultobj;
5981}
5982
5983#define wxProcessEvent_m_exitcode_get(_swigobj) ((int ) _swigobj->m_exitcode)
5984static PyObject *_wrap_wxProcessEvent_m_exitcode_get(PyObject *self, PyObject *args, PyObject *kwargs) {
5985 PyObject * _resultobj;
5986 int _result;
5987 wxProcessEvent * _arg0;
5988 PyObject * _argo0 = 0;
5989 char *_kwnames[] = { "self", NULL };
5990
5991 self = self;
5992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcessEvent_m_exitcode_get",_kwnames,&_argo0))
5993 return NULL;
5994 if (_argo0) {
5995 if (_argo0 == Py_None) { _arg0 = NULL; }
5996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxProcessEvent_p")) {
5997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcessEvent_m_exitcode_get. Expected _wxProcessEvent_p.");
5998 return NULL;
5999 }
6000 }
6001{
0e2ff151 6002 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6003 _result = (int )wxProcessEvent_m_exitcode_get(_arg0);
6004
0e2ff151
RD
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) return NULL;
e6056257
RD
6007} _resultobj = Py_BuildValue("i",_result);
6008 return _resultobj;
6009}
6010
6011static void *SwigwxPyProcessTowxEvtHandler(void *ptr) {
6012 wxPyProcess *src;
6013 wxEvtHandler *dest;
6014 src = (wxPyProcess *) ptr;
6015 dest = (wxEvtHandler *) src;
6016 return (void *) dest;
6017}
6018
6019static void *SwigwxPyProcessTowxObject(void *ptr) {
6020 wxPyProcess *src;
6021 wxObject *dest;
6022 src = (wxPyProcess *) ptr;
6023 dest = (wxObject *) src;
6024 return (void *) dest;
6025}
6026
6027#define new_wxProcess(_swigarg0,_swigarg1) (new wxPyProcess(_swigarg0,_swigarg1))
6028static PyObject *_wrap_new_wxProcess(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject * _resultobj;
6030 wxPyProcess * _result;
6031 wxEvtHandler * _arg0 = (wxEvtHandler *) NULL;
6032 int _arg1 = (int ) -1;
6033 PyObject * _argo0 = 0;
6034 char *_kwnames[] = { "parent","id", NULL };
6035 char _ptemp[128];
6036
6037 self = self;
6038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|Oi:new_wxProcess",_kwnames,&_argo0,&_arg1))
6039 return NULL;
6040 if (_argo0) {
6041 if (_argo0 == Py_None) { _arg0 = NULL; }
6042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxEvtHandler_p")) {
6043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxProcess. Expected _wxEvtHandler_p.");
6044 return NULL;
6045 }
6046 }
6047{
0e2ff151 6048 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6049 _result = (wxPyProcess *)new_wxProcess(_arg0,_arg1);
6050
0e2ff151
RD
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) return NULL;
e6056257
RD
6053} if (_result) {
6054 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyProcess_p");
6055 _resultobj = Py_BuildValue("s",_ptemp);
6056 } else {
6057 Py_INCREF(Py_None);
6058 _resultobj = Py_None;
6059 }
6060 return _resultobj;
6061}
6062
6063static void wxPyProcess_Destroy(wxPyProcess *self) { delete self; }
6064static PyObject *_wrap_wxProcess_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
6065 PyObject * _resultobj;
6066 wxPyProcess * _arg0;
6067 PyObject * _argo0 = 0;
6068 char *_kwnames[] = { "self", NULL };
6069
6070 self = self;
6071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Destroy",_kwnames,&_argo0))
6072 return NULL;
6073 if (_argo0) {
6074 if (_argo0 == Py_None) { _arg0 = NULL; }
6075 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6076 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Destroy. Expected _wxPyProcess_p.");
6077 return NULL;
6078 }
6079 }
6080{
0e2ff151 6081 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6082 wxPyProcess_Destroy(_arg0);
6083
0e2ff151
RD
6084 wxPyEndAllowThreads(__tstate);
6085 if (PyErr_Occurred()) return NULL;
e6056257
RD
6086} Py_INCREF(Py_None);
6087 _resultobj = Py_None;
6088 return _resultobj;
6089}
6090
6091#define wxProcess__setCallbackInfo(_swigobj,_swigarg0,_swigarg1) (_swigobj->_setCallbackInfo(_swigarg0,_swigarg1))
6092static PyObject *_wrap_wxProcess__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6093 PyObject * _resultobj;
6094 wxPyProcess * _arg0;
6095 PyObject * _arg1;
6096 PyObject * _arg2;
6097 PyObject * _argo0 = 0;
6098 PyObject * _obj1 = 0;
6099 PyObject * _obj2 = 0;
6100 char *_kwnames[] = { "self","self","_class", NULL };
6101
6102 self = self;
6103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxProcess__setCallbackInfo",_kwnames,&_argo0,&_obj1,&_obj2))
6104 return NULL;
6105 if (_argo0) {
6106 if (_argo0 == Py_None) { _arg0 = NULL; }
6107 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6108 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess__setCallbackInfo. Expected _wxPyProcess_p.");
6109 return NULL;
6110 }
6111 }
6112{
6113 _arg1 = _obj1;
6114}
6115{
6116 _arg2 = _obj2;
6117}
6118{
0e2ff151 6119 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6120 wxProcess__setCallbackInfo(_arg0,_arg1,_arg2);
6121
0e2ff151
RD
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) return NULL;
e6056257
RD
6124} Py_INCREF(Py_None);
6125 _resultobj = Py_None;
6126 return _resultobj;
6127}
6128
6129#define wxProcess_base_OnTerminate(_swigobj,_swigarg0,_swigarg1) (_swigobj->base_OnTerminate(_swigarg0,_swigarg1))
6130static PyObject *_wrap_wxProcess_base_OnTerminate(PyObject *self, PyObject *args, PyObject *kwargs) {
6131 PyObject * _resultobj;
6132 wxPyProcess * _arg0;
6133 int _arg1;
6134 int _arg2;
6135 PyObject * _argo0 = 0;
6136 char *_kwnames[] = { "self","pid","status", NULL };
6137
6138 self = self;
6139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxProcess_base_OnTerminate",_kwnames,&_argo0,&_arg1,&_arg2))
6140 return NULL;
6141 if (_argo0) {
6142 if (_argo0 == Py_None) { _arg0 = NULL; }
6143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_base_OnTerminate. Expected _wxPyProcess_p.");
6145 return NULL;
6146 }
6147 }
6148{
0e2ff151 6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6150 wxProcess_base_OnTerminate(_arg0,_arg1,_arg2);
6151
0e2ff151
RD
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) return NULL;
e6056257
RD
6154} Py_INCREF(Py_None);
6155 _resultobj = Py_None;
6156 return _resultobj;
6157}
6158
6159#define wxProcess_Redirect(_swigobj) (_swigobj->Redirect())
6160static PyObject *_wrap_wxProcess_Redirect(PyObject *self, PyObject *args, PyObject *kwargs) {
6161 PyObject * _resultobj;
6162 wxPyProcess * _arg0;
6163 PyObject * _argo0 = 0;
6164 char *_kwnames[] = { "self", NULL };
6165
6166 self = self;
6167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Redirect",_kwnames,&_argo0))
6168 return NULL;
6169 if (_argo0) {
6170 if (_argo0 == Py_None) { _arg0 = NULL; }
6171 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6172 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Redirect. Expected _wxPyProcess_p.");
6173 return NULL;
6174 }
6175 }
6176{
0e2ff151 6177 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6178 wxProcess_Redirect(_arg0);
6179
0e2ff151
RD
6180 wxPyEndAllowThreads(__tstate);
6181 if (PyErr_Occurred()) return NULL;
e6056257
RD
6182} Py_INCREF(Py_None);
6183 _resultobj = Py_None;
6184 return _resultobj;
6185}
6186
6187#define wxProcess_IsRedirected(_swigobj) (_swigobj->IsRedirected())
6188static PyObject *_wrap_wxProcess_IsRedirected(PyObject *self, PyObject *args, PyObject *kwargs) {
6189 PyObject * _resultobj;
6190 bool _result;
6191 wxPyProcess * _arg0;
6192 PyObject * _argo0 = 0;
6193 char *_kwnames[] = { "self", NULL };
6194
6195 self = self;
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_IsRedirected",_kwnames,&_argo0))
6197 return NULL;
6198 if (_argo0) {
6199 if (_argo0 == Py_None) { _arg0 = NULL; }
6200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_IsRedirected. Expected _wxPyProcess_p.");
6202 return NULL;
6203 }
6204 }
6205{
0e2ff151 6206 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6207 _result = (bool )wxProcess_IsRedirected(_arg0);
6208
0e2ff151
RD
6209 wxPyEndAllowThreads(__tstate);
6210 if (PyErr_Occurred()) return NULL;
e6056257
RD
6211} _resultobj = Py_BuildValue("i",_result);
6212 return _resultobj;
6213}
6214
6215#define wxProcess_Detach(_swigobj) (_swigobj->Detach())
6216static PyObject *_wrap_wxProcess_Detach(PyObject *self, PyObject *args, PyObject *kwargs) {
6217 PyObject * _resultobj;
6218 wxPyProcess * _arg0;
6219 PyObject * _argo0 = 0;
6220 char *_kwnames[] = { "self", NULL };
6221
6222 self = self;
6223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_Detach",_kwnames,&_argo0))
6224 return NULL;
6225 if (_argo0) {
6226 if (_argo0 == Py_None) { _arg0 = NULL; }
6227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_Detach. Expected _wxPyProcess_p.");
6229 return NULL;
6230 }
6231 }
6232{
0e2ff151 6233 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6234 wxProcess_Detach(_arg0);
6235
0e2ff151
RD
6236 wxPyEndAllowThreads(__tstate);
6237 if (PyErr_Occurred()) return NULL;
e6056257
RD
6238} Py_INCREF(Py_None);
6239 _resultobj = Py_None;
6240 return _resultobj;
6241}
6242
6243#define wxProcess_GetInputStream(_swigobj) (_swigobj->GetInputStream())
6244static PyObject *_wrap_wxProcess_GetInputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6245 PyObject * _resultobj;
6246 wxInputStream * _result;
6247 wxPyProcess * _arg0;
6248 PyObject * _argo0 = 0;
6249 char *_kwnames[] = { "self", NULL };
6250
6251 self = self;
6252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetInputStream",_kwnames,&_argo0))
6253 return NULL;
6254 if (_argo0) {
6255 if (_argo0 == Py_None) { _arg0 = NULL; }
6256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetInputStream. Expected _wxPyProcess_p.");
6258 return NULL;
6259 }
6260 }
6261{
0e2ff151 6262 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6263 _result = (wxInputStream *)wxProcess_GetInputStream(_arg0);
6264
0e2ff151
RD
6265 wxPyEndAllowThreads(__tstate);
6266 if (PyErr_Occurred()) return NULL;
e6056257
RD
6267}{
6268 wxPyInputStream * _ptr = NULL;
6269
6270 if (_result) {
6271 _ptr = new wxPyInputStream(_result);
6272 }
6273 _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE);
6274}
6275 return _resultobj;
6276}
6277
6278#define wxProcess_GetErrorStream(_swigobj) (_swigobj->GetErrorStream())
6279static PyObject *_wrap_wxProcess_GetErrorStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject * _resultobj;
6281 wxInputStream * _result;
6282 wxPyProcess * _arg0;
6283 PyObject * _argo0 = 0;
6284 char *_kwnames[] = { "self", NULL };
6285
6286 self = self;
6287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetErrorStream",_kwnames,&_argo0))
6288 return NULL;
6289 if (_argo0) {
6290 if (_argo0 == Py_None) { _arg0 = NULL; }
6291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetErrorStream. Expected _wxPyProcess_p.");
6293 return NULL;
6294 }
6295 }
6296{
0e2ff151 6297 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6298 _result = (wxInputStream *)wxProcess_GetErrorStream(_arg0);
6299
0e2ff151
RD
6300 wxPyEndAllowThreads(__tstate);
6301 if (PyErr_Occurred()) return NULL;
e6056257
RD
6302}{
6303 wxPyInputStream * _ptr = NULL;
6304
6305 if (_result) {
6306 _ptr = new wxPyInputStream(_result);
6307 }
6308 _resultobj = wxPyConstructObject(_ptr, "wxInputStream", TRUE);
6309}
6310 return _resultobj;
6311}
6312
6313#define wxProcess_GetOutputStream(_swigobj) (_swigobj->GetOutputStream())
6314static PyObject *_wrap_wxProcess_GetOutputStream(PyObject *self, PyObject *args, PyObject *kwargs) {
6315 PyObject * _resultobj;
6316 wxOutputStream * _result;
6317 wxPyProcess * _arg0;
6318 PyObject * _argo0 = 0;
6319 char *_kwnames[] = { "self", NULL };
6320 char _ptemp[128];
6321
6322 self = self;
6323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_GetOutputStream",_kwnames,&_argo0))
6324 return NULL;
6325 if (_argo0) {
6326 if (_argo0 == Py_None) { _arg0 = NULL; }
6327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_GetOutputStream. Expected _wxPyProcess_p.");
6329 return NULL;
6330 }
6331 }
6332{
0e2ff151 6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6334 _result = (wxOutputStream *)wxProcess_GetOutputStream(_arg0);
6335
0e2ff151
RD
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) return NULL;
e6056257
RD
6338} if (_result) {
6339 SWIG_MakePtr(_ptemp, (char *) _result,"_wxOutputStream_p");
6340 _resultobj = Py_BuildValue("s",_ptemp);
6341 } else {
6342 Py_INCREF(Py_None);
6343 _resultobj = Py_None;
6344 }
6345 return _resultobj;
6346}
6347
6348#define wxProcess_CloseOutput(_swigobj) (_swigobj->CloseOutput())
6349static PyObject *_wrap_wxProcess_CloseOutput(PyObject *self, PyObject *args, PyObject *kwargs) {
6350 PyObject * _resultobj;
6351 wxPyProcess * _arg0;
6352 PyObject * _argo0 = 0;
6353 char *_kwnames[] = { "self", NULL };
6354
6355 self = self;
6356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxProcess_CloseOutput",_kwnames,&_argo0))
6357 return NULL;
6358 if (_argo0) {
6359 if (_argo0 == Py_None) { _arg0 = NULL; }
6360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyProcess_p")) {
6361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxProcess_CloseOutput. Expected _wxPyProcess_p.");
6362 return NULL;
6363 }
6364 }
6365{
0e2ff151 6366 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6367 wxProcess_CloseOutput(_arg0);
6368
0e2ff151
RD
6369 wxPyEndAllowThreads(__tstate);
6370 if (PyErr_Occurred()) return NULL;
e6056257
RD
6371} Py_INCREF(Py_None);
6372 _resultobj = Py_None;
6373 return _resultobj;
6374}
6375
6376static void *SwigwxJoystickTowxObject(void *ptr) {
6377 wxJoystick *src;
6378 wxObject *dest;
6379 src = (wxJoystick *) ptr;
6380 dest = (wxObject *) src;
6381 return (void *) dest;
6382}
6383
6384#define new_wxJoystick(_swigarg0) (new wxJoystick(_swigarg0))
6385static PyObject *_wrap_new_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
6386 PyObject * _resultobj;
6387 wxJoystick * _result;
6388 int _arg0 = (int ) wxJOYSTICK1;
6389 char *_kwnames[] = { "joystick", NULL };
6390 char _ptemp[128];
6391
6392 self = self;
6393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxJoystick",_kwnames,&_arg0))
6394 return NULL;
6395{
0e2ff151 6396 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6397 _result = (wxJoystick *)new_wxJoystick(_arg0);
6398
0e2ff151
RD
6399 wxPyEndAllowThreads(__tstate);
6400 if (PyErr_Occurred()) return NULL;
e6056257
RD
6401} if (_result) {
6402 SWIG_MakePtr(_ptemp, (char *) _result,"_wxJoystick_p");
6403 _resultobj = Py_BuildValue("s",_ptemp);
6404 } else {
6405 Py_INCREF(Py_None);
6406 _resultobj = Py_None;
6407 }
6408 return _resultobj;
6409}
6410
6411#define delete_wxJoystick(_swigobj) (delete _swigobj)
6412static PyObject *_wrap_delete_wxJoystick(PyObject *self, PyObject *args, PyObject *kwargs) {
6413 PyObject * _resultobj;
6414 wxJoystick * _arg0;
6415 PyObject * _argo0 = 0;
6416 char *_kwnames[] = { "self", NULL };
6417
6418 self = self;
6419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxJoystick",_kwnames,&_argo0))
6420 return NULL;
6421 if (_argo0) {
6422 if (_argo0 == Py_None) { _arg0 = NULL; }
6423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxJoystick. Expected _wxJoystick_p.");
6425 return NULL;
6426 }
6427 }
6428{
0e2ff151 6429 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6430 delete_wxJoystick(_arg0);
6431
0e2ff151
RD
6432 wxPyEndAllowThreads(__tstate);
6433 if (PyErr_Occurred()) return NULL;
e6056257
RD
6434} Py_INCREF(Py_None);
6435 _resultobj = Py_None;
6436 return _resultobj;
6437}
6438
6439#define wxJoystick_GetPosition(_swigobj) (_swigobj->GetPosition())
6440static PyObject *_wrap_wxJoystick_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6441 PyObject * _resultobj;
6442 wxPoint * _result;
6443 wxJoystick * _arg0;
6444 PyObject * _argo0 = 0;
6445 char *_kwnames[] = { "self", NULL };
6446 char _ptemp[128];
6447
6448 self = self;
6449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPosition",_kwnames,&_argo0))
6450 return NULL;
6451 if (_argo0) {
6452 if (_argo0 == Py_None) { _arg0 = NULL; }
6453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPosition. Expected _wxJoystick_p.");
6455 return NULL;
6456 }
6457 }
6458{
0e2ff151 6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6460 _result = new wxPoint (wxJoystick_GetPosition(_arg0));
6461
0e2ff151
RD
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) return NULL;
e6056257
RD
6464} SWIG_MakePtr(_ptemp, (void *) _result,"_wxPoint_p");
6465 _resultobj = Py_BuildValue("s",_ptemp);
6466 return _resultobj;
6467}
6468
6469#define wxJoystick_GetZPosition(_swigobj) (_swigobj->GetZPosition())
6470static PyObject *_wrap_wxJoystick_GetZPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6471 PyObject * _resultobj;
6472 int _result;
6473 wxJoystick * _arg0;
6474 PyObject * _argo0 = 0;
6475 char *_kwnames[] = { "self", NULL };
6476
6477 self = self;
6478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZPosition",_kwnames,&_argo0))
6479 return NULL;
6480 if (_argo0) {
6481 if (_argo0 == Py_None) { _arg0 = NULL; }
6482 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6483 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZPosition. Expected _wxJoystick_p.");
6484 return NULL;
6485 }
6486 }
6487{
0e2ff151 6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6489 _result = (int )wxJoystick_GetZPosition(_arg0);
6490
0e2ff151
RD
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) return NULL;
e6056257
RD
6493} _resultobj = Py_BuildValue("i",_result);
6494 return _resultobj;
6495}
6496
6497#define wxJoystick_GetButtonState(_swigobj) (_swigobj->GetButtonState())
6498static PyObject *_wrap_wxJoystick_GetButtonState(PyObject *self, PyObject *args, PyObject *kwargs) {
6499 PyObject * _resultobj;
6500 int _result;
6501 wxJoystick * _arg0;
6502 PyObject * _argo0 = 0;
6503 char *_kwnames[] = { "self", NULL };
6504
6505 self = self;
6506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetButtonState",_kwnames,&_argo0))
6507 return NULL;
6508 if (_argo0) {
6509 if (_argo0 == Py_None) { _arg0 = NULL; }
6510 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6511 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetButtonState. Expected _wxJoystick_p.");
6512 return NULL;
6513 }
6514 }
6515{
0e2ff151 6516 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6517 _result = (int )wxJoystick_GetButtonState(_arg0);
6518
0e2ff151
RD
6519 wxPyEndAllowThreads(__tstate);
6520 if (PyErr_Occurred()) return NULL;
e6056257
RD
6521} _resultobj = Py_BuildValue("i",_result);
6522 return _resultobj;
6523}
6524
6525#define wxJoystick_GetPOVPosition(_swigobj) (_swigobj->GetPOVPosition())
6526static PyObject *_wrap_wxJoystick_GetPOVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6527 PyObject * _resultobj;
6528 int _result;
6529 wxJoystick * _arg0;
6530 PyObject * _argo0 = 0;
6531 char *_kwnames[] = { "self", NULL };
6532
6533 self = self;
6534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVPosition",_kwnames,&_argo0))
6535 return NULL;
6536 if (_argo0) {
6537 if (_argo0 == Py_None) { _arg0 = NULL; }
6538 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6539 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVPosition. Expected _wxJoystick_p.");
6540 return NULL;
6541 }
6542 }
6543{
0e2ff151 6544 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6545 _result = (int )wxJoystick_GetPOVPosition(_arg0);
6546
0e2ff151
RD
6547 wxPyEndAllowThreads(__tstate);
6548 if (PyErr_Occurred()) return NULL;
e6056257
RD
6549} _resultobj = Py_BuildValue("i",_result);
6550 return _resultobj;
6551}
6552
6553#define wxJoystick_GetPOVCTSPosition(_swigobj) (_swigobj->GetPOVCTSPosition())
6554static PyObject *_wrap_wxJoystick_GetPOVCTSPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6555 PyObject * _resultobj;
6556 int _result;
6557 wxJoystick * _arg0;
6558 PyObject * _argo0 = 0;
6559 char *_kwnames[] = { "self", NULL };
6560
6561 self = self;
6562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPOVCTSPosition",_kwnames,&_argo0))
6563 return NULL;
6564 if (_argo0) {
6565 if (_argo0 == Py_None) { _arg0 = NULL; }
6566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPOVCTSPosition. Expected _wxJoystick_p.");
6568 return NULL;
6569 }
6570 }
6571{
0e2ff151 6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6573 _result = (int )wxJoystick_GetPOVCTSPosition(_arg0);
6574
0e2ff151
RD
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) return NULL;
e6056257
RD
6577} _resultobj = Py_BuildValue("i",_result);
6578 return _resultobj;
6579}
6580
6581#define wxJoystick_GetRudderPosition(_swigobj) (_swigobj->GetRudderPosition())
6582static PyObject *_wrap_wxJoystick_GetRudderPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6583 PyObject * _resultobj;
6584 int _result;
6585 wxJoystick * _arg0;
6586 PyObject * _argo0 = 0;
6587 char *_kwnames[] = { "self", NULL };
6588
6589 self = self;
6590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderPosition",_kwnames,&_argo0))
6591 return NULL;
6592 if (_argo0) {
6593 if (_argo0 == Py_None) { _arg0 = NULL; }
6594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderPosition. Expected _wxJoystick_p.");
6596 return NULL;
6597 }
6598 }
6599{
0e2ff151 6600 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6601 _result = (int )wxJoystick_GetRudderPosition(_arg0);
6602
0e2ff151
RD
6603 wxPyEndAllowThreads(__tstate);
6604 if (PyErr_Occurred()) return NULL;
e6056257
RD
6605} _resultobj = Py_BuildValue("i",_result);
6606 return _resultobj;
6607}
6608
6609#define wxJoystick_GetUPosition(_swigobj) (_swigobj->GetUPosition())
6610static PyObject *_wrap_wxJoystick_GetUPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6611 PyObject * _resultobj;
6612 int _result;
6613 wxJoystick * _arg0;
6614 PyObject * _argo0 = 0;
6615 char *_kwnames[] = { "self", NULL };
6616
6617 self = self;
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUPosition",_kwnames,&_argo0))
6619 return NULL;
6620 if (_argo0) {
6621 if (_argo0 == Py_None) { _arg0 = NULL; }
6622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUPosition. Expected _wxJoystick_p.");
6624 return NULL;
6625 }
6626 }
6627{
0e2ff151 6628 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6629 _result = (int )wxJoystick_GetUPosition(_arg0);
6630
0e2ff151
RD
6631 wxPyEndAllowThreads(__tstate);
6632 if (PyErr_Occurred()) return NULL;
e6056257
RD
6633} _resultobj = Py_BuildValue("i",_result);
6634 return _resultobj;
6635}
6636
6637#define wxJoystick_GetVPosition(_swigobj) (_swigobj->GetVPosition())
6638static PyObject *_wrap_wxJoystick_GetVPosition(PyObject *self, PyObject *args, PyObject *kwargs) {
6639 PyObject * _resultobj;
6640 int _result;
6641 wxJoystick * _arg0;
6642 PyObject * _argo0 = 0;
6643 char *_kwnames[] = { "self", NULL };
6644
6645 self = self;
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVPosition",_kwnames,&_argo0))
6647 return NULL;
6648 if (_argo0) {
6649 if (_argo0 == Py_None) { _arg0 = NULL; }
6650 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6651 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVPosition. Expected _wxJoystick_p.");
6652 return NULL;
6653 }
6654 }
6655{
0e2ff151 6656 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6657 _result = (int )wxJoystick_GetVPosition(_arg0);
6658
0e2ff151
RD
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) return NULL;
e6056257
RD
6661} _resultobj = Py_BuildValue("i",_result);
6662 return _resultobj;
6663}
6664
6665#define wxJoystick_GetMovementThreshold(_swigobj) (_swigobj->GetMovementThreshold())
6666static PyObject *_wrap_wxJoystick_GetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
6667 PyObject * _resultobj;
6668 int _result;
6669 wxJoystick * _arg0;
6670 PyObject * _argo0 = 0;
6671 char *_kwnames[] = { "self", NULL };
6672
6673 self = self;
6674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMovementThreshold",_kwnames,&_argo0))
6675 return NULL;
6676 if (_argo0) {
6677 if (_argo0 == Py_None) { _arg0 = NULL; }
6678 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6679 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMovementThreshold. Expected _wxJoystick_p.");
6680 return NULL;
6681 }
6682 }
6683{
0e2ff151 6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6685 _result = (int )wxJoystick_GetMovementThreshold(_arg0);
6686
0e2ff151
RD
6687 wxPyEndAllowThreads(__tstate);
6688 if (PyErr_Occurred()) return NULL;
e6056257
RD
6689} _resultobj = Py_BuildValue("i",_result);
6690 return _resultobj;
6691}
6692
6693#define wxJoystick_SetMovementThreshold(_swigobj,_swigarg0) (_swigobj->SetMovementThreshold(_swigarg0))
6694static PyObject *_wrap_wxJoystick_SetMovementThreshold(PyObject *self, PyObject *args, PyObject *kwargs) {
6695 PyObject * _resultobj;
6696 wxJoystick * _arg0;
6697 int _arg1;
6698 PyObject * _argo0 = 0;
6699 char *_kwnames[] = { "self","threshold", NULL };
6700
6701 self = self;
6702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxJoystick_SetMovementThreshold",_kwnames,&_argo0,&_arg1))
6703 return NULL;
6704 if (_argo0) {
6705 if (_argo0 == Py_None) { _arg0 = NULL; }
6706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetMovementThreshold. Expected _wxJoystick_p.");
6708 return NULL;
6709 }
6710 }
6711{
0e2ff151 6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6713 wxJoystick_SetMovementThreshold(_arg0,_arg1);
6714
0e2ff151
RD
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) return NULL;
e6056257
RD
6717} Py_INCREF(Py_None);
6718 _resultobj = Py_None;
6719 return _resultobj;
6720}
6721
6722#define wxJoystick_IsOk(_swigobj) (_swigobj->IsOk())
6723static PyObject *_wrap_wxJoystick_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
6724 PyObject * _resultobj;
6725 bool _result;
6726 wxJoystick * _arg0;
6727 PyObject * _argo0 = 0;
6728 char *_kwnames[] = { "self", NULL };
6729
6730 self = self;
6731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_IsOk",_kwnames,&_argo0))
6732 return NULL;
6733 if (_argo0) {
6734 if (_argo0 == Py_None) { _arg0 = NULL; }
6735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_IsOk. Expected _wxJoystick_p.");
6737 return NULL;
6738 }
6739 }
6740{
0e2ff151 6741 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6742 _result = (bool )wxJoystick_IsOk(_arg0);
6743
0e2ff151
RD
6744 wxPyEndAllowThreads(__tstate);
6745 if (PyErr_Occurred()) return NULL;
e6056257
RD
6746} _resultobj = Py_BuildValue("i",_result);
6747 return _resultobj;
6748}
6749
6750#define wxJoystick_GetNumberJoysticks(_swigobj) (_swigobj->GetNumberJoysticks())
6751static PyObject *_wrap_wxJoystick_GetNumberJoysticks(PyObject *self, PyObject *args, PyObject *kwargs) {
6752 PyObject * _resultobj;
6753 int _result;
6754 wxJoystick * _arg0;
6755 PyObject * _argo0 = 0;
6756 char *_kwnames[] = { "self", NULL };
6757
6758 self = self;
6759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberJoysticks",_kwnames,&_argo0))
6760 return NULL;
6761 if (_argo0) {
6762 if (_argo0 == Py_None) { _arg0 = NULL; }
6763 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6764 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberJoysticks. Expected _wxJoystick_p.");
6765 return NULL;
6766 }
6767 }
6768{
0e2ff151 6769 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6770 _result = (int )wxJoystick_GetNumberJoysticks(_arg0);
6771
0e2ff151
RD
6772 wxPyEndAllowThreads(__tstate);
6773 if (PyErr_Occurred()) return NULL;
e6056257
RD
6774} _resultobj = Py_BuildValue("i",_result);
6775 return _resultobj;
6776}
6777
6778#define wxJoystick_GetManufacturerId(_swigobj) (_swigobj->GetManufacturerId())
6779static PyObject *_wrap_wxJoystick_GetManufacturerId(PyObject *self, PyObject *args, PyObject *kwargs) {
6780 PyObject * _resultobj;
6781 int _result;
6782 wxJoystick * _arg0;
6783 PyObject * _argo0 = 0;
6784 char *_kwnames[] = { "self", NULL };
6785
6786 self = self;
6787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetManufacturerId",_kwnames,&_argo0))
6788 return NULL;
6789 if (_argo0) {
6790 if (_argo0 == Py_None) { _arg0 = NULL; }
6791 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6792 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetManufacturerId. Expected _wxJoystick_p.");
6793 return NULL;
6794 }
6795 }
6796{
0e2ff151 6797 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6798 _result = (int )wxJoystick_GetManufacturerId(_arg0);
6799
0e2ff151
RD
6800 wxPyEndAllowThreads(__tstate);
6801 if (PyErr_Occurred()) return NULL;
e6056257
RD
6802} _resultobj = Py_BuildValue("i",_result);
6803 return _resultobj;
6804}
6805
6806#define wxJoystick_GetProductId(_swigobj) (_swigobj->GetProductId())
6807static PyObject *_wrap_wxJoystick_GetProductId(PyObject *self, PyObject *args, PyObject *kwargs) {
6808 PyObject * _resultobj;
6809 int _result;
6810 wxJoystick * _arg0;
6811 PyObject * _argo0 = 0;
6812 char *_kwnames[] = { "self", NULL };
6813
6814 self = self;
6815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductId",_kwnames,&_argo0))
6816 return NULL;
6817 if (_argo0) {
6818 if (_argo0 == Py_None) { _arg0 = NULL; }
6819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductId. Expected _wxJoystick_p.");
6821 return NULL;
6822 }
6823 }
6824{
0e2ff151 6825 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6826 _result = (int )wxJoystick_GetProductId(_arg0);
6827
0e2ff151
RD
6828 wxPyEndAllowThreads(__tstate);
6829 if (PyErr_Occurred()) return NULL;
e6056257
RD
6830} _resultobj = Py_BuildValue("i",_result);
6831 return _resultobj;
6832}
6833
6834#define wxJoystick_GetProductName(_swigobj) (_swigobj->GetProductName())
6835static PyObject *_wrap_wxJoystick_GetProductName(PyObject *self, PyObject *args, PyObject *kwargs) {
6836 PyObject * _resultobj;
6837 wxString * _result;
6838 wxJoystick * _arg0;
6839 PyObject * _argo0 = 0;
6840 char *_kwnames[] = { "self", NULL };
6841
6842 self = self;
6843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetProductName",_kwnames,&_argo0))
6844 return NULL;
6845 if (_argo0) {
6846 if (_argo0 == Py_None) { _arg0 = NULL; }
6847 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6848 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetProductName. Expected _wxJoystick_p.");
6849 return NULL;
6850 }
6851 }
6852{
0e2ff151 6853 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6854 _result = new wxString (wxJoystick_GetProductName(_arg0));
6855
0e2ff151
RD
6856 wxPyEndAllowThreads(__tstate);
6857 if (PyErr_Occurred()) return NULL;
e6056257
RD
6858}{
6859 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
6860}
6861{
6862 delete _result;
6863}
6864 return _resultobj;
6865}
6866
6867#define wxJoystick_GetXMin(_swigobj) (_swigobj->GetXMin())
6868static PyObject *_wrap_wxJoystick_GetXMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6869 PyObject * _resultobj;
6870 int _result;
6871 wxJoystick * _arg0;
6872 PyObject * _argo0 = 0;
6873 char *_kwnames[] = { "self", NULL };
6874
6875 self = self;
6876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMin",_kwnames,&_argo0))
6877 return NULL;
6878 if (_argo0) {
6879 if (_argo0 == Py_None) { _arg0 = NULL; }
6880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMin. Expected _wxJoystick_p.");
6882 return NULL;
6883 }
6884 }
6885{
0e2ff151 6886 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6887 _result = (int )wxJoystick_GetXMin(_arg0);
6888
0e2ff151
RD
6889 wxPyEndAllowThreads(__tstate);
6890 if (PyErr_Occurred()) return NULL;
e6056257
RD
6891} _resultobj = Py_BuildValue("i",_result);
6892 return _resultobj;
6893}
6894
6895#define wxJoystick_GetYMin(_swigobj) (_swigobj->GetYMin())
6896static PyObject *_wrap_wxJoystick_GetYMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6897 PyObject * _resultobj;
6898 int _result;
6899 wxJoystick * _arg0;
6900 PyObject * _argo0 = 0;
6901 char *_kwnames[] = { "self", NULL };
6902
6903 self = self;
6904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMin",_kwnames,&_argo0))
6905 return NULL;
6906 if (_argo0) {
6907 if (_argo0 == Py_None) { _arg0 = NULL; }
6908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMin. Expected _wxJoystick_p.");
6910 return NULL;
6911 }
6912 }
6913{
0e2ff151 6914 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6915 _result = (int )wxJoystick_GetYMin(_arg0);
6916
0e2ff151
RD
6917 wxPyEndAllowThreads(__tstate);
6918 if (PyErr_Occurred()) return NULL;
e6056257
RD
6919} _resultobj = Py_BuildValue("i",_result);
6920 return _resultobj;
6921}
6922
6923#define wxJoystick_GetZMin(_swigobj) (_swigobj->GetZMin())
6924static PyObject *_wrap_wxJoystick_GetZMin(PyObject *self, PyObject *args, PyObject *kwargs) {
6925 PyObject * _resultobj;
6926 int _result;
6927 wxJoystick * _arg0;
6928 PyObject * _argo0 = 0;
6929 char *_kwnames[] = { "self", NULL };
6930
6931 self = self;
6932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMin",_kwnames,&_argo0))
6933 return NULL;
6934 if (_argo0) {
6935 if (_argo0 == Py_None) { _arg0 = NULL; }
6936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMin. Expected _wxJoystick_p.");
6938 return NULL;
6939 }
6940 }
6941{
0e2ff151 6942 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6943 _result = (int )wxJoystick_GetZMin(_arg0);
6944
0e2ff151
RD
6945 wxPyEndAllowThreads(__tstate);
6946 if (PyErr_Occurred()) return NULL;
e6056257
RD
6947} _resultobj = Py_BuildValue("i",_result);
6948 return _resultobj;
6949}
6950
6951#define wxJoystick_GetXMax(_swigobj) (_swigobj->GetXMax())
6952static PyObject *_wrap_wxJoystick_GetXMax(PyObject *self, PyObject *args, PyObject *kwargs) {
6953 PyObject * _resultobj;
6954 int _result;
6955 wxJoystick * _arg0;
6956 PyObject * _argo0 = 0;
6957 char *_kwnames[] = { "self", NULL };
6958
6959 self = self;
6960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetXMax",_kwnames,&_argo0))
6961 return NULL;
6962 if (_argo0) {
6963 if (_argo0 == Py_None) { _arg0 = NULL; }
6964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetXMax. Expected _wxJoystick_p.");
6966 return NULL;
6967 }
6968 }
6969{
0e2ff151 6970 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6971 _result = (int )wxJoystick_GetXMax(_arg0);
6972
0e2ff151
RD
6973 wxPyEndAllowThreads(__tstate);
6974 if (PyErr_Occurred()) return NULL;
e6056257
RD
6975} _resultobj = Py_BuildValue("i",_result);
6976 return _resultobj;
6977}
6978
6979#define wxJoystick_GetYMax(_swigobj) (_swigobj->GetYMax())
6980static PyObject *_wrap_wxJoystick_GetYMax(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject * _resultobj;
6982 int _result;
6983 wxJoystick * _arg0;
6984 PyObject * _argo0 = 0;
6985 char *_kwnames[] = { "self", NULL };
6986
6987 self = self;
6988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetYMax",_kwnames,&_argo0))
6989 return NULL;
6990 if (_argo0) {
6991 if (_argo0 == Py_None) { _arg0 = NULL; }
6992 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
6993 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetYMax. Expected _wxJoystick_p.");
6994 return NULL;
6995 }
6996 }
6997{
0e2ff151 6998 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
6999 _result = (int )wxJoystick_GetYMax(_arg0);
7000
0e2ff151
RD
7001 wxPyEndAllowThreads(__tstate);
7002 if (PyErr_Occurred()) return NULL;
e6056257
RD
7003} _resultobj = Py_BuildValue("i",_result);
7004 return _resultobj;
7005}
7006
7007#define wxJoystick_GetZMax(_swigobj) (_swigobj->GetZMax())
7008static PyObject *_wrap_wxJoystick_GetZMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7009 PyObject * _resultobj;
7010 int _result;
7011 wxJoystick * _arg0;
7012 PyObject * _argo0 = 0;
7013 char *_kwnames[] = { "self", NULL };
7014
7015 self = self;
7016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetZMax",_kwnames,&_argo0))
7017 return NULL;
7018 if (_argo0) {
7019 if (_argo0 == Py_None) { _arg0 = NULL; }
7020 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7021 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetZMax. Expected _wxJoystick_p.");
7022 return NULL;
7023 }
7024 }
7025{
0e2ff151 7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7027 _result = (int )wxJoystick_GetZMax(_arg0);
7028
0e2ff151
RD
7029 wxPyEndAllowThreads(__tstate);
7030 if (PyErr_Occurred()) return NULL;
e6056257
RD
7031} _resultobj = Py_BuildValue("i",_result);
7032 return _resultobj;
7033}
7034
7035#define wxJoystick_GetNumberButtons(_swigobj) (_swigobj->GetNumberButtons())
7036static PyObject *_wrap_wxJoystick_GetNumberButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
7037 PyObject * _resultobj;
7038 int _result;
7039 wxJoystick * _arg0;
7040 PyObject * _argo0 = 0;
7041 char *_kwnames[] = { "self", NULL };
7042
7043 self = self;
7044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberButtons",_kwnames,&_argo0))
7045 return NULL;
7046 if (_argo0) {
7047 if (_argo0 == Py_None) { _arg0 = NULL; }
7048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberButtons. Expected _wxJoystick_p.");
7050 return NULL;
7051 }
7052 }
7053{
0e2ff151 7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7055 _result = (int )wxJoystick_GetNumberButtons(_arg0);
7056
0e2ff151
RD
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) return NULL;
e6056257
RD
7059} _resultobj = Py_BuildValue("i",_result);
7060 return _resultobj;
7061}
7062
7063#define wxJoystick_GetNumberAxes(_swigobj) (_swigobj->GetNumberAxes())
7064static PyObject *_wrap_wxJoystick_GetNumberAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
7065 PyObject * _resultobj;
7066 int _result;
7067 wxJoystick * _arg0;
7068 PyObject * _argo0 = 0;
7069 char *_kwnames[] = { "self", NULL };
7070
7071 self = self;
7072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetNumberAxes",_kwnames,&_argo0))
7073 return NULL;
7074 if (_argo0) {
7075 if (_argo0 == Py_None) { _arg0 = NULL; }
7076 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7077 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetNumberAxes. Expected _wxJoystick_p.");
7078 return NULL;
7079 }
7080 }
7081{
0e2ff151 7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7083 _result = (int )wxJoystick_GetNumberAxes(_arg0);
7084
0e2ff151
RD
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) return NULL;
e6056257
RD
7087} _resultobj = Py_BuildValue("i",_result);
7088 return _resultobj;
7089}
7090
7091#define wxJoystick_GetMaxButtons(_swigobj) (_swigobj->GetMaxButtons())
7092static PyObject *_wrap_wxJoystick_GetMaxButtons(PyObject *self, PyObject *args, PyObject *kwargs) {
7093 PyObject * _resultobj;
7094 int _result;
7095 wxJoystick * _arg0;
7096 PyObject * _argo0 = 0;
7097 char *_kwnames[] = { "self", NULL };
7098
7099 self = self;
7100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxButtons",_kwnames,&_argo0))
7101 return NULL;
7102 if (_argo0) {
7103 if (_argo0 == Py_None) { _arg0 = NULL; }
7104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxButtons. Expected _wxJoystick_p.");
7106 return NULL;
7107 }
7108 }
7109{
0e2ff151 7110 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7111 _result = (int )wxJoystick_GetMaxButtons(_arg0);
7112
0e2ff151
RD
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) return NULL;
e6056257
RD
7115} _resultobj = Py_BuildValue("i",_result);
7116 return _resultobj;
7117}
7118
7119#define wxJoystick_GetMaxAxes(_swigobj) (_swigobj->GetMaxAxes())
7120static PyObject *_wrap_wxJoystick_GetMaxAxes(PyObject *self, PyObject *args, PyObject *kwargs) {
7121 PyObject * _resultobj;
7122 int _result;
7123 wxJoystick * _arg0;
7124 PyObject * _argo0 = 0;
7125 char *_kwnames[] = { "self", NULL };
7126
7127 self = self;
7128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetMaxAxes",_kwnames,&_argo0))
7129 return NULL;
7130 if (_argo0) {
7131 if (_argo0 == Py_None) { _arg0 = NULL; }
7132 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7133 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetMaxAxes. Expected _wxJoystick_p.");
7134 return NULL;
7135 }
7136 }
7137{
0e2ff151 7138 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7139 _result = (int )wxJoystick_GetMaxAxes(_arg0);
7140
0e2ff151
RD
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) return NULL;
e6056257
RD
7143} _resultobj = Py_BuildValue("i",_result);
7144 return _resultobj;
7145}
7146
7147#define wxJoystick_GetPollingMin(_swigobj) (_swigobj->GetPollingMin())
7148static PyObject *_wrap_wxJoystick_GetPollingMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7149 PyObject * _resultobj;
7150 int _result;
7151 wxJoystick * _arg0;
7152 PyObject * _argo0 = 0;
7153 char *_kwnames[] = { "self", NULL };
7154
7155 self = self;
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMin",_kwnames,&_argo0))
7157 return NULL;
7158 if (_argo0) {
7159 if (_argo0 == Py_None) { _arg0 = NULL; }
7160 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7161 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMin. Expected _wxJoystick_p.");
7162 return NULL;
7163 }
7164 }
7165{
0e2ff151 7166 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7167 _result = (int )wxJoystick_GetPollingMin(_arg0);
7168
0e2ff151
RD
7169 wxPyEndAllowThreads(__tstate);
7170 if (PyErr_Occurred()) return NULL;
e6056257
RD
7171} _resultobj = Py_BuildValue("i",_result);
7172 return _resultobj;
7173}
7174
7175#define wxJoystick_GetPollingMax(_swigobj) (_swigobj->GetPollingMax())
7176static PyObject *_wrap_wxJoystick_GetPollingMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7177 PyObject * _resultobj;
7178 int _result;
7179 wxJoystick * _arg0;
7180 PyObject * _argo0 = 0;
7181 char *_kwnames[] = { "self", NULL };
7182
7183 self = self;
7184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetPollingMax",_kwnames,&_argo0))
7185 return NULL;
7186 if (_argo0) {
7187 if (_argo0 == Py_None) { _arg0 = NULL; }
7188 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7189 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetPollingMax. Expected _wxJoystick_p.");
7190 return NULL;
7191 }
7192 }
7193{
0e2ff151 7194 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7195 _result = (int )wxJoystick_GetPollingMax(_arg0);
7196
0e2ff151
RD
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) return NULL;
e6056257
RD
7199} _resultobj = Py_BuildValue("i",_result);
7200 return _resultobj;
7201}
7202
7203#define wxJoystick_GetRudderMin(_swigobj) (_swigobj->GetRudderMin())
7204static PyObject *_wrap_wxJoystick_GetRudderMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject * _resultobj;
7206 int _result;
7207 wxJoystick * _arg0;
7208 PyObject * _argo0 = 0;
7209 char *_kwnames[] = { "self", NULL };
7210
7211 self = self;
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMin",_kwnames,&_argo0))
7213 return NULL;
7214 if (_argo0) {
7215 if (_argo0 == Py_None) { _arg0 = NULL; }
7216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMin. Expected _wxJoystick_p.");
7218 return NULL;
7219 }
7220 }
7221{
0e2ff151 7222 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7223 _result = (int )wxJoystick_GetRudderMin(_arg0);
7224
0e2ff151
RD
7225 wxPyEndAllowThreads(__tstate);
7226 if (PyErr_Occurred()) return NULL;
e6056257
RD
7227} _resultobj = Py_BuildValue("i",_result);
7228 return _resultobj;
7229}
7230
7231#define wxJoystick_GetRudderMax(_swigobj) (_swigobj->GetRudderMax())
7232static PyObject *_wrap_wxJoystick_GetRudderMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7233 PyObject * _resultobj;
7234 int _result;
7235 wxJoystick * _arg0;
7236 PyObject * _argo0 = 0;
7237 char *_kwnames[] = { "self", NULL };
7238
7239 self = self;
7240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetRudderMax",_kwnames,&_argo0))
7241 return NULL;
7242 if (_argo0) {
7243 if (_argo0 == Py_None) { _arg0 = NULL; }
7244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetRudderMax. Expected _wxJoystick_p.");
7246 return NULL;
7247 }
7248 }
7249{
0e2ff151 7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7251 _result = (int )wxJoystick_GetRudderMax(_arg0);
7252
0e2ff151
RD
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) return NULL;
e6056257
RD
7255} _resultobj = Py_BuildValue("i",_result);
7256 return _resultobj;
7257}
7258
7259#define wxJoystick_GetUMin(_swigobj) (_swigobj->GetUMin())
7260static PyObject *_wrap_wxJoystick_GetUMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7261 PyObject * _resultobj;
7262 int _result;
7263 wxJoystick * _arg0;
7264 PyObject * _argo0 = 0;
7265 char *_kwnames[] = { "self", NULL };
7266
7267 self = self;
7268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMin",_kwnames,&_argo0))
7269 return NULL;
7270 if (_argo0) {
7271 if (_argo0 == Py_None) { _arg0 = NULL; }
7272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMin. Expected _wxJoystick_p.");
7274 return NULL;
7275 }
7276 }
7277{
0e2ff151 7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7279 _result = (int )wxJoystick_GetUMin(_arg0);
7280
0e2ff151
RD
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) return NULL;
e6056257
RD
7283} _resultobj = Py_BuildValue("i",_result);
7284 return _resultobj;
7285}
7286
7287#define wxJoystick_GetUMax(_swigobj) (_swigobj->GetUMax())
7288static PyObject *_wrap_wxJoystick_GetUMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7289 PyObject * _resultobj;
7290 int _result;
7291 wxJoystick * _arg0;
7292 PyObject * _argo0 = 0;
7293 char *_kwnames[] = { "self", NULL };
7294
7295 self = self;
7296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetUMax",_kwnames,&_argo0))
7297 return NULL;
7298 if (_argo0) {
7299 if (_argo0 == Py_None) { _arg0 = NULL; }
7300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetUMax. Expected _wxJoystick_p.");
7302 return NULL;
7303 }
7304 }
7305{
0e2ff151 7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7307 _result = (int )wxJoystick_GetUMax(_arg0);
7308
0e2ff151
RD
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) return NULL;
e6056257
RD
7311} _resultobj = Py_BuildValue("i",_result);
7312 return _resultobj;
7313}
7314
7315#define wxJoystick_GetVMin(_swigobj) (_swigobj->GetVMin())
7316static PyObject *_wrap_wxJoystick_GetVMin(PyObject *self, PyObject *args, PyObject *kwargs) {
7317 PyObject * _resultobj;
7318 int _result;
7319 wxJoystick * _arg0;
7320 PyObject * _argo0 = 0;
7321 char *_kwnames[] = { "self", NULL };
7322
7323 self = self;
7324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMin",_kwnames,&_argo0))
7325 return NULL;
7326 if (_argo0) {
7327 if (_argo0 == Py_None) { _arg0 = NULL; }
7328 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7329 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMin. Expected _wxJoystick_p.");
7330 return NULL;
7331 }
7332 }
7333{
0e2ff151 7334 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7335 _result = (int )wxJoystick_GetVMin(_arg0);
7336
0e2ff151
RD
7337 wxPyEndAllowThreads(__tstate);
7338 if (PyErr_Occurred()) return NULL;
e6056257
RD
7339} _resultobj = Py_BuildValue("i",_result);
7340 return _resultobj;
7341}
7342
7343#define wxJoystick_GetVMax(_swigobj) (_swigobj->GetVMax())
7344static PyObject *_wrap_wxJoystick_GetVMax(PyObject *self, PyObject *args, PyObject *kwargs) {
7345 PyObject * _resultobj;
7346 int _result;
7347 wxJoystick * _arg0;
7348 PyObject * _argo0 = 0;
7349 char *_kwnames[] = { "self", NULL };
7350
7351 self = self;
7352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_GetVMax",_kwnames,&_argo0))
7353 return NULL;
7354 if (_argo0) {
7355 if (_argo0 == Py_None) { _arg0 = NULL; }
7356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_GetVMax. Expected _wxJoystick_p.");
7358 return NULL;
7359 }
7360 }
7361{
0e2ff151 7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7363 _result = (int )wxJoystick_GetVMax(_arg0);
7364
0e2ff151
RD
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) return NULL;
e6056257
RD
7367} _resultobj = Py_BuildValue("i",_result);
7368 return _resultobj;
7369}
7370
7371#define wxJoystick_HasRudder(_swigobj) (_swigobj->HasRudder())
7372static PyObject *_wrap_wxJoystick_HasRudder(PyObject *self, PyObject *args, PyObject *kwargs) {
7373 PyObject * _resultobj;
7374 bool _result;
7375 wxJoystick * _arg0;
7376 PyObject * _argo0 = 0;
7377 char *_kwnames[] = { "self", NULL };
7378
7379 self = self;
7380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasRudder",_kwnames,&_argo0))
7381 return NULL;
7382 if (_argo0) {
7383 if (_argo0 == Py_None) { _arg0 = NULL; }
7384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasRudder. Expected _wxJoystick_p.");
7386 return NULL;
7387 }
7388 }
7389{
0e2ff151 7390 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7391 _result = (bool )wxJoystick_HasRudder(_arg0);
7392
0e2ff151
RD
7393 wxPyEndAllowThreads(__tstate);
7394 if (PyErr_Occurred()) return NULL;
e6056257
RD
7395} _resultobj = Py_BuildValue("i",_result);
7396 return _resultobj;
7397}
7398
7399#define wxJoystick_HasZ(_swigobj) (_swigobj->HasZ())
7400static PyObject *_wrap_wxJoystick_HasZ(PyObject *self, PyObject *args, PyObject *kwargs) {
7401 PyObject * _resultobj;
7402 bool _result;
7403 wxJoystick * _arg0;
7404 PyObject * _argo0 = 0;
7405 char *_kwnames[] = { "self", NULL };
7406
7407 self = self;
7408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasZ",_kwnames,&_argo0))
7409 return NULL;
7410 if (_argo0) {
7411 if (_argo0 == Py_None) { _arg0 = NULL; }
7412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasZ. Expected _wxJoystick_p.");
7414 return NULL;
7415 }
7416 }
7417{
0e2ff151 7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7419 _result = (bool )wxJoystick_HasZ(_arg0);
7420
0e2ff151
RD
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) return NULL;
e6056257
RD
7423} _resultobj = Py_BuildValue("i",_result);
7424 return _resultobj;
7425}
7426
7427#define wxJoystick_HasU(_swigobj) (_swigobj->HasU())
7428static PyObject *_wrap_wxJoystick_HasU(PyObject *self, PyObject *args, PyObject *kwargs) {
7429 PyObject * _resultobj;
7430 bool _result;
7431 wxJoystick * _arg0;
7432 PyObject * _argo0 = 0;
7433 char *_kwnames[] = { "self", NULL };
7434
7435 self = self;
7436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasU",_kwnames,&_argo0))
7437 return NULL;
7438 if (_argo0) {
7439 if (_argo0 == Py_None) { _arg0 = NULL; }
7440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasU. Expected _wxJoystick_p.");
7442 return NULL;
7443 }
7444 }
7445{
0e2ff151 7446 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7447 _result = (bool )wxJoystick_HasU(_arg0);
7448
0e2ff151
RD
7449 wxPyEndAllowThreads(__tstate);
7450 if (PyErr_Occurred()) return NULL;
e6056257
RD
7451} _resultobj = Py_BuildValue("i",_result);
7452 return _resultobj;
7453}
7454
7455#define wxJoystick_HasV(_swigobj) (_swigobj->HasV())
7456static PyObject *_wrap_wxJoystick_HasV(PyObject *self, PyObject *args, PyObject *kwargs) {
7457 PyObject * _resultobj;
7458 bool _result;
7459 wxJoystick * _arg0;
7460 PyObject * _argo0 = 0;
7461 char *_kwnames[] = { "self", NULL };
7462
7463 self = self;
7464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasV",_kwnames,&_argo0))
7465 return NULL;
7466 if (_argo0) {
7467 if (_argo0 == Py_None) { _arg0 = NULL; }
7468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasV. Expected _wxJoystick_p.");
7470 return NULL;
7471 }
7472 }
7473{
0e2ff151 7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7475 _result = (bool )wxJoystick_HasV(_arg0);
7476
0e2ff151
RD
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) return NULL;
e6056257
RD
7479} _resultobj = Py_BuildValue("i",_result);
7480 return _resultobj;
7481}
7482
7483#define wxJoystick_HasPOV(_swigobj) (_swigobj->HasPOV())
7484static PyObject *_wrap_wxJoystick_HasPOV(PyObject *self, PyObject *args, PyObject *kwargs) {
7485 PyObject * _resultobj;
7486 bool _result;
7487 wxJoystick * _arg0;
7488 PyObject * _argo0 = 0;
7489 char *_kwnames[] = { "self", NULL };
7490
7491 self = self;
7492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV",_kwnames,&_argo0))
7493 return NULL;
7494 if (_argo0) {
7495 if (_argo0 == Py_None) { _arg0 = NULL; }
7496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV. Expected _wxJoystick_p.");
7498 return NULL;
7499 }
7500 }
7501{
0e2ff151 7502 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7503 _result = (bool )wxJoystick_HasPOV(_arg0);
7504
0e2ff151
RD
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) return NULL;
e6056257
RD
7507} _resultobj = Py_BuildValue("i",_result);
7508 return _resultobj;
7509}
7510
7511#define wxJoystick_HasPOV4Dir(_swigobj) (_swigobj->HasPOV4Dir())
7512static PyObject *_wrap_wxJoystick_HasPOV4Dir(PyObject *self, PyObject *args, PyObject *kwargs) {
7513 PyObject * _resultobj;
7514 bool _result;
7515 wxJoystick * _arg0;
7516 PyObject * _argo0 = 0;
7517 char *_kwnames[] = { "self", NULL };
7518
7519 self = self;
7520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOV4Dir",_kwnames,&_argo0))
7521 return NULL;
7522 if (_argo0) {
7523 if (_argo0 == Py_None) { _arg0 = NULL; }
7524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOV4Dir. Expected _wxJoystick_p.");
7526 return NULL;
7527 }
7528 }
7529{
0e2ff151 7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7531 _result = (bool )wxJoystick_HasPOV4Dir(_arg0);
7532
0e2ff151
RD
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) return NULL;
e6056257
RD
7535} _resultobj = Py_BuildValue("i",_result);
7536 return _resultobj;
7537}
7538
7539#define wxJoystick_HasPOVCTS(_swigobj) (_swigobj->HasPOVCTS())
7540static PyObject *_wrap_wxJoystick_HasPOVCTS(PyObject *self, PyObject *args, PyObject *kwargs) {
7541 PyObject * _resultobj;
7542 bool _result;
7543 wxJoystick * _arg0;
7544 PyObject * _argo0 = 0;
7545 char *_kwnames[] = { "self", NULL };
7546
7547 self = self;
7548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_HasPOVCTS",_kwnames,&_argo0))
7549 return NULL;
7550 if (_argo0) {
7551 if (_argo0 == Py_None) { _arg0 = NULL; }
7552 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7553 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_HasPOVCTS. Expected _wxJoystick_p.");
7554 return NULL;
7555 }
7556 }
7557{
0e2ff151 7558 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7559 _result = (bool )wxJoystick_HasPOVCTS(_arg0);
7560
0e2ff151
RD
7561 wxPyEndAllowThreads(__tstate);
7562 if (PyErr_Occurred()) return NULL;
e6056257
RD
7563} _resultobj = Py_BuildValue("i",_result);
7564 return _resultobj;
7565}
7566
7567#define wxJoystick_SetCapture(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetCapture(_swigarg0,_swigarg1))
7568static PyObject *_wrap_wxJoystick_SetCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
7569 PyObject * _resultobj;
7570 bool _result;
7571 wxJoystick * _arg0;
7572 wxWindow * _arg1;
7573 int _arg2 = (int ) 0;
7574 PyObject * _argo0 = 0;
7575 PyObject * _argo1 = 0;
7576 char *_kwnames[] = { "self","win","pollingFreq", NULL };
7577
7578 self = self;
7579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxJoystick_SetCapture",_kwnames,&_argo0,&_argo1,&_arg2))
7580 return NULL;
7581 if (_argo0) {
7582 if (_argo0 == Py_None) { _arg0 = NULL; }
7583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_SetCapture. Expected _wxJoystick_p.");
7585 return NULL;
7586 }
7587 }
7588 if (_argo1) {
7589 if (_argo1 == Py_None) { _arg1 = NULL; }
7590 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7591 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxJoystick_SetCapture. Expected _wxWindow_p.");
7592 return NULL;
7593 }
7594 }
7595{
0e2ff151 7596 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7597 _result = (bool )wxJoystick_SetCapture(_arg0,_arg1,_arg2);
7598
0e2ff151
RD
7599 wxPyEndAllowThreads(__tstate);
7600 if (PyErr_Occurred()) return NULL;
e6056257
RD
7601} _resultobj = Py_BuildValue("i",_result);
7602 return _resultobj;
7603}
7604
7605#define wxJoystick_ReleaseCapture(_swigobj) (_swigobj->ReleaseCapture())
7606static PyObject *_wrap_wxJoystick_ReleaseCapture(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject * _resultobj;
7608 bool _result;
7609 wxJoystick * _arg0;
7610 PyObject * _argo0 = 0;
7611 char *_kwnames[] = { "self", NULL };
7612
7613 self = self;
7614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxJoystick_ReleaseCapture",_kwnames,&_argo0))
7615 return NULL;
7616 if (_argo0) {
7617 if (_argo0 == Py_None) { _arg0 = NULL; }
7618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxJoystick_p")) {
7619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxJoystick_ReleaseCapture. Expected _wxJoystick_p.");
7620 return NULL;
7621 }
7622 }
7623{
0e2ff151 7624 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7625 _result = (bool )wxJoystick_ReleaseCapture(_arg0);
7626
0e2ff151
RD
7627 wxPyEndAllowThreads(__tstate);
7628 if (PyErr_Occurred()) return NULL;
e6056257
RD
7629} _resultobj = Py_BuildValue("i",_result);
7630 return _resultobj;
7631}
7632
7633static void *SwigwxWaveTowxObject(void *ptr) {
7634 wxWave *src;
7635 wxObject *dest;
7636 src = (wxWave *) ptr;
7637 dest = (wxObject *) src;
7638 return (void *) dest;
7639}
7640
7641#define new_wxWave(_swigarg0,_swigarg1) (new wxWave(_swigarg0,_swigarg1))
7642static PyObject *_wrap_new_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) {
7643 PyObject * _resultobj;
7644 wxWave * _result;
7645 wxString * _arg0;
7646 bool _arg1 = (bool ) FALSE;
7647 PyObject * _obj0 = 0;
7648 int tempbool1 = (int) FALSE;
7649 char *_kwnames[] = { "fileName","isResource", NULL };
7650 char _ptemp[128];
7651
7652 self = self;
7653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxWave",_kwnames,&_obj0,&tempbool1))
7654 return NULL;
7655{
7656#if PYTHON_API_VERSION >= 1009
7657 char* tmpPtr; int tmpSize;
7658 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
7659 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7660 return NULL;
7661 }
7662 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
7663 return NULL;
7664 _arg0 = new wxString(tmpPtr, tmpSize);
7665#else
7666 if (!PyString_Check(_obj0)) {
7667 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7668 return NULL;
7669 }
7670 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
7671#endif
7672}
7673 _arg1 = (bool ) tempbool1;
7674{
0e2ff151 7675 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7676 _result = (wxWave *)new_wxWave(*_arg0,_arg1);
7677
0e2ff151
RD
7678 wxPyEndAllowThreads(__tstate);
7679 if (PyErr_Occurred()) return NULL;
e6056257
RD
7680} if (_result) {
7681 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWave_p");
7682 _resultobj = Py_BuildValue("s",_ptemp);
7683 } else {
7684 Py_INCREF(Py_None);
7685 _resultobj = Py_None;
7686 }
7687{
7688 if (_obj0)
7689 delete _arg0;
7690}
7691 return _resultobj;
7692}
7693
7694#define delete_wxWave(_swigobj) (delete _swigobj)
7695static PyObject *_wrap_delete_wxWave(PyObject *self, PyObject *args, PyObject *kwargs) {
7696 PyObject * _resultobj;
7697 wxWave * _arg0;
7698 PyObject * _argo0 = 0;
7699 char *_kwnames[] = { "self", NULL };
7700
7701 self = self;
7702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxWave",_kwnames,&_argo0))
7703 return NULL;
7704 if (_argo0) {
7705 if (_argo0 == Py_None) { _arg0 = NULL; }
7706 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7707 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxWave. Expected _wxWave_p.");
7708 return NULL;
7709 }
7710 }
7711{
0e2ff151 7712 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7713 delete_wxWave(_arg0);
7714
0e2ff151
RD
7715 wxPyEndAllowThreads(__tstate);
7716 if (PyErr_Occurred()) return NULL;
e6056257
RD
7717} Py_INCREF(Py_None);
7718 _resultobj = Py_None;
7719 return _resultobj;
7720}
7721
7722#define wxWave_IsOk(_swigobj) (_swigobj->IsOk())
7723static PyObject *_wrap_wxWave_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
7724 PyObject * _resultobj;
7725 bool _result;
7726 wxWave * _arg0;
7727 PyObject * _argo0 = 0;
7728 char *_kwnames[] = { "self", NULL };
7729
7730 self = self;
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxWave_IsOk",_kwnames,&_argo0))
7732 return NULL;
7733 if (_argo0) {
7734 if (_argo0 == Py_None) { _arg0 = NULL; }
7735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_IsOk. Expected _wxWave_p.");
7737 return NULL;
7738 }
7739 }
7740{
0e2ff151 7741 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7742 _result = (bool )wxWave_IsOk(_arg0);
7743
0e2ff151
RD
7744 wxPyEndAllowThreads(__tstate);
7745 if (PyErr_Occurred()) return NULL;
e6056257
RD
7746} _resultobj = Py_BuildValue("i",_result);
7747 return _resultobj;
7748}
7749
7750#define wxWave_Play(_swigobj,_swigarg0,_swigarg1) (_swigobj->Play(_swigarg0,_swigarg1))
7751static PyObject *_wrap_wxWave_Play(PyObject *self, PyObject *args, PyObject *kwargs) {
7752 PyObject * _resultobj;
7753 bool _result;
7754 wxWave * _arg0;
7755 bool _arg1 = (bool ) TRUE;
7756 bool _arg2 = (bool ) FALSE;
7757 PyObject * _argo0 = 0;
7758 int tempbool1 = (int) TRUE;
7759 int tempbool2 = (int) FALSE;
7760 char *_kwnames[] = { "self","async","looped", NULL };
7761
7762 self = self;
7763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxWave_Play",_kwnames,&_argo0,&tempbool1,&tempbool2))
7764 return NULL;
7765 if (_argo0) {
7766 if (_argo0 == Py_None) { _arg0 = NULL; }
7767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWave_p")) {
7768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxWave_Play. Expected _wxWave_p.");
7769 return NULL;
7770 }
7771 }
7772 _arg1 = (bool ) tempbool1;
7773 _arg2 = (bool ) tempbool2;
7774{
0e2ff151 7775 PyThreadState* __tstate = wxPyBeginAllowThreads();
e6056257
RD
7776 _result = (bool )wxWave_Play(_arg0,_arg1,_arg2);
7777
0e2ff151
RD
7778 wxPyEndAllowThreads(__tstate);
7779 if (PyErr_Occurred()) return NULL;
e6056257
RD
7780} _resultobj = Py_BuildValue("i",_result);
7781 return _resultobj;
7782}
7783
b6e5c445
RD
7784#define new_wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxFileTypeInfo(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7785static PyObject *_wrap_new_wxFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7786 PyObject * _resultobj;
7787 wxFileTypeInfo * _result;
7788 char * _arg0;
7789 char * _arg1;
7790 char * _arg2;
7791 char * _arg3;
7792 char *_kwnames[] = { "mimeType","openCmd","printCmd","desc", NULL };
7793 char _ptemp[128];
7794
7795 self = self;
7796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ssss:new_wxFileTypeInfo",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
7797 return NULL;
7798{
0e2ff151 7799 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
7800 _result = (wxFileTypeInfo *)new_wxFileTypeInfo(_arg0,_arg1,_arg2,_arg3);
7801
0e2ff151
RD
7802 wxPyEndAllowThreads(__tstate);
7803 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
7804} if (_result) {
7805 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
7806 _resultobj = Py_BuildValue("s",_ptemp);
7807 } else {
7808 Py_INCREF(Py_None);
7809 _resultobj = Py_None;
7810 }
7811 return _resultobj;
7812}
7813
7814#define new_wxFileTypeInfoSequence(_swigarg0) (new wxFileTypeInfo(_swigarg0))
7815static PyObject *_wrap_new_wxFileTypeInfoSequence(PyObject *self, PyObject *args, PyObject *kwargs) {
7816 PyObject * _resultobj;
7817 wxFileTypeInfo * _result;
7818 wxArrayString * _arg0;
7819 PyObject * _obj0 = 0;
7820 char *_kwnames[] = { "sArray", NULL };
7821 char _ptemp[128];
7822
7823 self = self;
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileTypeInfoSequence",_kwnames,&_obj0))
7825 return NULL;
7826{
7827 if (! PySequence_Check(_obj0)) {
7828 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
7829 return NULL;
7830 }
7831 _arg0 = new wxArrayString;
7832 int i, len=PySequence_Length(_obj0);
7833 for (i=0; i<len; i++) {
7834 PyObject* item = PySequence_GetItem(_obj0, i);
7835 PyObject* str = PyObject_Str(item);
7836 _arg0->Add(PyString_AsString(item));
7837 Py_DECREF(item);
7838 Py_DECREF(str);
7839 }
7840}
7841{
0e2ff151 7842 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
7843 _result = (wxFileTypeInfo *)new_wxFileTypeInfoSequence(*_arg0);
7844
0e2ff151
RD
7845 wxPyEndAllowThreads(__tstate);
7846 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
7847} if (_result) {
7848 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
7849 _resultobj = Py_BuildValue("s",_ptemp);
7850 } else {
7851 Py_INCREF(Py_None);
7852 _resultobj = Py_None;
7853 }
7854{
7855 if (_obj0)
7856 delete _arg0;
7857}
7858 return _resultobj;
7859}
7860
7861#define new_wxNullFileTypeInfo() (new wxFileTypeInfo())
7862static PyObject *_wrap_new_wxNullFileTypeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7863 PyObject * _resultobj;
7864 wxFileTypeInfo * _result;
7865 char *_kwnames[] = { NULL };
7866 char _ptemp[128];
7867
7868 self = self;
7869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxNullFileTypeInfo",_kwnames))
7870 return NULL;
7871{
0e2ff151 7872 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
7873 _result = (wxFileTypeInfo *)new_wxNullFileTypeInfo();
7874
0e2ff151
RD
7875 wxPyEndAllowThreads(__tstate);
7876 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
7877} if (_result) {
7878 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileTypeInfo_p");
7879 _resultobj = Py_BuildValue("s",_ptemp);
7880 } else {
7881 Py_INCREF(Py_None);
7882 _resultobj = Py_None;
7883 }
7884 return _resultobj;
7885}
7886
7887#define wxFileTypeInfo_IsValid(_swigobj) (_swigobj->IsValid())
7888static PyObject *_wrap_wxFileTypeInfo_IsValid(PyObject *self, PyObject *args, PyObject *kwargs) {
7889 PyObject * _resultobj;
7890 bool _result;
7891 wxFileTypeInfo * _arg0;
7892 PyObject * _argo0 = 0;
7893 char *_kwnames[] = { "self", NULL };
7894
7895 self = self;
7896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_IsValid",_kwnames,&_argo0))
7897 return NULL;
7898 if (_argo0) {
7899 if (_argo0 == Py_None) { _arg0 = NULL; }
7900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_IsValid. Expected _wxFileTypeInfo_p.");
7902 return NULL;
7903 }
7904 }
7905{
0e2ff151 7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
7907 _result = (bool )wxFileTypeInfo_IsValid(_arg0);
7908
0e2ff151
RD
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
7911} _resultobj = Py_BuildValue("i",_result);
7912 return _resultobj;
7913}
7914
7915#define wxFileTypeInfo_SetIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetIcon(_swigarg0,_swigarg1))
7916static PyObject *_wrap_wxFileTypeInfo_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
7917 PyObject * _resultobj;
7918 wxFileTypeInfo * _arg0;
7919 wxString * _arg1;
7920 int _arg2 = (int ) 0;
7921 PyObject * _argo0 = 0;
7922 PyObject * _obj1 = 0;
7923 char *_kwnames[] = { "self","iconFile","iconIndex", NULL };
7924
7925 self = self;
7926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFileTypeInfo_SetIcon",_kwnames,&_argo0,&_obj1,&_arg2))
7927 return NULL;
7928 if (_argo0) {
7929 if (_argo0 == Py_None) { _arg0 = NULL; }
7930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetIcon. Expected _wxFileTypeInfo_p.");
7932 return NULL;
7933 }
7934 }
7935{
7936#if PYTHON_API_VERSION >= 1009
7937 char* tmpPtr; int tmpSize;
7938 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7939 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7940 return NULL;
7941 }
7942 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7943 return NULL;
7944 _arg1 = new wxString(tmpPtr, tmpSize);
7945#else
7946 if (!PyString_Check(_obj1)) {
7947 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7948 return NULL;
7949 }
7950 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7951#endif
7952}
7953{
0e2ff151 7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
7955 wxFileTypeInfo_SetIcon(_arg0,*_arg1,_arg2);
7956
0e2ff151
RD
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
7959} Py_INCREF(Py_None);
7960 _resultobj = Py_None;
7961{
7962 if (_obj1)
7963 delete _arg1;
7964}
7965 return _resultobj;
7966}
7967
7968#define wxFileTypeInfo_SetShortDesc(_swigobj,_swigarg0) (_swigobj->SetShortDesc(_swigarg0))
7969static PyObject *_wrap_wxFileTypeInfo_SetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7970 PyObject * _resultobj;
7971 wxFileTypeInfo * _arg0;
7972 wxString * _arg1;
7973 PyObject * _argo0 = 0;
7974 PyObject * _obj1 = 0;
7975 char *_kwnames[] = { "self","shortDesc", NULL };
7976
7977 self = self;
7978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileTypeInfo_SetShortDesc",_kwnames,&_argo0,&_obj1))
7979 return NULL;
7980 if (_argo0) {
7981 if (_argo0 == Py_None) { _arg0 = NULL; }
7982 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
7983 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_SetShortDesc. Expected _wxFileTypeInfo_p.");
7984 return NULL;
7985 }
7986 }
7987{
7988#if PYTHON_API_VERSION >= 1009
7989 char* tmpPtr; int tmpSize;
7990 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7991 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7992 return NULL;
7993 }
7994 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7995 return NULL;
7996 _arg1 = new wxString(tmpPtr, tmpSize);
7997#else
7998 if (!PyString_Check(_obj1)) {
7999 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8000 return NULL;
8001 }
8002 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8003#endif
8004}
8005{
0e2ff151 8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8007 wxFileTypeInfo_SetShortDesc(_arg0,*_arg1);
8008
0e2ff151
RD
8009 wxPyEndAllowThreads(__tstate);
8010 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8011} Py_INCREF(Py_None);
8012 _resultobj = Py_None;
8013{
8014 if (_obj1)
8015 delete _arg1;
8016}
8017 return _resultobj;
8018}
8019
8020#define wxFileTypeInfo_GetMimeType(_swigobj) (_swigobj->GetMimeType())
8021static PyObject *_wrap_wxFileTypeInfo_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8022 PyObject * _resultobj;
8023 wxString * _result;
8024 wxFileTypeInfo * _arg0;
8025 PyObject * _argo0 = 0;
8026 char *_kwnames[] = { "self", NULL };
8027
8028 self = self;
8029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetMimeType",_kwnames,&_argo0))
8030 return NULL;
8031 if (_argo0) {
8032 if (_argo0 == Py_None) { _arg0 = NULL; }
8033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetMimeType. Expected _wxFileTypeInfo_p.");
8035 return NULL;
8036 }
8037 }
8038{
0e2ff151 8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8040 const wxString & _result_ref = wxFileTypeInfo_GetMimeType(_arg0);
8041 _result = (wxString *) &_result_ref;
8042
0e2ff151
RD
8043 wxPyEndAllowThreads(__tstate);
8044 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8045}{
8046 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8047}
8048 return _resultobj;
8049}
8050
8051#define wxFileTypeInfo_GetOpenCommand(_swigobj) (_swigobj->GetOpenCommand())
8052static PyObject *_wrap_wxFileTypeInfo_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject * _resultobj;
8054 wxString * _result;
8055 wxFileTypeInfo * _arg0;
8056 PyObject * _argo0 = 0;
8057 char *_kwnames[] = { "self", NULL };
8058
8059 self = self;
8060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetOpenCommand",_kwnames,&_argo0))
8061 return NULL;
8062 if (_argo0) {
8063 if (_argo0 == Py_None) { _arg0 = NULL; }
8064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetOpenCommand. Expected _wxFileTypeInfo_p.");
8066 return NULL;
8067 }
8068 }
8069{
0e2ff151 8070 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8071 const wxString & _result_ref = wxFileTypeInfo_GetOpenCommand(_arg0);
8072 _result = (wxString *) &_result_ref;
8073
0e2ff151
RD
8074 wxPyEndAllowThreads(__tstate);
8075 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8076}{
8077 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8078}
8079 return _resultobj;
8080}
8081
8082#define wxFileTypeInfo_GetPrintCommand(_swigobj) (_swigobj->GetPrintCommand())
8083static PyObject *_wrap_wxFileTypeInfo_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject * _resultobj;
8085 wxString * _result;
8086 wxFileTypeInfo * _arg0;
8087 PyObject * _argo0 = 0;
8088 char *_kwnames[] = { "self", NULL };
8089
8090 self = self;
8091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetPrintCommand",_kwnames,&_argo0))
8092 return NULL;
8093 if (_argo0) {
8094 if (_argo0 == Py_None) { _arg0 = NULL; }
8095 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8096 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetPrintCommand. Expected _wxFileTypeInfo_p.");
8097 return NULL;
8098 }
8099 }
8100{
0e2ff151 8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8102 const wxString & _result_ref = wxFileTypeInfo_GetPrintCommand(_arg0);
8103 _result = (wxString *) &_result_ref;
8104
0e2ff151
RD
8105 wxPyEndAllowThreads(__tstate);
8106 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8107}{
8108 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8109}
8110 return _resultobj;
8111}
8112
8113#define wxFileTypeInfo_GetShortDesc(_swigobj) (_swigobj->GetShortDesc())
8114static PyObject *_wrap_wxFileTypeInfo_GetShortDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8115 PyObject * _resultobj;
8116 wxString * _result;
8117 wxFileTypeInfo * _arg0;
8118 PyObject * _argo0 = 0;
8119 char *_kwnames[] = { "self", NULL };
8120
8121 self = self;
8122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetShortDesc",_kwnames,&_argo0))
8123 return NULL;
8124 if (_argo0) {
8125 if (_argo0 == Py_None) { _arg0 = NULL; }
8126 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8127 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetShortDesc. Expected _wxFileTypeInfo_p.");
8128 return NULL;
8129 }
8130 }
8131{
0e2ff151 8132 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8133 const wxString & _result_ref = wxFileTypeInfo_GetShortDesc(_arg0);
8134 _result = (wxString *) &_result_ref;
8135
0e2ff151
RD
8136 wxPyEndAllowThreads(__tstate);
8137 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8138}{
8139 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8140}
8141 return _resultobj;
8142}
8143
8144#define wxFileTypeInfo_GetDescription(_swigobj) (_swigobj->GetDescription())
8145static PyObject *_wrap_wxFileTypeInfo_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
8146 PyObject * _resultobj;
8147 wxString * _result;
8148 wxFileTypeInfo * _arg0;
8149 PyObject * _argo0 = 0;
8150 char *_kwnames[] = { "self", NULL };
8151
8152 self = self;
8153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetDescription",_kwnames,&_argo0))
8154 return NULL;
8155 if (_argo0) {
8156 if (_argo0 == Py_None) { _arg0 = NULL; }
8157 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8158 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetDescription. Expected _wxFileTypeInfo_p.");
8159 return NULL;
8160 }
8161 }
8162{
0e2ff151 8163 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8164 const wxString & _result_ref = wxFileTypeInfo_GetDescription(_arg0);
8165 _result = (wxString *) &_result_ref;
8166
0e2ff151
RD
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8169}{
8170 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8171}
8172 return _resultobj;
8173}
8174
8175static PyObject * wxFileTypeInfo_GetExtensions(wxFileTypeInfo *self) {
8176 wxArrayString& arr = (wxArrayString&)self->GetExtensions();
8177 return wxArrayString2PyList_helper(arr);
8178 }
8179static PyObject *_wrap_wxFileTypeInfo_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
8180 PyObject * _resultobj;
8181 PyObject * _result;
8182 wxFileTypeInfo * _arg0;
8183 PyObject * _argo0 = 0;
8184 char *_kwnames[] = { "self", NULL };
8185
8186 self = self;
8187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensions",_kwnames,&_argo0))
8188 return NULL;
8189 if (_argo0) {
8190 if (_argo0 == Py_None) { _arg0 = NULL; }
8191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensions. Expected _wxFileTypeInfo_p.");
8193 return NULL;
8194 }
8195 }
8196{
0e2ff151 8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8198 _result = (PyObject *)wxFileTypeInfo_GetExtensions(_arg0);
8199
0e2ff151
RD
8200 wxPyEndAllowThreads(__tstate);
8201 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8202}{
8203 _resultobj = _result;
8204}
8205 return _resultobj;
8206}
8207
8208#define wxFileTypeInfo_GetExtensionsCount(_swigobj) (_swigobj->GetExtensionsCount())
8209static PyObject *_wrap_wxFileTypeInfo_GetExtensionsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8210 PyObject * _resultobj;
8211 int _result;
8212 wxFileTypeInfo * _arg0;
8213 PyObject * _argo0 = 0;
8214 char *_kwnames[] = { "self", NULL };
8215
8216 self = self;
8217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetExtensionsCount",_kwnames,&_argo0))
8218 return NULL;
8219 if (_argo0) {
8220 if (_argo0 == Py_None) { _arg0 = NULL; }
8221 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8222 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetExtensionsCount. Expected _wxFileTypeInfo_p.");
8223 return NULL;
8224 }
8225 }
8226{
0e2ff151 8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8228 _result = (int )wxFileTypeInfo_GetExtensionsCount(_arg0);
8229
0e2ff151
RD
8230 wxPyEndAllowThreads(__tstate);
8231 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8232} _resultobj = Py_BuildValue("i",_result);
8233 return _resultobj;
8234}
8235
8236#define wxFileTypeInfo_GetIconFile(_swigobj) (_swigobj->GetIconFile())
8237static PyObject *_wrap_wxFileTypeInfo_GetIconFile(PyObject *self, PyObject *args, PyObject *kwargs) {
8238 PyObject * _resultobj;
8239 wxString * _result;
8240 wxFileTypeInfo * _arg0;
8241 PyObject * _argo0 = 0;
8242 char *_kwnames[] = { "self", NULL };
8243
8244 self = self;
8245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconFile",_kwnames,&_argo0))
8246 return NULL;
8247 if (_argo0) {
8248 if (_argo0 == Py_None) { _arg0 = NULL; }
8249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconFile. Expected _wxFileTypeInfo_p.");
8251 return NULL;
8252 }
8253 }
8254{
0e2ff151 8255 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8256 const wxString & _result_ref = wxFileTypeInfo_GetIconFile(_arg0);
8257 _result = (wxString *) &_result_ref;
8258
0e2ff151
RD
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8261}{
8262 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
8263}
8264 return _resultobj;
8265}
8266
8267#define wxFileTypeInfo_GetIconIndex(_swigobj) (_swigobj->GetIconIndex())
8268static PyObject *_wrap_wxFileTypeInfo_GetIconIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
8269 PyObject * _resultobj;
8270 int _result;
8271 wxFileTypeInfo * _arg0;
8272 PyObject * _argo0 = 0;
8273 char *_kwnames[] = { "self", NULL };
8274
8275 self = self;
8276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileTypeInfo_GetIconIndex",_kwnames,&_argo0))
8277 return NULL;
8278 if (_argo0) {
8279 if (_argo0 == Py_None) { _arg0 = NULL; }
8280 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8281 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileTypeInfo_GetIconIndex. Expected _wxFileTypeInfo_p.");
8282 return NULL;
8283 }
8284 }
8285{
0e2ff151 8286 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8287 _result = (int )wxFileTypeInfo_GetIconIndex(_arg0);
8288
0e2ff151
RD
8289 wxPyEndAllowThreads(__tstate);
8290 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8291} _resultobj = Py_BuildValue("i",_result);
8292 return _resultobj;
8293}
8294
8295#define new_wxFileType(_swigarg0) (new wxFileType(_swigarg0))
8296static PyObject *_wrap_new_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) {
8297 PyObject * _resultobj;
8298 wxFileType * _result;
8299 wxFileTypeInfo * _arg0;
8300 PyObject * _argo0 = 0;
8301 char *_kwnames[] = { "ftInfo", NULL };
8302 char _ptemp[128];
8303
8304 self = self;
8305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFileType",_kwnames,&_argo0))
8306 return NULL;
8307 if (_argo0) {
8308 if (_argo0 == Py_None) { _arg0 = NULL; }
8309 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileTypeInfo_p")) {
8310 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFileType. Expected _wxFileTypeInfo_p.");
8311 return NULL;
8312 }
8313 }
8314{
0e2ff151 8315 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8316 _result = (wxFileType *)new_wxFileType(*_arg0);
8317
0e2ff151
RD
8318 wxPyEndAllowThreads(__tstate);
8319 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8320} if (_result) {
8321 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
8322 _resultobj = Py_BuildValue("s",_ptemp);
8323 } else {
8324 Py_INCREF(Py_None);
8325 _resultobj = Py_None;
8326 }
8327 return _resultobj;
8328}
8329
8330static PyObject * wxFileType_GetMimeType(wxFileType *self) {
8331 wxString str;
8332 if (self->GetMimeType(&str))
8333 return PyString_FromString(str.c_str());
8334 else
8335 RETURN_NONE();
8336 }
8337static PyObject *_wrap_wxFileType_GetMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject * _resultobj;
8339 PyObject * _result;
8340 wxFileType * _arg0;
8341 PyObject * _argo0 = 0;
8342 char *_kwnames[] = { "self", NULL };
8343
8344 self = self;
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeType",_kwnames,&_argo0))
8346 return NULL;
8347 if (_argo0) {
8348 if (_argo0 == Py_None) { _arg0 = NULL; }
8349 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8350 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeType. Expected _wxFileType_p.");
8351 return NULL;
8352 }
8353 }
8354{
0e2ff151 8355 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8356 _result = (PyObject *)wxFileType_GetMimeType(_arg0);
8357
0e2ff151
RD
8358 wxPyEndAllowThreads(__tstate);
8359 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8360}{
8361 _resultobj = _result;
8362}
8363 return _resultobj;
8364}
8365
8366static PyObject * wxFileType_GetMimeTypes(wxFileType *self) {
8367 wxArrayString arr;
8368 if (self->GetMimeTypes(arr))
8369 return wxArrayString2PyList_helper(arr);
8370 else
8371 RETURN_NONE();
8372 }
8373static PyObject *_wrap_wxFileType_GetMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
8374 PyObject * _resultobj;
8375 PyObject * _result;
8376 wxFileType * _arg0;
8377 PyObject * _argo0 = 0;
8378 char *_kwnames[] = { "self", NULL };
8379
8380 self = self;
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetMimeTypes",_kwnames,&_argo0))
8382 return NULL;
8383 if (_argo0) {
8384 if (_argo0 == Py_None) { _arg0 = NULL; }
8385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetMimeTypes. Expected _wxFileType_p.");
8387 return NULL;
8388 }
8389 }
8390{
0e2ff151 8391 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8392 _result = (PyObject *)wxFileType_GetMimeTypes(_arg0);
8393
0e2ff151
RD
8394 wxPyEndAllowThreads(__tstate);
8395 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8396}{
8397 _resultobj = _result;
8398}
8399 return _resultobj;
8400}
8401
8402static PyObject * wxFileType_GetExtensions(wxFileType *self) {
8403 wxArrayString arr;
8404 if (self->GetExtensions(arr))
8405 return wxArrayString2PyList_helper(arr);
8406 else
8407 RETURN_NONE();
8408 }
8409static PyObject *_wrap_wxFileType_GetExtensions(PyObject *self, PyObject *args, PyObject *kwargs) {
8410 PyObject * _resultobj;
8411 PyObject * _result;
8412 wxFileType * _arg0;
8413 PyObject * _argo0 = 0;
8414 char *_kwnames[] = { "self", NULL };
8415
8416 self = self;
8417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetExtensions",_kwnames,&_argo0))
8418 return NULL;
8419 if (_argo0) {
8420 if (_argo0 == Py_None) { _arg0 = NULL; }
8421 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8422 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetExtensions. Expected _wxFileType_p.");
8423 return NULL;
8424 }
8425 }
8426{
0e2ff151 8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8428 _result = (PyObject *)wxFileType_GetExtensions(_arg0);
8429
0e2ff151
RD
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8432}{
8433 _resultobj = _result;
8434}
8435 return _resultobj;
8436}
8437
8438static wxIcon * wxFileType_GetIcon(wxFileType *self) {
8439 wxIcon icon;
8440 if (self->GetIcon(&icon))
8441 return new wxIcon(icon);
8442 else
8443 return NULL;
8444 }
8445static PyObject *_wrap_wxFileType_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8446 PyObject * _resultobj;
8447 wxIcon * _result;
8448 wxFileType * _arg0;
8449 PyObject * _argo0 = 0;
8450 char *_kwnames[] = { "self", NULL };
8451 char _ptemp[128];
8452
8453 self = self;
8454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIcon",_kwnames,&_argo0))
8455 return NULL;
8456 if (_argo0) {
8457 if (_argo0 == Py_None) { _arg0 = NULL; }
8458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIcon. Expected _wxFileType_p.");
8460 return NULL;
8461 }
8462 }
8463{
0e2ff151 8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8465 _result = (wxIcon *)wxFileType_GetIcon(_arg0);
8466
0e2ff151
RD
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8469} if (_result) {
8470 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
8471 _resultobj = Py_BuildValue("s",_ptemp);
8472 } else {
8473 Py_INCREF(Py_None);
8474 _resultobj = Py_None;
8475 }
8476 return _resultobj;
8477}
8478
8479static PyObject * wxFileType_GetIconInfo(wxFileType *self) {
8480 wxIcon icon;
8481 wxString iconFile;
8482 int iconIndex;
8483 if (self->GetIcon(&icon, &iconFile, &iconIndex)) {
0e2ff151 8484 wxPyBeginBlockThreads();
b6e5c445
RD
8485 PyObject* tuple = PyTuple_New(3);
8486 PyTuple_SetItem(tuple, 0, wxPyConstructObject(new wxIcon(icon),
8487 "wxIcon", TRUE));
8488 PyTuple_SetItem(tuple, 1, PyString_FromString(iconFile.c_str()));
8489 PyTuple_SetItem(tuple, 2, PyInt_FromLong(iconIndex));
0e2ff151 8490 wxPyEndBlockThreads();
b6e5c445
RD
8491 return tuple;
8492 }
8493 else
8494 RETURN_NONE();
8495 }
8496static PyObject *_wrap_wxFileType_GetIconInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8497 PyObject * _resultobj;
8498 PyObject * _result;
8499 wxFileType * _arg0;
8500 PyObject * _argo0 = 0;
8501 char *_kwnames[] = { "self", NULL };
8502
8503 self = self;
8504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetIconInfo",_kwnames,&_argo0))
8505 return NULL;
8506 if (_argo0) {
8507 if (_argo0 == Py_None) { _arg0 = NULL; }
8508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetIconInfo. Expected _wxFileType_p.");
8510 return NULL;
8511 }
8512 }
8513{
0e2ff151 8514 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8515 _result = (PyObject *)wxFileType_GetIconInfo(_arg0);
8516
0e2ff151
RD
8517 wxPyEndAllowThreads(__tstate);
8518 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8519}{
8520 _resultobj = _result;
8521}
8522 return _resultobj;
8523}
8524
8525static PyObject * wxFileType_GetDescription(wxFileType *self) {
8526 wxString str;
8527 if (self->GetDescription(&str))
8528 return PyString_FromString(str.c_str());
8529 else
8530 RETURN_NONE();
8531 }
8532static PyObject *_wrap_wxFileType_GetDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
8533 PyObject * _resultobj;
8534 PyObject * _result;
8535 wxFileType * _arg0;
8536 PyObject * _argo0 = 0;
8537 char *_kwnames[] = { "self", NULL };
8538
8539 self = self;
8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_GetDescription",_kwnames,&_argo0))
8541 return NULL;
8542 if (_argo0) {
8543 if (_argo0 == Py_None) { _arg0 = NULL; }
8544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetDescription. Expected _wxFileType_p.");
8546 return NULL;
8547 }
8548 }
8549{
0e2ff151 8550 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8551 _result = (PyObject *)wxFileType_GetDescription(_arg0);
8552
0e2ff151
RD
8553 wxPyEndAllowThreads(__tstate);
8554 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8555}{
8556 _resultobj = _result;
8557}
8558 return _resultobj;
8559}
8560
8561static PyObject * wxFileType_GetOpenCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8562 wxString str;
8563 if (self->GetOpenCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
8564 return PyString_FromString(str.c_str());
8565 else
8566 RETURN_NONE();
8567 }
8568static PyObject *_wrap_wxFileType_GetOpenCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8569 PyObject * _resultobj;
8570 PyObject * _result;
8571 wxFileType * _arg0;
8572 wxString * _arg1;
8573 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
8574 PyObject * _argo0 = 0;
8575 PyObject * _obj1 = 0;
8576 PyObject * _obj2 = 0;
8577 char *_kwnames[] = { "self","filename","mimetype", NULL };
8578
8579 self = self;
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetOpenCommand",_kwnames,&_argo0,&_obj1,&_obj2))
8581 return NULL;
8582 if (_argo0) {
8583 if (_argo0 == Py_None) { _arg0 = NULL; }
8584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetOpenCommand. Expected _wxFileType_p.");
8586 return NULL;
8587 }
8588 }
8589{
8590#if PYTHON_API_VERSION >= 1009
8591 char* tmpPtr; int tmpSize;
8592 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8593 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8594 return NULL;
8595 }
8596 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8597 return NULL;
8598 _arg1 = new wxString(tmpPtr, tmpSize);
8599#else
8600 if (!PyString_Check(_obj1)) {
8601 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8602 return NULL;
8603 }
8604 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8605#endif
8606}
8607 if (_obj2)
8608{
8609#if PYTHON_API_VERSION >= 1009
8610 char* tmpPtr; int tmpSize;
8611 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8612 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8613 return NULL;
8614 }
8615 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8616 return NULL;
8617 _arg2 = new wxString(tmpPtr, tmpSize);
8618#else
8619 if (!PyString_Check(_obj2)) {
8620 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8621 return NULL;
8622 }
8623 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8624#endif
8625}
8626{
0e2ff151 8627 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8628 _result = (PyObject *)wxFileType_GetOpenCommand(_arg0,*_arg1,*_arg2);
8629
0e2ff151
RD
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8632}{
8633 _resultobj = _result;
8634}
8635{
8636 if (_obj1)
8637 delete _arg1;
8638}
8639{
8640 if (_obj2)
8641 delete _arg2;
8642}
8643 return _resultobj;
8644}
8645
8646static PyObject * wxFileType_GetPrintCommand(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8647 wxString str;
8648 if (self->GetPrintCommand(&str, wxFileType::MessageParameters(filename, mimetype)))
8649 return PyString_FromString(str.c_str());
8650 else
8651 RETURN_NONE();
8652 }
8653static PyObject *_wrap_wxFileType_GetPrintCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8654 PyObject * _resultobj;
8655 PyObject * _result;
8656 wxFileType * _arg0;
8657 wxString * _arg1;
8658 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
8659 PyObject * _argo0 = 0;
8660 PyObject * _obj1 = 0;
8661 PyObject * _obj2 = 0;
8662 char *_kwnames[] = { "self","filename","mimetype", NULL };
8663
8664 self = self;
8665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetPrintCommand",_kwnames,&_argo0,&_obj1,&_obj2))
8666 return NULL;
8667 if (_argo0) {
8668 if (_argo0 == Py_None) { _arg0 = NULL; }
8669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetPrintCommand. Expected _wxFileType_p.");
8671 return NULL;
8672 }
8673 }
8674{
8675#if PYTHON_API_VERSION >= 1009
8676 char* tmpPtr; int tmpSize;
8677 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8678 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8679 return NULL;
8680 }
8681 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8682 return NULL;
8683 _arg1 = new wxString(tmpPtr, tmpSize);
8684#else
8685 if (!PyString_Check(_obj1)) {
8686 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8687 return NULL;
8688 }
8689 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8690#endif
8691}
8692 if (_obj2)
8693{
8694#if PYTHON_API_VERSION >= 1009
8695 char* tmpPtr; int tmpSize;
8696 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8697 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8698 return NULL;
8699 }
8700 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8701 return NULL;
8702 _arg2 = new wxString(tmpPtr, tmpSize);
8703#else
8704 if (!PyString_Check(_obj2)) {
8705 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8706 return NULL;
8707 }
8708 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8709#endif
8710}
8711{
0e2ff151 8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8713 _result = (PyObject *)wxFileType_GetPrintCommand(_arg0,*_arg1,*_arg2);
8714
0e2ff151
RD
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8717}{
8718 _resultobj = _result;
8719}
8720{
8721 if (_obj1)
8722 delete _arg1;
8723}
8724{
8725 if (_obj2)
8726 delete _arg2;
8727}
8728 return _resultobj;
8729}
8730
8731static PyObject * wxFileType_GetAllCommands(wxFileType *self,const wxString & filename,const wxString & mimetype) {
8732 wxArrayString verbs;
8733 wxArrayString commands;
8734 if (self->GetAllCommands(&verbs, &commands,
8735 wxFileType::MessageParameters(filename, mimetype))) {
0e2ff151 8736 wxPyBeginBlockThreads();
b6e5c445
RD
8737 PyObject* tuple = PyTuple_New(2);
8738 PyTuple_SetItem(tuple, 0, wxArrayString2PyList_helper(verbs));
8739 PyTuple_SetItem(tuple, 1, wxArrayString2PyList_helper(commands));
0e2ff151 8740 wxPyEndBlockThreads();
b6e5c445
RD
8741 return tuple;
8742 }
8743 else
8744 RETURN_NONE();
8745 }
8746static PyObject *_wrap_wxFileType_GetAllCommands(PyObject *self, PyObject *args, PyObject *kwargs) {
8747 PyObject * _resultobj;
8748 PyObject * _result;
8749 wxFileType * _arg0;
8750 wxString * _arg1;
8751 wxString * _arg2 = (wxString *) &wxPyEmptyStr;
8752 PyObject * _argo0 = 0;
8753 PyObject * _obj1 = 0;
8754 PyObject * _obj2 = 0;
8755 char *_kwnames[] = { "self","filename","mimetype", NULL };
8756
8757 self = self;
8758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxFileType_GetAllCommands",_kwnames,&_argo0,&_obj1,&_obj2))
8759 return NULL;
8760 if (_argo0) {
8761 if (_argo0 == Py_None) { _arg0 = NULL; }
8762 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8763 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_GetAllCommands. Expected _wxFileType_p.");
8764 return NULL;
8765 }
8766 }
8767{
8768#if PYTHON_API_VERSION >= 1009
8769 char* tmpPtr; int tmpSize;
8770 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8771 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8772 return NULL;
8773 }
8774 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8775 return NULL;
8776 _arg1 = new wxString(tmpPtr, tmpSize);
8777#else
8778 if (!PyString_Check(_obj1)) {
8779 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8780 return NULL;
8781 }
8782 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8783#endif
8784}
8785 if (_obj2)
8786{
8787#if PYTHON_API_VERSION >= 1009
8788 char* tmpPtr; int tmpSize;
8789 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8790 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8791 return NULL;
8792 }
8793 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8794 return NULL;
8795 _arg2 = new wxString(tmpPtr, tmpSize);
8796#else
8797 if (!PyString_Check(_obj2)) {
8798 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8799 return NULL;
8800 }
8801 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8802#endif
8803}
8804{
0e2ff151 8805 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8806 _result = (PyObject *)wxFileType_GetAllCommands(_arg0,*_arg1,*_arg2);
8807
0e2ff151
RD
8808 wxPyEndAllowThreads(__tstate);
8809 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8810}{
8811 _resultobj = _result;
8812}
8813{
8814 if (_obj1)
8815 delete _arg1;
8816}
8817{
8818 if (_obj2)
8819 delete _arg2;
8820}
8821 return _resultobj;
8822}
8823
8824#define wxFileType_SetCommand(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SetCommand(_swigarg0,_swigarg1,_swigarg2))
8825static PyObject *_wrap_wxFileType_SetCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8826 PyObject * _resultobj;
8827 bool _result;
8828 wxFileType * _arg0;
8829 wxString * _arg1;
8830 wxString * _arg2;
8831 bool _arg3 = (bool ) TRUE;
8832 PyObject * _argo0 = 0;
8833 PyObject * _obj1 = 0;
8834 PyObject * _obj2 = 0;
8835 int tempbool3 = (int) TRUE;
8836 char *_kwnames[] = { "self","cmd","verb","overwriteprompt", NULL };
8837
8838 self = self;
8839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO|i:wxFileType_SetCommand",_kwnames,&_argo0,&_obj1,&_obj2,&tempbool3))
8840 return NULL;
8841 if (_argo0) {
8842 if (_argo0 == Py_None) { _arg0 = NULL; }
8843 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8844 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetCommand. Expected _wxFileType_p.");
8845 return NULL;
8846 }
8847 }
8848{
8849#if PYTHON_API_VERSION >= 1009
8850 char* tmpPtr; int tmpSize;
8851 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8852 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8853 return NULL;
8854 }
8855 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8856 return NULL;
8857 _arg1 = new wxString(tmpPtr, tmpSize);
8858#else
8859 if (!PyString_Check(_obj1)) {
8860 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8861 return NULL;
8862 }
8863 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8864#endif
8865}
8866{
8867#if PYTHON_API_VERSION >= 1009
8868 char* tmpPtr; int tmpSize;
8869 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
8870 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8871 return NULL;
8872 }
8873 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
8874 return NULL;
8875 _arg2 = new wxString(tmpPtr, tmpSize);
8876#else
8877 if (!PyString_Check(_obj2)) {
8878 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8879 return NULL;
8880 }
8881 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
8882#endif
8883}
8884 _arg3 = (bool ) tempbool3;
8885{
0e2ff151 8886 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8887 _result = (bool )wxFileType_SetCommand(_arg0,*_arg1,*_arg2,_arg3);
8888
0e2ff151
RD
8889 wxPyEndAllowThreads(__tstate);
8890 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8891} _resultobj = Py_BuildValue("i",_result);
8892{
8893 if (_obj1)
8894 delete _arg1;
8895}
8896{
8897 if (_obj2)
8898 delete _arg2;
8899}
8900 return _resultobj;
8901}
8902
8903#define wxFileType_SetDefaultIcon(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDefaultIcon(_swigarg0,_swigarg1))
8904static PyObject *_wrap_wxFileType_SetDefaultIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8905 PyObject * _resultobj;
8906 bool _result;
8907 wxFileType * _arg0;
8908 wxString * _arg1 = (wxString *) &wxEmptyString;
8909 int _arg2 = (int ) 0;
8910 PyObject * _argo0 = 0;
8911 PyObject * _obj1 = 0;
8912 char *_kwnames[] = { "self","cmd","index", NULL };
8913
8914 self = self;
8915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|Oi:wxFileType_SetDefaultIcon",_kwnames,&_argo0,&_obj1,&_arg2))
8916 return NULL;
8917 if (_argo0) {
8918 if (_argo0 == Py_None) { _arg0 = NULL; }
8919 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8920 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_SetDefaultIcon. Expected _wxFileType_p.");
8921 return NULL;
8922 }
8923 }
8924 if (_obj1)
8925{
8926#if PYTHON_API_VERSION >= 1009
8927 char* tmpPtr; int tmpSize;
8928 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8929 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8930 return NULL;
8931 }
8932 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8933 return NULL;
8934 _arg1 = new wxString(tmpPtr, tmpSize);
8935#else
8936 if (!PyString_Check(_obj1)) {
8937 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8938 return NULL;
8939 }
8940 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8941#endif
8942}
8943{
0e2ff151 8944 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8945 _result = (bool )wxFileType_SetDefaultIcon(_arg0,*_arg1,_arg2);
8946
0e2ff151
RD
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8949} _resultobj = Py_BuildValue("i",_result);
8950{
8951 if (_obj1)
8952 delete _arg1;
8953}
8954 return _resultobj;
8955}
8956
8957#define wxFileType_Unassociate(_swigobj) (_swigobj->Unassociate())
8958static PyObject *_wrap_wxFileType_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
8959 PyObject * _resultobj;
8960 bool _result;
8961 wxFileType * _arg0;
8962 PyObject * _argo0 = 0;
8963 char *_kwnames[] = { "self", NULL };
8964
8965 self = self;
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileType_Unassociate",_kwnames,&_argo0))
8967 return NULL;
8968 if (_argo0) {
8969 if (_argo0 == Py_None) { _arg0 = NULL; }
8970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
8971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileType_Unassociate. Expected _wxFileType_p.");
8972 return NULL;
8973 }
8974 }
8975{
0e2ff151 8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
8977 _result = (bool )wxFileType_Unassociate(_arg0);
8978
0e2ff151
RD
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
8981} _resultobj = Py_BuildValue("i",_result);
8982 return _resultobj;
8983}
8984
8985static PyObject *_wrap_wxFileType_ExpandCommand(PyObject *self, PyObject *args, PyObject *kwargs) {
8986 PyObject * _resultobj;
8987 wxString * _result;
8988 wxString * _arg0;
8989 wxFileType::MessageParameters * _arg1;
8990 PyObject * _obj0 = 0;
8991 PyObject * _argo1 = 0;
8992 char *_kwnames[] = { "command","params", NULL };
8993
8994 self = self;
8995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileType_ExpandCommand",_kwnames,&_obj0,&_argo1))
8996 return NULL;
8997{
8998#if PYTHON_API_VERSION >= 1009
8999 char* tmpPtr; int tmpSize;
9000 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
9001 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9002 return NULL;
9003 }
9004 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
9005 return NULL;
9006 _arg0 = new wxString(tmpPtr, tmpSize);
9007#else
9008 if (!PyString_Check(_obj0)) {
9009 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9010 return NULL;
9011 }
9012 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
9013#endif
9014}
9015 if (_argo1) {
9016 if (_argo1 == Py_None) { _arg1 = NULL; }
9017 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType::MessageParameters_p")) {
9018 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileType_ExpandCommand. Expected _wxFileType::MessageParameters_p.");
9019 return NULL;
9020 }
9021 }
9022{
0e2ff151 9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9024 _result = new wxString (wxFileType::ExpandCommand(*_arg0,*_arg1));
9025
0e2ff151
RD
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9028}{
9029 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
9030}
9031{
9032 if (_obj0)
9033 delete _arg0;
9034}
9035{
9036 delete _result;
9037}
9038 return _resultobj;
9039}
9040
9041#define delete_wxFileType(_swigobj) (delete _swigobj)
9042static PyObject *_wrap_delete_wxFileType(PyObject *self, PyObject *args, PyObject *kwargs) {
9043 PyObject * _resultobj;
9044 wxFileType * _arg0;
9045 PyObject * _argo0 = 0;
9046 char *_kwnames[] = { "self", NULL };
9047
9048 self = self;
9049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileType",_kwnames,&_argo0))
9050 return NULL;
9051 if (_argo0) {
9052 if (_argo0 == Py_None) { _arg0 = NULL; }
9053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileType_p")) {
9054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileType. Expected _wxFileType_p.");
9055 return NULL;
9056 }
9057 }
9058{
0e2ff151 9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9060 delete_wxFileType(_arg0);
9061
0e2ff151
RD
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9064} Py_INCREF(Py_None);
9065 _resultobj = Py_None;
9066 return _resultobj;
9067}
9068
9069static PyObject *_wrap_wxMimeTypesManager_IsOfType(PyObject *self, PyObject *args, PyObject *kwargs) {
9070 PyObject * _resultobj;
9071 bool _result;
9072 wxString * _arg0;
9073 wxString * _arg1;
9074 PyObject * _obj0 = 0;
9075 PyObject * _obj1 = 0;
9076 char *_kwnames[] = { "mimeType","wildcard", NULL };
9077
9078 self = self;
9079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_IsOfType",_kwnames,&_obj0,&_obj1))
9080 return NULL;
9081{
9082#if PYTHON_API_VERSION >= 1009
9083 char* tmpPtr; int tmpSize;
9084 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
9085 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9086 return NULL;
9087 }
9088 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
9089 return NULL;
9090 _arg0 = new wxString(tmpPtr, tmpSize);
9091#else
9092 if (!PyString_Check(_obj0)) {
9093 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9094 return NULL;
9095 }
9096 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
9097#endif
9098}
9099{
9100#if PYTHON_API_VERSION >= 1009
9101 char* tmpPtr; int tmpSize;
9102 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9103 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9104 return NULL;
9105 }
9106 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9107 return NULL;
9108 _arg1 = new wxString(tmpPtr, tmpSize);
9109#else
9110 if (!PyString_Check(_obj1)) {
9111 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9112 return NULL;
9113 }
9114 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9115#endif
9116}
9117{
0e2ff151 9118 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9119 _result = (bool )wxMimeTypesManager::IsOfType(*_arg0,*_arg1);
9120
0e2ff151
RD
9121 wxPyEndAllowThreads(__tstate);
9122 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9123} _resultobj = Py_BuildValue("i",_result);
9124{
9125 if (_obj0)
9126 delete _arg0;
9127}
9128{
9129 if (_obj1)
9130 delete _arg1;
9131}
9132 return _resultobj;
9133}
9134
9135#define new_wxMimeTypesManager() (new wxMimeTypesManager())
9136static PyObject *_wrap_new_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
9137 PyObject * _resultobj;
9138 wxMimeTypesManager * _result;
9139 char *_kwnames[] = { NULL };
9140 char _ptemp[128];
9141
9142 self = self;
9143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMimeTypesManager",_kwnames))
9144 return NULL;
9145{
0e2ff151 9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9147 _result = (wxMimeTypesManager *)new_wxMimeTypesManager();
9148
0e2ff151
RD
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9151} if (_result) {
9152 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMimeTypesManager_p");
9153 _resultobj = Py_BuildValue("s",_ptemp);
9154 } else {
9155 Py_INCREF(Py_None);
9156 _resultobj = Py_None;
9157 }
9158 return _resultobj;
9159}
9160
9161#define wxMimeTypesManager_Initialize(_swigobj,_swigarg0,_swigarg1) (_swigobj->Initialize(_swigarg0,_swigarg1))
9162static PyObject *_wrap_wxMimeTypesManager_Initialize(PyObject *self, PyObject *args, PyObject *kwargs) {
9163 PyObject * _resultobj;
9164 wxMimeTypesManager * _arg0;
9165 int _arg1 = (int ) (wxMAILCAP_STANDARD);
9166 wxString * _arg2 = (wxString *) &wxEmptyString;
9167 PyObject * _argo0 = 0;
9168 PyObject * _obj2 = 0;
9169 char *_kwnames[] = { "self","mailcapStyle","extraDir", NULL };
9170
9171 self = self;
9172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:wxMimeTypesManager_Initialize",_kwnames,&_argo0,&_arg1,&_obj2))
9173 return NULL;
9174 if (_argo0) {
9175 if (_argo0 == Py_None) { _arg0 = NULL; }
9176 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9177 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Initialize. Expected _wxMimeTypesManager_p.");
9178 return NULL;
9179 }
9180 }
9181 if (_obj2)
9182{
9183#if PYTHON_API_VERSION >= 1009
9184 char* tmpPtr; int tmpSize;
9185 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
9186 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9187 return NULL;
9188 }
9189 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
9190 return NULL;
9191 _arg2 = new wxString(tmpPtr, tmpSize);
9192#else
9193 if (!PyString_Check(_obj2)) {
9194 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9195 return NULL;
9196 }
9197 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
9198#endif
9199}
9200{
0e2ff151 9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9202 wxMimeTypesManager_Initialize(_arg0,_arg1,*_arg2);
9203
0e2ff151
RD
9204 wxPyEndAllowThreads(__tstate);
9205 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9206} Py_INCREF(Py_None);
9207 _resultobj = Py_None;
9208{
9209 if (_obj2)
9210 delete _arg2;
9211}
9212 return _resultobj;
9213}
9214
9215#define wxMimeTypesManager_ClearData(_swigobj) (_swigobj->ClearData())
9216static PyObject *_wrap_wxMimeTypesManager_ClearData(PyObject *self, PyObject *args, PyObject *kwargs) {
9217 PyObject * _resultobj;
9218 wxMimeTypesManager * _arg0;
9219 PyObject * _argo0 = 0;
9220 char *_kwnames[] = { "self", NULL };
9221
9222 self = self;
9223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_ClearData",_kwnames,&_argo0))
9224 return NULL;
9225 if (_argo0) {
9226 if (_argo0 == Py_None) { _arg0 = NULL; }
9227 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9228 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ClearData. Expected _wxMimeTypesManager_p.");
9229 return NULL;
9230 }
9231 }
9232{
0e2ff151 9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9234 wxMimeTypesManager_ClearData(_arg0);
9235
0e2ff151
RD
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9238} Py_INCREF(Py_None);
9239 _resultobj = Py_None;
9240 return _resultobj;
9241}
9242
9243#define wxMimeTypesManager_GetFileTypeFromExtension(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromExtension(_swigarg0))
9244static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromExtension(PyObject *self, PyObject *args, PyObject *kwargs) {
9245 PyObject * _resultobj;
9246 wxFileType * _result;
9247 wxMimeTypesManager * _arg0;
9248 wxString * _arg1;
9249 PyObject * _argo0 = 0;
9250 PyObject * _obj1 = 0;
9251 char *_kwnames[] = { "self","ext", NULL };
9252 char _ptemp[128];
9253
9254 self = self;
9255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromExtension",_kwnames,&_argo0,&_obj1))
9256 return NULL;
9257 if (_argo0) {
9258 if (_argo0 == Py_None) { _arg0 = NULL; }
9259 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9260 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromExtension. Expected _wxMimeTypesManager_p.");
9261 return NULL;
9262 }
9263 }
9264{
9265#if PYTHON_API_VERSION >= 1009
9266 char* tmpPtr; int tmpSize;
9267 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9268 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9269 return NULL;
9270 }
9271 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9272 return NULL;
9273 _arg1 = new wxString(tmpPtr, tmpSize);
9274#else
9275 if (!PyString_Check(_obj1)) {
9276 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9277 return NULL;
9278 }
9279 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9280#endif
9281}
9282{
0e2ff151 9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9284 _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromExtension(_arg0,*_arg1);
9285
0e2ff151
RD
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9288} if (_result) {
9289 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9290 _resultobj = Py_BuildValue("s",_ptemp);
9291 } else {
9292 Py_INCREF(Py_None);
9293 _resultobj = Py_None;
9294 }
9295{
9296 if (_obj1)
9297 delete _arg1;
9298}
9299 return _resultobj;
9300}
9301
9302#define wxMimeTypesManager_GetFileTypeFromMimeType(_swigobj,_swigarg0) (_swigobj->GetFileTypeFromMimeType(_swigarg0))
9303static PyObject *_wrap_wxMimeTypesManager_GetFileTypeFromMimeType(PyObject *self, PyObject *args, PyObject *kwargs) {
9304 PyObject * _resultobj;
9305 wxFileType * _result;
9306 wxMimeTypesManager * _arg0;
9307 wxString * _arg1;
9308 PyObject * _argo0 = 0;
9309 PyObject * _obj1 = 0;
9310 char *_kwnames[] = { "self","mimeType", NULL };
9311 char _ptemp[128];
9312
9313 self = self;
9314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_GetFileTypeFromMimeType",_kwnames,&_argo0,&_obj1))
9315 return NULL;
9316 if (_argo0) {
9317 if (_argo0 == Py_None) { _arg0 = NULL; }
9318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_GetFileTypeFromMimeType. Expected _wxMimeTypesManager_p.");
9320 return NULL;
9321 }
9322 }
9323{
9324#if PYTHON_API_VERSION >= 1009
9325 char* tmpPtr; int tmpSize;
9326 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9327 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9328 return NULL;
9329 }
9330 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9331 return NULL;
9332 _arg1 = new wxString(tmpPtr, tmpSize);
9333#else
9334 if (!PyString_Check(_obj1)) {
9335 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9336 return NULL;
9337 }
9338 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9339#endif
9340}
9341{
0e2ff151 9342 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9343 _result = (wxFileType *)wxMimeTypesManager_GetFileTypeFromMimeType(_arg0,*_arg1);
9344
0e2ff151
RD
9345 wxPyEndAllowThreads(__tstate);
9346 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9347} if (_result) {
9348 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9349 _resultobj = Py_BuildValue("s",_ptemp);
9350 } else {
9351 Py_INCREF(Py_None);
9352 _resultobj = Py_None;
9353 }
9354{
9355 if (_obj1)
9356 delete _arg1;
9357}
9358 return _resultobj;
9359}
9360
9361#define wxMimeTypesManager_ReadMailcap(_swigobj,_swigarg0,_swigarg1) (_swigobj->ReadMailcap(_swigarg0,_swigarg1))
9362static PyObject *_wrap_wxMimeTypesManager_ReadMailcap(PyObject *self, PyObject *args, PyObject *kwargs) {
9363 PyObject * _resultobj;
9364 bool _result;
9365 wxMimeTypesManager * _arg0;
9366 wxString * _arg1;
9367 bool _arg2 = (bool ) FALSE;
9368 PyObject * _argo0 = 0;
9369 PyObject * _obj1 = 0;
9370 int tempbool2 = (int) FALSE;
9371 char *_kwnames[] = { "self","filename","fallback", NULL };
9372
9373 self = self;
9374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxMimeTypesManager_ReadMailcap",_kwnames,&_argo0,&_obj1,&tempbool2))
9375 return NULL;
9376 if (_argo0) {
9377 if (_argo0 == Py_None) { _arg0 = NULL; }
9378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMailcap. Expected _wxMimeTypesManager_p.");
9380 return NULL;
9381 }
9382 }
9383{
9384#if PYTHON_API_VERSION >= 1009
9385 char* tmpPtr; int tmpSize;
9386 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9387 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9388 return NULL;
9389 }
9390 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9391 return NULL;
9392 _arg1 = new wxString(tmpPtr, tmpSize);
9393#else
9394 if (!PyString_Check(_obj1)) {
9395 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9396 return NULL;
9397 }
9398 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9399#endif
9400}
9401 _arg2 = (bool ) tempbool2;
9402{
0e2ff151 9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9404 _result = (bool )wxMimeTypesManager_ReadMailcap(_arg0,*_arg1,_arg2);
9405
0e2ff151
RD
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9408} _resultobj = Py_BuildValue("i",_result);
9409{
9410 if (_obj1)
9411 delete _arg1;
9412}
9413 return _resultobj;
9414}
9415
9416#define wxMimeTypesManager_ReadMimeTypes(_swigobj,_swigarg0) (_swigobj->ReadMimeTypes(_swigarg0))
9417static PyObject *_wrap_wxMimeTypesManager_ReadMimeTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
9418 PyObject * _resultobj;
9419 bool _result;
9420 wxMimeTypesManager * _arg0;
9421 wxString * _arg1;
9422 PyObject * _argo0 = 0;
9423 PyObject * _obj1 = 0;
9424 char *_kwnames[] = { "self","filename", NULL };
9425
9426 self = self;
9427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_ReadMimeTypes",_kwnames,&_argo0,&_obj1))
9428 return NULL;
9429 if (_argo0) {
9430 if (_argo0 == Py_None) { _arg0 = NULL; }
9431 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9432 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_ReadMimeTypes. Expected _wxMimeTypesManager_p.");
9433 return NULL;
9434 }
9435 }
9436{
9437#if PYTHON_API_VERSION >= 1009
9438 char* tmpPtr; int tmpSize;
9439 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9440 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9441 return NULL;
9442 }
9443 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9444 return NULL;
9445 _arg1 = new wxString(tmpPtr, tmpSize);
9446#else
9447 if (!PyString_Check(_obj1)) {
9448 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9449 return NULL;
9450 }
9451 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9452#endif
9453}
9454{
0e2ff151 9455 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9456 _result = (bool )wxMimeTypesManager_ReadMimeTypes(_arg0,*_arg1);
9457
0e2ff151
RD
9458 wxPyEndAllowThreads(__tstate);
9459 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9460} _resultobj = Py_BuildValue("i",_result);
9461{
9462 if (_obj1)
9463 delete _arg1;
9464}
9465 return _resultobj;
9466}
9467
9468static PyObject * wxMimeTypesManager_EnumAllFileTypes(wxMimeTypesManager *self) {
9469 wxArrayString arr;
9470 self->EnumAllFileTypes(arr);
9471 return wxArrayString2PyList_helper(arr);
9472 }
9473static PyObject *_wrap_wxMimeTypesManager_EnumAllFileTypes(PyObject *self, PyObject *args, PyObject *kwargs) {
9474 PyObject * _resultobj;
9475 PyObject * _result;
9476 wxMimeTypesManager * _arg0;
9477 PyObject * _argo0 = 0;
9478 char *_kwnames[] = { "self", NULL };
9479
9480 self = self;
9481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMimeTypesManager_EnumAllFileTypes",_kwnames,&_argo0))
9482 return NULL;
9483 if (_argo0) {
9484 if (_argo0 == Py_None) { _arg0 = NULL; }
9485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_EnumAllFileTypes. Expected _wxMimeTypesManager_p.");
9487 return NULL;
9488 }
9489 }
9490{
0e2ff151 9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9492 _result = (PyObject *)wxMimeTypesManager_EnumAllFileTypes(_arg0);
9493
0e2ff151
RD
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9496}{
9497 _resultobj = _result;
9498}
9499 return _resultobj;
9500}
9501
9502#define wxMimeTypesManager_AddFallback(_swigobj,_swigarg0) (_swigobj->AddFallback(_swigarg0))
9503static PyObject *_wrap_wxMimeTypesManager_AddFallback(PyObject *self, PyObject *args, PyObject *kwargs) {
9504 PyObject * _resultobj;
9505 wxMimeTypesManager * _arg0;
9506 wxFileTypeInfo * _arg1;
9507 PyObject * _argo0 = 0;
9508 PyObject * _argo1 = 0;
9509 char *_kwnames[] = { "self","ft", NULL };
9510
9511 self = self;
9512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_AddFallback",_kwnames,&_argo0,&_argo1))
9513 return NULL;
9514 if (_argo0) {
9515 if (_argo0 == Py_None) { _arg0 = NULL; }
9516 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9517 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_AddFallback. Expected _wxMimeTypesManager_p.");
9518 return NULL;
9519 }
9520 }
9521 if (_argo1) {
9522 if (_argo1 == Py_None) { _arg1 = NULL; }
9523 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) {
9524 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_AddFallback. Expected _wxFileTypeInfo_p.");
9525 return NULL;
9526 }
9527 }
9528{
0e2ff151 9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9530 wxMimeTypesManager_AddFallback(_arg0,*_arg1);
9531
0e2ff151
RD
9532 wxPyEndAllowThreads(__tstate);
9533 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9534} Py_INCREF(Py_None);
9535 _resultobj = Py_None;
9536 return _resultobj;
9537}
9538
9539#define wxMimeTypesManager_Associate(_swigobj,_swigarg0) (_swigobj->Associate(_swigarg0))
9540static PyObject *_wrap_wxMimeTypesManager_Associate(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject * _resultobj;
9542 wxFileType * _result;
9543 wxMimeTypesManager * _arg0;
9544 wxFileTypeInfo * _arg1;
9545 PyObject * _argo0 = 0;
9546 PyObject * _argo1 = 0;
9547 char *_kwnames[] = { "self","ftInfo", NULL };
9548 char _ptemp[128];
9549
9550 self = self;
9551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Associate",_kwnames,&_argo0,&_argo1))
9552 return NULL;
9553 if (_argo0) {
9554 if (_argo0 == Py_None) { _arg0 = NULL; }
9555 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9556 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Associate. Expected _wxMimeTypesManager_p.");
9557 return NULL;
9558 }
9559 }
9560 if (_argo1) {
9561 if (_argo1 == Py_None) { _arg1 = NULL; }
9562 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileTypeInfo_p")) {
9563 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Associate. Expected _wxFileTypeInfo_p.");
9564 return NULL;
9565 }
9566 }
9567{
0e2ff151 9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9569 _result = (wxFileType *)wxMimeTypesManager_Associate(_arg0,*_arg1);
9570
0e2ff151
RD
9571 wxPyEndAllowThreads(__tstate);
9572 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9573} if (_result) {
9574 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileType_p");
9575 _resultobj = Py_BuildValue("s",_ptemp);
9576 } else {
9577 Py_INCREF(Py_None);
9578 _resultobj = Py_None;
9579 }
9580 return _resultobj;
9581}
9582
9583#define wxMimeTypesManager_Unassociate(_swigobj,_swigarg0) (_swigobj->Unassociate(_swigarg0))
9584static PyObject *_wrap_wxMimeTypesManager_Unassociate(PyObject *self, PyObject *args, PyObject *kwargs) {
9585 PyObject * _resultobj;
9586 bool _result;
9587 wxMimeTypesManager * _arg0;
9588 wxFileType * _arg1;
9589 PyObject * _argo0 = 0;
9590 PyObject * _argo1 = 0;
9591 char *_kwnames[] = { "self","ft", NULL };
9592
9593 self = self;
9594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMimeTypesManager_Unassociate",_kwnames,&_argo0,&_argo1))
9595 return NULL;
9596 if (_argo0) {
9597 if (_argo0 == Py_None) { _arg0 = NULL; }
9598 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9599 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMimeTypesManager_Unassociate. Expected _wxMimeTypesManager_p.");
9600 return NULL;
9601 }
9602 }
9603 if (_argo1) {
9604 if (_argo1 == Py_None) { _arg1 = NULL; }
9605 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFileType_p")) {
9606 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMimeTypesManager_Unassociate. Expected _wxFileType_p.");
9607 return NULL;
9608 }
9609 }
9610{
0e2ff151 9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9612 _result = (bool )wxMimeTypesManager_Unassociate(_arg0,_arg1);
9613
0e2ff151
RD
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9616} _resultobj = Py_BuildValue("i",_result);
9617 return _resultobj;
9618}
9619
9620#define delete_wxMimeTypesManager(_swigobj) (delete _swigobj)
9621static PyObject *_wrap_delete_wxMimeTypesManager(PyObject *self, PyObject *args, PyObject *kwargs) {
9622 PyObject * _resultobj;
9623 wxMimeTypesManager * _arg0;
9624 PyObject * _argo0 = 0;
9625 char *_kwnames[] = { "self", NULL };
9626
9627 self = self;
9628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMimeTypesManager",_kwnames,&_argo0))
9629 return NULL;
9630 if (_argo0) {
9631 if (_argo0 == Py_None) { _arg0 = NULL; }
9632 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMimeTypesManager_p")) {
9633 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMimeTypesManager. Expected _wxMimeTypesManager_p.");
9634 return NULL;
9635 }
9636 }
9637{
0e2ff151 9638 PyThreadState* __tstate = wxPyBeginAllowThreads();
b6e5c445
RD
9639 delete_wxMimeTypesManager(_arg0);
9640
0e2ff151
RD
9641 wxPyEndAllowThreads(__tstate);
9642 if (PyErr_Occurred()) return NULL;
b6e5c445
RD
9643} Py_INCREF(Py_None);
9644 _resultobj = Py_None;
9645 return _resultobj;
9646}
9647
742fc581
RD
9648static void *SwigwxFileHistoryTowxObject(void *ptr) {
9649 wxFileHistory *src;
9650 wxObject *dest;
9651 src = (wxFileHistory *) ptr;
9652 dest = (wxObject *) src;
9653 return (void *) dest;
9654}
9655
9656#define new_wxFileHistory(_swigarg0) (new wxFileHistory(_swigarg0))
9657static PyObject *_wrap_new_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9658 PyObject * _resultobj;
9659 wxFileHistory * _result;
9660 int _arg0 = (int ) 9;
9661 char *_kwnames[] = { "maxFiles", NULL };
9662 char _ptemp[128];
9663
9664 self = self;
9665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|i:new_wxFileHistory",_kwnames,&_arg0))
9666 return NULL;
9667{
0e2ff151 9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9669 _result = (wxFileHistory *)new_wxFileHistory(_arg0);
9670
0e2ff151
RD
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) return NULL;
742fc581
RD
9673} if (_result) {
9674 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFileHistory_p");
9675 _resultobj = Py_BuildValue("s",_ptemp);
9676 } else {
9677 Py_INCREF(Py_None);
9678 _resultobj = Py_None;
9679 }
9680 return _resultobj;
9681}
9682
9683#define delete_wxFileHistory(_swigobj) (delete _swigobj)
9684static PyObject *_wrap_delete_wxFileHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9685 PyObject * _resultobj;
9686 wxFileHistory * _arg0;
9687 PyObject * _argo0 = 0;
9688 char *_kwnames[] = { "self", NULL };
9689
9690 self = self;
9691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFileHistory",_kwnames,&_argo0))
9692 return NULL;
9693 if (_argo0) {
9694 if (_argo0 == Py_None) { _arg0 = NULL; }
9695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFileHistory. Expected _wxFileHistory_p.");
9697 return NULL;
9698 }
9699 }
9700{
0e2ff151 9701 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9702 delete_wxFileHistory(_arg0);
9703
0e2ff151
RD
9704 wxPyEndAllowThreads(__tstate);
9705 if (PyErr_Occurred()) return NULL;
742fc581
RD
9706} Py_INCREF(Py_None);
9707 _resultobj = Py_None;
9708 return _resultobj;
9709}
9710
9711#define wxFileHistory_AddFileToHistory(_swigobj,_swigarg0) (_swigobj->AddFileToHistory(_swigarg0))
9712static PyObject *_wrap_wxFileHistory_AddFileToHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9713 PyObject * _resultobj;
9714 wxFileHistory * _arg0;
9715 wxString * _arg1;
9716 PyObject * _argo0 = 0;
9717 PyObject * _obj1 = 0;
9718 char *_kwnames[] = { "self","file", NULL };
9719
9720 self = self;
9721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFileToHistory",_kwnames,&_argo0,&_obj1))
9722 return NULL;
9723 if (_argo0) {
9724 if (_argo0 == Py_None) { _arg0 = NULL; }
9725 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9726 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFileToHistory. Expected _wxFileHistory_p.");
9727 return NULL;
9728 }
9729 }
9730{
9731#if PYTHON_API_VERSION >= 1009
9732 char* tmpPtr; int tmpSize;
9733 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9734 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9735 return NULL;
9736 }
9737 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9738 return NULL;
9739 _arg1 = new wxString(tmpPtr, tmpSize);
9740#else
9741 if (!PyString_Check(_obj1)) {
9742 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9743 return NULL;
9744 }
9745 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9746#endif
9747}
9748{
0e2ff151 9749 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9750 wxFileHistory_AddFileToHistory(_arg0,*_arg1);
9751
0e2ff151
RD
9752 wxPyEndAllowThreads(__tstate);
9753 if (PyErr_Occurred()) return NULL;
742fc581
RD
9754} Py_INCREF(Py_None);
9755 _resultobj = Py_None;
9756{
9757 if (_obj1)
9758 delete _arg1;
9759}
9760 return _resultobj;
9761}
9762
9763#define wxFileHistory_RemoveFileFromHistory(_swigobj,_swigarg0) (_swigobj->RemoveFileFromHistory(_swigarg0))
9764static PyObject *_wrap_wxFileHistory_RemoveFileFromHistory(PyObject *self, PyObject *args, PyObject *kwargs) {
9765 PyObject * _resultobj;
9766 wxFileHistory * _arg0;
9767 int _arg1;
9768 PyObject * _argo0 = 0;
9769 char *_kwnames[] = { "self","i", NULL };
9770
9771 self = self;
9772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_RemoveFileFromHistory",_kwnames,&_argo0,&_arg1))
9773 return NULL;
9774 if (_argo0) {
9775 if (_argo0 == Py_None) { _arg0 = NULL; }
9776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveFileFromHistory. Expected _wxFileHistory_p.");
9778 return NULL;
9779 }
9780 }
9781{
0e2ff151 9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9783 wxFileHistory_RemoveFileFromHistory(_arg0,_arg1);
9784
0e2ff151
RD
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) return NULL;
742fc581
RD
9787} Py_INCREF(Py_None);
9788 _resultobj = Py_None;
9789 return _resultobj;
9790}
9791
9792#define wxFileHistory_GetMaxFiles(_swigobj) (_swigobj->GetMaxFiles())
9793static PyObject *_wrap_wxFileHistory_GetMaxFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
9794 PyObject * _resultobj;
9795 int _result;
9796 wxFileHistory * _arg0;
9797 PyObject * _argo0 = 0;
9798 char *_kwnames[] = { "self", NULL };
9799
9800 self = self;
9801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetMaxFiles",_kwnames,&_argo0))
9802 return NULL;
9803 if (_argo0) {
9804 if (_argo0 == Py_None) { _arg0 = NULL; }
9805 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9806 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetMaxFiles. Expected _wxFileHistory_p.");
9807 return NULL;
9808 }
9809 }
9810{
0e2ff151 9811 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9812 _result = (int )wxFileHistory_GetMaxFiles(_arg0);
9813
0e2ff151
RD
9814 wxPyEndAllowThreads(__tstate);
9815 if (PyErr_Occurred()) return NULL;
742fc581
RD
9816} _resultobj = Py_BuildValue("i",_result);
9817 return _resultobj;
9818}
9819
9820#define wxFileHistory_UseMenu(_swigobj,_swigarg0) (_swigobj->UseMenu(_swigarg0))
9821static PyObject *_wrap_wxFileHistory_UseMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9822 PyObject * _resultobj;
9823 wxFileHistory * _arg0;
9824 wxMenu * _arg1;
9825 PyObject * _argo0 = 0;
9826 PyObject * _argo1 = 0;
9827 char *_kwnames[] = { "self","menu", NULL };
9828
9829 self = self;
9830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_UseMenu",_kwnames,&_argo0,&_argo1))
9831 return NULL;
9832 if (_argo0) {
9833 if (_argo0 == Py_None) { _arg0 = NULL; }
9834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_UseMenu. Expected _wxFileHistory_p.");
9836 return NULL;
9837 }
9838 }
9839 if (_argo1) {
9840 if (_argo1 == Py_None) { _arg1 = NULL; }
9841 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9842 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_UseMenu. Expected _wxMenu_p.");
9843 return NULL;
9844 }
9845 }
9846{
0e2ff151 9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9848 wxFileHistory_UseMenu(_arg0,_arg1);
9849
0e2ff151
RD
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) return NULL;
742fc581
RD
9852} Py_INCREF(Py_None);
9853 _resultobj = Py_None;
9854 return _resultobj;
9855}
9856
9857#define wxFileHistory_RemoveMenu(_swigobj,_swigarg0) (_swigobj->RemoveMenu(_swigarg0))
9858static PyObject *_wrap_wxFileHistory_RemoveMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9859 PyObject * _resultobj;
9860 wxFileHistory * _arg0;
9861 wxMenu * _arg1;
9862 PyObject * _argo0 = 0;
9863 PyObject * _argo1 = 0;
9864 char *_kwnames[] = { "self","menu", NULL };
9865
9866 self = self;
9867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_RemoveMenu",_kwnames,&_argo0,&_argo1))
9868 return NULL;
9869 if (_argo0) {
9870 if (_argo0 == Py_None) { _arg0 = NULL; }
9871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_RemoveMenu. Expected _wxFileHistory_p.");
9873 return NULL;
9874 }
9875 }
9876 if (_argo1) {
9877 if (_argo1 == Py_None) { _arg1 = NULL; }
9878 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
9879 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_RemoveMenu. Expected _wxMenu_p.");
9880 return NULL;
9881 }
9882 }
9883{
0e2ff151 9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9885 wxFileHistory_RemoveMenu(_arg0,_arg1);
9886
0e2ff151
RD
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) return NULL;
742fc581
RD
9889} Py_INCREF(Py_None);
9890 _resultobj = Py_None;
9891 return _resultobj;
9892}
9893
9894#define wxFileHistory_Load(_swigobj,_swigarg0) (_swigobj->Load(_swigarg0))
9895static PyObject *_wrap_wxFileHistory_Load(PyObject *self, PyObject *args, PyObject *kwargs) {
9896 PyObject * _resultobj;
9897 wxFileHistory * _arg0;
9898 wxConfigBase * _arg1;
9899 PyObject * _argo0 = 0;
9900 PyObject * _argo1 = 0;
9901 char *_kwnames[] = { "self","config", NULL };
9902
9903 self = self;
9904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Load",_kwnames,&_argo0,&_argo1))
9905 return NULL;
9906 if (_argo0) {
9907 if (_argo0 == Py_None) { _arg0 = NULL; }
9908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Load. Expected _wxFileHistory_p.");
9910 return NULL;
9911 }
9912 }
9913 if (_argo1) {
9914 if (_argo1 == Py_None) { _arg1 = NULL; }
9915 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
9916 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Load. Expected _wxConfigBase_p.");
9917 return NULL;
9918 }
9919 }
9920{
0e2ff151 9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9922 wxFileHistory_Load(_arg0,*_arg1);
9923
0e2ff151
RD
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) return NULL;
742fc581
RD
9926} Py_INCREF(Py_None);
9927 _resultobj = Py_None;
9928 return _resultobj;
9929}
9930
9931#define wxFileHistory_Save(_swigobj,_swigarg0) (_swigobj->Save(_swigarg0))
9932static PyObject *_wrap_wxFileHistory_Save(PyObject *self, PyObject *args, PyObject *kwargs) {
9933 PyObject * _resultobj;
9934 wxFileHistory * _arg0;
9935 wxConfigBase * _arg1;
9936 PyObject * _argo0 = 0;
9937 PyObject * _argo1 = 0;
9938 char *_kwnames[] = { "self","config", NULL };
9939
9940 self = self;
9941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_Save",_kwnames,&_argo0,&_argo1))
9942 return NULL;
9943 if (_argo0) {
9944 if (_argo0 == Py_None) { _arg0 = NULL; }
9945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_Save. Expected _wxFileHistory_p.");
9947 return NULL;
9948 }
9949 }
9950 if (_argo1) {
9951 if (_argo1 == Py_None) { _arg1 = NULL; }
9952 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
9953 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_Save. Expected _wxConfigBase_p.");
9954 return NULL;
9955 }
9956 }
9957{
0e2ff151 9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9959 wxFileHistory_Save(_arg0,*_arg1);
9960
0e2ff151
RD
9961 wxPyEndAllowThreads(__tstate);
9962 if (PyErr_Occurred()) return NULL;
742fc581
RD
9963} Py_INCREF(Py_None);
9964 _resultobj = Py_None;
9965 return _resultobj;
9966}
9967
9968#define wxFileHistory_AddFilesToMenu(_swigobj) (_swigobj->AddFilesToMenu())
9969static PyObject *_wrap_wxFileHistory_AddFilesToMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9970 PyObject * _resultobj;
9971 wxFileHistory * _arg0;
9972 PyObject * _argo0 = 0;
9973 char *_kwnames[] = { "self", NULL };
9974
9975 self = self;
9976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_AddFilesToMenu",_kwnames,&_argo0))
9977 return NULL;
9978 if (_argo0) {
9979 if (_argo0 == Py_None) { _arg0 = NULL; }
9980 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
9981 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToMenu. Expected _wxFileHistory_p.");
9982 return NULL;
9983 }
9984 }
9985{
0e2ff151 9986 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
9987 wxFileHistory_AddFilesToMenu(_arg0);
9988
0e2ff151
RD
9989 wxPyEndAllowThreads(__tstate);
9990 if (PyErr_Occurred()) return NULL;
742fc581
RD
9991} Py_INCREF(Py_None);
9992 _resultobj = Py_None;
9993 return _resultobj;
9994}
9995
9996#define wxFileHistory_AddFilesToSingleMenu(_swigobj,_swigarg0) (_swigobj->AddFilesToMenu(_swigarg0))
9997static PyObject *_wrap_wxFileHistory_AddFilesToSingleMenu(PyObject *self, PyObject *args, PyObject *kwargs) {
9998 PyObject * _resultobj;
9999 wxFileHistory * _arg0;
10000 wxMenu * _arg1;
10001 PyObject * _argo0 = 0;
10002 PyObject * _argo1 = 0;
10003 char *_kwnames[] = { "self","menu", NULL };
10004
10005 self = self;
10006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFileHistory_AddFilesToSingleMenu",_kwnames,&_argo0,&_argo1))
10007 return NULL;
10008 if (_argo0) {
10009 if (_argo0 == Py_None) { _arg0 = NULL; }
10010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_AddFilesToSingleMenu. Expected _wxFileHistory_p.");
10012 return NULL;
10013 }
10014 }
10015 if (_argo1) {
10016 if (_argo1 == Py_None) { _arg1 = NULL; }
10017 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMenu_p")) {
10018 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFileHistory_AddFilesToSingleMenu. Expected _wxMenu_p.");
10019 return NULL;
10020 }
10021 }
10022{
0e2ff151 10023 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
10024 wxFileHistory_AddFilesToSingleMenu(_arg0,_arg1);
10025
0e2ff151
RD
10026 wxPyEndAllowThreads(__tstate);
10027 if (PyErr_Occurred()) return NULL;
742fc581
RD
10028} Py_INCREF(Py_None);
10029 _resultobj = Py_None;
10030 return _resultobj;
10031}
10032
10033#define wxFileHistory_GetHistoryFile(_swigobj,_swigarg0) (_swigobj->GetHistoryFile(_swigarg0))
10034static PyObject *_wrap_wxFileHistory_GetHistoryFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10035 PyObject * _resultobj;
10036 wxString * _result;
10037 wxFileHistory * _arg0;
10038 int _arg1;
10039 PyObject * _argo0 = 0;
10040 char *_kwnames[] = { "self","i", NULL };
10041
10042 self = self;
10043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFileHistory_GetHistoryFile",_kwnames,&_argo0,&_arg1))
10044 return NULL;
10045 if (_argo0) {
10046 if (_argo0 == Py_None) { _arg0 = NULL; }
10047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetHistoryFile. Expected _wxFileHistory_p.");
10049 return NULL;
10050 }
10051 }
10052{
0e2ff151 10053 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
10054 _result = new wxString (wxFileHistory_GetHistoryFile(_arg0,_arg1));
10055
0e2ff151
RD
10056 wxPyEndAllowThreads(__tstate);
10057 if (PyErr_Occurred()) return NULL;
742fc581
RD
10058}{
10059 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10060}
10061{
10062 delete _result;
10063}
10064 return _resultobj;
10065}
10066
10067#define wxFileHistory_GetCount(_swigobj) (_swigobj->GetCount())
10068static PyObject *_wrap_wxFileHistory_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
10069 PyObject * _resultobj;
10070 int _result;
10071 wxFileHistory * _arg0;
10072 PyObject * _argo0 = 0;
10073 char *_kwnames[] = { "self", NULL };
10074
10075 self = self;
10076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetCount",_kwnames,&_argo0))
10077 return NULL;
10078 if (_argo0) {
10079 if (_argo0 == Py_None) { _arg0 = NULL; }
10080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetCount. Expected _wxFileHistory_p.");
10082 return NULL;
10083 }
10084 }
10085{
0e2ff151 10086 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
10087 _result = (int )wxFileHistory_GetCount(_arg0);
10088
0e2ff151
RD
10089 wxPyEndAllowThreads(__tstate);
10090 if (PyErr_Occurred()) return NULL;
742fc581
RD
10091} _resultobj = Py_BuildValue("i",_result);
10092 return _resultobj;
10093}
10094
10095#define wxFileHistory_GetNoHistoryFiles(_swigobj) (_swigobj->GetNoHistoryFiles())
10096static PyObject *_wrap_wxFileHistory_GetNoHistoryFiles(PyObject *self, PyObject *args, PyObject *kwargs) {
10097 PyObject * _resultobj;
10098 int _result;
10099 wxFileHistory * _arg0;
10100 PyObject * _argo0 = 0;
10101 char *_kwnames[] = { "self", NULL };
10102
10103 self = self;
10104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFileHistory_GetNoHistoryFiles",_kwnames,&_argo0))
10105 return NULL;
10106 if (_argo0) {
10107 if (_argo0 == Py_None) { _arg0 = NULL; }
10108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFileHistory_p")) {
10109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFileHistory_GetNoHistoryFiles. Expected _wxFileHistory_p.");
10110 return NULL;
10111 }
10112 }
10113{
0e2ff151 10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
742fc581
RD
10115 _result = (int )wxFileHistory_GetNoHistoryFiles(_arg0);
10116
0e2ff151
RD
10117 wxPyEndAllowThreads(__tstate);
10118 if (PyErr_Occurred()) return NULL;
742fc581
RD
10119} _resultobj = Py_BuildValue("i",_result);
10120 return _resultobj;
10121}
10122
e6056257 10123static PyMethodDef misc2cMethods[] = {
742fc581
RD
10124 { "wxFileHistory_GetNoHistoryFiles", (PyCFunction) _wrap_wxFileHistory_GetNoHistoryFiles, METH_VARARGS | METH_KEYWORDS },
10125 { "wxFileHistory_GetCount", (PyCFunction) _wrap_wxFileHistory_GetCount, METH_VARARGS | METH_KEYWORDS },
10126 { "wxFileHistory_GetHistoryFile", (PyCFunction) _wrap_wxFileHistory_GetHistoryFile, METH_VARARGS | METH_KEYWORDS },
10127 { "wxFileHistory_AddFilesToSingleMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToSingleMenu, METH_VARARGS | METH_KEYWORDS },
10128 { "wxFileHistory_AddFilesToMenu", (PyCFunction) _wrap_wxFileHistory_AddFilesToMenu, METH_VARARGS | METH_KEYWORDS },
10129 { "wxFileHistory_Save", (PyCFunction) _wrap_wxFileHistory_Save, METH_VARARGS | METH_KEYWORDS },
10130 { "wxFileHistory_Load", (PyCFunction) _wrap_wxFileHistory_Load, METH_VARARGS | METH_KEYWORDS },
10131 { "wxFileHistory_RemoveMenu", (PyCFunction) _wrap_wxFileHistory_RemoveMenu, METH_VARARGS | METH_KEYWORDS },
10132 { "wxFileHistory_UseMenu", (PyCFunction) _wrap_wxFileHistory_UseMenu, METH_VARARGS | METH_KEYWORDS },
10133 { "wxFileHistory_GetMaxFiles", (PyCFunction) _wrap_wxFileHistory_GetMaxFiles, METH_VARARGS | METH_KEYWORDS },
10134 { "wxFileHistory_RemoveFileFromHistory", (PyCFunction) _wrap_wxFileHistory_RemoveFileFromHistory, METH_VARARGS | METH_KEYWORDS },
10135 { "wxFileHistory_AddFileToHistory", (PyCFunction) _wrap_wxFileHistory_AddFileToHistory, METH_VARARGS | METH_KEYWORDS },
10136 { "delete_wxFileHistory", (PyCFunction) _wrap_delete_wxFileHistory, METH_VARARGS | METH_KEYWORDS },
10137 { "new_wxFileHistory", (PyCFunction) _wrap_new_wxFileHistory, METH_VARARGS | METH_KEYWORDS },
b6e5c445
RD
10138 { "delete_wxMimeTypesManager", (PyCFunction) _wrap_delete_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS },
10139 { "wxMimeTypesManager_Unassociate", (PyCFunction) _wrap_wxMimeTypesManager_Unassociate, METH_VARARGS | METH_KEYWORDS },
10140 { "wxMimeTypesManager_Associate", (PyCFunction) _wrap_wxMimeTypesManager_Associate, METH_VARARGS | METH_KEYWORDS },
10141 { "wxMimeTypesManager_AddFallback", (PyCFunction) _wrap_wxMimeTypesManager_AddFallback, METH_VARARGS | METH_KEYWORDS },
10142 { "wxMimeTypesManager_EnumAllFileTypes", (PyCFunction) _wrap_wxMimeTypesManager_EnumAllFileTypes, METH_VARARGS | METH_KEYWORDS },
10143 { "wxMimeTypesManager_ReadMimeTypes", (PyCFunction) _wrap_wxMimeTypesManager_ReadMimeTypes, METH_VARARGS | METH_KEYWORDS },
10144 { "wxMimeTypesManager_ReadMailcap", (PyCFunction) _wrap_wxMimeTypesManager_ReadMailcap, METH_VARARGS | METH_KEYWORDS },
10145 { "wxMimeTypesManager_GetFileTypeFromMimeType", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromMimeType, METH_VARARGS | METH_KEYWORDS },
10146 { "wxMimeTypesManager_GetFileTypeFromExtension", (PyCFunction) _wrap_wxMimeTypesManager_GetFileTypeFromExtension, METH_VARARGS | METH_KEYWORDS },
10147 { "wxMimeTypesManager_ClearData", (PyCFunction) _wrap_wxMimeTypesManager_ClearData, METH_VARARGS | METH_KEYWORDS },
10148 { "wxMimeTypesManager_Initialize", (PyCFunction) _wrap_wxMimeTypesManager_Initialize, METH_VARARGS | METH_KEYWORDS },
10149 { "new_wxMimeTypesManager", (PyCFunction) _wrap_new_wxMimeTypesManager, METH_VARARGS | METH_KEYWORDS },
10150 { "wxMimeTypesManager_IsOfType", (PyCFunction) _wrap_wxMimeTypesManager_IsOfType, METH_VARARGS | METH_KEYWORDS },
10151 { "delete_wxFileType", (PyCFunction) _wrap_delete_wxFileType, METH_VARARGS | METH_KEYWORDS },
10152 { "wxFileType_ExpandCommand", (PyCFunction) _wrap_wxFileType_ExpandCommand, METH_VARARGS | METH_KEYWORDS },
10153 { "wxFileType_Unassociate", (PyCFunction) _wrap_wxFileType_Unassociate, METH_VARARGS | METH_KEYWORDS },
10154 { "wxFileType_SetDefaultIcon", (PyCFunction) _wrap_wxFileType_SetDefaultIcon, METH_VARARGS | METH_KEYWORDS },
10155 { "wxFileType_SetCommand", (PyCFunction) _wrap_wxFileType_SetCommand, METH_VARARGS | METH_KEYWORDS },
10156 { "wxFileType_GetAllCommands", (PyCFunction) _wrap_wxFileType_GetAllCommands, METH_VARARGS | METH_KEYWORDS },
10157 { "wxFileType_GetPrintCommand", (PyCFunction) _wrap_wxFileType_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
10158 { "wxFileType_GetOpenCommand", (PyCFunction) _wrap_wxFileType_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
10159 { "wxFileType_GetDescription", (PyCFunction) _wrap_wxFileType_GetDescription, METH_VARARGS | METH_KEYWORDS },
10160 { "wxFileType_GetIconInfo", (PyCFunction) _wrap_wxFileType_GetIconInfo, METH_VARARGS | METH_KEYWORDS },
10161 { "wxFileType_GetIcon", (PyCFunction) _wrap_wxFileType_GetIcon, METH_VARARGS | METH_KEYWORDS },
10162 { "wxFileType_GetExtensions", (PyCFunction) _wrap_wxFileType_GetExtensions, METH_VARARGS | METH_KEYWORDS },
10163 { "wxFileType_GetMimeTypes", (PyCFunction) _wrap_wxFileType_GetMimeTypes, METH_VARARGS | METH_KEYWORDS },
10164 { "wxFileType_GetMimeType", (PyCFunction) _wrap_wxFileType_GetMimeType, METH_VARARGS | METH_KEYWORDS },
10165 { "new_wxFileType", (PyCFunction) _wrap_new_wxFileType, METH_VARARGS | METH_KEYWORDS },
10166 { "wxFileTypeInfo_GetIconIndex", (PyCFunction) _wrap_wxFileTypeInfo_GetIconIndex, METH_VARARGS | METH_KEYWORDS },
10167 { "wxFileTypeInfo_GetIconFile", (PyCFunction) _wrap_wxFileTypeInfo_GetIconFile, METH_VARARGS | METH_KEYWORDS },
10168 { "wxFileTypeInfo_GetExtensionsCount", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensionsCount, METH_VARARGS | METH_KEYWORDS },
10169 { "wxFileTypeInfo_GetExtensions", (PyCFunction) _wrap_wxFileTypeInfo_GetExtensions, METH_VARARGS | METH_KEYWORDS },
10170 { "wxFileTypeInfo_GetDescription", (PyCFunction) _wrap_wxFileTypeInfo_GetDescription, METH_VARARGS | METH_KEYWORDS },
10171 { "wxFileTypeInfo_GetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_GetShortDesc, METH_VARARGS | METH_KEYWORDS },
10172 { "wxFileTypeInfo_GetPrintCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetPrintCommand, METH_VARARGS | METH_KEYWORDS },
10173 { "wxFileTypeInfo_GetOpenCommand", (PyCFunction) _wrap_wxFileTypeInfo_GetOpenCommand, METH_VARARGS | METH_KEYWORDS },
10174 { "wxFileTypeInfo_GetMimeType", (PyCFunction) _wrap_wxFileTypeInfo_GetMimeType, METH_VARARGS | METH_KEYWORDS },
10175 { "wxFileTypeInfo_SetShortDesc", (PyCFunction) _wrap_wxFileTypeInfo_SetShortDesc, METH_VARARGS | METH_KEYWORDS },
10176 { "wxFileTypeInfo_SetIcon", (PyCFunction) _wrap_wxFileTypeInfo_SetIcon, METH_VARARGS | METH_KEYWORDS },
10177 { "wxFileTypeInfo_IsValid", (PyCFunction) _wrap_wxFileTypeInfo_IsValid, METH_VARARGS | METH_KEYWORDS },
10178 { "new_wxNullFileTypeInfo", (PyCFunction) _wrap_new_wxNullFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
10179 { "new_wxFileTypeInfoSequence", (PyCFunction) _wrap_new_wxFileTypeInfoSequence, METH_VARARGS | METH_KEYWORDS },
10180 { "new_wxFileTypeInfo", (PyCFunction) _wrap_new_wxFileTypeInfo, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10181 { "wxWave_Play", (PyCFunction) _wrap_wxWave_Play, METH_VARARGS | METH_KEYWORDS },
10182 { "wxWave_IsOk", (PyCFunction) _wrap_wxWave_IsOk, METH_VARARGS | METH_KEYWORDS },
10183 { "delete_wxWave", (PyCFunction) _wrap_delete_wxWave, METH_VARARGS | METH_KEYWORDS },
10184 { "new_wxWave", (PyCFunction) _wrap_new_wxWave, METH_VARARGS | METH_KEYWORDS },
10185 { "wxJoystick_ReleaseCapture", (PyCFunction) _wrap_wxJoystick_ReleaseCapture, METH_VARARGS | METH_KEYWORDS },
10186 { "wxJoystick_SetCapture", (PyCFunction) _wrap_wxJoystick_SetCapture, METH_VARARGS | METH_KEYWORDS },
10187 { "wxJoystick_HasPOVCTS", (PyCFunction) _wrap_wxJoystick_HasPOVCTS, METH_VARARGS | METH_KEYWORDS },
10188 { "wxJoystick_HasPOV4Dir", (PyCFunction) _wrap_wxJoystick_HasPOV4Dir, METH_VARARGS | METH_KEYWORDS },
10189 { "wxJoystick_HasPOV", (PyCFunction) _wrap_wxJoystick_HasPOV, METH_VARARGS | METH_KEYWORDS },
10190 { "wxJoystick_HasV", (PyCFunction) _wrap_wxJoystick_HasV, METH_VARARGS | METH_KEYWORDS },
10191 { "wxJoystick_HasU", (PyCFunction) _wrap_wxJoystick_HasU, METH_VARARGS | METH_KEYWORDS },
10192 { "wxJoystick_HasZ", (PyCFunction) _wrap_wxJoystick_HasZ, METH_VARARGS | METH_KEYWORDS },
10193 { "wxJoystick_HasRudder", (PyCFunction) _wrap_wxJoystick_HasRudder, METH_VARARGS | METH_KEYWORDS },
10194 { "wxJoystick_GetVMax", (PyCFunction) _wrap_wxJoystick_GetVMax, METH_VARARGS | METH_KEYWORDS },
10195 { "wxJoystick_GetVMin", (PyCFunction) _wrap_wxJoystick_GetVMin, METH_VARARGS | METH_KEYWORDS },
10196 { "wxJoystick_GetUMax", (PyCFunction) _wrap_wxJoystick_GetUMax, METH_VARARGS | METH_KEYWORDS },
10197 { "wxJoystick_GetUMin", (PyCFunction) _wrap_wxJoystick_GetUMin, METH_VARARGS | METH_KEYWORDS },
10198 { "wxJoystick_GetRudderMax", (PyCFunction) _wrap_wxJoystick_GetRudderMax, METH_VARARGS | METH_KEYWORDS },
10199 { "wxJoystick_GetRudderMin", (PyCFunction) _wrap_wxJoystick_GetRudderMin, METH_VARARGS | METH_KEYWORDS },
10200 { "wxJoystick_GetPollingMax", (PyCFunction) _wrap_wxJoystick_GetPollingMax, METH_VARARGS | METH_KEYWORDS },
10201 { "wxJoystick_GetPollingMin", (PyCFunction) _wrap_wxJoystick_GetPollingMin, METH_VARARGS | METH_KEYWORDS },
10202 { "wxJoystick_GetMaxAxes", (PyCFunction) _wrap_wxJoystick_GetMaxAxes, METH_VARARGS | METH_KEYWORDS },
10203 { "wxJoystick_GetMaxButtons", (PyCFunction) _wrap_wxJoystick_GetMaxButtons, METH_VARARGS | METH_KEYWORDS },
10204 { "wxJoystick_GetNumberAxes", (PyCFunction) _wrap_wxJoystick_GetNumberAxes, METH_VARARGS | METH_KEYWORDS },
10205 { "wxJoystick_GetNumberButtons", (PyCFunction) _wrap_wxJoystick_GetNumberButtons, METH_VARARGS | METH_KEYWORDS },
10206 { "wxJoystick_GetZMax", (PyCFunction) _wrap_wxJoystick_GetZMax, METH_VARARGS | METH_KEYWORDS },
10207 { "wxJoystick_GetYMax", (PyCFunction) _wrap_wxJoystick_GetYMax, METH_VARARGS | METH_KEYWORDS },
10208 { "wxJoystick_GetXMax", (PyCFunction) _wrap_wxJoystick_GetXMax, METH_VARARGS | METH_KEYWORDS },
10209 { "wxJoystick_GetZMin", (PyCFunction) _wrap_wxJoystick_GetZMin, METH_VARARGS | METH_KEYWORDS },
10210 { "wxJoystick_GetYMin", (PyCFunction) _wrap_wxJoystick_GetYMin, METH_VARARGS | METH_KEYWORDS },
10211 { "wxJoystick_GetXMin", (PyCFunction) _wrap_wxJoystick_GetXMin, METH_VARARGS | METH_KEYWORDS },
10212 { "wxJoystick_GetProductName", (PyCFunction) _wrap_wxJoystick_GetProductName, METH_VARARGS | METH_KEYWORDS },
10213 { "wxJoystick_GetProductId", (PyCFunction) _wrap_wxJoystick_GetProductId, METH_VARARGS | METH_KEYWORDS },
10214 { "wxJoystick_GetManufacturerId", (PyCFunction) _wrap_wxJoystick_GetManufacturerId, METH_VARARGS | METH_KEYWORDS },
10215 { "wxJoystick_GetNumberJoysticks", (PyCFunction) _wrap_wxJoystick_GetNumberJoysticks, METH_VARARGS | METH_KEYWORDS },
10216 { "wxJoystick_IsOk", (PyCFunction) _wrap_wxJoystick_IsOk, METH_VARARGS | METH_KEYWORDS },
10217 { "wxJoystick_SetMovementThreshold", (PyCFunction) _wrap_wxJoystick_SetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
10218 { "wxJoystick_GetMovementThreshold", (PyCFunction) _wrap_wxJoystick_GetMovementThreshold, METH_VARARGS | METH_KEYWORDS },
10219 { "wxJoystick_GetVPosition", (PyCFunction) _wrap_wxJoystick_GetVPosition, METH_VARARGS | METH_KEYWORDS },
10220 { "wxJoystick_GetUPosition", (PyCFunction) _wrap_wxJoystick_GetUPosition, METH_VARARGS | METH_KEYWORDS },
10221 { "wxJoystick_GetRudderPosition", (PyCFunction) _wrap_wxJoystick_GetRudderPosition, METH_VARARGS | METH_KEYWORDS },
10222 { "wxJoystick_GetPOVCTSPosition", (PyCFunction) _wrap_wxJoystick_GetPOVCTSPosition, METH_VARARGS | METH_KEYWORDS },
10223 { "wxJoystick_GetPOVPosition", (PyCFunction) _wrap_wxJoystick_GetPOVPosition, METH_VARARGS | METH_KEYWORDS },
10224 { "wxJoystick_GetButtonState", (PyCFunction) _wrap_wxJoystick_GetButtonState, METH_VARARGS | METH_KEYWORDS },
10225 { "wxJoystick_GetZPosition", (PyCFunction) _wrap_wxJoystick_GetZPosition, METH_VARARGS | METH_KEYWORDS },
10226 { "wxJoystick_GetPosition", (PyCFunction) _wrap_wxJoystick_GetPosition, METH_VARARGS | METH_KEYWORDS },
10227 { "delete_wxJoystick", (PyCFunction) _wrap_delete_wxJoystick, METH_VARARGS | METH_KEYWORDS },
10228 { "new_wxJoystick", (PyCFunction) _wrap_new_wxJoystick, METH_VARARGS | METH_KEYWORDS },
10229 { "wxProcess_CloseOutput", (PyCFunction) _wrap_wxProcess_CloseOutput, METH_VARARGS | METH_KEYWORDS },
10230 { "wxProcess_GetOutputStream", (PyCFunction) _wrap_wxProcess_GetOutputStream, METH_VARARGS | METH_KEYWORDS },
10231 { "wxProcess_GetErrorStream", (PyCFunction) _wrap_wxProcess_GetErrorStream, METH_VARARGS | METH_KEYWORDS },
10232 { "wxProcess_GetInputStream", (PyCFunction) _wrap_wxProcess_GetInputStream, METH_VARARGS | METH_KEYWORDS },
10233 { "wxProcess_Detach", (PyCFunction) _wrap_wxProcess_Detach, METH_VARARGS | METH_KEYWORDS },
10234 { "wxProcess_IsRedirected", (PyCFunction) _wrap_wxProcess_IsRedirected, METH_VARARGS | METH_KEYWORDS },
10235 { "wxProcess_Redirect", (PyCFunction) _wrap_wxProcess_Redirect, METH_VARARGS | METH_KEYWORDS },
10236 { "wxProcess_base_OnTerminate", (PyCFunction) _wrap_wxProcess_base_OnTerminate, METH_VARARGS | METH_KEYWORDS },
10237 { "wxProcess__setCallbackInfo", (PyCFunction) _wrap_wxProcess__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
10238 { "wxProcess_Destroy", (PyCFunction) _wrap_wxProcess_Destroy, METH_VARARGS | METH_KEYWORDS },
10239 { "new_wxProcess", (PyCFunction) _wrap_new_wxProcess, METH_VARARGS | METH_KEYWORDS },
10240 { "wxProcessEvent_m_exitcode_get", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_get, METH_VARARGS | METH_KEYWORDS },
10241 { "wxProcessEvent_m_exitcode_set", (PyCFunction) _wrap_wxProcessEvent_m_exitcode_set, METH_VARARGS | METH_KEYWORDS },
10242 { "wxProcessEvent_m_pid_get", (PyCFunction) _wrap_wxProcessEvent_m_pid_get, METH_VARARGS | METH_KEYWORDS },
10243 { "wxProcessEvent_m_pid_set", (PyCFunction) _wrap_wxProcessEvent_m_pid_set, METH_VARARGS | METH_KEYWORDS },
10244 { "wxProcessEvent_GetExitCode", (PyCFunction) _wrap_wxProcessEvent_GetExitCode, METH_VARARGS | METH_KEYWORDS },
10245 { "wxProcessEvent_GetPid", (PyCFunction) _wrap_wxProcessEvent_GetPid, METH_VARARGS | METH_KEYWORDS },
10246 { "new_wxProcessEvent", (PyCFunction) _wrap_new_wxProcessEvent, METH_VARARGS | METH_KEYWORDS },
10247 { "wxPyLog_Destroy", (PyCFunction) _wrap_wxPyLog_Destroy, METH_VARARGS | METH_KEYWORDS },
10248 { "wxPyLog__setCallbackInfo", (PyCFunction) _wrap_wxPyLog__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
10249 { "new_wxPyLog", (PyCFunction) _wrap_new_wxPyLog, METH_VARARGS | METH_KEYWORDS },
10250 { "wxLogChain_GetOldLog", (PyCFunction) _wrap_wxLogChain_GetOldLog, METH_VARARGS | METH_KEYWORDS },
10251 { "wxLogChain_IsPassingMessages", (PyCFunction) _wrap_wxLogChain_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
10252 { "wxLogChain_PassMessages", (PyCFunction) _wrap_wxLogChain_PassMessages, METH_VARARGS | METH_KEYWORDS },
10253 { "wxLogChain_SetLog", (PyCFunction) _wrap_wxLogChain_SetLog, METH_VARARGS | METH_KEYWORDS },
10254 { "new_wxLogChain", (PyCFunction) _wrap_new_wxLogChain, METH_VARARGS | METH_KEYWORDS },
10255 { "delete_wxLogNull", (PyCFunction) _wrap_delete_wxLogNull, METH_VARARGS | METH_KEYWORDS },
10256 { "new_wxLogNull", (PyCFunction) _wrap_new_wxLogNull, METH_VARARGS | METH_KEYWORDS },
10257 { "wxLogWindow_PassMessages", (PyCFunction) _wrap_wxLogWindow_PassMessages, METH_VARARGS | METH_KEYWORDS },
10258 { "wxLogWindow_IsPassingMessages", (PyCFunction) _wrap_wxLogWindow_IsPassingMessages, METH_VARARGS | METH_KEYWORDS },
10259 { "wxLogWindow_GetOldLog", (PyCFunction) _wrap_wxLogWindow_GetOldLog, METH_VARARGS | METH_KEYWORDS },
10260 { "wxLogWindow_GetFrame", (PyCFunction) _wrap_wxLogWindow_GetFrame, METH_VARARGS | METH_KEYWORDS },
10261 { "wxLogWindow_Show", (PyCFunction) _wrap_wxLogWindow_Show, METH_VARARGS | METH_KEYWORDS },
10262 { "new_wxLogWindow", (PyCFunction) _wrap_new_wxLogWindow, METH_VARARGS | METH_KEYWORDS },
10263 { "new_wxLogGui", (PyCFunction) _wrap_new_wxLogGui, METH_VARARGS | METH_KEYWORDS },
10264 { "new_wxLogTextCtrl", (PyCFunction) _wrap_new_wxLogTextCtrl, METH_VARARGS | METH_KEYWORDS },
10265 { "new_wxLogStderr", (PyCFunction) _wrap_new_wxLogStderr, METH_VARARGS | METH_KEYWORDS },
10266 { "wxLog_TimeStamp", (PyCFunction) _wrap_wxLog_TimeStamp, METH_VARARGS | METH_KEYWORDS },
10267 { "wxLog_IsAllowedTraceMask", (PyCFunction) _wrap_wxLog_IsAllowedTraceMask, METH_VARARGS | METH_KEYWORDS },
10268 { "wxLog_GetTraceMask", (PyCFunction) _wrap_wxLog_GetTraceMask, METH_VARARGS | METH_KEYWORDS },
10269 { "wxLog_GetVerbose", (PyCFunction) _wrap_wxLog_GetVerbose, METH_VARARGS | METH_KEYWORDS },
10270 { "wxLog_GetTimestamp", (PyCFunction) _wrap_wxLog_GetTimestamp, METH_VARARGS | METH_KEYWORDS },
10271 { "wxLog_SetTimestamp", (PyCFunction) _wrap_wxLog_SetTimestamp, METH_VARARGS | METH_KEYWORDS },
10272 { "wxLog_ClearTraceMasks", (PyCFunction) _wrap_wxLog_ClearTraceMasks, METH_VARARGS | METH_KEYWORDS },
10273 { "wxLog_RemoveTraceMask", (PyCFunction) _wrap_wxLog_RemoveTraceMask, METH_VARARGS | METH_KEYWORDS },
10274 { "wxLog_AddTraceMask", (PyCFunction) _wrap_wxLog_AddTraceMask, METH_VARARGS | METH_KEYWORDS },
10275 { "wxLog_SetTraceMask", (PyCFunction) _wrap_wxLog_SetTraceMask, METH_VARARGS | METH_KEYWORDS },
10276 { "wxLog_DontCreateOnDemand", (PyCFunction) _wrap_wxLog_DontCreateOnDemand, METH_VARARGS | METH_KEYWORDS },
10277 { "wxLog_SetVerbose", (PyCFunction) _wrap_wxLog_SetVerbose, METH_VARARGS | METH_KEYWORDS },
10278 { "wxLog_Resume", (PyCFunction) _wrap_wxLog_Resume, METH_VARARGS | METH_KEYWORDS },
10279 { "wxLog_Suspend", (PyCFunction) _wrap_wxLog_Suspend, METH_VARARGS | METH_KEYWORDS },
10280 { "wxLog_SetActiveTarget", (PyCFunction) _wrap_wxLog_SetActiveTarget, METH_VARARGS | METH_KEYWORDS },
10281 { "wxLog_GetActiveTarget", (PyCFunction) _wrap_wxLog_GetActiveTarget, METH_VARARGS | METH_KEYWORDS },
10282 { "wxLog_FlushActive", (PyCFunction) _wrap_wxLog_FlushActive, METH_VARARGS | METH_KEYWORDS },
10283 { "wxLog_HasPendingMessages", (PyCFunction) _wrap_wxLog_HasPendingMessages, METH_VARARGS | METH_KEYWORDS },
10284 { "wxLog_Flush", (PyCFunction) _wrap_wxLog_Flush, METH_VARARGS | METH_KEYWORDS },
10285 { "wxLog_OnLog", (PyCFunction) _wrap_wxLog_OnLog, METH_VARARGS | METH_KEYWORDS },
10286 { "wxLog_EnableLogging", (PyCFunction) _wrap_wxLog_EnableLogging, METH_VARARGS | METH_KEYWORDS },
10287 { "wxLog_IsEnabled", (PyCFunction) _wrap_wxLog_IsEnabled, METH_VARARGS | METH_KEYWORDS },
10288 { "new_wxLog", (PyCFunction) _wrap_new_wxLog, METH_VARARGS | METH_KEYWORDS },
b6e5c445
RD
10289 { "wxStopWatch_Time", (PyCFunction) _wrap_wxStopWatch_Time, METH_VARARGS | METH_KEYWORDS },
10290 { "wxStopWatch_Resume", (PyCFunction) _wrap_wxStopWatch_Resume, METH_VARARGS | METH_KEYWORDS },
10291 { "wxStopWatch_Pause", (PyCFunction) _wrap_wxStopWatch_Pause, METH_VARARGS | METH_KEYWORDS },
10292 { "wxStopWatch_Start", (PyCFunction) _wrap_wxStopWatch_Start, METH_VARARGS | METH_KEYWORDS },
d1e76a37 10293 { "delete_wxStopWatch", (PyCFunction) _wrap_delete_wxStopWatch, METH_VARARGS | METH_KEYWORDS },
b6e5c445 10294 { "new_wxStopWatch", (PyCFunction) _wrap_new_wxStopWatch, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10295 { "wxPyTimer_Stop", (PyCFunction) _wrap_wxPyTimer_Stop, METH_VARARGS | METH_KEYWORDS },
10296 { "wxPyTimer_Start", (PyCFunction) _wrap_wxPyTimer_Start, METH_VARARGS | METH_KEYWORDS },
10297 { "wxPyTimer_SetOwner", (PyCFunction) _wrap_wxPyTimer_SetOwner, METH_VARARGS | METH_KEYWORDS },
10298 { "wxPyTimer_IsRunning", (PyCFunction) _wrap_wxPyTimer_IsRunning, METH_VARARGS | METH_KEYWORDS },
10299 { "wxPyTimer_IsOneShot", (PyCFunction) _wrap_wxPyTimer_IsOneShot, METH_VARARGS | METH_KEYWORDS },
10300 { "wxPyTimer_GetInterval", (PyCFunction) _wrap_wxPyTimer_GetInterval, METH_VARARGS | METH_KEYWORDS },
10301 { "delete_wxPyTimer", (PyCFunction) _wrap_delete_wxPyTimer, METH_VARARGS | METH_KEYWORDS },
10302 { "new_wxPyTimer", (PyCFunction) _wrap_new_wxPyTimer, METH_VARARGS | METH_KEYWORDS },
10303 { "wxDragImage_RedrawImage", (PyCFunction) _wrap_wxDragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS },
10304 { "wxDragImage_GetImageRect", (PyCFunction) _wrap_wxDragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS },
10305 { "wxDragImage_Hide", (PyCFunction) _wrap_wxDragImage_Hide, METH_VARARGS | METH_KEYWORDS },
10306 { "wxDragImage_Show", (PyCFunction) _wrap_wxDragImage_Show, METH_VARARGS | METH_KEYWORDS },
10307 { "wxDragImage_Move", (PyCFunction) _wrap_wxDragImage_Move, METH_VARARGS | METH_KEYWORDS },
10308 { "wxDragImage_EndDrag", (PyCFunction) _wrap_wxDragImage_EndDrag, METH_VARARGS | METH_KEYWORDS },
10309 { "wxDragImage_BeginDrag2", (PyCFunction) _wrap_wxDragImage_BeginDrag2, METH_VARARGS | METH_KEYWORDS },
10310 { "wxDragImage_BeginDrag", (PyCFunction) _wrap_wxDragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS },
10311 { "wxDragImage_SetBackingBitmap", (PyCFunction) _wrap_wxDragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS },
10312 { "delete_wxDragImage", (PyCFunction) _wrap_delete_wxDragImage, METH_VARARGS | METH_KEYWORDS },
10313 { "new_wxDragListItem", (PyCFunction) _wrap_new_wxDragListItem, METH_VARARGS | METH_KEYWORDS },
10314 { "new_wxDragTreeItem", (PyCFunction) _wrap_new_wxDragTreeItem, METH_VARARGS | METH_KEYWORDS },
10315 { "new_wxDragString", (PyCFunction) _wrap_new_wxDragString, METH_VARARGS | METH_KEYWORDS },
10316 { "new_wxDragIcon", (PyCFunction) _wrap_new_wxDragIcon, METH_VARARGS | METH_KEYWORDS },
10317 { "new_wxDragImage", (PyCFunction) _wrap_new_wxDragImage, METH_VARARGS | METH_KEYWORDS },
10318 { "new_wxPyTipProvider", (PyCFunction) _wrap_new_wxPyTipProvider, METH_VARARGS | METH_KEYWORDS },
10319 { "wxTipProvider_GetCurrentTip", (PyCFunction) _wrap_wxTipProvider_GetCurrentTip, METH_VARARGS | METH_KEYWORDS },
10320 { "wxTipProvider_GetTip", (PyCFunction) _wrap_wxTipProvider_GetTip, METH_VARARGS | METH_KEYWORDS },
10321 { "delete_wxTipProvider", (PyCFunction) _wrap_delete_wxTipProvider, METH_VARARGS | METH_KEYWORDS },
10322 { "delete_wxMutexGuiLocker", (PyCFunction) _wrap_delete_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
10323 { "new_wxMutexGuiLocker", (PyCFunction) _wrap_new_wxMutexGuiLocker, METH_VARARGS | METH_KEYWORDS },
10324 { "delete_wxWindowDisabler", (PyCFunction) _wrap_delete_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS },
10325 { "new_wxWindowDisabler", (PyCFunction) _wrap_new_wxWindowDisabler, METH_VARARGS | METH_KEYWORDS },
10326 { "delete_wxBusyCursor", (PyCFunction) _wrap_delete_wxBusyCursor, METH_VARARGS | METH_KEYWORDS },
10327 { "new_wxBusyCursor", (PyCFunction) _wrap_new_wxBusyCursor, METH_VARARGS | METH_KEYWORDS },
10328 { "wxFontEnumerator_GetFacenames", (PyCFunction) _wrap_wxFontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
10329 { "wxFontEnumerator_GetEncodings", (PyCFunction) _wrap_wxFontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
10330 { "wxFontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_wxFontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
10331 { "wxFontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_wxFontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
10332 { "wxFontEnumerator__setCallbackInfo", (PyCFunction) _wrap_wxFontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
10333 { "delete_wxFontEnumerator", (PyCFunction) _wrap_delete_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS },
10334 { "new_wxFontEnumerator", (PyCFunction) _wrap_new_wxFontEnumerator, METH_VARARGS | METH_KEYWORDS },
10335 { "wxCaret_Hide", (PyCFunction) _wrap_wxCaret_Hide, METH_VARARGS | METH_KEYWORDS },
10336 { "wxCaret_Show", (PyCFunction) _wrap_wxCaret_Show, METH_VARARGS | METH_KEYWORDS },
10337 { "wxCaret_SetSize", (PyCFunction) _wrap_wxCaret_SetSize, METH_VARARGS | METH_KEYWORDS },
10338 { "wxCaret_SetSizeWH", (PyCFunction) _wrap_wxCaret_SetSizeWH, METH_VARARGS | METH_KEYWORDS },
10339 { "wxCaret_Move", (PyCFunction) _wrap_wxCaret_Move, METH_VARARGS | METH_KEYWORDS },
10340 { "wxCaret_MoveXY", (PyCFunction) _wrap_wxCaret_MoveXY, METH_VARARGS | METH_KEYWORDS },
10341 { "wxCaret_GetWindow", (PyCFunction) _wrap_wxCaret_GetWindow, METH_VARARGS | METH_KEYWORDS },
10342 { "wxCaret_GetSize", (PyCFunction) _wrap_wxCaret_GetSize, METH_VARARGS | METH_KEYWORDS },
10343 { "wxCaret_GetSizeTuple", (PyCFunction) _wrap_wxCaret_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10344 { "wxCaret_GetPosition", (PyCFunction) _wrap_wxCaret_GetPosition, METH_VARARGS | METH_KEYWORDS },
10345 { "wxCaret_GetPositionTuple", (PyCFunction) _wrap_wxCaret_GetPositionTuple, METH_VARARGS | METH_KEYWORDS },
10346 { "wxCaret_IsVisible", (PyCFunction) _wrap_wxCaret_IsVisible, METH_VARARGS | METH_KEYWORDS },
10347 { "wxCaret_IsOk", (PyCFunction) _wrap_wxCaret_IsOk, METH_VARARGS | METH_KEYWORDS },
10348 { "delete_wxCaret", (PyCFunction) _wrap_delete_wxCaret, METH_VARARGS | METH_KEYWORDS },
10349 { "new_wxCaret", (PyCFunction) _wrap_new_wxCaret, METH_VARARGS | METH_KEYWORDS },
10350 { "wxToolTip_SetDelay", (PyCFunction) _wrap_wxToolTip_SetDelay, METH_VARARGS | METH_KEYWORDS },
10351 { "wxToolTip_Enable", (PyCFunction) _wrap_wxToolTip_Enable, METH_VARARGS | METH_KEYWORDS },
10352 { "wxToolTip_GetWindow", (PyCFunction) _wrap_wxToolTip_GetWindow, METH_VARARGS | METH_KEYWORDS },
10353 { "wxToolTip_GetTip", (PyCFunction) _wrap_wxToolTip_GetTip, METH_VARARGS | METH_KEYWORDS },
10354 { "wxToolTip_SetTip", (PyCFunction) _wrap_wxToolTip_SetTip, METH_VARARGS | METH_KEYWORDS },
10355 { "new_wxToolTip", (PyCFunction) _wrap_new_wxToolTip, METH_VARARGS | METH_KEYWORDS },
6abe8375
RD
10356 { "wxSystemSettings_HasFeature", (PyCFunction) _wrap_wxSystemSettings_HasFeature, METH_VARARGS | METH_KEYWORDS },
10357 { "wxSystemSettings_GetMetric", (PyCFunction) _wrap_wxSystemSettings_GetMetric, METH_VARARGS | METH_KEYWORDS },
10358 { "wxSystemSettings_GetFont", (PyCFunction) _wrap_wxSystemSettings_GetFont, METH_VARARGS | METH_KEYWORDS },
10359 { "wxSystemSettings_GetColour", (PyCFunction) _wrap_wxSystemSettings_GetColour, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10360 { "wxWaveData", (PyCFunction) _wrap_wxWaveData, METH_VARARGS | METH_KEYWORDS },
10361 { "wxExecute", (PyCFunction) _wrap_wxExecute, METH_VARARGS | METH_KEYWORDS },
10362 { "wxLogSysError", (PyCFunction) _wrap_wxLogSysError, METH_VARARGS | METH_KEYWORDS },
10363 { "wxLogStatusFrame", (PyCFunction) _wrap_wxLogStatusFrame, METH_VARARGS | METH_KEYWORDS },
10364 { "wxLogStatus", (PyCFunction) _wrap_wxLogStatus, METH_VARARGS | METH_KEYWORDS },
10365 { "wxLogVerbose", (PyCFunction) _wrap_wxLogVerbose, METH_VARARGS | METH_KEYWORDS },
10366 { "wxLogInfo", (PyCFunction) _wrap_wxLogInfo, METH_VARARGS | METH_KEYWORDS },
10367 { "wxLogMessage", (PyCFunction) _wrap_wxLogMessage, METH_VARARGS | METH_KEYWORDS },
10368 { "wxLogWarning", (PyCFunction) _wrap_wxLogWarning, METH_VARARGS | METH_KEYWORDS },
10369 { "wxLogError", (PyCFunction) _wrap_wxLogError, METH_VARARGS | METH_KEYWORDS },
10370 { "wxLogFatalError", (PyCFunction) _wrap_wxLogFatalError, METH_VARARGS | METH_KEYWORDS },
10371 { "wxSysErrorMsg", (PyCFunction) _wrap_wxSysErrorMsg, METH_VARARGS | METH_KEYWORDS },
10372 { "wxSysErrorCode", (PyCFunction) _wrap_wxSysErrorCode, METH_VARARGS | METH_KEYWORDS },
10373 { "wxCreateFileTipProvider", (PyCFunction) _wrap_wxCreateFileTipProvider, METH_VARARGS | METH_KEYWORDS },
10374 { "wxShowTip", (PyCFunction) _wrap_wxShowTip, METH_VARARGS | METH_KEYWORDS },
10375 { "wxThread_IsMain", (PyCFunction) _wrap_wxThread_IsMain, METH_VARARGS | METH_KEYWORDS },
10376 { "wxMutexGuiLeave", (PyCFunction) _wrap_wxMutexGuiLeave, METH_VARARGS | METH_KEYWORDS },
10377 { "wxMutexGuiEnter", (PyCFunction) _wrap_wxMutexGuiEnter, METH_VARARGS | METH_KEYWORDS },
10378 { "wxWakeUpIdle", (PyCFunction) _wrap_wxWakeUpIdle, METH_VARARGS | METH_KEYWORDS },
10379 { "wxPostEvent", (PyCFunction) _wrap_wxPostEvent, METH_VARARGS | METH_KEYWORDS },
10380 { "wxSafeYield", (PyCFunction) _wrap_wxSafeYield, METH_VARARGS | METH_KEYWORDS },
10381 { "wxCaret_SetBlinkTime", (PyCFunction) _wrap_wxCaret_SetBlinkTime, METH_VARARGS | METH_KEYWORDS },
10382 { "wxCaret_GetBlinkTime", (PyCFunction) _wrap_wxCaret_GetBlinkTime, METH_VARARGS | METH_KEYWORDS },
e6056257
RD
10383 { "wxResourceParseString", (PyCFunction) _wrap_wxResourceParseString, METH_VARARGS | METH_KEYWORDS },
10384 { "wxResourceParseFile", (PyCFunction) _wrap_wxResourceParseFile, METH_VARARGS | METH_KEYWORDS },
10385 { "wxResourceParseData", (PyCFunction) _wrap_wxResourceParseData, METH_VARARGS | METH_KEYWORDS },
10386 { "wxResourceGetIdentifier", (PyCFunction) _wrap_wxResourceGetIdentifier, METH_VARARGS | METH_KEYWORDS },
10387 { "wxResourceCreateMenuBar", (PyCFunction) _wrap_wxResourceCreateMenuBar, METH_VARARGS | METH_KEYWORDS },
10388 { "wxResourceCreateIcon", (PyCFunction) _wrap_wxResourceCreateIcon, METH_VARARGS | METH_KEYWORDS },
10389 { "wxResourceCreateBitmap", (PyCFunction) _wrap_wxResourceCreateBitmap, METH_VARARGS | METH_KEYWORDS },
10390 { "wxResourceClear", (PyCFunction) _wrap_wxResourceClear, METH_VARARGS | METH_KEYWORDS },
10391 { "wxResourceAddIdentifier", (PyCFunction) _wrap_wxResourceAddIdentifier, METH_VARARGS | METH_KEYWORDS },
10392 { "wxFindWindowAtPoint", (PyCFunction) _wrap_wxFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
10393 { "wxGenericFindWindowAtPoint", (PyCFunction) _wrap_wxGenericFindWindowAtPoint, METH_VARARGS | METH_KEYWORDS },
10394 { "wxGetActiveWindow", (PyCFunction) _wrap_wxGetActiveWindow, METH_VARARGS | METH_KEYWORDS },
10395 { "wxBeginBusyCursor", (PyCFunction) _wrap_wxBeginBusyCursor, METH_VARARGS | METH_KEYWORDS },
10396 { "wxFindWindowByName", (PyCFunction) _wrap_wxFindWindowByName, METH_VARARGS | METH_KEYWORDS },
10397 { "wxFindWindowByLabel", (PyCFunction) _wrap_wxFindWindowByLabel, METH_VARARGS | METH_KEYWORDS },
10398 { "wxSetCursor", (PyCFunction) _wrap_wxSetCursor, METH_VARARGS | METH_KEYWORDS },
10399 { "wxGetClientDisplayRect", (PyCFunction) _wrap_wxGetClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
10400 { "wxClientDisplayRect", (PyCFunction) _wrap_wxClientDisplayRect, METH_VARARGS | METH_KEYWORDS },
10401 { "wxGetDisplaySizeMM", (PyCFunction) _wrap_wxGetDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
10402 { "wxDisplaySizeMM", (PyCFunction) _wrap_wxDisplaySizeMM, METH_VARARGS | METH_KEYWORDS },
10403 { "wxGetDisplaySize", (PyCFunction) _wrap_wxGetDisplaySize, METH_VARARGS | METH_KEYWORDS },
10404 { "wxDisplaySize", (PyCFunction) _wrap_wxDisplaySize, METH_VARARGS | METH_KEYWORDS },
10405 { "wxGetDisplayDepth", (PyCFunction) _wrap_wxGetDisplayDepth, METH_VARARGS | METH_KEYWORDS },
10406 { "wxDisplayDepth", (PyCFunction) _wrap_wxDisplayDepth, METH_VARARGS | METH_KEYWORDS },
10407 { "wxColourDisplay", (PyCFunction) _wrap_wxColourDisplay, METH_VARARGS | METH_KEYWORDS },
10408 { "wxGetNumberFromUser", (PyCFunction) _wrap_wxGetNumberFromUser, METH_VARARGS | METH_KEYWORDS },
10409 { "wxMessageBox", (PyCFunction) _wrap_wxMessageBox, METH_VARARGS | METH_KEYWORDS },
10410 { "wxGetSingleChoiceIndex", (PyCFunction) _wrap_wxGetSingleChoiceIndex, METH_VARARGS | METH_KEYWORDS },
10411 { "wxGetSingleChoice", (PyCFunction) _wrap_wxGetSingleChoice, METH_VARARGS | METH_KEYWORDS },
10412 { "wxGetPasswordFromUser", (PyCFunction) _wrap_wxGetPasswordFromUser, METH_VARARGS | METH_KEYWORDS },
10413 { "wxGetTextFromUser", (PyCFunction) _wrap_wxGetTextFromUser, METH_VARARGS | METH_KEYWORDS },
10414 { "wxFileSelector", (PyCFunction) _wrap_wxFileSelector, METH_VARARGS | METH_KEYWORDS },
10415 { NULL, NULL }
10416};
10417#ifdef __cplusplus
10418}
10419#endif
10420/*
10421 * This table is used by the pointer type-checker
10422 */
10423static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10424 { "_wxEvent","_wxProcessEvent",SwigwxProcessEventTowxEvent},
10425 { "_signed_long","_long",0},
10426 { "_wxPrintQuality","_wxCoord",0},
10427 { "_wxPrintQuality","_int",0},
10428 { "_wxPrintQuality","_signed_int",0},
10429 { "_wxPrintQuality","_unsigned_int",0},
10430 { "_wxPrintQuality","_wxWindowID",0},
10431 { "_wxPrintQuality","_uint",0},
10432 { "_wxPrintQuality","_EBool",0},
10433 { "_wxPrintQuality","_size_t",0},
10434 { "_wxPrintQuality","_time_t",0},
10435 { "_wxLog","_wxPyLog",SwigwxPyLogTowxLog},
10436 { "_wxLog","_wxLogChain",SwigwxLogChainTowxLog},
10437 { "_wxLog","_wxLogWindow",SwigwxLogWindowTowxLog},
10438 { "_wxLog","_wxLogGui",SwigwxLogGuiTowxLog},
10439 { "_wxLog","_wxLogTextCtrl",SwigwxLogTextCtrlTowxLog},
10440 { "_wxLog","_wxLogStderr",SwigwxLogStderrTowxLog},
10441 { "_byte","_unsigned_char",0},
10442 { "_long","_unsigned_long",0},
10443 { "_long","_signed_long",0},
10444 { "_size_t","_wxCoord",0},
10445 { "_size_t","_wxPrintQuality",0},
10446 { "_size_t","_time_t",0},
10447 { "_size_t","_unsigned_int",0},
10448 { "_size_t","_int",0},
10449 { "_size_t","_wxWindowID",0},
10450 { "_size_t","_uint",0},
10451 { "_uint","_wxCoord",0},
10452 { "_uint","_wxPrintQuality",0},
10453 { "_uint","_time_t",0},
10454 { "_uint","_size_t",0},
10455 { "_uint","_unsigned_int",0},
10456 { "_uint","_int",0},
10457 { "_uint","_wxWindowID",0},
10458 { "_wxChar","_char",0},
10459 { "_char","_wxChar",0},
10460 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
10461 { "_EBool","_wxCoord",0},
10462 { "_EBool","_wxPrintQuality",0},
10463 { "_EBool","_signed_int",0},
10464 { "_EBool","_int",0},
10465 { "_EBool","_wxWindowID",0},
10466 { "_unsigned_long","_long",0},
10467 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
10468 { "_signed_int","_wxCoord",0},
10469 { "_signed_int","_wxPrintQuality",0},
10470 { "_signed_int","_EBool",0},
10471 { "_signed_int","_wxWindowID",0},
10472 { "_signed_int","_int",0},
742fc581 10473 { "_WXTYPE","_wxDateTime_t",0},
e6056257
RD
10474 { "_WXTYPE","_short",0},
10475 { "_WXTYPE","_signed_short",0},
10476 { "_WXTYPE","_unsigned_short",0},
10477 { "_wxTipProvider","_wxPyTipProvider",SwigwxPyTipProviderTowxTipProvider},
742fc581 10478 { "_unsigned_short","_wxDateTime_t",0},
e6056257
RD
10479 { "_unsigned_short","_WXTYPE",0},
10480 { "_unsigned_short","_short",0},
742fc581 10481 { "_wxObject","_wxFileHistory",SwigwxFileHistoryTowxObject},
e6056257
RD
10482 { "_wxObject","_wxWave",SwigwxWaveTowxObject},
10483 { "_wxObject","_wxJoystick",SwigwxJoystickTowxObject},
10484 { "_wxObject","_wxPyProcess",SwigwxPyProcessTowxObject},
10485 { "_wxObject","_wxProcessEvent",SwigwxProcessEventTowxObject},
10486 { "_wxObject","_wxPyTimer",SwigwxPyTimerTowxObject},
10487 { "_wxObject","_wxGenericDragImage",SwigwxGenericDragImageTowxObject},
10488 { "_wxObject","_wxToolTip",SwigwxToolTipTowxObject},
10489 { "_signed_short","_WXTYPE",0},
10490 { "_signed_short","_short",0},
10491 { "_unsigned_char","_byte",0},
10492 { "_unsigned_int","_wxCoord",0},
10493 { "_unsigned_int","_wxPrintQuality",0},
10494 { "_unsigned_int","_time_t",0},
10495 { "_unsigned_int","_size_t",0},
10496 { "_unsigned_int","_uint",0},
10497 { "_unsigned_int","_wxWindowID",0},
10498 { "_unsigned_int","_int",0},
742fc581 10499 { "_short","_wxDateTime_t",0},
e6056257
RD
10500 { "_short","_WXTYPE",0},
10501 { "_short","_unsigned_short",0},
10502 { "_short","_signed_short",0},
10503 { "_wxWindowID","_wxCoord",0},
10504 { "_wxWindowID","_wxPrintQuality",0},
10505 { "_wxWindowID","_time_t",0},
10506 { "_wxWindowID","_size_t",0},
10507 { "_wxWindowID","_EBool",0},
10508 { "_wxWindowID","_uint",0},
10509 { "_wxWindowID","_int",0},
10510 { "_wxWindowID","_signed_int",0},
10511 { "_wxWindowID","_unsigned_int",0},
10512 { "_int","_wxCoord",0},
10513 { "_int","_wxPrintQuality",0},
10514 { "_int","_time_t",0},
10515 { "_int","_size_t",0},
10516 { "_int","_EBool",0},
10517 { "_int","_uint",0},
10518 { "_int","_wxWindowID",0},
10519 { "_int","_unsigned_int",0},
10520 { "_int","_signed_int",0},
742fc581
RD
10521 { "_wxDateTime_t","_unsigned_short",0},
10522 { "_wxDateTime_t","_short",0},
10523 { "_wxDateTime_t","_WXTYPE",0},
e6056257
RD
10524 { "_time_t","_wxCoord",0},
10525 { "_time_t","_wxPrintQuality",0},
10526 { "_time_t","_unsigned_int",0},
10527 { "_time_t","_int",0},
10528 { "_time_t","_wxWindowID",0},
10529 { "_time_t","_uint",0},
10530 { "_time_t","_size_t",0},
10531 { "_wxCoord","_int",0},
10532 { "_wxCoord","_signed_int",0},
10533 { "_wxCoord","_unsigned_int",0},
10534 { "_wxCoord","_wxWindowID",0},
10535 { "_wxCoord","_uint",0},
10536 { "_wxCoord","_EBool",0},
10537 { "_wxCoord","_size_t",0},
10538 { "_wxCoord","_time_t",0},
10539 { "_wxCoord","_wxPrintQuality",0},
10540 { "_wxEvtHandler","_wxPyProcess",SwigwxPyProcessTowxEvtHandler},
10541{0,0,0}};
10542
10543static PyObject *SWIG_globals;
10544#ifdef __cplusplus
10545extern "C"
10546#endif
10547SWIGEXPORT(void) initmisc2c() {
10548 PyObject *m, *d;
10549 SWIG_globals = SWIG_newvarlink();
10550 m = Py_InitModule("misc2c", misc2cMethods);
10551 d = PyModule_GetDict(m);
e6056257
RD
10552 PyDict_SetItemString(d,"wxSYS_OEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_OEM_FIXED_FONT));
10553 PyDict_SetItemString(d,"wxSYS_ANSI_FIXED_FONT", PyInt_FromLong((long) wxSYS_ANSI_FIXED_FONT));
10554 PyDict_SetItemString(d,"wxSYS_ANSI_VAR_FONT", PyInt_FromLong((long) wxSYS_ANSI_VAR_FONT));
10555 PyDict_SetItemString(d,"wxSYS_SYSTEM_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FONT));
10556 PyDict_SetItemString(d,"wxSYS_DEVICE_DEFAULT_FONT", PyInt_FromLong((long) wxSYS_DEVICE_DEFAULT_FONT));
10557 PyDict_SetItemString(d,"wxSYS_DEFAULT_PALETTE", PyInt_FromLong((long) wxSYS_DEFAULT_PALETTE));
10558 PyDict_SetItemString(d,"wxSYS_SYSTEM_FIXED_FONT", PyInt_FromLong((long) wxSYS_SYSTEM_FIXED_FONT));
10559 PyDict_SetItemString(d,"wxSYS_DEFAULT_GUI_FONT", PyInt_FromLong((long) wxSYS_DEFAULT_GUI_FONT));
10560 PyDict_SetItemString(d,"wxSYS_COLOUR_SCROLLBAR", PyInt_FromLong((long) wxSYS_COLOUR_SCROLLBAR));
10561 PyDict_SetItemString(d,"wxSYS_COLOUR_BACKGROUND", PyInt_FromLong((long) wxSYS_COLOUR_BACKGROUND));
10562 PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVECAPTION));
10563 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTION", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTION));
10564 PyDict_SetItemString(d,"wxSYS_COLOUR_MENU", PyInt_FromLong((long) wxSYS_COLOUR_MENU));
10565 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOW", PyInt_FromLong((long) wxSYS_COLOUR_WINDOW));
10566 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWFRAME", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWFRAME));
10567 PyDict_SetItemString(d,"wxSYS_COLOUR_MENUTEXT", PyInt_FromLong((long) wxSYS_COLOUR_MENUTEXT));
10568 PyDict_SetItemString(d,"wxSYS_COLOUR_WINDOWTEXT", PyInt_FromLong((long) wxSYS_COLOUR_WINDOWTEXT));
10569 PyDict_SetItemString(d,"wxSYS_COLOUR_CAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_CAPTIONTEXT));
10570 PyDict_SetItemString(d,"wxSYS_COLOUR_ACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_ACTIVEBORDER));
10571 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVEBORDER", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVEBORDER));
10572 PyDict_SetItemString(d,"wxSYS_COLOUR_APPWORKSPACE", PyInt_FromLong((long) wxSYS_COLOUR_APPWORKSPACE));
10573 PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHT));
10574 PyDict_SetItemString(d,"wxSYS_COLOUR_HIGHLIGHTTEXT", PyInt_FromLong((long) wxSYS_COLOUR_HIGHLIGHTTEXT));
10575 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNFACE", PyInt_FromLong((long) wxSYS_COLOUR_BTNFACE));
10576 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_BTNSHADOW));
10577 PyDict_SetItemString(d,"wxSYS_COLOUR_GRAYTEXT", PyInt_FromLong((long) wxSYS_COLOUR_GRAYTEXT));
10578 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNTEXT", PyInt_FromLong((long) wxSYS_COLOUR_BTNTEXT));
10579 PyDict_SetItemString(d,"wxSYS_COLOUR_INACTIVECAPTIONTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INACTIVECAPTIONTEXT));
10580 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHIGHLIGHT));
10581 PyDict_SetItemString(d,"wxSYS_COLOUR_3DDKSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DDKSHADOW));
10582 PyDict_SetItemString(d,"wxSYS_COLOUR_3DLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DLIGHT));
10583 PyDict_SetItemString(d,"wxSYS_COLOUR_INFOTEXT", PyInt_FromLong((long) wxSYS_COLOUR_INFOTEXT));
10584 PyDict_SetItemString(d,"wxSYS_COLOUR_INFOBK", PyInt_FromLong((long) wxSYS_COLOUR_INFOBK));
6abe8375 10585 PyDict_SetItemString(d,"wxSYS_COLOUR_LISTBOX", PyInt_FromLong((long) wxSYS_COLOUR_LISTBOX));
e6056257
RD
10586 PyDict_SetItemString(d,"wxSYS_COLOUR_DESKTOP", PyInt_FromLong((long) wxSYS_COLOUR_DESKTOP));
10587 PyDict_SetItemString(d,"wxSYS_COLOUR_3DFACE", PyInt_FromLong((long) wxSYS_COLOUR_3DFACE));
10588 PyDict_SetItemString(d,"wxSYS_COLOUR_3DSHADOW", PyInt_FromLong((long) wxSYS_COLOUR_3DSHADOW));
10589 PyDict_SetItemString(d,"wxSYS_COLOUR_3DHIGHLIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHIGHLIGHT));
10590 PyDict_SetItemString(d,"wxSYS_COLOUR_3DHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_3DHILIGHT));
10591 PyDict_SetItemString(d,"wxSYS_COLOUR_BTNHILIGHT", PyInt_FromLong((long) wxSYS_COLOUR_BTNHILIGHT));
10592 PyDict_SetItemString(d,"wxSYS_MOUSE_BUTTONS", PyInt_FromLong((long) wxSYS_MOUSE_BUTTONS));
10593 PyDict_SetItemString(d,"wxSYS_BORDER_X", PyInt_FromLong((long) wxSYS_BORDER_X));
10594 PyDict_SetItemString(d,"wxSYS_BORDER_Y", PyInt_FromLong((long) wxSYS_BORDER_Y));
10595 PyDict_SetItemString(d,"wxSYS_CURSOR_X", PyInt_FromLong((long) wxSYS_CURSOR_X));
10596 PyDict_SetItemString(d,"wxSYS_CURSOR_Y", PyInt_FromLong((long) wxSYS_CURSOR_Y));
10597 PyDict_SetItemString(d,"wxSYS_DCLICK_X", PyInt_FromLong((long) wxSYS_DCLICK_X));
10598 PyDict_SetItemString(d,"wxSYS_DCLICK_Y", PyInt_FromLong((long) wxSYS_DCLICK_Y));
10599 PyDict_SetItemString(d,"wxSYS_DRAG_X", PyInt_FromLong((long) wxSYS_DRAG_X));
10600 PyDict_SetItemString(d,"wxSYS_DRAG_Y", PyInt_FromLong((long) wxSYS_DRAG_Y));
10601 PyDict_SetItemString(d,"wxSYS_EDGE_X", PyInt_FromLong((long) wxSYS_EDGE_X));
10602 PyDict_SetItemString(d,"wxSYS_EDGE_Y", PyInt_FromLong((long) wxSYS_EDGE_Y));
10603 PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_X));
10604 PyDict_SetItemString(d,"wxSYS_HSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_HSCROLL_ARROW_Y));
10605 PyDict_SetItemString(d,"wxSYS_HTHUMB_X", PyInt_FromLong((long) wxSYS_HTHUMB_X));
10606 PyDict_SetItemString(d,"wxSYS_ICON_X", PyInt_FromLong((long) wxSYS_ICON_X));
10607 PyDict_SetItemString(d,"wxSYS_ICON_Y", PyInt_FromLong((long) wxSYS_ICON_Y));
10608 PyDict_SetItemString(d,"wxSYS_ICONSPACING_X", PyInt_FromLong((long) wxSYS_ICONSPACING_X));
10609 PyDict_SetItemString(d,"wxSYS_ICONSPACING_Y", PyInt_FromLong((long) wxSYS_ICONSPACING_Y));
10610 PyDict_SetItemString(d,"wxSYS_WINDOWMIN_X", PyInt_FromLong((long) wxSYS_WINDOWMIN_X));
10611 PyDict_SetItemString(d,"wxSYS_WINDOWMIN_Y", PyInt_FromLong((long) wxSYS_WINDOWMIN_Y));
10612 PyDict_SetItemString(d,"wxSYS_SCREEN_X", PyInt_FromLong((long) wxSYS_SCREEN_X));
10613 PyDict_SetItemString(d,"wxSYS_SCREEN_Y", PyInt_FromLong((long) wxSYS_SCREEN_Y));
10614 PyDict_SetItemString(d,"wxSYS_FRAMESIZE_X", PyInt_FromLong((long) wxSYS_FRAMESIZE_X));
10615 PyDict_SetItemString(d,"wxSYS_FRAMESIZE_Y", PyInt_FromLong((long) wxSYS_FRAMESIZE_Y));
10616 PyDict_SetItemString(d,"wxSYS_SMALLICON_X", PyInt_FromLong((long) wxSYS_SMALLICON_X));
10617 PyDict_SetItemString(d,"wxSYS_SMALLICON_Y", PyInt_FromLong((long) wxSYS_SMALLICON_Y));
10618 PyDict_SetItemString(d,"wxSYS_HSCROLL_Y", PyInt_FromLong((long) wxSYS_HSCROLL_Y));
10619 PyDict_SetItemString(d,"wxSYS_VSCROLL_X", PyInt_FromLong((long) wxSYS_VSCROLL_X));
10620 PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_X", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_X));
10621 PyDict_SetItemString(d,"wxSYS_VSCROLL_ARROW_Y", PyInt_FromLong((long) wxSYS_VSCROLL_ARROW_Y));
10622 PyDict_SetItemString(d,"wxSYS_VTHUMB_Y", PyInt_FromLong((long) wxSYS_VTHUMB_Y));
10623 PyDict_SetItemString(d,"wxSYS_CAPTION_Y", PyInt_FromLong((long) wxSYS_CAPTION_Y));
10624 PyDict_SetItemString(d,"wxSYS_MENU_Y", PyInt_FromLong((long) wxSYS_MENU_Y));
10625 PyDict_SetItemString(d,"wxSYS_NETWORK_PRESENT", PyInt_FromLong((long) wxSYS_NETWORK_PRESENT));
10626 PyDict_SetItemString(d,"wxSYS_PENWINDOWS_PRESENT", PyInt_FromLong((long) wxSYS_PENWINDOWS_PRESENT));
10627 PyDict_SetItemString(d,"wxSYS_SHOW_SOUNDS", PyInt_FromLong((long) wxSYS_SHOW_SOUNDS));
10628 PyDict_SetItemString(d,"wxSYS_SWAP_BUTTONS", PyInt_FromLong((long) wxSYS_SWAP_BUTTONS));
6abe8375
RD
10629 PyDict_SetItemString(d,"wxSYS_CAN_DRAW_FRAME_DECORATIONS", PyInt_FromLong((long) wxSYS_CAN_DRAW_FRAME_DECORATIONS));
10630 PyDict_SetItemString(d,"wxSYS_CAN_ICONIZE_FRAME", PyInt_FromLong((long) wxSYS_CAN_ICONIZE_FRAME));
e6056257
RD
10631 PyDict_SetItemString(d,"wxLOG_FatalError", PyInt_FromLong((long) wxLOG_FatalError));
10632 PyDict_SetItemString(d,"wxLOG_Error", PyInt_FromLong((long) wxLOG_Error));
10633 PyDict_SetItemString(d,"wxLOG_Warning", PyInt_FromLong((long) wxLOG_Warning));
10634 PyDict_SetItemString(d,"wxLOG_Message", PyInt_FromLong((long) wxLOG_Message));
10635 PyDict_SetItemString(d,"wxLOG_Info", PyInt_FromLong((long) wxLOG_Info));
10636 PyDict_SetItemString(d,"wxLOG_Status", PyInt_FromLong((long) wxLOG_Status));
10637 PyDict_SetItemString(d,"wxLOG_Debug", PyInt_FromLong((long) wxLOG_Debug));
10638 PyDict_SetItemString(d,"wxLOG_Trace", PyInt_FromLong((long) wxLOG_Trace));
10639 PyDict_SetItemString(d,"wxLOG_Progress", PyInt_FromLong((long) wxLOG_Progress));
10640 PyDict_SetItemString(d,"wxLOG_User", PyInt_FromLong((long) wxLOG_User));
10641 PyDict_SetItemString(d,"wxEVT_END_PROCESS", PyInt_FromLong((long) wxEVT_END_PROCESS));
b6e5c445
RD
10642 PyDict_SetItemString(d,"wxMAILCAP_STANDARD", PyInt_FromLong((long) wxMAILCAP_STANDARD));
10643 PyDict_SetItemString(d,"wxMAILCAP_NETSCAPE", PyInt_FromLong((long) wxMAILCAP_NETSCAPE));
10644 PyDict_SetItemString(d,"wxMAILCAP_KDE", PyInt_FromLong((long) wxMAILCAP_KDE));
10645 PyDict_SetItemString(d,"wxMAILCAP_GNOME", PyInt_FromLong((long) wxMAILCAP_GNOME));
10646 PyDict_SetItemString(d,"wxMAILCAP_ALL", PyInt_FromLong((long) wxMAILCAP_ALL));
10647 PyDict_SetItemString(d,"cvar", SWIG_globals);
10648 SWIG_addvarlink(SWIG_globals,"wxTheMimeTypesManager",_wrap_wxTheMimeTypesManager_get, _wrap_wxTheMimeTypesManager_set);
e6056257
RD
10649
10650 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
10651 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
10652 wxPyPtrTypeMap_Add("wxProcess", "wxPyProcess");
10653{
10654 int i;
10655 for (i = 0; _swig_mapping[i].n1; i++)
10656 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10657}
10658}