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