]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/msw/gdi.cpp
XPMHAND.H dependency removed
[wxWidgets.git] / wxPython / src / msw / gdi.cpp
... / ...
CommitLineData
1/*
2 * FILE : src/msw/gdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18#define SWIGCODE
19/* Implementation : PYTHON */
20
21#define SWIGPYTHON
22#include <string.h>
23#include <stdlib.h>
24/* Definitions for Windows/Unix exporting */
25#if defined(__WIN32__)
26# if defined(_MSC_VER)
27# define SWIGEXPORT(a) __declspec(dllexport) a
28# else
29# if defined(__BORLANDC__)
30# define SWIGEXPORT(a) a _export
31# else
32# define SWIGEXPORT(a) a
33# endif
34# endif
35#else
36# define SWIGEXPORT(a) a
37#endif
38
39#include "Python.h"
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45extern void SWIG_MakePtr(char *, void *, char *);
46extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47extern char *SWIG_GetPtr(char *, void **, char *);
48extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50extern PyObject *SWIG_newvarlink(void);
51#ifdef __cplusplus
52}
53#endif
54#define SWIG_init initgdic
55
56#define SWIG_name "gdic"
57
58#include "helpers.h"
59#include <wx/metafile.h>
60#include <wx/imaglist.h>
61#ifndef __WXMSW__
62#include <wx/dcps.h>
63#endif
64
65static PyObject* l_output_helper(PyObject* target, PyObject* o) {
66 PyObject* o2;
67 if (!target) {
68 target = o;
69 } else if (target == Py_None) {
70 Py_DECREF(Py_None);
71 target = o;
72 } else {
73 if (!PyList_Check(target)) {
74 o2 = target;
75 target = PyList_New(0);
76 PyList_Append(target, o2);
77 Py_XDECREF(o2);
78 }
79 PyList_Append(target,o);
80 Py_XDECREF(o);
81 }
82 return target;
83}
84
85static PyObject* t_output_helper(PyObject* target, PyObject* o) {
86 PyObject* o2;
87 PyObject* o3;
88
89 if (!target) {
90 target = o;
91 } else if (target == Py_None) {
92 Py_DECREF(Py_None);
93 target = o;
94 } else {
95 if (!PyTuple_Check(target)) {
96 o2 = target;
97 target = PyTuple_New(1);
98 PyTuple_SetItem(target, 0, o2);
99 }
100 o3 = PyTuple_New(1);
101 PyTuple_SetItem(o3, 0, o);
102
103 o2 = target;
104 target = PySequence_Concat(o2, o3);
105 Py_DECREF(o2);
106 Py_DECREF(o3);
107 }
108 return target;
109}
110
111#if PYTHON_API_VERSION >= 1009
112 static char* wxStringErrorMsg = "String or Unicode type required";
113#else
114 static char* wxStringErrorMsg = "string type is required for parameter";
115#endif
116
117 static wxString wxPyEmptyStr("");
118 // Implementations of some alternate "constructors"
119
120 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
121 return new wxBitmap(width, height, depth);
122 }
123
124 static char** ConvertListOfStrings(PyObject* listOfStrings) {
125 char** cArray = NULL;
126 int count;
127
128 if (!PyList_Check(listOfStrings)) {
129 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
130 return NULL;
131 }
132 count = PyList_Size(listOfStrings);
133 cArray = new char*[count];
134
135 for(int x=0; x<count; x++) {
136 // TODO: Need some validation and error checking here
137 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
138 }
139 return cArray;
140 }
141
142 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
143 char** cArray = NULL;
144 wxBitmap* bmp;
145
146 cArray = ConvertListOfStrings(listOfStrings);
147 if (! cArray)
148 return NULL;
149 bmp = new wxBitmap(cArray);
150 delete [] cArray;
151 return bmp;
152 }
153
154
155 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
156 return new wxBitmap(icon);
157 }
158
159
160
161#ifdef __WXMSW__
162 wxBitmap* wxBitmapFromData(PyObject* data, long type,
163 int width, int height, int depth = 1) {
164 if (! PyString_Check(data)) {
165 PyErr_SetString(PyExc_TypeError, "Expected string object");
166 return NULL;
167 }
168
169 return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
170 }
171#endif
172
173 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
174 return new wxMask(bitmap, colour);
175 }
176 // Implementations of some alternate "constructors"
177 wxIcon* wxEmptyIcon() {
178 return new wxIcon();
179 }
180
181 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
182 char** cArray = NULL;
183 wxIcon* icon;
184
185 cArray = ConvertListOfStrings(listOfStrings);
186 if (! cArray)
187 return NULL;
188 icon = new wxIcon(cArray);
189 delete [] cArray;
190 return icon;
191 }
192 // Alternate 'constructor'
193 wxCursor* wxPyStockCursor(int id) {
194 return new wxCursor(id);
195 }
196
197 wxFontEncoding wxFont_GetDefaultEncoding() {
198 return wxFont::GetDefaultEncoding();
199 }
200
201 void wxFont_SetDefaultEncoding(wxFontEncoding encoding) {
202 wxFont::SetDefaultEncoding(encoding);
203 }
204 // Alternate 'constructor'
205 wxColour* wxNamedColour(const wxString& colorName) {
206 return new wxColour(colorName);
207 }
208 // Alternate 'constructor'
209 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
210 return new wxMemoryDC(oldDC);
211 }
212
213#if 0
214extern wxFont * wxNORMAL_FONT;
215extern wxFont * wxSMALL_FONT;
216extern wxFont * wxITALIC_FONT;
217extern wxFont * wxSWISS_FONT;
218extern wxPen * wxRED_PEN;
219extern wxPen * wxCYAN_PEN;
220extern wxPen * wxGREEN_PEN;
221extern wxPen * wxBLACK_PEN;
222extern wxPen * wxWHITE_PEN;
223extern wxPen * wxTRANSPARENT_PEN;
224extern wxPen * wxBLACK_DASHED_PEN;
225extern wxPen * wxGREY_PEN;
226extern wxPen * wxMEDIUM_GREY_PEN;
227extern wxPen * wxLIGHT_GREY_PEN;
228extern wxBrush * wxBLUE_BRUSH;
229extern wxBrush * wxGREEN_BRUSH;
230extern wxBrush * wxWHITE_BRUSH;
231extern wxBrush * wxBLACK_BRUSH;
232extern wxBrush * wxTRANSPARENT_BRUSH;
233extern wxBrush * wxCYAN_BRUSH;
234extern wxBrush * wxRED_BRUSH;
235extern wxBrush * wxGREY_BRUSH;
236extern wxBrush * wxMEDIUM_GREY_BRUSH;
237extern wxBrush * wxLIGHT_GREY_BRUSH;
238extern wxColour * wxBLACK;
239extern wxColour * wxWHITE;
240extern wxColour * wxRED;
241extern wxColour * wxBLUE;
242extern wxColour * wxGREEN;
243extern wxColour * wxCYAN;
244extern wxColour * wxLIGHT_GREY;
245extern wxCursor * wxSTANDARD_CURSOR;
246extern wxCursor * wxHOURGLASS_CURSOR;
247extern wxCursor * wxCROSS_CURSOR;
248extern wxBitmap wxNullBitmap;
249extern wxIcon wxNullIcon;
250extern wxCursor wxNullCursor;
251extern wxPen wxNullPen;
252extern wxBrush wxNullBrush;
253extern wxPalette wxNullPalette;
254extern wxFont wxNullFont;
255extern wxColour wxNullColour;
256extern wxFontList * wxTheFontList;
257extern wxPenList * wxThePenList;
258extern wxBrushlist * wxTheBrushList;
259extern wxColourDatabase * wxTheColourDatabase;
260
261#endif
262#ifdef __cplusplus
263extern "C" {
264#endif
265static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
266 PyObject * _resultobj;
267 wxBitmap * _result;
268 int _arg0;
269 int _arg1;
270 int _arg2 = (int ) -1;
271 char *_kwnames[] = { "width","height","depth", NULL };
272 char _ptemp[128];
273
274 self = self;
275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
276 return NULL;
277{
278 wxPy_BEGIN_ALLOW_THREADS;
279 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
280
281 wxPy_END_ALLOW_THREADS;
282} if (_result) {
283 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
284 _resultobj = Py_BuildValue("s",_ptemp);
285 } else {
286 Py_INCREF(Py_None);
287 _resultobj = Py_None;
288 }
289 return _resultobj;
290}
291
292static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
293 PyObject * _resultobj;
294 wxBitmap * _result;
295 PyObject * _arg0;
296 PyObject * _obj0 = 0;
297 char *_kwnames[] = { "listOfStrings", NULL };
298 char _ptemp[128];
299
300 self = self;
301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
302 return NULL;
303{
304 _arg0 = _obj0;
305}
306{
307 wxPy_BEGIN_ALLOW_THREADS;
308 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
309
310 wxPy_END_ALLOW_THREADS;
311} if (_result) {
312 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
313 _resultobj = Py_BuildValue("s",_ptemp);
314 } else {
315 Py_INCREF(Py_None);
316 _resultobj = Py_None;
317 }
318 return _resultobj;
319}
320
321static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
322 PyObject * _resultobj;
323 wxBitmap * _result;
324 wxIcon * _arg0;
325 PyObject * _argo0 = 0;
326 char *_kwnames[] = { "icon", NULL };
327 char _ptemp[128];
328
329 self = self;
330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
331 return NULL;
332 if (_argo0) {
333 if (_argo0 == Py_None) { _arg0 = NULL; }
334 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
335 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
336 return NULL;
337 }
338 }
339{
340 wxPy_BEGIN_ALLOW_THREADS;
341 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
342
343 wxPy_END_ALLOW_THREADS;
344} if (_result) {
345 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
346 _resultobj = Py_BuildValue("s",_ptemp);
347 } else {
348 Py_INCREF(Py_None);
349 _resultobj = Py_None;
350 }
351 return _resultobj;
352}
353
354static PyObject *_wrap_wxBitmapFromData(PyObject *self, PyObject *args, PyObject *kwargs) {
355 PyObject * _resultobj;
356 wxBitmap * _result;
357 PyObject * _arg0;
358 long _arg1;
359 int _arg2;
360 int _arg3;
361 int _arg4 = (int ) 1;
362 PyObject * _obj0 = 0;
363 char *_kwnames[] = { "data","type","width","height","depth", NULL };
364 char _ptemp[128];
365
366 self = self;
367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olii|i:wxBitmapFromData",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3,&_arg4))
368 return NULL;
369{
370 _arg0 = _obj0;
371}
372{
373 wxPy_BEGIN_ALLOW_THREADS;
374 _result = (wxBitmap *)wxBitmapFromData(_arg0,_arg1,_arg2,_arg3,_arg4);
375
376 wxPy_END_ALLOW_THREADS;
377} if (_result) {
378 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
379 _resultobj = Py_BuildValue("s",_ptemp);
380 } else {
381 Py_INCREF(Py_None);
382 _resultobj = Py_None;
383 }
384 return _resultobj;
385}
386
387static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
388 PyObject * _resultobj;
389 wxMask * _result;
390 wxBitmap * _arg0;
391 wxColour * _arg1;
392 PyObject * _argo0 = 0;
393 wxColour temp;
394 PyObject * _obj1 = 0;
395 char *_kwnames[] = { "bitmap","colour", NULL };
396 char _ptemp[128];
397
398 self = self;
399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
400 return NULL;
401 if (_argo0) {
402 if (_argo0 == Py_None) { _arg0 = NULL; }
403 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
404 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
405 return NULL;
406 }
407 }
408{
409 _arg1 = &temp;
410 if (! wxColour_helper(_obj1, &_arg1))
411 return NULL;
412}
413{
414 wxPy_BEGIN_ALLOW_THREADS;
415 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
416
417 wxPy_END_ALLOW_THREADS;
418} if (_result) {
419 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
420 _resultobj = Py_BuildValue("s",_ptemp);
421 } else {
422 Py_INCREF(Py_None);
423 _resultobj = Py_None;
424 }
425 return _resultobj;
426}
427
428static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
429 PyObject * _resultobj;
430 wxIcon * _result;
431 char *_kwnames[] = { NULL };
432 char _ptemp[128];
433
434 self = self;
435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
436 return NULL;
437{
438 wxPy_BEGIN_ALLOW_THREADS;
439 _result = (wxIcon *)wxEmptyIcon();
440
441 wxPy_END_ALLOW_THREADS;
442} if (_result) {
443 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
444 _resultobj = Py_BuildValue("s",_ptemp);
445 } else {
446 Py_INCREF(Py_None);
447 _resultobj = Py_None;
448 }
449 return _resultobj;
450}
451
452static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
453 PyObject * _resultobj;
454 wxIcon * _result;
455 PyObject * _arg0;
456 PyObject * _obj0 = 0;
457 char *_kwnames[] = { "listOfStrings", NULL };
458 char _ptemp[128];
459
460 self = self;
461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
462 return NULL;
463{
464 _arg0 = _obj0;
465}
466{
467 wxPy_BEGIN_ALLOW_THREADS;
468 _result = (wxIcon *)wxIconFromXPMData(_arg0);
469
470 wxPy_END_ALLOW_THREADS;
471} if (_result) {
472 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
473 _resultobj = Py_BuildValue("s",_ptemp);
474 } else {
475 Py_INCREF(Py_None);
476 _resultobj = Py_None;
477 }
478 return _resultobj;
479}
480
481static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
482 PyObject * _resultobj;
483 wxCursor * _result;
484 int _arg0;
485 char *_kwnames[] = { "id", NULL };
486 char _ptemp[128];
487
488 self = self;
489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
490 return NULL;
491{
492 wxPy_BEGIN_ALLOW_THREADS;
493 _result = (wxCursor *)wxPyStockCursor(_arg0);
494
495 wxPy_END_ALLOW_THREADS;
496} if (_result) {
497 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
498 _resultobj = Py_BuildValue("s",_ptemp);
499 } else {
500 Py_INCREF(Py_None);
501 _resultobj = Py_None;
502 }
503 return _resultobj;
504}
505
506static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
507 PyObject * _resultobj;
508 wxFontEncoding _result;
509 char *_kwnames[] = { NULL };
510
511 self = self;
512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
513 return NULL;
514{
515 wxPy_BEGIN_ALLOW_THREADS;
516 _result = (wxFontEncoding )wxFont_GetDefaultEncoding();
517
518 wxPy_END_ALLOW_THREADS;
519} _resultobj = Py_BuildValue("i",_result);
520 return _resultobj;
521}
522
523static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
524 PyObject * _resultobj;
525 wxFontEncoding _arg0;
526 char *_kwnames[] = { "encoding", NULL };
527
528 self = self;
529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
530 return NULL;
531{
532 wxPy_BEGIN_ALLOW_THREADS;
533 wxFont_SetDefaultEncoding(_arg0);
534
535 wxPy_END_ALLOW_THREADS;
536} Py_INCREF(Py_None);
537 _resultobj = Py_None;
538 return _resultobj;
539}
540
541static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
542 PyObject * _resultobj;
543 wxColour * _result;
544 wxString * _arg0;
545 PyObject * _obj0 = 0;
546 char *_kwnames[] = { "colorName", NULL };
547 char _ptemp[128];
548
549 self = self;
550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
551 return NULL;
552{
553#if PYTHON_API_VERSION >= 1009
554 char* tmpPtr; int tmpSize;
555 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
556 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
557 return NULL;
558 }
559 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
560 return NULL;
561 _arg0 = new wxString(tmpPtr, tmpSize);
562#else
563 if (!PyString_Check(_obj0)) {
564 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
565 return NULL;
566 }
567 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
568#endif
569}
570{
571 wxPy_BEGIN_ALLOW_THREADS;
572 _result = (wxColour *)wxNamedColour(*_arg0);
573
574 wxPy_END_ALLOW_THREADS;
575} if (_result) {
576 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
577 _resultobj = Py_BuildValue("s",_ptemp);
578 } else {
579 Py_INCREF(Py_None);
580 _resultobj = Py_None;
581 }
582{
583 if (_obj0)
584 delete _arg0;
585}
586 return _resultobj;
587}
588
589static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
590 PyObject * _resultobj;
591 wxMemoryDC * _result;
592 wxDC * _arg0;
593 PyObject * _argo0 = 0;
594 char *_kwnames[] = { "oldDC", NULL };
595 char _ptemp[128];
596
597 self = self;
598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
599 return NULL;
600 if (_argo0) {
601 if (_argo0 == Py_None) { _arg0 = NULL; }
602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
604 return NULL;
605 }
606 }
607{
608 wxPy_BEGIN_ALLOW_THREADS;
609 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
610
611 wxPy_END_ALLOW_THREADS;
612} if (_result) {
613 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
614 _resultobj = Py_BuildValue("s",_ptemp);
615 } else {
616 Py_INCREF(Py_None);
617 _resultobj = Py_None;
618 }
619 return _resultobj;
620}
621
622static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
623
624 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
625 return 1;
626}
627
628static PyObject *_wrap_wxNORMAL_FONT_get() {
629 PyObject * pyobj;
630 char ptemp[128];
631
632 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
633 pyobj = PyString_FromString(ptemp);
634 return pyobj;
635}
636
637static int _wrap_wxSMALL_FONT_set(PyObject *val) {
638
639 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
640 return 1;
641}
642
643static PyObject *_wrap_wxSMALL_FONT_get() {
644 PyObject * pyobj;
645 char ptemp[128];
646
647 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
648 pyobj = PyString_FromString(ptemp);
649 return pyobj;
650}
651
652static int _wrap_wxITALIC_FONT_set(PyObject *val) {
653
654 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
655 return 1;
656}
657
658static PyObject *_wrap_wxITALIC_FONT_get() {
659 PyObject * pyobj;
660 char ptemp[128];
661
662 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
663 pyobj = PyString_FromString(ptemp);
664 return pyobj;
665}
666
667static int _wrap_wxSWISS_FONT_set(PyObject *val) {
668
669 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
670 return 1;
671}
672
673static PyObject *_wrap_wxSWISS_FONT_get() {
674 PyObject * pyobj;
675 char ptemp[128];
676
677 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
678 pyobj = PyString_FromString(ptemp);
679 return pyobj;
680}
681
682static int _wrap_wxRED_PEN_set(PyObject *val) {
683
684 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
685 return 1;
686}
687
688static PyObject *_wrap_wxRED_PEN_get() {
689 PyObject * pyobj;
690 char ptemp[128];
691
692 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
693 pyobj = PyString_FromString(ptemp);
694 return pyobj;
695}
696
697static int _wrap_wxCYAN_PEN_set(PyObject *val) {
698
699 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
700 return 1;
701}
702
703static PyObject *_wrap_wxCYAN_PEN_get() {
704 PyObject * pyobj;
705 char ptemp[128];
706
707 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
708 pyobj = PyString_FromString(ptemp);
709 return pyobj;
710}
711
712static int _wrap_wxGREEN_PEN_set(PyObject *val) {
713
714 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
715 return 1;
716}
717
718static PyObject *_wrap_wxGREEN_PEN_get() {
719 PyObject * pyobj;
720 char ptemp[128];
721
722 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
723 pyobj = PyString_FromString(ptemp);
724 return pyobj;
725}
726
727static int _wrap_wxBLACK_PEN_set(PyObject *val) {
728
729 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
730 return 1;
731}
732
733static PyObject *_wrap_wxBLACK_PEN_get() {
734 PyObject * pyobj;
735 char ptemp[128];
736
737 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
738 pyobj = PyString_FromString(ptemp);
739 return pyobj;
740}
741
742static int _wrap_wxWHITE_PEN_set(PyObject *val) {
743
744 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
745 return 1;
746}
747
748static PyObject *_wrap_wxWHITE_PEN_get() {
749 PyObject * pyobj;
750 char ptemp[128];
751
752 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
753 pyobj = PyString_FromString(ptemp);
754 return pyobj;
755}
756
757static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
758
759 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
760 return 1;
761}
762
763static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
764 PyObject * pyobj;
765 char ptemp[128];
766
767 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
768 pyobj = PyString_FromString(ptemp);
769 return pyobj;
770}
771
772static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
773
774 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
775 return 1;
776}
777
778static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
779 PyObject * pyobj;
780 char ptemp[128];
781
782 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
783 pyobj = PyString_FromString(ptemp);
784 return pyobj;
785}
786
787static int _wrap_wxGREY_PEN_set(PyObject *val) {
788
789 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
790 return 1;
791}
792
793static PyObject *_wrap_wxGREY_PEN_get() {
794 PyObject * pyobj;
795 char ptemp[128];
796
797 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
798 pyobj = PyString_FromString(ptemp);
799 return pyobj;
800}
801
802static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
803
804 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
805 return 1;
806}
807
808static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
809 PyObject * pyobj;
810 char ptemp[128];
811
812 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
813 pyobj = PyString_FromString(ptemp);
814 return pyobj;
815}
816
817static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
818
819 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
820 return 1;
821}
822
823static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
824 PyObject * pyobj;
825 char ptemp[128];
826
827 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
828 pyobj = PyString_FromString(ptemp);
829 return pyobj;
830}
831
832static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
833
834 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
835 return 1;
836}
837
838static PyObject *_wrap_wxBLUE_BRUSH_get() {
839 PyObject * pyobj;
840 char ptemp[128];
841
842 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
843 pyobj = PyString_FromString(ptemp);
844 return pyobj;
845}
846
847static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
848
849 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
850 return 1;
851}
852
853static PyObject *_wrap_wxGREEN_BRUSH_get() {
854 PyObject * pyobj;
855 char ptemp[128];
856
857 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
858 pyobj = PyString_FromString(ptemp);
859 return pyobj;
860}
861
862static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
863
864 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
865 return 1;
866}
867
868static PyObject *_wrap_wxWHITE_BRUSH_get() {
869 PyObject * pyobj;
870 char ptemp[128];
871
872 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
873 pyobj = PyString_FromString(ptemp);
874 return pyobj;
875}
876
877static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
878
879 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
880 return 1;
881}
882
883static PyObject *_wrap_wxBLACK_BRUSH_get() {
884 PyObject * pyobj;
885 char ptemp[128];
886
887 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
888 pyobj = PyString_FromString(ptemp);
889 return pyobj;
890}
891
892static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
893
894 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
895 return 1;
896}
897
898static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
899 PyObject * pyobj;
900 char ptemp[128];
901
902 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
903 pyobj = PyString_FromString(ptemp);
904 return pyobj;
905}
906
907static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
908
909 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
910 return 1;
911}
912
913static PyObject *_wrap_wxCYAN_BRUSH_get() {
914 PyObject * pyobj;
915 char ptemp[128];
916
917 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
918 pyobj = PyString_FromString(ptemp);
919 return pyobj;
920}
921
922static int _wrap_wxRED_BRUSH_set(PyObject *val) {
923
924 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
925 return 1;
926}
927
928static PyObject *_wrap_wxRED_BRUSH_get() {
929 PyObject * pyobj;
930 char ptemp[128];
931
932 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
933 pyobj = PyString_FromString(ptemp);
934 return pyobj;
935}
936
937static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
938
939 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
940 return 1;
941}
942
943static PyObject *_wrap_wxGREY_BRUSH_get() {
944 PyObject * pyobj;
945 char ptemp[128];
946
947 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
948 pyobj = PyString_FromString(ptemp);
949 return pyobj;
950}
951
952static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
953
954 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
955 return 1;
956}
957
958static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
959 PyObject * pyobj;
960 char ptemp[128];
961
962 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
963 pyobj = PyString_FromString(ptemp);
964 return pyobj;
965}
966
967static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
968
969 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
970 return 1;
971}
972
973static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
974 PyObject * pyobj;
975 char ptemp[128];
976
977 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
978 pyobj = PyString_FromString(ptemp);
979 return pyobj;
980}
981
982static int _wrap_wxBLACK_set(PyObject *val) {
983
984 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
985 return 1;
986}
987
988static PyObject *_wrap_wxBLACK_get() {
989 PyObject * pyobj;
990 char ptemp[128];
991
992 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
993 pyobj = PyString_FromString(ptemp);
994 return pyobj;
995}
996
997static int _wrap_wxWHITE_set(PyObject *val) {
998
999 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
1000 return 1;
1001}
1002
1003static PyObject *_wrap_wxWHITE_get() {
1004 PyObject * pyobj;
1005 char ptemp[128];
1006
1007 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
1008 pyobj = PyString_FromString(ptemp);
1009 return pyobj;
1010}
1011
1012static int _wrap_wxRED_set(PyObject *val) {
1013
1014 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
1015 return 1;
1016}
1017
1018static PyObject *_wrap_wxRED_get() {
1019 PyObject * pyobj;
1020 char ptemp[128];
1021
1022 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1023 pyobj = PyString_FromString(ptemp);
1024 return pyobj;
1025}
1026
1027static int _wrap_wxBLUE_set(PyObject *val) {
1028
1029 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1030 return 1;
1031}
1032
1033static PyObject *_wrap_wxBLUE_get() {
1034 PyObject * pyobj;
1035 char ptemp[128];
1036
1037 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1038 pyobj = PyString_FromString(ptemp);
1039 return pyobj;
1040}
1041
1042static int _wrap_wxGREEN_set(PyObject *val) {
1043
1044 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1045 return 1;
1046}
1047
1048static PyObject *_wrap_wxGREEN_get() {
1049 PyObject * pyobj;
1050 char ptemp[128];
1051
1052 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1053 pyobj = PyString_FromString(ptemp);
1054 return pyobj;
1055}
1056
1057static int _wrap_wxCYAN_set(PyObject *val) {
1058
1059 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1060 return 1;
1061}
1062
1063static PyObject *_wrap_wxCYAN_get() {
1064 PyObject * pyobj;
1065 char ptemp[128];
1066
1067 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1068 pyobj = PyString_FromString(ptemp);
1069 return pyobj;
1070}
1071
1072static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1073
1074 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1075 return 1;
1076}
1077
1078static PyObject *_wrap_wxLIGHT_GREY_get() {
1079 PyObject * pyobj;
1080 char ptemp[128];
1081
1082 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1083 pyobj = PyString_FromString(ptemp);
1084 return pyobj;
1085}
1086
1087static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1088
1089 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1090 return 1;
1091}
1092
1093static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1094 PyObject * pyobj;
1095 char ptemp[128];
1096
1097 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1098 pyobj = PyString_FromString(ptemp);
1099 return pyobj;
1100}
1101
1102static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1103
1104 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1105 return 1;
1106}
1107
1108static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1109 PyObject * pyobj;
1110 char ptemp[128];
1111
1112 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1113 pyobj = PyString_FromString(ptemp);
1114 return pyobj;
1115}
1116
1117static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1118
1119 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1120 return 1;
1121}
1122
1123static PyObject *_wrap_wxCROSS_CURSOR_get() {
1124 PyObject * pyobj;
1125 char ptemp[128];
1126
1127 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1128 pyobj = PyString_FromString(ptemp);
1129 return pyobj;
1130}
1131
1132static int _wrap_wxNullBitmap_set(PyObject *val) {
1133
1134 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1135 return 1;
1136}
1137
1138static PyObject *_wrap_wxNullBitmap_get() {
1139 PyObject * pyobj;
1140 char ptemp[128];
1141
1142 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1143 pyobj = PyString_FromString(ptemp);
1144 return pyobj;
1145}
1146
1147static int _wrap_wxNullIcon_set(PyObject *val) {
1148
1149 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1150 return 1;
1151}
1152
1153static PyObject *_wrap_wxNullIcon_get() {
1154 PyObject * pyobj;
1155 char ptemp[128];
1156
1157 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1158 pyobj = PyString_FromString(ptemp);
1159 return pyobj;
1160}
1161
1162static int _wrap_wxNullCursor_set(PyObject *val) {
1163
1164 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1165 return 1;
1166}
1167
1168static PyObject *_wrap_wxNullCursor_get() {
1169 PyObject * pyobj;
1170 char ptemp[128];
1171
1172 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1173 pyobj = PyString_FromString(ptemp);
1174 return pyobj;
1175}
1176
1177static int _wrap_wxNullPen_set(PyObject *val) {
1178
1179 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1180 return 1;
1181}
1182
1183static PyObject *_wrap_wxNullPen_get() {
1184 PyObject * pyobj;
1185 char ptemp[128];
1186
1187 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1188 pyobj = PyString_FromString(ptemp);
1189 return pyobj;
1190}
1191
1192static int _wrap_wxNullBrush_set(PyObject *val) {
1193
1194 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1195 return 1;
1196}
1197
1198static PyObject *_wrap_wxNullBrush_get() {
1199 PyObject * pyobj;
1200 char ptemp[128];
1201
1202 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1203 pyobj = PyString_FromString(ptemp);
1204 return pyobj;
1205}
1206
1207static int _wrap_wxNullPalette_set(PyObject *val) {
1208
1209 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1210 return 1;
1211}
1212
1213static PyObject *_wrap_wxNullPalette_get() {
1214 PyObject * pyobj;
1215 char ptemp[128];
1216
1217 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1218 pyobj = PyString_FromString(ptemp);
1219 return pyobj;
1220}
1221
1222static int _wrap_wxNullFont_set(PyObject *val) {
1223
1224 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1225 return 1;
1226}
1227
1228static PyObject *_wrap_wxNullFont_get() {
1229 PyObject * pyobj;
1230 char ptemp[128];
1231
1232 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1233 pyobj = PyString_FromString(ptemp);
1234 return pyobj;
1235}
1236
1237static int _wrap_wxNullColour_set(PyObject *val) {
1238
1239 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1240 return 1;
1241}
1242
1243static PyObject *_wrap_wxNullColour_get() {
1244 PyObject * pyobj;
1245 char ptemp[128];
1246
1247 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1248 pyobj = PyString_FromString(ptemp);
1249 return pyobj;
1250}
1251
1252static int _wrap_wxTheFontList_set(PyObject *val) {
1253
1254 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1255 return 1;
1256}
1257
1258static PyObject *_wrap_wxTheFontList_get() {
1259 PyObject * pyobj;
1260 char ptemp[128];
1261
1262 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1263 pyobj = PyString_FromString(ptemp);
1264 return pyobj;
1265}
1266
1267static int _wrap_wxThePenList_set(PyObject *val) {
1268
1269 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1270 return 1;
1271}
1272
1273static PyObject *_wrap_wxThePenList_get() {
1274 PyObject * pyobj;
1275 char ptemp[128];
1276
1277 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1278 pyobj = PyString_FromString(ptemp);
1279 return pyobj;
1280}
1281
1282static int _wrap_wxTheBrushList_set(PyObject *val) {
1283
1284 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1285 return 1;
1286}
1287
1288static PyObject *_wrap_wxTheBrushList_get() {
1289 PyObject * pyobj;
1290 char ptemp[128];
1291
1292 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushlist_p");
1293 pyobj = PyString_FromString(ptemp);
1294 return pyobj;
1295}
1296
1297static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1298
1299 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1300 return 1;
1301}
1302
1303static PyObject *_wrap_wxTheColourDatabase_get() {
1304 PyObject * pyobj;
1305 char ptemp[128];
1306
1307 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1308 pyobj = PyString_FromString(ptemp);
1309 return pyobj;
1310}
1311
1312static void *SwigwxGDIObjectTowxObject(void *ptr) {
1313 wxGDIObject *src;
1314 wxObject *dest;
1315 src = (wxGDIObject *) ptr;
1316 dest = (wxObject *) src;
1317 return (void *) dest;
1318}
1319
1320#define new_wxGDIObject() (new wxGDIObject())
1321static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1322 PyObject * _resultobj;
1323 wxGDIObject * _result;
1324 char *_kwnames[] = { NULL };
1325 char _ptemp[128];
1326
1327 self = self;
1328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1329 return NULL;
1330{
1331 wxPy_BEGIN_ALLOW_THREADS;
1332 _result = (wxGDIObject *)new_wxGDIObject();
1333
1334 wxPy_END_ALLOW_THREADS;
1335} if (_result) {
1336 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1337 _resultobj = Py_BuildValue("s",_ptemp);
1338 } else {
1339 Py_INCREF(Py_None);
1340 _resultobj = Py_None;
1341 }
1342 return _resultobj;
1343}
1344
1345#define delete_wxGDIObject(_swigobj) (delete _swigobj)
1346static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1347 PyObject * _resultobj;
1348 wxGDIObject * _arg0;
1349 PyObject * _argo0 = 0;
1350 char *_kwnames[] = { "self", NULL };
1351
1352 self = self;
1353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1354 return NULL;
1355 if (_argo0) {
1356 if (_argo0 == Py_None) { _arg0 = NULL; }
1357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1359 return NULL;
1360 }
1361 }
1362{
1363 wxPy_BEGIN_ALLOW_THREADS;
1364 delete_wxGDIObject(_arg0);
1365
1366 wxPy_END_ALLOW_THREADS;
1367} Py_INCREF(Py_None);
1368 _resultobj = Py_None;
1369 return _resultobj;
1370}
1371
1372#define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1373static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1374 PyObject * _resultobj;
1375 bool _result;
1376 wxGDIObject * _arg0;
1377 PyObject * _argo0 = 0;
1378 char *_kwnames[] = { "self", NULL };
1379
1380 self = self;
1381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1382 return NULL;
1383 if (_argo0) {
1384 if (_argo0 == Py_None) { _arg0 = NULL; }
1385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1387 return NULL;
1388 }
1389 }
1390{
1391 wxPy_BEGIN_ALLOW_THREADS;
1392 _result = (bool )wxGDIObject_GetVisible(_arg0);
1393
1394 wxPy_END_ALLOW_THREADS;
1395} _resultobj = Py_BuildValue("i",_result);
1396 return _resultobj;
1397}
1398
1399#define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1400static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1401 PyObject * _resultobj;
1402 wxGDIObject * _arg0;
1403 bool _arg1;
1404 PyObject * _argo0 = 0;
1405 int tempbool1;
1406 char *_kwnames[] = { "self","visible", NULL };
1407
1408 self = self;
1409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1410 return NULL;
1411 if (_argo0) {
1412 if (_argo0 == Py_None) { _arg0 = NULL; }
1413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1415 return NULL;
1416 }
1417 }
1418 _arg1 = (bool ) tempbool1;
1419{
1420 wxPy_BEGIN_ALLOW_THREADS;
1421 wxGDIObject_SetVisible(_arg0,_arg1);
1422
1423 wxPy_END_ALLOW_THREADS;
1424} Py_INCREF(Py_None);
1425 _resultobj = Py_None;
1426 return _resultobj;
1427}
1428
1429#define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1430static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1431 PyObject * _resultobj;
1432 bool _result;
1433 wxGDIObject * _arg0;
1434 PyObject * _argo0 = 0;
1435 char *_kwnames[] = { "self", NULL };
1436
1437 self = self;
1438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1439 return NULL;
1440 if (_argo0) {
1441 if (_argo0 == Py_None) { _arg0 = NULL; }
1442 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1443 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1444 return NULL;
1445 }
1446 }
1447{
1448 wxPy_BEGIN_ALLOW_THREADS;
1449 _result = (bool )wxGDIObject_IsNull(_arg0);
1450
1451 wxPy_END_ALLOW_THREADS;
1452} _resultobj = Py_BuildValue("i",_result);
1453 return _resultobj;
1454}
1455
1456static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1457 wxBitmap *src;
1458 wxGDIObject *dest;
1459 src = (wxBitmap *) ptr;
1460 dest = (wxGDIObject *) src;
1461 return (void *) dest;
1462}
1463
1464static void *SwigwxBitmapTowxObject(void *ptr) {
1465 wxBitmap *src;
1466 wxObject *dest;
1467 src = (wxBitmap *) ptr;
1468 dest = (wxObject *) src;
1469 return (void *) dest;
1470}
1471
1472#define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1473static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1474 PyObject * _resultobj;
1475 wxBitmap * _result;
1476 wxString * _arg0;
1477 wxBitmapType _arg1;
1478 PyObject * _obj0 = 0;
1479 char *_kwnames[] = { "name","type", NULL };
1480 char _ptemp[128];
1481
1482 self = self;
1483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1484 return NULL;
1485{
1486#if PYTHON_API_VERSION >= 1009
1487 char* tmpPtr; int tmpSize;
1488 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1489 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1490 return NULL;
1491 }
1492 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1493 return NULL;
1494 _arg0 = new wxString(tmpPtr, tmpSize);
1495#else
1496 if (!PyString_Check(_obj0)) {
1497 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1498 return NULL;
1499 }
1500 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1501#endif
1502}
1503{
1504 wxPy_BEGIN_ALLOW_THREADS;
1505 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1506
1507 wxPy_END_ALLOW_THREADS;
1508} if (_result) {
1509 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1510 _resultobj = Py_BuildValue("s",_ptemp);
1511 } else {
1512 Py_INCREF(Py_None);
1513 _resultobj = Py_None;
1514 }
1515{
1516 if (_obj0)
1517 delete _arg0;
1518}
1519 return _resultobj;
1520}
1521
1522#define delete_wxBitmap(_swigobj) (delete _swigobj)
1523static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1524 PyObject * _resultobj;
1525 wxBitmap * _arg0;
1526 PyObject * _argo0 = 0;
1527 char *_kwnames[] = { "self", NULL };
1528
1529 self = self;
1530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1531 return NULL;
1532 if (_argo0) {
1533 if (_argo0 == Py_None) { _arg0 = NULL; }
1534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1536 return NULL;
1537 }
1538 }
1539{
1540 wxPy_BEGIN_ALLOW_THREADS;
1541 delete_wxBitmap(_arg0);
1542
1543 wxPy_END_ALLOW_THREADS;
1544} Py_INCREF(Py_None);
1545 _resultobj = Py_None;
1546 return _resultobj;
1547}
1548
1549#define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1550static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1551 PyObject * _resultobj;
1552 wxPalette * _result;
1553 wxBitmap * _arg0;
1554 PyObject * _argo0 = 0;
1555 char *_kwnames[] = { "self", NULL };
1556 char _ptemp[128];
1557
1558 self = self;
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1560 return NULL;
1561 if (_argo0) {
1562 if (_argo0 == Py_None) { _arg0 = NULL; }
1563 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1564 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1565 return NULL;
1566 }
1567 }
1568{
1569 wxPy_BEGIN_ALLOW_THREADS;
1570 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1571
1572 wxPy_END_ALLOW_THREADS;
1573} if (_result) {
1574 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1575 _resultobj = Py_BuildValue("s",_ptemp);
1576 } else {
1577 Py_INCREF(Py_None);
1578 _resultobj = Py_None;
1579 }
1580 return _resultobj;
1581}
1582
1583#define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1584static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1585 PyObject * _resultobj;
1586 wxMask * _result;
1587 wxBitmap * _arg0;
1588 PyObject * _argo0 = 0;
1589 char *_kwnames[] = { "self", NULL };
1590 char _ptemp[128];
1591
1592 self = self;
1593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1594 return NULL;
1595 if (_argo0) {
1596 if (_argo0 == Py_None) { _arg0 = NULL; }
1597 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1598 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1599 return NULL;
1600 }
1601 }
1602{
1603 wxPy_BEGIN_ALLOW_THREADS;
1604 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1605
1606 wxPy_END_ALLOW_THREADS;
1607} if (_result) {
1608 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1609 _resultobj = Py_BuildValue("s",_ptemp);
1610 } else {
1611 Py_INCREF(Py_None);
1612 _resultobj = Py_None;
1613 }
1614 return _resultobj;
1615}
1616
1617#define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1618static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1619 PyObject * _resultobj;
1620 bool _result;
1621 wxBitmap * _arg0;
1622 wxString * _arg1;
1623 long _arg2;
1624 PyObject * _argo0 = 0;
1625 PyObject * _obj1 = 0;
1626 char *_kwnames[] = { "self","name","flags", NULL };
1627
1628 self = self;
1629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1630 return NULL;
1631 if (_argo0) {
1632 if (_argo0 == Py_None) { _arg0 = NULL; }
1633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1635 return NULL;
1636 }
1637 }
1638{
1639#if PYTHON_API_VERSION >= 1009
1640 char* tmpPtr; int tmpSize;
1641 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1642 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1643 return NULL;
1644 }
1645 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1646 return NULL;
1647 _arg1 = new wxString(tmpPtr, tmpSize);
1648#else
1649 if (!PyString_Check(_obj1)) {
1650 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1651 return NULL;
1652 }
1653 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1654#endif
1655}
1656{
1657 wxPy_BEGIN_ALLOW_THREADS;
1658 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1659
1660 wxPy_END_ALLOW_THREADS;
1661} _resultobj = Py_BuildValue("i",_result);
1662{
1663 if (_obj1)
1664 delete _arg1;
1665}
1666 return _resultobj;
1667}
1668
1669#define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1670static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1671 PyObject * _resultobj;
1672 bool _result;
1673 wxBitmap * _arg0;
1674 wxString * _arg1;
1675 int _arg2;
1676 wxPalette * _arg3 = (wxPalette *) NULL;
1677 PyObject * _argo0 = 0;
1678 PyObject * _obj1 = 0;
1679 PyObject * _argo3 = 0;
1680 char *_kwnames[] = { "self","name","type","palette", NULL };
1681
1682 self = self;
1683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1684 return NULL;
1685 if (_argo0) {
1686 if (_argo0 == Py_None) { _arg0 = NULL; }
1687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1689 return NULL;
1690 }
1691 }
1692{
1693#if PYTHON_API_VERSION >= 1009
1694 char* tmpPtr; int tmpSize;
1695 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1696 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1697 return NULL;
1698 }
1699 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1700 return NULL;
1701 _arg1 = new wxString(tmpPtr, tmpSize);
1702#else
1703 if (!PyString_Check(_obj1)) {
1704 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1705 return NULL;
1706 }
1707 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1708#endif
1709}
1710 if (_argo3) {
1711 if (_argo3 == Py_None) { _arg3 = NULL; }
1712 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1713 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1714 return NULL;
1715 }
1716 }
1717{
1718 wxPy_BEGIN_ALLOW_THREADS;
1719 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1720
1721 wxPy_END_ALLOW_THREADS;
1722} _resultobj = Py_BuildValue("i",_result);
1723{
1724 if (_obj1)
1725 delete _arg1;
1726}
1727 return _resultobj;
1728}
1729
1730#define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1731static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1732 PyObject * _resultobj;
1733 wxBitmap * _arg0;
1734 wxMask * _arg1;
1735 PyObject * _argo0 = 0;
1736 PyObject * _argo1 = 0;
1737 char *_kwnames[] = { "self","mask", NULL };
1738
1739 self = self;
1740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1741 return NULL;
1742 if (_argo0) {
1743 if (_argo0 == Py_None) { _arg0 = NULL; }
1744 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1745 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1746 return NULL;
1747 }
1748 }
1749 if (_argo1) {
1750 if (_argo1 == Py_None) { _arg1 = NULL; }
1751 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1752 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1753 return NULL;
1754 }
1755 }
1756{
1757 wxPy_BEGIN_ALLOW_THREADS;
1758 wxBitmap_SetMask(_arg0,_arg1);
1759
1760 wxPy_END_ALLOW_THREADS;
1761} Py_INCREF(Py_None);
1762 _resultobj = Py_None;
1763 return _resultobj;
1764}
1765
1766#define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1767static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1768 PyObject * _resultobj;
1769 wxBitmap * _arg0;
1770 wxPalette * _arg1;
1771 PyObject * _argo0 = 0;
1772 PyObject * _argo1 = 0;
1773 char *_kwnames[] = { "self","palette", NULL };
1774
1775 self = self;
1776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1777 return NULL;
1778 if (_argo0) {
1779 if (_argo0 == Py_None) { _arg0 = NULL; }
1780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1782 return NULL;
1783 }
1784 }
1785 if (_argo1) {
1786 if (_argo1 == Py_None) { _arg1 = NULL; }
1787 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1788 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1789 return NULL;
1790 }
1791 }
1792{
1793 wxPy_BEGIN_ALLOW_THREADS;
1794 wxBitmap_SetPalette(_arg0,*_arg1);
1795
1796 wxPy_END_ALLOW_THREADS;
1797} Py_INCREF(Py_None);
1798 _resultobj = Py_None;
1799 return _resultobj;
1800}
1801
1802#define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1803static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1804 PyObject * _resultobj;
1805 long _result;
1806 wxBitmap * _arg0;
1807 PyObject * _argo0 = 0;
1808 char *_kwnames[] = { "self", NULL };
1809
1810 self = self;
1811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1812 return NULL;
1813 if (_argo0) {
1814 if (_argo0 == Py_None) { _arg0 = NULL; }
1815 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1816 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1817 return NULL;
1818 }
1819 }
1820{
1821 wxPy_BEGIN_ALLOW_THREADS;
1822 _result = (long )wxBitmap_GetHandle(_arg0);
1823
1824 wxPy_END_ALLOW_THREADS;
1825} _resultobj = Py_BuildValue("l",_result);
1826 return _resultobj;
1827}
1828
1829#define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1830static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1831 PyObject * _resultobj;
1832 wxBitmap * _arg0;
1833 long _arg1;
1834 PyObject * _argo0 = 0;
1835 char *_kwnames[] = { "self","handle", NULL };
1836
1837 self = self;
1838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1839 return NULL;
1840 if (_argo0) {
1841 if (_argo0 == Py_None) { _arg0 = NULL; }
1842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1844 return NULL;
1845 }
1846 }
1847{
1848 wxPy_BEGIN_ALLOW_THREADS;
1849 wxBitmap_SetHandle(_arg0,_arg1);
1850
1851 wxPy_END_ALLOW_THREADS;
1852} Py_INCREF(Py_None);
1853 _resultobj = Py_None;
1854 return _resultobj;
1855}
1856
1857#define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1858static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1859 PyObject * _resultobj;
1860 bool _result;
1861 wxBitmap * _arg0;
1862 PyObject * _argo0 = 0;
1863 char *_kwnames[] = { "self", NULL };
1864
1865 self = self;
1866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1867 return NULL;
1868 if (_argo0) {
1869 if (_argo0 == Py_None) { _arg0 = NULL; }
1870 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1871 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1872 return NULL;
1873 }
1874 }
1875{
1876 wxPy_BEGIN_ALLOW_THREADS;
1877 _result = (bool )wxBitmap_Ok(_arg0);
1878
1879 wxPy_END_ALLOW_THREADS;
1880} _resultobj = Py_BuildValue("i",_result);
1881 return _resultobj;
1882}
1883
1884#define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1885static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1886 PyObject * _resultobj;
1887 int _result;
1888 wxBitmap * _arg0;
1889 PyObject * _argo0 = 0;
1890 char *_kwnames[] = { "self", NULL };
1891
1892 self = self;
1893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1894 return NULL;
1895 if (_argo0) {
1896 if (_argo0 == Py_None) { _arg0 = NULL; }
1897 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1898 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1899 return NULL;
1900 }
1901 }
1902{
1903 wxPy_BEGIN_ALLOW_THREADS;
1904 _result = (int )wxBitmap_GetWidth(_arg0);
1905
1906 wxPy_END_ALLOW_THREADS;
1907} _resultobj = Py_BuildValue("i",_result);
1908 return _resultobj;
1909}
1910
1911#define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1912static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1913 PyObject * _resultobj;
1914 int _result;
1915 wxBitmap * _arg0;
1916 PyObject * _argo0 = 0;
1917 char *_kwnames[] = { "self", NULL };
1918
1919 self = self;
1920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1921 return NULL;
1922 if (_argo0) {
1923 if (_argo0 == Py_None) { _arg0 = NULL; }
1924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1926 return NULL;
1927 }
1928 }
1929{
1930 wxPy_BEGIN_ALLOW_THREADS;
1931 _result = (int )wxBitmap_GetHeight(_arg0);
1932
1933 wxPy_END_ALLOW_THREADS;
1934} _resultobj = Py_BuildValue("i",_result);
1935 return _resultobj;
1936}
1937
1938#define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1939static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1940 PyObject * _resultobj;
1941 int _result;
1942 wxBitmap * _arg0;
1943 PyObject * _argo0 = 0;
1944 char *_kwnames[] = { "self", NULL };
1945
1946 self = self;
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1948 return NULL;
1949 if (_argo0) {
1950 if (_argo0 == Py_None) { _arg0 = NULL; }
1951 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1952 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1953 return NULL;
1954 }
1955 }
1956{
1957 wxPy_BEGIN_ALLOW_THREADS;
1958 _result = (int )wxBitmap_GetDepth(_arg0);
1959
1960 wxPy_END_ALLOW_THREADS;
1961} _resultobj = Py_BuildValue("i",_result);
1962 return _resultobj;
1963}
1964
1965#define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1966static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1967 PyObject * _resultobj;
1968 wxBitmap * _arg0;
1969 int _arg1;
1970 PyObject * _argo0 = 0;
1971 char *_kwnames[] = { "self","w", NULL };
1972
1973 self = self;
1974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1975 return NULL;
1976 if (_argo0) {
1977 if (_argo0 == Py_None) { _arg0 = NULL; }
1978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1980 return NULL;
1981 }
1982 }
1983{
1984 wxPy_BEGIN_ALLOW_THREADS;
1985 wxBitmap_SetWidth(_arg0,_arg1);
1986
1987 wxPy_END_ALLOW_THREADS;
1988} Py_INCREF(Py_None);
1989 _resultobj = Py_None;
1990 return _resultobj;
1991}
1992
1993#define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1994static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 wxBitmap * _arg0;
1997 int _arg1;
1998 PyObject * _argo0 = 0;
1999 char *_kwnames[] = { "self","h", NULL };
2000
2001 self = self;
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
2003 return NULL;
2004 if (_argo0) {
2005 if (_argo0 == Py_None) { _arg0 = NULL; }
2006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2008 return NULL;
2009 }
2010 }
2011{
2012 wxPy_BEGIN_ALLOW_THREADS;
2013 wxBitmap_SetHeight(_arg0,_arg1);
2014
2015 wxPy_END_ALLOW_THREADS;
2016} Py_INCREF(Py_None);
2017 _resultobj = Py_None;
2018 return _resultobj;
2019}
2020
2021#define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2022static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2023 PyObject * _resultobj;
2024 wxBitmap * _arg0;
2025 int _arg1;
2026 PyObject * _argo0 = 0;
2027 char *_kwnames[] = { "self","d", NULL };
2028
2029 self = self;
2030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2031 return NULL;
2032 if (_argo0) {
2033 if (_argo0 == Py_None) { _arg0 = NULL; }
2034 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2035 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2036 return NULL;
2037 }
2038 }
2039{
2040 wxPy_BEGIN_ALLOW_THREADS;
2041 wxBitmap_SetDepth(_arg0,_arg1);
2042
2043 wxPy_END_ALLOW_THREADS;
2044} Py_INCREF(Py_None);
2045 _resultobj = Py_None;
2046 return _resultobj;
2047}
2048
2049#define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2050static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2051 PyObject * _resultobj;
2052 wxBitmap * _arg0;
2053 wxSize * _arg1;
2054 PyObject * _argo0 = 0;
2055 wxSize temp;
2056 PyObject * _obj1 = 0;
2057 char *_kwnames[] = { "self","size", NULL };
2058
2059 self = self;
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2061 return NULL;
2062 if (_argo0) {
2063 if (_argo0 == Py_None) { _arg0 = NULL; }
2064 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2065 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2066 return NULL;
2067 }
2068 }
2069{
2070 _arg1 = &temp;
2071 if (! wxSize_helper(_obj1, &_arg1))
2072 return NULL;
2073}
2074{
2075 wxPy_BEGIN_ALLOW_THREADS;
2076 wxBitmap_SetSize(_arg0,*_arg1);
2077
2078 wxPy_END_ALLOW_THREADS;
2079} Py_INCREF(Py_None);
2080 _resultobj = Py_None;
2081 return _resultobj;
2082}
2083
2084#define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2085static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2086 PyObject * _resultobj;
2087 wxBitmap * _result;
2088 wxBitmap * _arg0;
2089 wxRect * _arg1;
2090 PyObject * _argo0 = 0;
2091 wxRect temp;
2092 PyObject * _obj1 = 0;
2093 char *_kwnames[] = { "self","rect", NULL };
2094 char _ptemp[128];
2095
2096 self = self;
2097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2098 return NULL;
2099 if (_argo0) {
2100 if (_argo0 == Py_None) { _arg0 = NULL; }
2101 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2102 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2103 return NULL;
2104 }
2105 }
2106{
2107 _arg1 = &temp;
2108 if (! wxRect_helper(_obj1, &_arg1))
2109 return NULL;
2110}
2111{
2112 wxPy_BEGIN_ALLOW_THREADS;
2113 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2114
2115 wxPy_END_ALLOW_THREADS;
2116} SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2117 _resultobj = Py_BuildValue("s",_ptemp);
2118 return _resultobj;
2119}
2120
2121#define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2122static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2123 PyObject * _resultobj;
2124 bool _result;
2125 wxBitmap * _arg0;
2126 wxIcon * _arg1;
2127 PyObject * _argo0 = 0;
2128 PyObject * _argo1 = 0;
2129 char *_kwnames[] = { "self","icon", NULL };
2130
2131 self = self;
2132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2133 return NULL;
2134 if (_argo0) {
2135 if (_argo0 == Py_None) { _arg0 = NULL; }
2136 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2137 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2138 return NULL;
2139 }
2140 }
2141 if (_argo1) {
2142 if (_argo1 == Py_None) { _arg1 = NULL; }
2143 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2144 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2145 return NULL;
2146 }
2147 }
2148{
2149 wxPy_BEGIN_ALLOW_THREADS;
2150 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2151
2152 wxPy_END_ALLOW_THREADS;
2153} _resultobj = Py_BuildValue("i",_result);
2154 return _resultobj;
2155}
2156
2157#define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2158static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2159 PyObject * _resultobj;
2160 bool _result;
2161 wxBitmap * _arg0;
2162 wxCursor * _arg1;
2163 PyObject * _argo0 = 0;
2164 PyObject * _argo1 = 0;
2165 char *_kwnames[] = { "self","cursor", NULL };
2166
2167 self = self;
2168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2169 return NULL;
2170 if (_argo0) {
2171 if (_argo0 == Py_None) { _arg0 = NULL; }
2172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2174 return NULL;
2175 }
2176 }
2177 if (_argo1) {
2178 if (_argo1 == Py_None) { _arg1 = NULL; }
2179 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2180 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2181 return NULL;
2182 }
2183 }
2184{
2185 wxPy_BEGIN_ALLOW_THREADS;
2186 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2187
2188 wxPy_END_ALLOW_THREADS;
2189} _resultobj = Py_BuildValue("i",_result);
2190 return _resultobj;
2191}
2192
2193#define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2194static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2195 PyObject * _resultobj;
2196 int _result;
2197 wxBitmap * _arg0;
2198 PyObject * _argo0 = 0;
2199 char *_kwnames[] = { "self", NULL };
2200
2201 self = self;
2202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2203 return NULL;
2204 if (_argo0) {
2205 if (_argo0 == Py_None) { _arg0 = NULL; }
2206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2208 return NULL;
2209 }
2210 }
2211{
2212 wxPy_BEGIN_ALLOW_THREADS;
2213 _result = (int )wxBitmap_GetQuality(_arg0);
2214
2215 wxPy_END_ALLOW_THREADS;
2216} _resultobj = Py_BuildValue("i",_result);
2217 return _resultobj;
2218}
2219
2220#define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2221static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2222 PyObject * _resultobj;
2223 wxBitmap * _arg0;
2224 int _arg1;
2225 PyObject * _argo0 = 0;
2226 char *_kwnames[] = { "self","q", NULL };
2227
2228 self = self;
2229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2230 return NULL;
2231 if (_argo0) {
2232 if (_argo0 == Py_None) { _arg0 = NULL; }
2233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2235 return NULL;
2236 }
2237 }
2238{
2239 wxPy_BEGIN_ALLOW_THREADS;
2240 wxBitmap_SetQuality(_arg0,_arg1);
2241
2242 wxPy_END_ALLOW_THREADS;
2243} Py_INCREF(Py_None);
2244 _resultobj = Py_None;
2245 return _resultobj;
2246}
2247
2248static void *SwigwxMaskTowxObject(void *ptr) {
2249 wxMask *src;
2250 wxObject *dest;
2251 src = (wxMask *) ptr;
2252 dest = (wxObject *) src;
2253 return (void *) dest;
2254}
2255
2256#define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2257static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2258 PyObject * _resultobj;
2259 wxMask * _result;
2260 wxBitmap * _arg0;
2261 PyObject * _argo0 = 0;
2262 char *_kwnames[] = { "bitmap", NULL };
2263 char _ptemp[128];
2264
2265 self = self;
2266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2267 return NULL;
2268 if (_argo0) {
2269 if (_argo0 == Py_None) { _arg0 = NULL; }
2270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2272 return NULL;
2273 }
2274 }
2275{
2276 wxPy_BEGIN_ALLOW_THREADS;
2277 _result = (wxMask *)new_wxMask(*_arg0);
2278
2279 wxPy_END_ALLOW_THREADS;
2280} if (_result) {
2281 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2282 _resultobj = Py_BuildValue("s",_ptemp);
2283 } else {
2284 Py_INCREF(Py_None);
2285 _resultobj = Py_None;
2286 }
2287 return _resultobj;
2288}
2289
2290static void wxMask_Destroy(wxMask *self) { delete self; }
2291static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2292 PyObject * _resultobj;
2293 wxMask * _arg0;
2294 PyObject * _argo0 = 0;
2295 char *_kwnames[] = { "self", NULL };
2296
2297 self = self;
2298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2299 return NULL;
2300 if (_argo0) {
2301 if (_argo0 == Py_None) { _arg0 = NULL; }
2302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2304 return NULL;
2305 }
2306 }
2307{
2308 wxPy_BEGIN_ALLOW_THREADS;
2309 wxMask_Destroy(_arg0);
2310
2311 wxPy_END_ALLOW_THREADS;
2312} Py_INCREF(Py_None);
2313 _resultobj = Py_None;
2314 return _resultobj;
2315}
2316
2317static void *SwigwxIconTowxGDIObject(void *ptr) {
2318 wxIcon *src;
2319 wxGDIObject *dest;
2320 src = (wxIcon *) ptr;
2321 dest = (wxGDIObject *) src;
2322 return (void *) dest;
2323}
2324
2325static void *SwigwxIconTowxObject(void *ptr) {
2326 wxIcon *src;
2327 wxObject *dest;
2328 src = (wxIcon *) ptr;
2329 dest = (wxObject *) src;
2330 return (void *) dest;
2331}
2332
2333#define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2334static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2335 PyObject * _resultobj;
2336 wxIcon * _result;
2337 wxString * _arg0;
2338 long _arg1;
2339 int _arg2 = (int ) -1;
2340 int _arg3 = (int ) -1;
2341 PyObject * _obj0 = 0;
2342 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2343 char _ptemp[128];
2344
2345 self = self;
2346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2347 return NULL;
2348{
2349#if PYTHON_API_VERSION >= 1009
2350 char* tmpPtr; int tmpSize;
2351 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2352 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2353 return NULL;
2354 }
2355 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2356 return NULL;
2357 _arg0 = new wxString(tmpPtr, tmpSize);
2358#else
2359 if (!PyString_Check(_obj0)) {
2360 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2361 return NULL;
2362 }
2363 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2364#endif
2365}
2366{
2367 wxPy_BEGIN_ALLOW_THREADS;
2368 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2369
2370 wxPy_END_ALLOW_THREADS;
2371} if (_result) {
2372 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2373 _resultobj = Py_BuildValue("s",_ptemp);
2374 } else {
2375 Py_INCREF(Py_None);
2376 _resultobj = Py_None;
2377 }
2378{
2379 if (_obj0)
2380 delete _arg0;
2381}
2382 return _resultobj;
2383}
2384
2385#define delete_wxIcon(_swigobj) (delete _swigobj)
2386static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2387 PyObject * _resultobj;
2388 wxIcon * _arg0;
2389 PyObject * _argo0 = 0;
2390 char *_kwnames[] = { "self", NULL };
2391
2392 self = self;
2393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2394 return NULL;
2395 if (_argo0) {
2396 if (_argo0 == Py_None) { _arg0 = NULL; }
2397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2399 return NULL;
2400 }
2401 }
2402{
2403 wxPy_BEGIN_ALLOW_THREADS;
2404 delete_wxIcon(_arg0);
2405
2406 wxPy_END_ALLOW_THREADS;
2407} Py_INCREF(Py_None);
2408 _resultobj = Py_None;
2409 return _resultobj;
2410}
2411
2412#define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2413static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2414 PyObject * _resultobj;
2415 bool _result;
2416 wxIcon * _arg0;
2417 wxString * _arg1;
2418 long _arg2;
2419 PyObject * _argo0 = 0;
2420 PyObject * _obj1 = 0;
2421 char *_kwnames[] = { "self","name","flags", NULL };
2422
2423 self = self;
2424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2425 return NULL;
2426 if (_argo0) {
2427 if (_argo0 == Py_None) { _arg0 = NULL; }
2428 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2429 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2430 return NULL;
2431 }
2432 }
2433{
2434#if PYTHON_API_VERSION >= 1009
2435 char* tmpPtr; int tmpSize;
2436 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2437 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2438 return NULL;
2439 }
2440 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2441 return NULL;
2442 _arg1 = new wxString(tmpPtr, tmpSize);
2443#else
2444 if (!PyString_Check(_obj1)) {
2445 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2446 return NULL;
2447 }
2448 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2449#endif
2450}
2451{
2452 wxPy_BEGIN_ALLOW_THREADS;
2453 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2454
2455 wxPy_END_ALLOW_THREADS;
2456} _resultobj = Py_BuildValue("i",_result);
2457{
2458 if (_obj1)
2459 delete _arg1;
2460}
2461 return _resultobj;
2462}
2463
2464#define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2465static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2466 PyObject * _resultobj;
2467 long _result;
2468 wxIcon * _arg0;
2469 PyObject * _argo0 = 0;
2470 char *_kwnames[] = { "self", NULL };
2471
2472 self = self;
2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2474 return NULL;
2475 if (_argo0) {
2476 if (_argo0 == Py_None) { _arg0 = NULL; }
2477 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2478 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2479 return NULL;
2480 }
2481 }
2482{
2483 wxPy_BEGIN_ALLOW_THREADS;
2484 _result = (long )wxIcon_GetHandle(_arg0);
2485
2486 wxPy_END_ALLOW_THREADS;
2487} _resultobj = Py_BuildValue("l",_result);
2488 return _resultobj;
2489}
2490
2491#define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2492static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2493 PyObject * _resultobj;
2494 wxIcon * _arg0;
2495 long _arg1;
2496 PyObject * _argo0 = 0;
2497 char *_kwnames[] = { "self","handle", NULL };
2498
2499 self = self;
2500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2501 return NULL;
2502 if (_argo0) {
2503 if (_argo0 == Py_None) { _arg0 = NULL; }
2504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2506 return NULL;
2507 }
2508 }
2509{
2510 wxPy_BEGIN_ALLOW_THREADS;
2511 wxIcon_SetHandle(_arg0,_arg1);
2512
2513 wxPy_END_ALLOW_THREADS;
2514} Py_INCREF(Py_None);
2515 _resultobj = Py_None;
2516 return _resultobj;
2517}
2518
2519#define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2520static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2521 PyObject * _resultobj;
2522 bool _result;
2523 wxIcon * _arg0;
2524 PyObject * _argo0 = 0;
2525 char *_kwnames[] = { "self", NULL };
2526
2527 self = self;
2528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2529 return NULL;
2530 if (_argo0) {
2531 if (_argo0 == Py_None) { _arg0 = NULL; }
2532 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2533 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2534 return NULL;
2535 }
2536 }
2537{
2538 wxPy_BEGIN_ALLOW_THREADS;
2539 _result = (bool )wxIcon_Ok(_arg0);
2540
2541 wxPy_END_ALLOW_THREADS;
2542} _resultobj = Py_BuildValue("i",_result);
2543 return _resultobj;
2544}
2545
2546#define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2547static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2548 PyObject * _resultobj;
2549 int _result;
2550 wxIcon * _arg0;
2551 PyObject * _argo0 = 0;
2552 char *_kwnames[] = { "self", NULL };
2553
2554 self = self;
2555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2556 return NULL;
2557 if (_argo0) {
2558 if (_argo0 == Py_None) { _arg0 = NULL; }
2559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2561 return NULL;
2562 }
2563 }
2564{
2565 wxPy_BEGIN_ALLOW_THREADS;
2566 _result = (int )wxIcon_GetWidth(_arg0);
2567
2568 wxPy_END_ALLOW_THREADS;
2569} _resultobj = Py_BuildValue("i",_result);
2570 return _resultobj;
2571}
2572
2573#define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2574static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2575 PyObject * _resultobj;
2576 int _result;
2577 wxIcon * _arg0;
2578 PyObject * _argo0 = 0;
2579 char *_kwnames[] = { "self", NULL };
2580
2581 self = self;
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2583 return NULL;
2584 if (_argo0) {
2585 if (_argo0 == Py_None) { _arg0 = NULL; }
2586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2588 return NULL;
2589 }
2590 }
2591{
2592 wxPy_BEGIN_ALLOW_THREADS;
2593 _result = (int )wxIcon_GetHeight(_arg0);
2594
2595 wxPy_END_ALLOW_THREADS;
2596} _resultobj = Py_BuildValue("i",_result);
2597 return _resultobj;
2598}
2599
2600#define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2601static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2602 PyObject * _resultobj;
2603 int _result;
2604 wxIcon * _arg0;
2605 PyObject * _argo0 = 0;
2606 char *_kwnames[] = { "self", NULL };
2607
2608 self = self;
2609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2610 return NULL;
2611 if (_argo0) {
2612 if (_argo0 == Py_None) { _arg0 = NULL; }
2613 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2614 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2615 return NULL;
2616 }
2617 }
2618{
2619 wxPy_BEGIN_ALLOW_THREADS;
2620 _result = (int )wxIcon_GetDepth(_arg0);
2621
2622 wxPy_END_ALLOW_THREADS;
2623} _resultobj = Py_BuildValue("i",_result);
2624 return _resultobj;
2625}
2626
2627#define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2628static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2629 PyObject * _resultobj;
2630 wxIcon * _arg0;
2631 int _arg1;
2632 PyObject * _argo0 = 0;
2633 char *_kwnames[] = { "self","w", NULL };
2634
2635 self = self;
2636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2637 return NULL;
2638 if (_argo0) {
2639 if (_argo0 == Py_None) { _arg0 = NULL; }
2640 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2641 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2642 return NULL;
2643 }
2644 }
2645{
2646 wxPy_BEGIN_ALLOW_THREADS;
2647 wxIcon_SetWidth(_arg0,_arg1);
2648
2649 wxPy_END_ALLOW_THREADS;
2650} Py_INCREF(Py_None);
2651 _resultobj = Py_None;
2652 return _resultobj;
2653}
2654
2655#define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2656static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2657 PyObject * _resultobj;
2658 wxIcon * _arg0;
2659 int _arg1;
2660 PyObject * _argo0 = 0;
2661 char *_kwnames[] = { "self","h", NULL };
2662
2663 self = self;
2664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2665 return NULL;
2666 if (_argo0) {
2667 if (_argo0 == Py_None) { _arg0 = NULL; }
2668 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2669 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2670 return NULL;
2671 }
2672 }
2673{
2674 wxPy_BEGIN_ALLOW_THREADS;
2675 wxIcon_SetHeight(_arg0,_arg1);
2676
2677 wxPy_END_ALLOW_THREADS;
2678} Py_INCREF(Py_None);
2679 _resultobj = Py_None;
2680 return _resultobj;
2681}
2682
2683#define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2684static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2685 PyObject * _resultobj;
2686 wxIcon * _arg0;
2687 int _arg1;
2688 PyObject * _argo0 = 0;
2689 char *_kwnames[] = { "self","d", NULL };
2690
2691 self = self;
2692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2693 return NULL;
2694 if (_argo0) {
2695 if (_argo0 == Py_None) { _arg0 = NULL; }
2696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2698 return NULL;
2699 }
2700 }
2701{
2702 wxPy_BEGIN_ALLOW_THREADS;
2703 wxIcon_SetDepth(_arg0,_arg1);
2704
2705 wxPy_END_ALLOW_THREADS;
2706} Py_INCREF(Py_None);
2707 _resultobj = Py_None;
2708 return _resultobj;
2709}
2710
2711#define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2712static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2713 PyObject * _resultobj;
2714 wxIcon * _arg0;
2715 wxSize * _arg1;
2716 PyObject * _argo0 = 0;
2717 wxSize temp;
2718 PyObject * _obj1 = 0;
2719 char *_kwnames[] = { "self","size", NULL };
2720
2721 self = self;
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2723 return NULL;
2724 if (_argo0) {
2725 if (_argo0 == Py_None) { _arg0 = NULL; }
2726 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2727 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2728 return NULL;
2729 }
2730 }
2731{
2732 _arg1 = &temp;
2733 if (! wxSize_helper(_obj1, &_arg1))
2734 return NULL;
2735}
2736{
2737 wxPy_BEGIN_ALLOW_THREADS;
2738 wxIcon_SetSize(_arg0,*_arg1);
2739
2740 wxPy_END_ALLOW_THREADS;
2741} Py_INCREF(Py_None);
2742 _resultobj = Py_None;
2743 return _resultobj;
2744}
2745
2746#define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2747static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject * _resultobj;
2749 wxIcon * _arg0;
2750 wxBitmap * _arg1;
2751 PyObject * _argo0 = 0;
2752 PyObject * _argo1 = 0;
2753 char *_kwnames[] = { "self","bmp", NULL };
2754
2755 self = self;
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2757 return NULL;
2758 if (_argo0) {
2759 if (_argo0 == Py_None) { _arg0 = NULL; }
2760 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2761 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2762 return NULL;
2763 }
2764 }
2765 if (_argo1) {
2766 if (_argo1 == Py_None) { _arg1 = NULL; }
2767 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2768 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2769 return NULL;
2770 }
2771 }
2772{
2773 wxPy_BEGIN_ALLOW_THREADS;
2774 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2775
2776 wxPy_END_ALLOW_THREADS;
2777} Py_INCREF(Py_None);
2778 _resultobj = Py_None;
2779 return _resultobj;
2780}
2781
2782static void *SwigwxCursorTowxGDIObject(void *ptr) {
2783 wxCursor *src;
2784 wxGDIObject *dest;
2785 src = (wxCursor *) ptr;
2786 dest = (wxGDIObject *) src;
2787 return (void *) dest;
2788}
2789
2790static void *SwigwxCursorTowxObject(void *ptr) {
2791 wxCursor *src;
2792 wxObject *dest;
2793 src = (wxCursor *) ptr;
2794 dest = (wxObject *) src;
2795 return (void *) dest;
2796}
2797
2798#define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2799static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2800 PyObject * _resultobj;
2801 wxCursor * _result;
2802 wxString * _arg0;
2803 long _arg1;
2804 int _arg2 = (int ) 0;
2805 int _arg3 = (int ) 0;
2806 PyObject * _obj0 = 0;
2807 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
2808 char _ptemp[128];
2809
2810 self = self;
2811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2812 return NULL;
2813{
2814#if PYTHON_API_VERSION >= 1009
2815 char* tmpPtr; int tmpSize;
2816 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2817 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2818 return NULL;
2819 }
2820 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2821 return NULL;
2822 _arg0 = new wxString(tmpPtr, tmpSize);
2823#else
2824 if (!PyString_Check(_obj0)) {
2825 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2826 return NULL;
2827 }
2828 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2829#endif
2830}
2831{
2832 wxPy_BEGIN_ALLOW_THREADS;
2833 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
2834
2835 wxPy_END_ALLOW_THREADS;
2836} if (_result) {
2837 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
2838 _resultobj = Py_BuildValue("s",_ptemp);
2839 } else {
2840 Py_INCREF(Py_None);
2841 _resultobj = Py_None;
2842 }
2843{
2844 if (_obj0)
2845 delete _arg0;
2846}
2847 return _resultobj;
2848}
2849
2850#define delete_wxCursor(_swigobj) (delete _swigobj)
2851static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2852 PyObject * _resultobj;
2853 wxCursor * _arg0;
2854 PyObject * _argo0 = 0;
2855 char *_kwnames[] = { "self", NULL };
2856
2857 self = self;
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2859 return NULL;
2860 if (_argo0) {
2861 if (_argo0 == Py_None) { _arg0 = NULL; }
2862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2864 return NULL;
2865 }
2866 }
2867{
2868 wxPy_BEGIN_ALLOW_THREADS;
2869 delete_wxCursor(_arg0);
2870
2871 wxPy_END_ALLOW_THREADS;
2872} Py_INCREF(Py_None);
2873 _resultobj = Py_None;
2874 return _resultobj;
2875}
2876
2877#define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2878static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2879 PyObject * _resultobj;
2880 long _result;
2881 wxCursor * _arg0;
2882 PyObject * _argo0 = 0;
2883 char *_kwnames[] = { "self", NULL };
2884
2885 self = self;
2886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
2887 return NULL;
2888 if (_argo0) {
2889 if (_argo0 == Py_None) { _arg0 = NULL; }
2890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2892 return NULL;
2893 }
2894 }
2895{
2896 wxPy_BEGIN_ALLOW_THREADS;
2897 _result = (long )wxCursor_GetHandle(_arg0);
2898
2899 wxPy_END_ALLOW_THREADS;
2900} _resultobj = Py_BuildValue("l",_result);
2901 return _resultobj;
2902}
2903
2904#define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2905static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2906 PyObject * _resultobj;
2907 wxCursor * _arg0;
2908 long _arg1;
2909 PyObject * _argo0 = 0;
2910 char *_kwnames[] = { "self","handle", NULL };
2911
2912 self = self;
2913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
2914 return NULL;
2915 if (_argo0) {
2916 if (_argo0 == Py_None) { _arg0 = NULL; }
2917 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2918 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2919 return NULL;
2920 }
2921 }
2922{
2923 wxPy_BEGIN_ALLOW_THREADS;
2924 wxCursor_SetHandle(_arg0,_arg1);
2925
2926 wxPy_END_ALLOW_THREADS;
2927} Py_INCREF(Py_None);
2928 _resultobj = Py_None;
2929 return _resultobj;
2930}
2931
2932#define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2933static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2934 PyObject * _resultobj;
2935 bool _result;
2936 wxCursor * _arg0;
2937 PyObject * _argo0 = 0;
2938 char *_kwnames[] = { "self", NULL };
2939
2940 self = self;
2941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2942 return NULL;
2943 if (_argo0) {
2944 if (_argo0 == Py_None) { _arg0 = NULL; }
2945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2947 return NULL;
2948 }
2949 }
2950{
2951 wxPy_BEGIN_ALLOW_THREADS;
2952 _result = (bool )wxCursor_Ok(_arg0);
2953
2954 wxPy_END_ALLOW_THREADS;
2955} _resultobj = Py_BuildValue("i",_result);
2956 return _resultobj;
2957}
2958
2959#define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2960static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2961 PyObject * _resultobj;
2962 int _result;
2963 wxCursor * _arg0;
2964 PyObject * _argo0 = 0;
2965 char *_kwnames[] = { "self", NULL };
2966
2967 self = self;
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
2969 return NULL;
2970 if (_argo0) {
2971 if (_argo0 == Py_None) { _arg0 = NULL; }
2972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
2974 return NULL;
2975 }
2976 }
2977{
2978 wxPy_BEGIN_ALLOW_THREADS;
2979 _result = (int )wxCursor_GetWidth(_arg0);
2980
2981 wxPy_END_ALLOW_THREADS;
2982} _resultobj = Py_BuildValue("i",_result);
2983 return _resultobj;
2984}
2985
2986#define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
2987static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2988 PyObject * _resultobj;
2989 int _result;
2990 wxCursor * _arg0;
2991 PyObject * _argo0 = 0;
2992 char *_kwnames[] = { "self", NULL };
2993
2994 self = self;
2995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
2996 return NULL;
2997 if (_argo0) {
2998 if (_argo0 == Py_None) { _arg0 = NULL; }
2999 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3000 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3001 return NULL;
3002 }
3003 }
3004{
3005 wxPy_BEGIN_ALLOW_THREADS;
3006 _result = (int )wxCursor_GetHeight(_arg0);
3007
3008 wxPy_END_ALLOW_THREADS;
3009} _resultobj = Py_BuildValue("i",_result);
3010 return _resultobj;
3011}
3012
3013#define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3014static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3015 PyObject * _resultobj;
3016 int _result;
3017 wxCursor * _arg0;
3018 PyObject * _argo0 = 0;
3019 char *_kwnames[] = { "self", NULL };
3020
3021 self = self;
3022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3023 return NULL;
3024 if (_argo0) {
3025 if (_argo0 == Py_None) { _arg0 = NULL; }
3026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3028 return NULL;
3029 }
3030 }
3031{
3032 wxPy_BEGIN_ALLOW_THREADS;
3033 _result = (int )wxCursor_GetDepth(_arg0);
3034
3035 wxPy_END_ALLOW_THREADS;
3036} _resultobj = Py_BuildValue("i",_result);
3037 return _resultobj;
3038}
3039
3040#define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3041static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3042 PyObject * _resultobj;
3043 wxCursor * _arg0;
3044 int _arg1;
3045 PyObject * _argo0 = 0;
3046 char *_kwnames[] = { "self","w", NULL };
3047
3048 self = self;
3049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3050 return NULL;
3051 if (_argo0) {
3052 if (_argo0 == Py_None) { _arg0 = NULL; }
3053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3055 return NULL;
3056 }
3057 }
3058{
3059 wxPy_BEGIN_ALLOW_THREADS;
3060 wxCursor_SetWidth(_arg0,_arg1);
3061
3062 wxPy_END_ALLOW_THREADS;
3063} Py_INCREF(Py_None);
3064 _resultobj = Py_None;
3065 return _resultobj;
3066}
3067
3068#define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3069static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3070 PyObject * _resultobj;
3071 wxCursor * _arg0;
3072 int _arg1;
3073 PyObject * _argo0 = 0;
3074 char *_kwnames[] = { "self","h", NULL };
3075
3076 self = self;
3077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3078 return NULL;
3079 if (_argo0) {
3080 if (_argo0 == Py_None) { _arg0 = NULL; }
3081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3083 return NULL;
3084 }
3085 }
3086{
3087 wxPy_BEGIN_ALLOW_THREADS;
3088 wxCursor_SetHeight(_arg0,_arg1);
3089
3090 wxPy_END_ALLOW_THREADS;
3091} Py_INCREF(Py_None);
3092 _resultobj = Py_None;
3093 return _resultobj;
3094}
3095
3096#define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3097static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3098 PyObject * _resultobj;
3099 wxCursor * _arg0;
3100 int _arg1;
3101 PyObject * _argo0 = 0;
3102 char *_kwnames[] = { "self","d", NULL };
3103
3104 self = self;
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3106 return NULL;
3107 if (_argo0) {
3108 if (_argo0 == Py_None) { _arg0 = NULL; }
3109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3111 return NULL;
3112 }
3113 }
3114{
3115 wxPy_BEGIN_ALLOW_THREADS;
3116 wxCursor_SetDepth(_arg0,_arg1);
3117
3118 wxPy_END_ALLOW_THREADS;
3119} Py_INCREF(Py_None);
3120 _resultobj = Py_None;
3121 return _resultobj;
3122}
3123
3124#define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3125static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3126 PyObject * _resultobj;
3127 wxCursor * _arg0;
3128 wxSize * _arg1;
3129 PyObject * _argo0 = 0;
3130 wxSize temp;
3131 PyObject * _obj1 = 0;
3132 char *_kwnames[] = { "self","size", NULL };
3133
3134 self = self;
3135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3136 return NULL;
3137 if (_argo0) {
3138 if (_argo0 == Py_None) { _arg0 = NULL; }
3139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3141 return NULL;
3142 }
3143 }
3144{
3145 _arg1 = &temp;
3146 if (! wxSize_helper(_obj1, &_arg1))
3147 return NULL;
3148}
3149{
3150 wxPy_BEGIN_ALLOW_THREADS;
3151 wxCursor_SetSize(_arg0,*_arg1);
3152
3153 wxPy_END_ALLOW_THREADS;
3154} Py_INCREF(Py_None);
3155 _resultobj = Py_None;
3156 return _resultobj;
3157}
3158
3159static void *SwigwxFontTowxGDIObject(void *ptr) {
3160 wxFont *src;
3161 wxGDIObject *dest;
3162 src = (wxFont *) ptr;
3163 dest = (wxGDIObject *) src;
3164 return (void *) dest;
3165}
3166
3167static void *SwigwxFontTowxObject(void *ptr) {
3168 wxFont *src;
3169 wxObject *dest;
3170 src = (wxFont *) ptr;
3171 dest = (wxObject *) src;
3172 return (void *) dest;
3173}
3174
3175#define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3176static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3177 PyObject * _resultobj;
3178 wxFont * _result;
3179 int _arg0;
3180 int _arg1;
3181 int _arg2;
3182 int _arg3;
3183 int _arg4 = (int ) FALSE;
3184 char * _arg5 = (char *) "";
3185 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3186 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3187 char _ptemp[128];
3188
3189 self = self;
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3191 return NULL;
3192{
3193 wxPy_BEGIN_ALLOW_THREADS;
3194 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3195
3196 wxPy_END_ALLOW_THREADS;
3197} if (_result) {
3198 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3199 _resultobj = Py_BuildValue("s",_ptemp);
3200 } else {
3201 Py_INCREF(Py_None);
3202 _resultobj = Py_None;
3203 }
3204 return _resultobj;
3205}
3206
3207#define delete_wxFont(_swigobj) (delete _swigobj)
3208static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3209 PyObject * _resultobj;
3210 wxFont * _arg0;
3211 PyObject * _argo0 = 0;
3212 char *_kwnames[] = { "self", NULL };
3213
3214 self = self;
3215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3216 return NULL;
3217 if (_argo0) {
3218 if (_argo0 == Py_None) { _arg0 = NULL; }
3219 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3220 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3221 return NULL;
3222 }
3223 }
3224{
3225 wxPy_BEGIN_ALLOW_THREADS;
3226 delete_wxFont(_arg0);
3227
3228 wxPy_END_ALLOW_THREADS;
3229} Py_INCREF(Py_None);
3230 _resultobj = Py_None;
3231 return _resultobj;
3232}
3233
3234#define wxFont_Ok(_swigobj) (_swigobj->Ok())
3235static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3236 PyObject * _resultobj;
3237 bool _result;
3238 wxFont * _arg0;
3239 PyObject * _argo0 = 0;
3240 char *_kwnames[] = { "self", NULL };
3241
3242 self = self;
3243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
3244 return NULL;
3245 if (_argo0) {
3246 if (_argo0 == Py_None) { _arg0 = NULL; }
3247 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3248 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3249 return NULL;
3250 }
3251 }
3252{
3253 wxPy_BEGIN_ALLOW_THREADS;
3254 _result = (bool )wxFont_Ok(_arg0);
3255
3256 wxPy_END_ALLOW_THREADS;
3257} _resultobj = Py_BuildValue("i",_result);
3258 return _resultobj;
3259}
3260
3261#define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
3262static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3263 PyObject * _resultobj;
3264 wxString * _result;
3265 wxFont * _arg0;
3266 PyObject * _argo0 = 0;
3267 char *_kwnames[] = { "self", NULL };
3268
3269 self = self;
3270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
3271 return NULL;
3272 if (_argo0) {
3273 if (_argo0 == Py_None) { _arg0 = NULL; }
3274 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3275 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
3276 return NULL;
3277 }
3278 }
3279{
3280 wxPy_BEGIN_ALLOW_THREADS;
3281 _result = new wxString (wxFont_GetFaceName(_arg0));
3282
3283 wxPy_END_ALLOW_THREADS;
3284}{
3285 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3286}
3287{
3288 delete _result;
3289}
3290 return _resultobj;
3291}
3292
3293#define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3294static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3295 PyObject * _resultobj;
3296 int _result;
3297 wxFont * _arg0;
3298 PyObject * _argo0 = 0;
3299 char *_kwnames[] = { "self", NULL };
3300
3301 self = self;
3302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3303 return NULL;
3304 if (_argo0) {
3305 if (_argo0 == Py_None) { _arg0 = NULL; }
3306 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3307 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3308 return NULL;
3309 }
3310 }
3311{
3312 wxPy_BEGIN_ALLOW_THREADS;
3313 _result = (int )wxFont_GetFamily(_arg0);
3314
3315 wxPy_END_ALLOW_THREADS;
3316} _resultobj = Py_BuildValue("i",_result);
3317 return _resultobj;
3318}
3319
3320#define wxFont_GetFontId(_swigobj) (_swigobj->GetFontId())
3321static PyObject *_wrap_wxFont_GetFontId(PyObject *self, PyObject *args, PyObject *kwargs) {
3322 PyObject * _resultobj;
3323 int _result;
3324 wxFont * _arg0;
3325 PyObject * _argo0 = 0;
3326 char *_kwnames[] = { "self", NULL };
3327
3328 self = self;
3329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFontId",_kwnames,&_argo0))
3330 return NULL;
3331 if (_argo0) {
3332 if (_argo0 == Py_None) { _arg0 = NULL; }
3333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFontId. Expected _wxFont_p.");
3335 return NULL;
3336 }
3337 }
3338{
3339 wxPy_BEGIN_ALLOW_THREADS;
3340 _result = (int )wxFont_GetFontId(_arg0);
3341
3342 wxPy_END_ALLOW_THREADS;
3343} _resultobj = Py_BuildValue("i",_result);
3344 return _resultobj;
3345}
3346
3347#define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3348static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3349 PyObject * _resultobj;
3350 int _result;
3351 wxFont * _arg0;
3352 PyObject * _argo0 = 0;
3353 char *_kwnames[] = { "self", NULL };
3354
3355 self = self;
3356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3357 return NULL;
3358 if (_argo0) {
3359 if (_argo0 == Py_None) { _arg0 = NULL; }
3360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3362 return NULL;
3363 }
3364 }
3365{
3366 wxPy_BEGIN_ALLOW_THREADS;
3367 _result = (int )wxFont_GetPointSize(_arg0);
3368
3369 wxPy_END_ALLOW_THREADS;
3370} _resultobj = Py_BuildValue("i",_result);
3371 return _resultobj;
3372}
3373
3374#define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3375static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3376 PyObject * _resultobj;
3377 int _result;
3378 wxFont * _arg0;
3379 PyObject * _argo0 = 0;
3380 char *_kwnames[] = { "self", NULL };
3381
3382 self = self;
3383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3384 return NULL;
3385 if (_argo0) {
3386 if (_argo0 == Py_None) { _arg0 = NULL; }
3387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
3389 return NULL;
3390 }
3391 }
3392{
3393 wxPy_BEGIN_ALLOW_THREADS;
3394 _result = (int )wxFont_GetStyle(_arg0);
3395
3396 wxPy_END_ALLOW_THREADS;
3397} _resultobj = Py_BuildValue("i",_result);
3398 return _resultobj;
3399}
3400
3401#define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
3402static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3403 PyObject * _resultobj;
3404 bool _result;
3405 wxFont * _arg0;
3406 PyObject * _argo0 = 0;
3407 char *_kwnames[] = { "self", NULL };
3408
3409 self = self;
3410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
3411 return NULL;
3412 if (_argo0) {
3413 if (_argo0 == Py_None) { _arg0 = NULL; }
3414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
3416 return NULL;
3417 }
3418 }
3419{
3420 wxPy_BEGIN_ALLOW_THREADS;
3421 _result = (bool )wxFont_GetUnderlined(_arg0);
3422
3423 wxPy_END_ALLOW_THREADS;
3424} _resultobj = Py_BuildValue("i",_result);
3425 return _resultobj;
3426}
3427
3428#define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
3429static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3430 PyObject * _resultobj;
3431 int _result;
3432 wxFont * _arg0;
3433 PyObject * _argo0 = 0;
3434 char *_kwnames[] = { "self", NULL };
3435
3436 self = self;
3437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
3438 return NULL;
3439 if (_argo0) {
3440 if (_argo0 == Py_None) { _arg0 = NULL; }
3441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
3443 return NULL;
3444 }
3445 }
3446{
3447 wxPy_BEGIN_ALLOW_THREADS;
3448 _result = (int )wxFont_GetWeight(_arg0);
3449
3450 wxPy_END_ALLOW_THREADS;
3451} _resultobj = Py_BuildValue("i",_result);
3452 return _resultobj;
3453}
3454
3455#define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
3456static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3457 PyObject * _resultobj;
3458 wxFontEncoding _result;
3459 wxFont * _arg0;
3460 PyObject * _argo0 = 0;
3461 char *_kwnames[] = { "self", NULL };
3462
3463 self = self;
3464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
3465 return NULL;
3466 if (_argo0) {
3467 if (_argo0 == Py_None) { _arg0 = NULL; }
3468 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3469 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
3470 return NULL;
3471 }
3472 }
3473{
3474 wxPy_BEGIN_ALLOW_THREADS;
3475 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
3476
3477 wxPy_END_ALLOW_THREADS;
3478} _resultobj = Py_BuildValue("i",_result);
3479 return _resultobj;
3480}
3481
3482#define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
3483static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
3484 PyObject * _resultobj;
3485 wxFont * _arg0;
3486 wxString * _arg1;
3487 PyObject * _argo0 = 0;
3488 PyObject * _obj1 = 0;
3489 char *_kwnames[] = { "self","faceName", NULL };
3490
3491 self = self;
3492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
3493 return NULL;
3494 if (_argo0) {
3495 if (_argo0 == Py_None) { _arg0 = NULL; }
3496 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3497 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
3498 return NULL;
3499 }
3500 }
3501{
3502#if PYTHON_API_VERSION >= 1009
3503 char* tmpPtr; int tmpSize;
3504 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3505 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3506 return NULL;
3507 }
3508 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3509 return NULL;
3510 _arg1 = new wxString(tmpPtr, tmpSize);
3511#else
3512 if (!PyString_Check(_obj1)) {
3513 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3514 return NULL;
3515 }
3516 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3517#endif
3518}
3519{
3520 wxPy_BEGIN_ALLOW_THREADS;
3521 wxFont_SetFaceName(_arg0,*_arg1);
3522
3523 wxPy_END_ALLOW_THREADS;
3524} Py_INCREF(Py_None);
3525 _resultobj = Py_None;
3526{
3527 if (_obj1)
3528 delete _arg1;
3529}
3530 return _resultobj;
3531}
3532
3533#define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
3534static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3535 PyObject * _resultobj;
3536 wxFont * _arg0;
3537 int _arg1;
3538 PyObject * _argo0 = 0;
3539 char *_kwnames[] = { "self","family", NULL };
3540
3541 self = self;
3542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
3543 return NULL;
3544 if (_argo0) {
3545 if (_argo0 == Py_None) { _arg0 = NULL; }
3546 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3547 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
3548 return NULL;
3549 }
3550 }
3551{
3552 wxPy_BEGIN_ALLOW_THREADS;
3553 wxFont_SetFamily(_arg0,_arg1);
3554
3555 wxPy_END_ALLOW_THREADS;
3556} Py_INCREF(Py_None);
3557 _resultobj = Py_None;
3558 return _resultobj;
3559}
3560
3561#define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
3562static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3563 PyObject * _resultobj;
3564 wxFont * _arg0;
3565 int _arg1;
3566 PyObject * _argo0 = 0;
3567 char *_kwnames[] = { "self","pointSize", NULL };
3568
3569 self = self;
3570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
3571 return NULL;
3572 if (_argo0) {
3573 if (_argo0 == Py_None) { _arg0 = NULL; }
3574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
3576 return NULL;
3577 }
3578 }
3579{
3580 wxPy_BEGIN_ALLOW_THREADS;
3581 wxFont_SetPointSize(_arg0,_arg1);
3582
3583 wxPy_END_ALLOW_THREADS;
3584} Py_INCREF(Py_None);
3585 _resultobj = Py_None;
3586 return _resultobj;
3587}
3588
3589#define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
3590static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3591 PyObject * _resultobj;
3592 wxFont * _arg0;
3593 int _arg1;
3594 PyObject * _argo0 = 0;
3595 char *_kwnames[] = { "self","style", NULL };
3596
3597 self = self;
3598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
3599 return NULL;
3600 if (_argo0) {
3601 if (_argo0 == Py_None) { _arg0 = NULL; }
3602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
3604 return NULL;
3605 }
3606 }
3607{
3608 wxPy_BEGIN_ALLOW_THREADS;
3609 wxFont_SetStyle(_arg0,_arg1);
3610
3611 wxPy_END_ALLOW_THREADS;
3612} Py_INCREF(Py_None);
3613 _resultobj = Py_None;
3614 return _resultobj;
3615}
3616
3617#define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
3618static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
3619 PyObject * _resultobj;
3620 wxFont * _arg0;
3621 bool _arg1;
3622 PyObject * _argo0 = 0;
3623 int tempbool1;
3624 char *_kwnames[] = { "self","underlined", NULL };
3625
3626 self = self;
3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
3628 return NULL;
3629 if (_argo0) {
3630 if (_argo0 == Py_None) { _arg0 = NULL; }
3631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
3633 return NULL;
3634 }
3635 }
3636 _arg1 = (bool ) tempbool1;
3637{
3638 wxPy_BEGIN_ALLOW_THREADS;
3639 wxFont_SetUnderlined(_arg0,_arg1);
3640
3641 wxPy_END_ALLOW_THREADS;
3642} Py_INCREF(Py_None);
3643 _resultobj = Py_None;
3644 return _resultobj;
3645}
3646
3647#define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
3648static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3649 PyObject * _resultobj;
3650 wxFont * _arg0;
3651 int _arg1;
3652 PyObject * _argo0 = 0;
3653 char *_kwnames[] = { "self","weight", NULL };
3654
3655 self = self;
3656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
3657 return NULL;
3658 if (_argo0) {
3659 if (_argo0 == Py_None) { _arg0 = NULL; }
3660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
3662 return NULL;
3663 }
3664 }
3665{
3666 wxPy_BEGIN_ALLOW_THREADS;
3667 wxFont_SetWeight(_arg0,_arg1);
3668
3669 wxPy_END_ALLOW_THREADS;
3670} Py_INCREF(Py_None);
3671 _resultobj = Py_None;
3672 return _resultobj;
3673}
3674
3675#define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
3676static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3677 PyObject * _resultobj;
3678 wxFont * _arg0;
3679 wxFontEncoding _arg1;
3680 PyObject * _argo0 = 0;
3681 char *_kwnames[] = { "self","encoding", NULL };
3682
3683 self = self;
3684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
3685 return NULL;
3686 if (_argo0) {
3687 if (_argo0 == Py_None) { _arg0 = NULL; }
3688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
3690 return NULL;
3691 }
3692 }
3693{
3694 wxPy_BEGIN_ALLOW_THREADS;
3695 wxFont_SetEncoding(_arg0,_arg1);
3696
3697 wxPy_END_ALLOW_THREADS;
3698} Py_INCREF(Py_None);
3699 _resultobj = Py_None;
3700 return _resultobj;
3701}
3702
3703#define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
3704static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
3705 PyObject * _resultobj;
3706 wxString * _result;
3707 wxFont * _arg0;
3708 PyObject * _argo0 = 0;
3709 char *_kwnames[] = { "self", NULL };
3710
3711 self = self;
3712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
3713 return NULL;
3714 if (_argo0) {
3715 if (_argo0 == Py_None) { _arg0 = NULL; }
3716 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3717 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
3718 return NULL;
3719 }
3720 }
3721{
3722 wxPy_BEGIN_ALLOW_THREADS;
3723 _result = new wxString (wxFont_GetFamilyString(_arg0));
3724
3725 wxPy_END_ALLOW_THREADS;
3726}{
3727 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3728}
3729{
3730 delete _result;
3731}
3732 return _resultobj;
3733}
3734
3735#define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
3736static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
3737 PyObject * _resultobj;
3738 wxString * _result;
3739 wxFont * _arg0;
3740 PyObject * _argo0 = 0;
3741 char *_kwnames[] = { "self", NULL };
3742
3743 self = self;
3744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
3745 return NULL;
3746 if (_argo0) {
3747 if (_argo0 == Py_None) { _arg0 = NULL; }
3748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
3750 return NULL;
3751 }
3752 }
3753{
3754 wxPy_BEGIN_ALLOW_THREADS;
3755 _result = new wxString (wxFont_GetStyleString(_arg0));
3756
3757 wxPy_END_ALLOW_THREADS;
3758}{
3759 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3760}
3761{
3762 delete _result;
3763}
3764 return _resultobj;
3765}
3766
3767#define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
3768static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
3769 PyObject * _resultobj;
3770 wxString * _result;
3771 wxFont * _arg0;
3772 PyObject * _argo0 = 0;
3773 char *_kwnames[] = { "self", NULL };
3774
3775 self = self;
3776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
3777 return NULL;
3778 if (_argo0) {
3779 if (_argo0 == Py_None) { _arg0 = NULL; }
3780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
3782 return NULL;
3783 }
3784 }
3785{
3786 wxPy_BEGIN_ALLOW_THREADS;
3787 _result = new wxString (wxFont_GetWeightString(_arg0));
3788
3789 wxPy_END_ALLOW_THREADS;
3790}{
3791 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3792}
3793{
3794 delete _result;
3795}
3796 return _resultobj;
3797}
3798
3799static void *SwigwxFontListTowxObject(void *ptr) {
3800 wxFontList *src;
3801 wxObject *dest;
3802 src = (wxFontList *) ptr;
3803 dest = (wxObject *) src;
3804 return (void *) dest;
3805}
3806
3807#define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
3808static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3809 PyObject * _resultobj;
3810 wxFontList * _arg0;
3811 wxFont * _arg1;
3812 PyObject * _argo0 = 0;
3813 PyObject * _argo1 = 0;
3814 char *_kwnames[] = { "self","font", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
3823 return NULL;
3824 }
3825 }
3826 if (_argo1) {
3827 if (_argo1 == Py_None) { _arg1 = NULL; }
3828 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
3829 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
3830 return NULL;
3831 }
3832 }
3833{
3834 wxPy_BEGIN_ALLOW_THREADS;
3835 wxFontList_AddFont(_arg0,_arg1);
3836
3837 wxPy_END_ALLOW_THREADS;
3838} Py_INCREF(Py_None);
3839 _resultobj = Py_None;
3840 return _resultobj;
3841}
3842
3843#define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3844static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3845 PyObject * _resultobj;
3846 wxFont * _result;
3847 wxFontList * _arg0;
3848 int _arg1;
3849 int _arg2;
3850 int _arg3;
3851 int _arg4;
3852 bool _arg5 = (bool ) FALSE;
3853 char * _arg6 = (char *) NULL;
3854 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3855 PyObject * _argo0 = 0;
3856 int tempbool5 = (int) FALSE;
3857 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
3858 char _ptemp[128];
3859
3860 self = self;
3861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
3862 return NULL;
3863 if (_argo0) {
3864 if (_argo0 == Py_None) { _arg0 = NULL; }
3865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
3866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
3867 return NULL;
3868 }
3869 }
3870 _arg5 = (bool ) tempbool5;
3871{
3872 wxPy_BEGIN_ALLOW_THREADS;
3873 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
3874
3875 wxPy_END_ALLOW_THREADS;
3876} if (_result) {
3877 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3878 _resultobj = Py_BuildValue("s",_ptemp);
3879 } else {
3880 Py_INCREF(Py_None);
3881 _resultobj = Py_None;
3882 }
3883 return _resultobj;
3884}
3885
3886#define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
3887static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3888 PyObject * _resultobj;
3889 wxFontList * _arg0;
3890 wxFont * _arg1;
3891 PyObject * _argo0 = 0;
3892 PyObject * _argo1 = 0;
3893 char *_kwnames[] = { "self","font", NULL };
3894
3895 self = self;
3896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
3897 return NULL;
3898 if (_argo0) {
3899 if (_argo0 == Py_None) { _arg0 = NULL; }
3900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
3901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
3902 return NULL;
3903 }
3904 }
3905 if (_argo1) {
3906 if (_argo1 == Py_None) { _arg1 = NULL; }
3907 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
3908 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
3909 return NULL;
3910 }
3911 }
3912{
3913 wxPy_BEGIN_ALLOW_THREADS;
3914 wxFontList_RemoveFont(_arg0,_arg1);
3915
3916 wxPy_END_ALLOW_THREADS;
3917} Py_INCREF(Py_None);
3918 _resultobj = Py_None;
3919 return _resultobj;
3920}
3921
3922static void *SwigwxColourTowxObject(void *ptr) {
3923 wxColour *src;
3924 wxObject *dest;
3925 src = (wxColour *) ptr;
3926 dest = (wxObject *) src;
3927 return (void *) dest;
3928}
3929
3930#define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
3931static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3932 PyObject * _resultobj;
3933 wxColour * _result;
3934 unsigned char _arg0 = (unsigned char ) 0;
3935 unsigned char _arg1 = (unsigned char ) 0;
3936 unsigned char _arg2 = (unsigned char ) 0;
3937 char *_kwnames[] = { "red","green","blue", NULL };
3938 char _ptemp[128];
3939
3940 self = self;
3941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
3942 return NULL;
3943{
3944 wxPy_BEGIN_ALLOW_THREADS;
3945 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
3946
3947 wxPy_END_ALLOW_THREADS;
3948} if (_result) {
3949 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3950 _resultobj = Py_BuildValue("s",_ptemp);
3951 } else {
3952 Py_INCREF(Py_None);
3953 _resultobj = Py_None;
3954 }
3955 return _resultobj;
3956}
3957
3958#define delete_wxColour(_swigobj) (delete _swigobj)
3959static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3960 PyObject * _resultobj;
3961 wxColour * _arg0;
3962 wxColour temp;
3963 PyObject * _obj0 = 0;
3964 char *_kwnames[] = { "self", NULL };
3965
3966 self = self;
3967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
3968 return NULL;
3969{
3970 _arg0 = &temp;
3971 if (! wxColour_helper(_obj0, &_arg0))
3972 return NULL;
3973}
3974{
3975 wxPy_BEGIN_ALLOW_THREADS;
3976 delete_wxColour(_arg0);
3977
3978 wxPy_END_ALLOW_THREADS;
3979} Py_INCREF(Py_None);
3980 _resultobj = Py_None;
3981 return _resultobj;
3982}
3983
3984#define wxColour_Red(_swigobj) (_swigobj->Red())
3985static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
3986 PyObject * _resultobj;
3987 unsigned char _result;
3988 wxColour * _arg0;
3989 wxColour temp;
3990 PyObject * _obj0 = 0;
3991 char *_kwnames[] = { "self", NULL };
3992
3993 self = self;
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
3995 return NULL;
3996{
3997 _arg0 = &temp;
3998 if (! wxColour_helper(_obj0, &_arg0))
3999 return NULL;
4000}
4001{
4002 wxPy_BEGIN_ALLOW_THREADS;
4003 _result = (unsigned char )wxColour_Red(_arg0);
4004
4005 wxPy_END_ALLOW_THREADS;
4006} _resultobj = Py_BuildValue("b",_result);
4007 return _resultobj;
4008}
4009
4010#define wxColour_Green(_swigobj) (_swigobj->Green())
4011static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
4012 PyObject * _resultobj;
4013 unsigned char _result;
4014 wxColour * _arg0;
4015 wxColour temp;
4016 PyObject * _obj0 = 0;
4017 char *_kwnames[] = { "self", NULL };
4018
4019 self = self;
4020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
4021 return NULL;
4022{
4023 _arg0 = &temp;
4024 if (! wxColour_helper(_obj0, &_arg0))
4025 return NULL;
4026}
4027{
4028 wxPy_BEGIN_ALLOW_THREADS;
4029 _result = (unsigned char )wxColour_Green(_arg0);
4030
4031 wxPy_END_ALLOW_THREADS;
4032} _resultobj = Py_BuildValue("b",_result);
4033 return _resultobj;
4034}
4035
4036#define wxColour_Blue(_swigobj) (_swigobj->Blue())
4037static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
4038 PyObject * _resultobj;
4039 unsigned char _result;
4040 wxColour * _arg0;
4041 wxColour temp;
4042 PyObject * _obj0 = 0;
4043 char *_kwnames[] = { "self", NULL };
4044
4045 self = self;
4046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
4047 return NULL;
4048{
4049 _arg0 = &temp;
4050 if (! wxColour_helper(_obj0, &_arg0))
4051 return NULL;
4052}
4053{
4054 wxPy_BEGIN_ALLOW_THREADS;
4055 _result = (unsigned char )wxColour_Blue(_arg0);
4056
4057 wxPy_END_ALLOW_THREADS;
4058} _resultobj = Py_BuildValue("b",_result);
4059 return _resultobj;
4060}
4061
4062#define wxColour_Ok(_swigobj) (_swigobj->Ok())
4063static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4064 PyObject * _resultobj;
4065 bool _result;
4066 wxColour * _arg0;
4067 wxColour temp;
4068 PyObject * _obj0 = 0;
4069 char *_kwnames[] = { "self", NULL };
4070
4071 self = self;
4072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
4073 return NULL;
4074{
4075 _arg0 = &temp;
4076 if (! wxColour_helper(_obj0, &_arg0))
4077 return NULL;
4078}
4079{
4080 wxPy_BEGIN_ALLOW_THREADS;
4081 _result = (bool )wxColour_Ok(_arg0);
4082
4083 wxPy_END_ALLOW_THREADS;
4084} _resultobj = Py_BuildValue("i",_result);
4085 return _resultobj;
4086}
4087
4088#define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4089static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4090 PyObject * _resultobj;
4091 wxColour * _arg0;
4092 unsigned char _arg1;
4093 unsigned char _arg2;
4094 unsigned char _arg3;
4095 wxColour temp;
4096 PyObject * _obj0 = 0;
4097 char *_kwnames[] = { "self","red","green","blue", NULL };
4098
4099 self = self;
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
4101 return NULL;
4102{
4103 _arg0 = &temp;
4104 if (! wxColour_helper(_obj0, &_arg0))
4105 return NULL;
4106}
4107{
4108 wxPy_BEGIN_ALLOW_THREADS;
4109 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
4110
4111 wxPy_END_ALLOW_THREADS;
4112} Py_INCREF(Py_None);
4113 _resultobj = Py_None;
4114 return _resultobj;
4115}
4116
4117static PyObject * wxColour_Get(wxColour *self) {
4118 PyObject* rv = PyTuple_New(3);
4119 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4120 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4121 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4122 return rv;
4123 }
4124static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4125 PyObject * _resultobj;
4126 PyObject * _result;
4127 wxColour * _arg0;
4128 wxColour temp;
4129 PyObject * _obj0 = 0;
4130 char *_kwnames[] = { "self", NULL };
4131
4132 self = self;
4133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
4134 return NULL;
4135{
4136 _arg0 = &temp;
4137 if (! wxColour_helper(_obj0, &_arg0))
4138 return NULL;
4139}
4140{
4141 wxPy_BEGIN_ALLOW_THREADS;
4142 _result = (PyObject *)wxColour_Get(_arg0);
4143
4144 wxPy_END_ALLOW_THREADS;
4145}{
4146 _resultobj = _result;
4147}
4148 return _resultobj;
4149}
4150
4151static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4152 wxColourDatabase *src;
4153 wxObject *dest;
4154 src = (wxColourDatabase *) ptr;
4155 dest = (wxObject *) src;
4156 return (void *) dest;
4157}
4158
4159#define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4160static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4161 PyObject * _resultobj;
4162 wxColour * _result;
4163 wxColourDatabase * _arg0;
4164 wxString * _arg1;
4165 PyObject * _argo0 = 0;
4166 PyObject * _obj1 = 0;
4167 char *_kwnames[] = { "self","colour", NULL };
4168 char _ptemp[128];
4169
4170 self = self;
4171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4172 return NULL;
4173 if (_argo0) {
4174 if (_argo0 == Py_None) { _arg0 = NULL; }
4175 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4176 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4177 return NULL;
4178 }
4179 }
4180{
4181#if PYTHON_API_VERSION >= 1009
4182 char* tmpPtr; int tmpSize;
4183 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4184 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4185 return NULL;
4186 }
4187 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4188 return NULL;
4189 _arg1 = new wxString(tmpPtr, tmpSize);
4190#else
4191 if (!PyString_Check(_obj1)) {
4192 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4193 return NULL;
4194 }
4195 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4196#endif
4197}
4198{
4199 wxPy_BEGIN_ALLOW_THREADS;
4200 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
4201
4202 wxPy_END_ALLOW_THREADS;
4203} if (_result) {
4204 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4205 _resultobj = Py_BuildValue("s",_ptemp);
4206 } else {
4207 Py_INCREF(Py_None);
4208 _resultobj = Py_None;
4209 }
4210{
4211 if (_obj1)
4212 delete _arg1;
4213}
4214 return _resultobj;
4215}
4216
4217#define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4218static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
4219 PyObject * _resultobj;
4220 wxString * _result;
4221 wxColourDatabase * _arg0;
4222 wxColour * _arg1;
4223 PyObject * _argo0 = 0;
4224 wxColour temp;
4225 PyObject * _obj1 = 0;
4226 char *_kwnames[] = { "self","colour", NULL };
4227
4228 self = self;
4229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
4230 return NULL;
4231 if (_argo0) {
4232 if (_argo0 == Py_None) { _arg0 = NULL; }
4233 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4234 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
4235 return NULL;
4236 }
4237 }
4238{
4239 _arg1 = &temp;
4240 if (! wxColour_helper(_obj1, &_arg1))
4241 return NULL;
4242}
4243{
4244 wxPy_BEGIN_ALLOW_THREADS;
4245 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
4246
4247 wxPy_END_ALLOW_THREADS;
4248}{
4249 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4250}
4251{
4252 delete _result;
4253}
4254 return _resultobj;
4255}
4256
4257static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
4258 self->Append(name.c_str(), new wxColour(red, green, blue));
4259 }
4260static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
4261 PyObject * _resultobj;
4262 wxColourDatabase * _arg0;
4263 wxString * _arg1;
4264 int _arg2;
4265 int _arg3;
4266 int _arg4;
4267 PyObject * _argo0 = 0;
4268 PyObject * _obj1 = 0;
4269 char *_kwnames[] = { "self","name","red","green","blue", NULL };
4270
4271 self = self;
4272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
4273 return NULL;
4274 if (_argo0) {
4275 if (_argo0 == Py_None) { _arg0 = NULL; }
4276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
4278 return NULL;
4279 }
4280 }
4281{
4282#if PYTHON_API_VERSION >= 1009
4283 char* tmpPtr; int tmpSize;
4284 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4285 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4286 return NULL;
4287 }
4288 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4289 return NULL;
4290 _arg1 = new wxString(tmpPtr, tmpSize);
4291#else
4292 if (!PyString_Check(_obj1)) {
4293 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4294 return NULL;
4295 }
4296 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4297#endif
4298}
4299{
4300 wxPy_BEGIN_ALLOW_THREADS;
4301 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
4302
4303 wxPy_END_ALLOW_THREADS;
4304} Py_INCREF(Py_None);
4305 _resultobj = Py_None;
4306{
4307 if (_obj1)
4308 delete _arg1;
4309}
4310 return _resultobj;
4311}
4312
4313static void *SwigwxPenTowxGDIObject(void *ptr) {
4314 wxPen *src;
4315 wxGDIObject *dest;
4316 src = (wxPen *) ptr;
4317 dest = (wxGDIObject *) src;
4318 return (void *) dest;
4319}
4320
4321static void *SwigwxPenTowxObject(void *ptr) {
4322 wxPen *src;
4323 wxObject *dest;
4324 src = (wxPen *) ptr;
4325 dest = (wxObject *) src;
4326 return (void *) dest;
4327}
4328
4329#define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
4330static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4331 PyObject * _resultobj;
4332 wxPen * _result;
4333 wxColour * _arg0;
4334 int _arg1 = (int ) 1;
4335 int _arg2 = (int ) wxSOLID;
4336 wxColour temp;
4337 PyObject * _obj0 = 0;
4338 char *_kwnames[] = { "colour","width","style", NULL };
4339 char _ptemp[128];
4340
4341 self = self;
4342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
4343 return NULL;
4344{
4345 _arg0 = &temp;
4346 if (! wxColour_helper(_obj0, &_arg0))
4347 return NULL;
4348}
4349{
4350 wxPy_BEGIN_ALLOW_THREADS;
4351 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
4352
4353 wxPy_END_ALLOW_THREADS;
4354} if (_result) {
4355 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4356 _resultobj = Py_BuildValue("s",_ptemp);
4357 } else {
4358 Py_INCREF(Py_None);
4359 _resultobj = Py_None;
4360 }
4361 return _resultobj;
4362}
4363
4364#define delete_wxPen(_swigobj) (delete _swigobj)
4365static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4366 PyObject * _resultobj;
4367 wxPen * _arg0;
4368 PyObject * _argo0 = 0;
4369 char *_kwnames[] = { "self", NULL };
4370
4371 self = self;
4372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
4373 return NULL;
4374 if (_argo0) {
4375 if (_argo0 == Py_None) { _arg0 = NULL; }
4376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
4378 return NULL;
4379 }
4380 }
4381{
4382 wxPy_BEGIN_ALLOW_THREADS;
4383 delete_wxPen(_arg0);
4384
4385 wxPy_END_ALLOW_THREADS;
4386} Py_INCREF(Py_None);
4387 _resultobj = Py_None;
4388 return _resultobj;
4389}
4390
4391#define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
4392static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4393 PyObject * _resultobj;
4394 int _result;
4395 wxPen * _arg0;
4396 PyObject * _argo0 = 0;
4397 char *_kwnames[] = { "self", NULL };
4398
4399 self = self;
4400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
4401 return NULL;
4402 if (_argo0) {
4403 if (_argo0 == Py_None) { _arg0 = NULL; }
4404 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4405 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
4406 return NULL;
4407 }
4408 }
4409{
4410 wxPy_BEGIN_ALLOW_THREADS;
4411 _result = (int )wxPen_GetCap(_arg0);
4412
4413 wxPy_END_ALLOW_THREADS;
4414} _resultobj = Py_BuildValue("i",_result);
4415 return _resultobj;
4416}
4417
4418#define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
4419static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4420 PyObject * _resultobj;
4421 wxColour * _result;
4422 wxPen * _arg0;
4423 PyObject * _argo0 = 0;
4424 char *_kwnames[] = { "self", NULL };
4425 char _ptemp[128];
4426
4427 self = self;
4428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
4429 return NULL;
4430 if (_argo0) {
4431 if (_argo0 == Py_None) { _arg0 = NULL; }
4432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
4434 return NULL;
4435 }
4436 }
4437{
4438 wxPy_BEGIN_ALLOW_THREADS;
4439 wxColour & _result_ref = wxPen_GetColour(_arg0);
4440 _result = (wxColour *) &_result_ref;
4441
4442 wxPy_END_ALLOW_THREADS;
4443} if (_result) {
4444 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4445 _resultobj = Py_BuildValue("s",_ptemp);
4446 } else {
4447 Py_INCREF(Py_None);
4448 _resultobj = Py_None;
4449 }
4450 return _resultobj;
4451}
4452
4453#define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
4454static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
4455 PyObject * _resultobj;
4456 int _result;
4457 wxPen * _arg0;
4458 PyObject * _argo0 = 0;
4459 char *_kwnames[] = { "self", NULL };
4460
4461 self = self;
4462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
4463 return NULL;
4464 if (_argo0) {
4465 if (_argo0 == Py_None) { _arg0 = NULL; }
4466 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4467 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
4468 return NULL;
4469 }
4470 }
4471{
4472 wxPy_BEGIN_ALLOW_THREADS;
4473 _result = (int )wxPen_GetJoin(_arg0);
4474
4475 wxPy_END_ALLOW_THREADS;
4476} _resultobj = Py_BuildValue("i",_result);
4477 return _resultobj;
4478}
4479
4480#define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
4481static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4482 PyObject * _resultobj;
4483 int _result;
4484 wxPen * _arg0;
4485 PyObject * _argo0 = 0;
4486 char *_kwnames[] = { "self", NULL };
4487
4488 self = self;
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
4490 return NULL;
4491 if (_argo0) {
4492 if (_argo0 == Py_None) { _arg0 = NULL; }
4493 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4494 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
4495 return NULL;
4496 }
4497 }
4498{
4499 wxPy_BEGIN_ALLOW_THREADS;
4500 _result = (int )wxPen_GetStyle(_arg0);
4501
4502 wxPy_END_ALLOW_THREADS;
4503} _resultobj = Py_BuildValue("i",_result);
4504 return _resultobj;
4505}
4506
4507#define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
4508static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject * _resultobj;
4510 int _result;
4511 wxPen * _arg0;
4512 PyObject * _argo0 = 0;
4513 char *_kwnames[] = { "self", NULL };
4514
4515 self = self;
4516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
4517 return NULL;
4518 if (_argo0) {
4519 if (_argo0 == Py_None) { _arg0 = NULL; }
4520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
4522 return NULL;
4523 }
4524 }
4525{
4526 wxPy_BEGIN_ALLOW_THREADS;
4527 _result = (int )wxPen_GetWidth(_arg0);
4528
4529 wxPy_END_ALLOW_THREADS;
4530} _resultobj = Py_BuildValue("i",_result);
4531 return _resultobj;
4532}
4533
4534#define wxPen_Ok(_swigobj) (_swigobj->Ok())
4535static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4536 PyObject * _resultobj;
4537 bool _result;
4538 wxPen * _arg0;
4539 PyObject * _argo0 = 0;
4540 char *_kwnames[] = { "self", NULL };
4541
4542 self = self;
4543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
4544 return NULL;
4545 if (_argo0) {
4546 if (_argo0 == Py_None) { _arg0 = NULL; }
4547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
4549 return NULL;
4550 }
4551 }
4552{
4553 wxPy_BEGIN_ALLOW_THREADS;
4554 _result = (bool )wxPen_Ok(_arg0);
4555
4556 wxPy_END_ALLOW_THREADS;
4557} _resultobj = Py_BuildValue("i",_result);
4558 return _resultobj;
4559}
4560
4561#define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
4562static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject * _resultobj;
4564 wxPen * _arg0;
4565 int _arg1;
4566 PyObject * _argo0 = 0;
4567 char *_kwnames[] = { "self","cap_style", NULL };
4568
4569 self = self;
4570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
4571 return NULL;
4572 if (_argo0) {
4573 if (_argo0 == Py_None) { _arg0 = NULL; }
4574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
4576 return NULL;
4577 }
4578 }
4579{
4580 wxPy_BEGIN_ALLOW_THREADS;
4581 wxPen_SetCap(_arg0,_arg1);
4582
4583 wxPy_END_ALLOW_THREADS;
4584} Py_INCREF(Py_None);
4585 _resultobj = Py_None;
4586 return _resultobj;
4587}
4588
4589#define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4590static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4591 PyObject * _resultobj;
4592 wxPen * _arg0;
4593 wxColour * _arg1;
4594 PyObject * _argo0 = 0;
4595 wxColour temp;
4596 PyObject * _obj1 = 0;
4597 char *_kwnames[] = { "self","colour", NULL };
4598
4599 self = self;
4600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
4601 return NULL;
4602 if (_argo0) {
4603 if (_argo0 == Py_None) { _arg0 = NULL; }
4604 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4605 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
4606 return NULL;
4607 }
4608 }
4609{
4610 _arg1 = &temp;
4611 if (! wxColour_helper(_obj1, &_arg1))
4612 return NULL;
4613}
4614{
4615 wxPy_BEGIN_ALLOW_THREADS;
4616 wxPen_SetColour(_arg0,*_arg1);
4617
4618 wxPy_END_ALLOW_THREADS;
4619} Py_INCREF(Py_None);
4620 _resultobj = Py_None;
4621 return _resultobj;
4622}
4623
4624#define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
4625static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
4626 PyObject * _resultobj;
4627 wxPen * _arg0;
4628 int _arg1;
4629 PyObject * _argo0 = 0;
4630 char *_kwnames[] = { "self","join_style", NULL };
4631
4632 self = self;
4633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
4634 return NULL;
4635 if (_argo0) {
4636 if (_argo0 == Py_None) { _arg0 = NULL; }
4637 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4638 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4639 return NULL;
4640 }
4641 }
4642{
4643 wxPy_BEGIN_ALLOW_THREADS;
4644 wxPen_SetJoin(_arg0,_arg1);
4645
4646 wxPy_END_ALLOW_THREADS;
4647} Py_INCREF(Py_None);
4648 _resultobj = Py_None;
4649 return _resultobj;
4650}
4651
4652#define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4653static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4654 PyObject * _resultobj;
4655 wxPen * _arg0;
4656 int _arg1;
4657 PyObject * _argo0 = 0;
4658 char *_kwnames[] = { "self","style", NULL };
4659
4660 self = self;
4661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
4662 return NULL;
4663 if (_argo0) {
4664 if (_argo0 == Py_None) { _arg0 = NULL; }
4665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4667 return NULL;
4668 }
4669 }
4670{
4671 wxPy_BEGIN_ALLOW_THREADS;
4672 wxPen_SetStyle(_arg0,_arg1);
4673
4674 wxPy_END_ALLOW_THREADS;
4675} Py_INCREF(Py_None);
4676 _resultobj = Py_None;
4677 return _resultobj;
4678}
4679
4680#define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4681static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4682 PyObject * _resultobj;
4683 wxPen * _arg0;
4684 int _arg1;
4685 PyObject * _argo0 = 0;
4686 char *_kwnames[] = { "self","width", NULL };
4687
4688 self = self;
4689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
4690 return NULL;
4691 if (_argo0) {
4692 if (_argo0 == Py_None) { _arg0 = NULL; }
4693 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4694 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4695 return NULL;
4696 }
4697 }
4698{
4699 wxPy_BEGIN_ALLOW_THREADS;
4700 wxPen_SetWidth(_arg0,_arg1);
4701
4702 wxPy_END_ALLOW_THREADS;
4703} Py_INCREF(Py_None);
4704 _resultobj = Py_None;
4705 return _resultobj;
4706}
4707
4708#define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4709static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4710 PyObject * _resultobj;
4711 int _result;
4712 wxPen * _arg0;
4713 wxDash ** _arg1;
4714 PyObject * _argo0 = 0;
4715 PyObject * _argo1 = 0;
4716 char *_kwnames[] = { "self","dashes", NULL };
4717
4718 self = self;
4719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1))
4720 return NULL;
4721 if (_argo0) {
4722 if (_argo0 == Py_None) { _arg0 = NULL; }
4723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4725 return NULL;
4726 }
4727 }
4728 if (_argo1) {
4729 if (_argo1 == Py_None) { _arg1 = NULL; }
4730 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) {
4731 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4732 return NULL;
4733 }
4734 }
4735{
4736 wxPy_BEGIN_ALLOW_THREADS;
4737 _result = (int )wxPen_GetDashes(_arg0,_arg1);
4738
4739 wxPy_END_ALLOW_THREADS;
4740} _resultobj = Py_BuildValue("i",_result);
4741 return _resultobj;
4742}
4743
4744#define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4745static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4746 PyObject * _resultobj;
4747 wxPen * _arg0;
4748 int _arg1;
4749 wxDash * _arg2;
4750 PyObject * _argo0 = 0;
4751 PyObject * _obj2 = 0;
4752 char *_kwnames[] = { "self","choices", NULL };
4753
4754 self = self;
4755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
4756 return NULL;
4757 if (_argo0) {
4758 if (_argo0 == Py_None) { _arg0 = NULL; }
4759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4761 return NULL;
4762 }
4763 }
4764 if (_obj2)
4765{
4766 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
4767 if (_arg2 == NULL) {
4768 return NULL;
4769 }
4770}
4771{
4772 if (_obj2) {
4773 _arg1 = PyList_Size(_obj2);
4774 }
4775 else {
4776 _arg1 = 0;
4777 }
4778}
4779{
4780 wxPy_BEGIN_ALLOW_THREADS;
4781 wxPen_SetDashes(_arg0,_arg1,_arg2);
4782
4783 wxPy_END_ALLOW_THREADS;
4784} Py_INCREF(Py_None);
4785 _resultobj = Py_None;
4786{
4787 delete [] _arg2;
4788}
4789 return _resultobj;
4790}
4791
4792#define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
4793static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4794 PyObject * _resultobj;
4795 wxBitmap * _result;
4796 wxPen * _arg0;
4797 PyObject * _argo0 = 0;
4798 char *_kwnames[] = { "self", NULL };
4799 char _ptemp[128];
4800
4801 self = self;
4802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
4803 return NULL;
4804 if (_argo0) {
4805 if (_argo0 == Py_None) { _arg0 = NULL; }
4806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
4808 return NULL;
4809 }
4810 }
4811{
4812 wxPy_BEGIN_ALLOW_THREADS;
4813 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
4814
4815 wxPy_END_ALLOW_THREADS;
4816} if (_result) {
4817 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
4818 _resultobj = Py_BuildValue("s",_ptemp);
4819 } else {
4820 Py_INCREF(Py_None);
4821 _resultobj = Py_None;
4822 }
4823 return _resultobj;
4824}
4825
4826#define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4827static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4828 PyObject * _resultobj;
4829 wxPen * _arg0;
4830 wxBitmap * _arg1;
4831 PyObject * _argo0 = 0;
4832 PyObject * _argo1 = 0;
4833 char *_kwnames[] = { "self","stipple", NULL };
4834
4835 self = self;
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
4837 return NULL;
4838 if (_argo0) {
4839 if (_argo0 == Py_None) { _arg0 = NULL; }
4840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
4842 return NULL;
4843 }
4844 }
4845 if (_argo1) {
4846 if (_argo1 == Py_None) { _arg1 = NULL; }
4847 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
4848 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
4849 return NULL;
4850 }
4851 }
4852{
4853 wxPy_BEGIN_ALLOW_THREADS;
4854 wxPen_SetStipple(_arg0,*_arg1);
4855
4856 wxPy_END_ALLOW_THREADS;
4857} Py_INCREF(Py_None);
4858 _resultobj = Py_None;
4859 return _resultobj;
4860}
4861
4862static void *SwigwxPenListTowxObject(void *ptr) {
4863 wxPenList *src;
4864 wxObject *dest;
4865 src = (wxPenList *) ptr;
4866 dest = (wxObject *) src;
4867 return (void *) dest;
4868}
4869
4870#define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4871static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4872 PyObject * _resultobj;
4873 wxPenList * _arg0;
4874 wxPen * _arg1;
4875 PyObject * _argo0 = 0;
4876 PyObject * _argo1 = 0;
4877 char *_kwnames[] = { "self","pen", NULL };
4878
4879 self = self;
4880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
4881 return NULL;
4882 if (_argo0) {
4883 if (_argo0 == Py_None) { _arg0 = NULL; }
4884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4886 return NULL;
4887 }
4888 }
4889 if (_argo1) {
4890 if (_argo1 == Py_None) { _arg1 = NULL; }
4891 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
4892 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4893 return NULL;
4894 }
4895 }
4896{
4897 wxPy_BEGIN_ALLOW_THREADS;
4898 wxPenList_AddPen(_arg0,_arg1);
4899
4900 wxPy_END_ALLOW_THREADS;
4901} Py_INCREF(Py_None);
4902 _resultobj = Py_None;
4903 return _resultobj;
4904}
4905
4906#define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4907static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
4908 PyObject * _resultobj;
4909 wxPen * _result;
4910 wxPenList * _arg0;
4911 wxColour * _arg1;
4912 int _arg2;
4913 int _arg3;
4914 PyObject * _argo0 = 0;
4915 wxColour temp;
4916 PyObject * _obj1 = 0;
4917 char *_kwnames[] = { "self","colour","width","style", NULL };
4918 char _ptemp[128];
4919
4920 self = self;
4921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
4922 return NULL;
4923 if (_argo0) {
4924 if (_argo0 == Py_None) { _arg0 = NULL; }
4925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4927 return NULL;
4928 }
4929 }
4930{
4931 _arg1 = &temp;
4932 if (! wxColour_helper(_obj1, &_arg1))
4933 return NULL;
4934}
4935{
4936 wxPy_BEGIN_ALLOW_THREADS;
4937 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
4938
4939 wxPy_END_ALLOW_THREADS;
4940} if (_result) {
4941 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4942 _resultobj = Py_BuildValue("s",_ptemp);
4943 } else {
4944 Py_INCREF(Py_None);
4945 _resultobj = Py_None;
4946 }
4947 return _resultobj;
4948}
4949
4950#define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4951static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
4952 PyObject * _resultobj;
4953 wxPenList * _arg0;
4954 wxPen * _arg1;
4955 PyObject * _argo0 = 0;
4956 PyObject * _argo1 = 0;
4957 char *_kwnames[] = { "self","pen", NULL };
4958
4959 self = self;
4960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
4961 return NULL;
4962 if (_argo0) {
4963 if (_argo0 == Py_None) { _arg0 = NULL; }
4964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4966 return NULL;
4967 }
4968 }
4969 if (_argo1) {
4970 if (_argo1 == Py_None) { _arg1 = NULL; }
4971 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
4972 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4973 return NULL;
4974 }
4975 }
4976{
4977 wxPy_BEGIN_ALLOW_THREADS;
4978 wxPenList_RemovePen(_arg0,_arg1);
4979
4980 wxPy_END_ALLOW_THREADS;
4981} Py_INCREF(Py_None);
4982 _resultobj = Py_None;
4983 return _resultobj;
4984}
4985
4986static void *SwigwxBrushTowxGDIObject(void *ptr) {
4987 wxBrush *src;
4988 wxGDIObject *dest;
4989 src = (wxBrush *) ptr;
4990 dest = (wxGDIObject *) src;
4991 return (void *) dest;
4992}
4993
4994static void *SwigwxBrushTowxObject(void *ptr) {
4995 wxBrush *src;
4996 wxObject *dest;
4997 src = (wxBrush *) ptr;
4998 dest = (wxObject *) src;
4999 return (void *) dest;
5000}
5001
5002#define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5003static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5004 PyObject * _resultobj;
5005 wxBrush * _result;
5006 wxColour * _arg0;
5007 int _arg1 = (int ) wxSOLID;
5008 wxColour temp;
5009 PyObject * _obj0 = 0;
5010 char *_kwnames[] = { "colour","style", NULL };
5011 char _ptemp[128];
5012
5013 self = self;
5014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5015 return NULL;
5016{
5017 _arg0 = &temp;
5018 if (! wxColour_helper(_obj0, &_arg0))
5019 return NULL;
5020}
5021{
5022 wxPy_BEGIN_ALLOW_THREADS;
5023 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5024
5025 wxPy_END_ALLOW_THREADS;
5026} if (_result) {
5027 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5028 _resultobj = Py_BuildValue("s",_ptemp);
5029 } else {
5030 Py_INCREF(Py_None);
5031 _resultobj = Py_None;
5032 }
5033 return _resultobj;
5034}
5035
5036#define delete_wxBrush(_swigobj) (delete _swigobj)
5037static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5038 PyObject * _resultobj;
5039 wxBrush * _arg0;
5040 PyObject * _argo0 = 0;
5041 char *_kwnames[] = { "self", NULL };
5042
5043 self = self;
5044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5045 return NULL;
5046 if (_argo0) {
5047 if (_argo0 == Py_None) { _arg0 = NULL; }
5048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5050 return NULL;
5051 }
5052 }
5053{
5054 wxPy_BEGIN_ALLOW_THREADS;
5055 delete_wxBrush(_arg0);
5056
5057 wxPy_END_ALLOW_THREADS;
5058} Py_INCREF(Py_None);
5059 _resultobj = Py_None;
5060 return _resultobj;
5061}
5062
5063#define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5064static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5065 PyObject * _resultobj;
5066 wxColour * _result;
5067 wxBrush * _arg0;
5068 PyObject * _argo0 = 0;
5069 char *_kwnames[] = { "self", NULL };
5070 char _ptemp[128];
5071
5072 self = self;
5073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
5074 return NULL;
5075 if (_argo0) {
5076 if (_argo0 == Py_None) { _arg0 = NULL; }
5077 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5078 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5079 return NULL;
5080 }
5081 }
5082{
5083 wxPy_BEGIN_ALLOW_THREADS;
5084 wxColour & _result_ref = wxBrush_GetColour(_arg0);
5085 _result = (wxColour *) &_result_ref;
5086
5087 wxPy_END_ALLOW_THREADS;
5088} if (_result) {
5089 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5090 _resultobj = Py_BuildValue("s",_ptemp);
5091 } else {
5092 Py_INCREF(Py_None);
5093 _resultobj = Py_None;
5094 }
5095 return _resultobj;
5096}
5097
5098#define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5099static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject * _resultobj;
5101 wxBitmap * _result;
5102 wxBrush * _arg0;
5103 PyObject * _argo0 = 0;
5104 char *_kwnames[] = { "self", NULL };
5105 char _ptemp[128];
5106
5107 self = self;
5108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
5109 return NULL;
5110 if (_argo0) {
5111 if (_argo0 == Py_None) { _arg0 = NULL; }
5112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
5114 return NULL;
5115 }
5116 }
5117{
5118 wxPy_BEGIN_ALLOW_THREADS;
5119 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
5120
5121 wxPy_END_ALLOW_THREADS;
5122} if (_result) {
5123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5124 _resultobj = Py_BuildValue("s",_ptemp);
5125 } else {
5126 Py_INCREF(Py_None);
5127 _resultobj = Py_None;
5128 }
5129 return _resultobj;
5130}
5131
5132#define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
5133static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5134 PyObject * _resultobj;
5135 int _result;
5136 wxBrush * _arg0;
5137 PyObject * _argo0 = 0;
5138 char *_kwnames[] = { "self", NULL };
5139
5140 self = self;
5141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
5142 return NULL;
5143 if (_argo0) {
5144 if (_argo0 == Py_None) { _arg0 = NULL; }
5145 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5146 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
5147 return NULL;
5148 }
5149 }
5150{
5151 wxPy_BEGIN_ALLOW_THREADS;
5152 _result = (int )wxBrush_GetStyle(_arg0);
5153
5154 wxPy_END_ALLOW_THREADS;
5155} _resultobj = Py_BuildValue("i",_result);
5156 return _resultobj;
5157}
5158
5159#define wxBrush_Ok(_swigobj) (_swigobj->Ok())
5160static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5161 PyObject * _resultobj;
5162 bool _result;
5163 wxBrush * _arg0;
5164 PyObject * _argo0 = 0;
5165 char *_kwnames[] = { "self", NULL };
5166
5167 self = self;
5168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
5169 return NULL;
5170 if (_argo0) {
5171 if (_argo0 == Py_None) { _arg0 = NULL; }
5172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
5174 return NULL;
5175 }
5176 }
5177{
5178 wxPy_BEGIN_ALLOW_THREADS;
5179 _result = (bool )wxBrush_Ok(_arg0);
5180
5181 wxPy_END_ALLOW_THREADS;
5182} _resultobj = Py_BuildValue("i",_result);
5183 return _resultobj;
5184}
5185
5186#define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5187static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5188 PyObject * _resultobj;
5189 wxBrush * _arg0;
5190 wxColour * _arg1;
5191 PyObject * _argo0 = 0;
5192 wxColour temp;
5193 PyObject * _obj1 = 0;
5194 char *_kwnames[] = { "self","colour", NULL };
5195
5196 self = self;
5197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
5198 return NULL;
5199 if (_argo0) {
5200 if (_argo0 == Py_None) { _arg0 = NULL; }
5201 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5202 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
5203 return NULL;
5204 }
5205 }
5206{
5207 _arg1 = &temp;
5208 if (! wxColour_helper(_obj1, &_arg1))
5209 return NULL;
5210}
5211{
5212 wxPy_BEGIN_ALLOW_THREADS;
5213 wxBrush_SetColour(_arg0,*_arg1);
5214
5215 wxPy_END_ALLOW_THREADS;
5216} Py_INCREF(Py_None);
5217 _resultobj = Py_None;
5218 return _resultobj;
5219}
5220
5221#define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5222static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5223 PyObject * _resultobj;
5224 wxBrush * _arg0;
5225 wxBitmap * _arg1;
5226 PyObject * _argo0 = 0;
5227 PyObject * _argo1 = 0;
5228 char *_kwnames[] = { "self","bitmap", NULL };
5229
5230 self = self;
5231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
5232 return NULL;
5233 if (_argo0) {
5234 if (_argo0 == Py_None) { _arg0 = NULL; }
5235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
5237 return NULL;
5238 }
5239 }
5240 if (_argo1) {
5241 if (_argo1 == Py_None) { _arg1 = NULL; }
5242 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5243 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
5244 return NULL;
5245 }
5246 }
5247{
5248 wxPy_BEGIN_ALLOW_THREADS;
5249 wxBrush_SetStipple(_arg0,*_arg1);
5250
5251 wxPy_END_ALLOW_THREADS;
5252} Py_INCREF(Py_None);
5253 _resultobj = Py_None;
5254 return _resultobj;
5255}
5256
5257#define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5258static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5259 PyObject * _resultobj;
5260 wxBrush * _arg0;
5261 int _arg1;
5262 PyObject * _argo0 = 0;
5263 char *_kwnames[] = { "self","style", NULL };
5264
5265 self = self;
5266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
5267 return NULL;
5268 if (_argo0) {
5269 if (_argo0 == Py_None) { _arg0 = NULL; }
5270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
5272 return NULL;
5273 }
5274 }
5275{
5276 wxPy_BEGIN_ALLOW_THREADS;
5277 wxBrush_SetStyle(_arg0,_arg1);
5278
5279 wxPy_END_ALLOW_THREADS;
5280} Py_INCREF(Py_None);
5281 _resultobj = Py_None;
5282 return _resultobj;
5283}
5284
5285#define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
5286static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5287 PyObject * _resultobj;
5288 wxBrushList * _arg0;
5289 wxBrush * _arg1;
5290 PyObject * _argo0 = 0;
5291 PyObject * _argo1 = 0;
5292 char *_kwnames[] = { "self","brush", NULL };
5293
5294 self = self;
5295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
5296 return NULL;
5297 if (_argo0) {
5298 if (_argo0 == Py_None) { _arg0 = NULL; }
5299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
5301 return NULL;
5302 }
5303 }
5304 if (_argo1) {
5305 if (_argo1 == Py_None) { _arg1 = NULL; }
5306 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5307 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
5308 return NULL;
5309 }
5310 }
5311{
5312 wxPy_BEGIN_ALLOW_THREADS;
5313 wxBrushList_AddBrush(_arg0,_arg1);
5314
5315 wxPy_END_ALLOW_THREADS;
5316} Py_INCREF(Py_None);
5317 _resultobj = Py_None;
5318 return _resultobj;
5319}
5320
5321#define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
5322static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5323 PyObject * _resultobj;
5324 wxBrush * _result;
5325 wxBrushList * _arg0;
5326 wxColour * _arg1;
5327 int _arg2;
5328 PyObject * _argo0 = 0;
5329 wxColour temp;
5330 PyObject * _obj1 = 0;
5331 char *_kwnames[] = { "self","colour","style", NULL };
5332 char _ptemp[128];
5333
5334 self = self;
5335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
5336 return NULL;
5337 if (_argo0) {
5338 if (_argo0 == Py_None) { _arg0 = NULL; }
5339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
5341 return NULL;
5342 }
5343 }
5344{
5345 _arg1 = &temp;
5346 if (! wxColour_helper(_obj1, &_arg1))
5347 return NULL;
5348}
5349{
5350 wxPy_BEGIN_ALLOW_THREADS;
5351 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
5352
5353 wxPy_END_ALLOW_THREADS;
5354} if (_result) {
5355 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5356 _resultobj = Py_BuildValue("s",_ptemp);
5357 } else {
5358 Py_INCREF(Py_None);
5359 _resultobj = Py_None;
5360 }
5361 return _resultobj;
5362}
5363
5364#define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
5365static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5366 PyObject * _resultobj;
5367 wxBrushList * _arg0;
5368 wxBrush * _arg1;
5369 PyObject * _argo0 = 0;
5370 PyObject * _argo1 = 0;
5371 char *_kwnames[] = { "self","brush", NULL };
5372
5373 self = self;
5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
5375 return NULL;
5376 if (_argo0) {
5377 if (_argo0 == Py_None) { _arg0 = NULL; }
5378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
5379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
5380 return NULL;
5381 }
5382 }
5383 if (_argo1) {
5384 if (_argo1 == Py_None) { _arg1 = NULL; }
5385 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
5386 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
5387 return NULL;
5388 }
5389 }
5390{
5391 wxPy_BEGIN_ALLOW_THREADS;
5392 wxBrushList_RemoveBrush(_arg0,_arg1);
5393
5394 wxPy_END_ALLOW_THREADS;
5395} Py_INCREF(Py_None);
5396 _resultobj = Py_None;
5397 return _resultobj;
5398}
5399
5400static void *SwigwxDCTowxObject(void *ptr) {
5401 wxDC *src;
5402 wxObject *dest;
5403 src = (wxDC *) ptr;
5404 dest = (wxObject *) src;
5405 return (void *) dest;
5406}
5407
5408#define delete_wxDC(_swigobj) (delete _swigobj)
5409static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
5410 PyObject * _resultobj;
5411 wxDC * _arg0;
5412 PyObject * _argo0 = 0;
5413 char *_kwnames[] = { "self", NULL };
5414
5415 self = self;
5416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
5417 return NULL;
5418 if (_argo0) {
5419 if (_argo0 == Py_None) { _arg0 = NULL; }
5420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
5422 return NULL;
5423 }
5424 }
5425{
5426 wxPy_BEGIN_ALLOW_THREADS;
5427 delete_wxDC(_arg0);
5428
5429 wxPy_END_ALLOW_THREADS;
5430} Py_INCREF(Py_None);
5431 _resultobj = Py_None;
5432 return _resultobj;
5433}
5434
5435#define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
5436static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
5437 PyObject * _resultobj;
5438 wxDC * _arg0;
5439 PyObject * _argo0 = 0;
5440 char *_kwnames[] = { "self", NULL };
5441
5442 self = self;
5443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
5444 return NULL;
5445 if (_argo0) {
5446 if (_argo0 == Py_None) { _arg0 = NULL; }
5447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
5449 return NULL;
5450 }
5451 }
5452{
5453 wxPy_BEGIN_ALLOW_THREADS;
5454 wxDC_BeginDrawing(_arg0);
5455
5456 wxPy_END_ALLOW_THREADS;
5457} Py_INCREF(Py_None);
5458 _resultobj = Py_None;
5459 return _resultobj;
5460}
5461
5462#define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
5463static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject * _resultobj;
5465 bool _result;
5466 wxDC * _arg0;
5467 long _arg1;
5468 long _arg2;
5469 long _arg3;
5470 long _arg4;
5471 wxDC * _arg5;
5472 long _arg6;
5473 long _arg7;
5474 int _arg8 = (int ) wxCOPY;
5475 int _arg9 = (int ) FALSE;
5476 PyObject * _argo0 = 0;
5477 PyObject * _argo5 = 0;
5478 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
5479
5480 self = self;
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
5482 return NULL;
5483 if (_argo0) {
5484 if (_argo0 == Py_None) { _arg0 = NULL; }
5485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
5487 return NULL;
5488 }
5489 }
5490 if (_argo5) {
5491 if (_argo5 == Py_None) { _arg5 = NULL; }
5492 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
5493 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
5494 return NULL;
5495 }
5496 }
5497{
5498 wxPy_BEGIN_ALLOW_THREADS;
5499 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
5500
5501 wxPy_END_ALLOW_THREADS;
5502} _resultobj = Py_BuildValue("i",_result);
5503 return _resultobj;
5504}
5505
5506#define wxDC_Clear(_swigobj) (_swigobj->Clear())
5507static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5508 PyObject * _resultobj;
5509 wxDC * _arg0;
5510 PyObject * _argo0 = 0;
5511 char *_kwnames[] = { "self", NULL };
5512
5513 self = self;
5514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
5515 return NULL;
5516 if (_argo0) {
5517 if (_argo0 == Py_None) { _arg0 = NULL; }
5518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
5520 return NULL;
5521 }
5522 }
5523{
5524 wxPy_BEGIN_ALLOW_THREADS;
5525 wxDC_Clear(_arg0);
5526
5527 wxPy_END_ALLOW_THREADS;
5528} Py_INCREF(Py_None);
5529 _resultobj = Py_None;
5530 return _resultobj;
5531}
5532
5533#define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
5534static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject * _resultobj;
5536 wxDC * _arg0;
5537 long _arg1;
5538 long _arg2;
5539 PyObject * _argo0 = 0;
5540 char *_kwnames[] = { "self","x","y", NULL };
5541
5542 self = self;
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
5544 return NULL;
5545 if (_argo0) {
5546 if (_argo0 == Py_None) { _arg0 = NULL; }
5547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
5549 return NULL;
5550 }
5551 }
5552{
5553 wxPy_BEGIN_ALLOW_THREADS;
5554 wxDC_CrossHair(_arg0,_arg1,_arg2);
5555
5556 wxPy_END_ALLOW_THREADS;
5557} Py_INCREF(Py_None);
5558 _resultobj = Py_None;
5559 return _resultobj;
5560}
5561
5562#define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
5563static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5564 PyObject * _resultobj;
5565 wxDC * _arg0;
5566 PyObject * _argo0 = 0;
5567 char *_kwnames[] = { "self", NULL };
5568
5569 self = self;
5570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
5571 return NULL;
5572 if (_argo0) {
5573 if (_argo0 == Py_None) { _arg0 = NULL; }
5574 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5575 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
5576 return NULL;
5577 }
5578 }
5579{
5580 wxPy_BEGIN_ALLOW_THREADS;
5581 wxDC_DestroyClippingRegion(_arg0);
5582
5583 wxPy_END_ALLOW_THREADS;
5584} Py_INCREF(Py_None);
5585 _resultobj = Py_None;
5586 return _resultobj;
5587}
5588
5589#define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
5590static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject * _resultobj;
5592 long _result;
5593 wxDC * _arg0;
5594 long _arg1;
5595 PyObject * _argo0 = 0;
5596 char *_kwnames[] = { "self","x", NULL };
5597
5598 self = self;
5599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
5600 return NULL;
5601 if (_argo0) {
5602 if (_argo0 == Py_None) { _arg0 = NULL; }
5603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
5605 return NULL;
5606 }
5607 }
5608{
5609 wxPy_BEGIN_ALLOW_THREADS;
5610 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
5611
5612 wxPy_END_ALLOW_THREADS;
5613} _resultobj = Py_BuildValue("l",_result);
5614 return _resultobj;
5615}
5616
5617#define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
5618static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
5619 PyObject * _resultobj;
5620 long _result;
5621 wxDC * _arg0;
5622 long _arg1;
5623 PyObject * _argo0 = 0;
5624 char *_kwnames[] = { "self","x", NULL };
5625
5626 self = self;
5627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
5628 return NULL;
5629 if (_argo0) {
5630 if (_argo0 == Py_None) { _arg0 = NULL; }
5631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
5633 return NULL;
5634 }
5635 }
5636{
5637 wxPy_BEGIN_ALLOW_THREADS;
5638 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
5639
5640 wxPy_END_ALLOW_THREADS;
5641} _resultobj = Py_BuildValue("l",_result);
5642 return _resultobj;
5643}
5644
5645#define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
5646static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
5647 PyObject * _resultobj;
5648 long _result;
5649 wxDC * _arg0;
5650 long _arg1;
5651 PyObject * _argo0 = 0;
5652 char *_kwnames[] = { "self","y", NULL };
5653
5654 self = self;
5655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
5656 return NULL;
5657 if (_argo0) {
5658 if (_argo0 == Py_None) { _arg0 = NULL; }
5659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
5661 return NULL;
5662 }
5663 }
5664{
5665 wxPy_BEGIN_ALLOW_THREADS;
5666 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
5667
5668 wxPy_END_ALLOW_THREADS;
5669} _resultobj = Py_BuildValue("l",_result);
5670 return _resultobj;
5671}
5672
5673#define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
5674static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
5675 PyObject * _resultobj;
5676 long _result;
5677 wxDC * _arg0;
5678 long _arg1;
5679 PyObject * _argo0 = 0;
5680 char *_kwnames[] = { "self","y", NULL };
5681
5682 self = self;
5683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
5684 return NULL;
5685 if (_argo0) {
5686 if (_argo0 == Py_None) { _arg0 = NULL; }
5687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5689 return NULL;
5690 }
5691 }
5692{
5693 wxPy_BEGIN_ALLOW_THREADS;
5694 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
5695
5696 wxPy_END_ALLOW_THREADS;
5697} _resultobj = Py_BuildValue("l",_result);
5698 return _resultobj;
5699}
5700
5701#define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5702static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
5703 PyObject * _resultobj;
5704 wxDC * _arg0;
5705 long _arg1;
5706 long _arg2;
5707 long _arg3;
5708 long _arg4;
5709 long _arg5;
5710 long _arg6;
5711 PyObject * _argo0 = 0;
5712 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
5713
5714 self = self;
5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5716 return NULL;
5717 if (_argo0) {
5718 if (_argo0 == Py_None) { _arg0 = NULL; }
5719 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5720 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5721 return NULL;
5722 }
5723 }
5724{
5725 wxPy_BEGIN_ALLOW_THREADS;
5726 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5727
5728 wxPy_END_ALLOW_THREADS;
5729} Py_INCREF(Py_None);
5730 _resultobj = Py_None;
5731 return _resultobj;
5732}
5733
5734#define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5735static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
5736 PyObject * _resultobj;
5737 wxDC * _arg0;
5738 long _arg1;
5739 long _arg2;
5740 long _arg3;
5741 PyObject * _argo0 = 0;
5742 char *_kwnames[] = { "self","x","y","radius", NULL };
5743
5744 self = self;
5745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
5746 return NULL;
5747 if (_argo0) {
5748 if (_argo0 == Py_None) { _arg0 = NULL; }
5749 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5750 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5751 return NULL;
5752 }
5753 }
5754{
5755 wxPy_BEGIN_ALLOW_THREADS;
5756 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
5757
5758 wxPy_END_ALLOW_THREADS;
5759} Py_INCREF(Py_None);
5760 _resultobj = Py_None;
5761 return _resultobj;
5762}
5763
5764#define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5765static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
5766 PyObject * _resultobj;
5767 wxDC * _arg0;
5768 long _arg1;
5769 long _arg2;
5770 long _arg3;
5771 long _arg4;
5772 PyObject * _argo0 = 0;
5773 char *_kwnames[] = { "self","x","y","width","height", NULL };
5774
5775 self = self;
5776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
5777 return NULL;
5778 if (_argo0) {
5779 if (_argo0 == Py_None) { _arg0 = NULL; }
5780 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5781 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5782 return NULL;
5783 }
5784 }
5785{
5786 wxPy_BEGIN_ALLOW_THREADS;
5787 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
5788
5789 wxPy_END_ALLOW_THREADS;
5790} Py_INCREF(Py_None);
5791 _resultobj = Py_None;
5792 return _resultobj;
5793}
5794
5795#define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5796static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
5797 PyObject * _resultobj;
5798 wxDC * _arg0;
5799 long _arg1;
5800 long _arg2;
5801 long _arg3;
5802 long _arg4;
5803 long _arg5;
5804 long _arg6;
5805 PyObject * _argo0 = 0;
5806 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
5807
5808 self = self;
5809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5810 return NULL;
5811 if (_argo0) {
5812 if (_argo0 == Py_None) { _arg0 = NULL; }
5813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5815 return NULL;
5816 }
5817 }
5818{
5819 wxPy_BEGIN_ALLOW_THREADS;
5820 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5821
5822 wxPy_END_ALLOW_THREADS;
5823} Py_INCREF(Py_None);
5824 _resultobj = Py_None;
5825 return _resultobj;
5826}
5827
5828#define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5829static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5830 PyObject * _resultobj;
5831 wxDC * _arg0;
5832 wxIcon * _arg1;
5833 long _arg2;
5834 long _arg3;
5835 PyObject * _argo0 = 0;
5836 PyObject * _argo1 = 0;
5837 char *_kwnames[] = { "self","icon","x","y", NULL };
5838
5839 self = self;
5840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
5841 return NULL;
5842 if (_argo0) {
5843 if (_argo0 == Py_None) { _arg0 = NULL; }
5844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5846 return NULL;
5847 }
5848 }
5849 if (_argo1) {
5850 if (_argo1 == Py_None) { _arg1 = NULL; }
5851 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
5852 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5853 return NULL;
5854 }
5855 }
5856{
5857 wxPy_BEGIN_ALLOW_THREADS;
5858 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
5859
5860 wxPy_END_ALLOW_THREADS;
5861} Py_INCREF(Py_None);
5862 _resultobj = Py_None;
5863 return _resultobj;
5864}
5865
5866#define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5867static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
5868 PyObject * _resultobj;
5869 wxDC * _arg0;
5870 long _arg1;
5871 long _arg2;
5872 long _arg3;
5873 long _arg4;
5874 PyObject * _argo0 = 0;
5875 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
5876
5877 self = self;
5878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
5879 return NULL;
5880 if (_argo0) {
5881 if (_argo0 == Py_None) { _arg0 = NULL; }
5882 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5883 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5884 return NULL;
5885 }
5886 }
5887{
5888 wxPy_BEGIN_ALLOW_THREADS;
5889 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
5890
5891 wxPy_END_ALLOW_THREADS;
5892} Py_INCREF(Py_None);
5893 _resultobj = Py_None;
5894 return _resultobj;
5895}
5896
5897#define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5898static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
5899 PyObject * _resultobj;
5900 wxDC * _arg0;
5901 int _arg1;
5902 wxPoint * _arg2;
5903 long _arg3 = (long ) 0;
5904 long _arg4 = (long ) 0;
5905 PyObject * _argo0 = 0;
5906 int NPOINTS;
5907 PyObject * _obj2 = 0;
5908 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
5909
5910 self = self;
5911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
5912 return NULL;
5913 if (_argo0) {
5914 if (_argo0 == Py_None) { _arg0 = NULL; }
5915 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5916 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5917 return NULL;
5918 }
5919 }
5920 if (_obj2)
5921{
5922 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5923 if (_arg2 == NULL) {
5924 return NULL;
5925 }
5926}
5927{
5928 _arg1 = NPOINTS;
5929}
5930{
5931 wxPy_BEGIN_ALLOW_THREADS;
5932 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
5933
5934 wxPy_END_ALLOW_THREADS;
5935} Py_INCREF(Py_None);
5936 _resultobj = Py_None;
5937{
5938 delete [] _arg2;
5939}
5940 return _resultobj;
5941}
5942
5943#define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5944static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
5945 PyObject * _resultobj;
5946 wxDC * _arg0;
5947 int _arg1;
5948 wxPoint * _arg2;
5949 long _arg3 = (long ) 0;
5950 long _arg4 = (long ) 0;
5951 int _arg5 = (int ) wxODDEVEN_RULE;
5952 PyObject * _argo0 = 0;
5953 int NPOINTS;
5954 PyObject * _obj2 = 0;
5955 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
5956
5957 self = self;
5958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
5959 return NULL;
5960 if (_argo0) {
5961 if (_argo0 == Py_None) { _arg0 = NULL; }
5962 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5963 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5964 return NULL;
5965 }
5966 }
5967 if (_obj2)
5968{
5969 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5970 if (_arg2 == NULL) {
5971 return NULL;
5972 }
5973}
5974{
5975 _arg1 = NPOINTS;
5976}
5977{
5978 wxPy_BEGIN_ALLOW_THREADS;
5979 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
5980
5981 wxPy_END_ALLOW_THREADS;
5982} Py_INCREF(Py_None);
5983 _resultobj = Py_None;
5984{
5985 delete [] _arg2;
5986}
5987 return _resultobj;
5988}
5989
5990#define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5991static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5992 PyObject * _resultobj;
5993 wxDC * _arg0;
5994 long _arg1;
5995 long _arg2;
5996 PyObject * _argo0 = 0;
5997 char *_kwnames[] = { "self","x","y", NULL };
5998
5999 self = self;
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
6001 return NULL;
6002 if (_argo0) {
6003 if (_argo0 == Py_None) { _arg0 = NULL; }
6004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6006 return NULL;
6007 }
6008 }
6009{
6010 wxPy_BEGIN_ALLOW_THREADS;
6011 wxDC_DrawPoint(_arg0,_arg1,_arg2);
6012
6013 wxPy_END_ALLOW_THREADS;
6014} Py_INCREF(Py_None);
6015 _resultobj = Py_None;
6016 return _resultobj;
6017}
6018
6019#define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6020static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6021 PyObject * _resultobj;
6022 wxDC * _arg0;
6023 long _arg1;
6024 long _arg2;
6025 long _arg3;
6026 long _arg4;
6027 PyObject * _argo0 = 0;
6028 char *_kwnames[] = { "self","x","y","width","height", NULL };
6029
6030 self = self;
6031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6032 return NULL;
6033 if (_argo0) {
6034 if (_argo0 == Py_None) { _arg0 = NULL; }
6035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6037 return NULL;
6038 }
6039 }
6040{
6041 wxPy_BEGIN_ALLOW_THREADS;
6042 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
6043
6044 wxPy_END_ALLOW_THREADS;
6045} Py_INCREF(Py_None);
6046 _resultobj = Py_None;
6047 return _resultobj;
6048}
6049
6050#define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6051static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
6052 PyObject * _resultobj;
6053 wxDC * _arg0;
6054 wxString * _arg1;
6055 wxCoord _arg2;
6056 wxCoord _arg3;
6057 double _arg4;
6058 PyObject * _argo0 = 0;
6059 PyObject * _obj1 = 0;
6060 char *_kwnames[] = { "self","text","x","y","angle", NULL };
6061
6062 self = self;
6063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
6064 return NULL;
6065 if (_argo0) {
6066 if (_argo0 == Py_None) { _arg0 = NULL; }
6067 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6068 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6069 return NULL;
6070 }
6071 }
6072{
6073#if PYTHON_API_VERSION >= 1009
6074 char* tmpPtr; int tmpSize;
6075 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6076 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6077 return NULL;
6078 }
6079 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6080 return NULL;
6081 _arg1 = new wxString(tmpPtr, tmpSize);
6082#else
6083 if (!PyString_Check(_obj1)) {
6084 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6085 return NULL;
6086 }
6087 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6088#endif
6089}
6090{
6091 wxPy_BEGIN_ALLOW_THREADS;
6092 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
6093
6094 wxPy_END_ALLOW_THREADS;
6095} Py_INCREF(Py_None);
6096 _resultobj = Py_None;
6097{
6098 if (_obj1)
6099 delete _arg1;
6100}
6101 return _resultobj;
6102}
6103
6104#define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6105static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6106 PyObject * _resultobj;
6107 wxDC * _arg0;
6108 long _arg1;
6109 long _arg2;
6110 long _arg3;
6111 long _arg4;
6112 long _arg5 = (long ) 20;
6113 PyObject * _argo0 = 0;
6114 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
6115
6116 self = self;
6117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
6118 return NULL;
6119 if (_argo0) {
6120 if (_argo0 == Py_None) { _arg0 = NULL; }
6121 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6122 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
6123 return NULL;
6124 }
6125 }
6126{
6127 wxPy_BEGIN_ALLOW_THREADS;
6128 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6129
6130 wxPy_END_ALLOW_THREADS;
6131} Py_INCREF(Py_None);
6132 _resultobj = Py_None;
6133 return _resultobj;
6134}
6135
6136#define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
6137static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject * _resultobj;
6139 wxDC * _arg0;
6140 int _arg1;
6141 wxPoint * _arg2;
6142 PyObject * _argo0 = 0;
6143 int NPOINTS;
6144 PyObject * _obj2 = 0;
6145 char *_kwnames[] = { "self","points", NULL };
6146
6147 self = self;
6148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
6149 return NULL;
6150 if (_argo0) {
6151 if (_argo0 == Py_None) { _arg0 = NULL; }
6152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
6154 return NULL;
6155 }
6156 }
6157 if (_obj2)
6158{
6159 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6160 if (_arg2 == NULL) {
6161 return NULL;
6162 }
6163}
6164{
6165 _arg1 = NPOINTS;
6166}
6167{
6168 wxPy_BEGIN_ALLOW_THREADS;
6169 wxDC_DrawSpline(_arg0,_arg1,_arg2);
6170
6171 wxPy_END_ALLOW_THREADS;
6172} Py_INCREF(Py_None);
6173 _resultobj = Py_None;
6174{
6175 delete [] _arg2;
6176}
6177 return _resultobj;
6178}
6179
6180#define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
6181static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
6182 PyObject * _resultobj;
6183 wxDC * _arg0;
6184 wxString * _arg1;
6185 long _arg2;
6186 long _arg3;
6187 PyObject * _argo0 = 0;
6188 PyObject * _obj1 = 0;
6189 char *_kwnames[] = { "self","text","x","y", NULL };
6190
6191 self = self;
6192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
6193 return NULL;
6194 if (_argo0) {
6195 if (_argo0 == Py_None) { _arg0 = NULL; }
6196 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6197 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
6198 return NULL;
6199 }
6200 }
6201{
6202#if PYTHON_API_VERSION >= 1009
6203 char* tmpPtr; int tmpSize;
6204 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6205 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6206 return NULL;
6207 }
6208 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6209 return NULL;
6210 _arg1 = new wxString(tmpPtr, tmpSize);
6211#else
6212 if (!PyString_Check(_obj1)) {
6213 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6214 return NULL;
6215 }
6216 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6217#endif
6218}
6219{
6220 wxPy_BEGIN_ALLOW_THREADS;
6221 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
6222
6223 wxPy_END_ALLOW_THREADS;
6224} Py_INCREF(Py_None);
6225 _resultobj = Py_None;
6226{
6227 if (_obj1)
6228 delete _arg1;
6229}
6230 return _resultobj;
6231}
6232
6233#define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
6234static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
6235 PyObject * _resultobj;
6236 wxDC * _arg0;
6237 PyObject * _argo0 = 0;
6238 char *_kwnames[] = { "self", NULL };
6239
6240 self = self;
6241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
6242 return NULL;
6243 if (_argo0) {
6244 if (_argo0 == Py_None) { _arg0 = NULL; }
6245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
6247 return NULL;
6248 }
6249 }
6250{
6251 wxPy_BEGIN_ALLOW_THREADS;
6252 wxDC_EndDoc(_arg0);
6253
6254 wxPy_END_ALLOW_THREADS;
6255} Py_INCREF(Py_None);
6256 _resultobj = Py_None;
6257 return _resultobj;
6258}
6259
6260#define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
6261static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6262 PyObject * _resultobj;
6263 wxDC * _arg0;
6264 PyObject * _argo0 = 0;
6265 char *_kwnames[] = { "self", NULL };
6266
6267 self = self;
6268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
6269 return NULL;
6270 if (_argo0) {
6271 if (_argo0 == Py_None) { _arg0 = NULL; }
6272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
6274 return NULL;
6275 }
6276 }
6277{
6278 wxPy_BEGIN_ALLOW_THREADS;
6279 wxDC_EndDrawing(_arg0);
6280
6281 wxPy_END_ALLOW_THREADS;
6282} Py_INCREF(Py_None);
6283 _resultobj = Py_None;
6284 return _resultobj;
6285}
6286
6287#define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
6288static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
6289 PyObject * _resultobj;
6290 wxDC * _arg0;
6291 PyObject * _argo0 = 0;
6292 char *_kwnames[] = { "self", NULL };
6293
6294 self = self;
6295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
6296 return NULL;
6297 if (_argo0) {
6298 if (_argo0 == Py_None) { _arg0 = NULL; }
6299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
6301 return NULL;
6302 }
6303 }
6304{
6305 wxPy_BEGIN_ALLOW_THREADS;
6306 wxDC_EndPage(_arg0);
6307
6308 wxPy_END_ALLOW_THREADS;
6309} Py_INCREF(Py_None);
6310 _resultobj = Py_None;
6311 return _resultobj;
6312}
6313
6314#define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6315static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
6316 PyObject * _resultobj;
6317 wxDC * _arg0;
6318 long _arg1;
6319 long _arg2;
6320 wxColour * _arg3;
6321 int _arg4 = (int ) wxFLOOD_SURFACE;
6322 PyObject * _argo0 = 0;
6323 wxColour temp;
6324 PyObject * _obj3 = 0;
6325 char *_kwnames[] = { "self","x","y","colour","style", NULL };
6326
6327 self = self;
6328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
6329 return NULL;
6330 if (_argo0) {
6331 if (_argo0 == Py_None) { _arg0 = NULL; }
6332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
6334 return NULL;
6335 }
6336 }
6337{
6338 _arg3 = &temp;
6339 if (! wxColour_helper(_obj3, &_arg3))
6340 return NULL;
6341}
6342{
6343 wxPy_BEGIN_ALLOW_THREADS;
6344 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
6345
6346 wxPy_END_ALLOW_THREADS;
6347} Py_INCREF(Py_None);
6348 _resultobj = Py_None;
6349 return _resultobj;
6350}
6351
6352#define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
6353static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6354 PyObject * _resultobj;
6355 wxBrush * _result;
6356 wxDC * _arg0;
6357 PyObject * _argo0 = 0;
6358 char *_kwnames[] = { "self", NULL };
6359 char _ptemp[128];
6360
6361 self = self;
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
6363 return NULL;
6364 if (_argo0) {
6365 if (_argo0 == Py_None) { _arg0 = NULL; }
6366 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6367 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
6368 return NULL;
6369 }
6370 }
6371{
6372 wxPy_BEGIN_ALLOW_THREADS;
6373 wxBrush & _result_ref = wxDC_GetBackground(_arg0);
6374 _result = (wxBrush *) &_result_ref;
6375
6376 wxPy_END_ALLOW_THREADS;
6377} if (_result) {
6378 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6379 _resultobj = Py_BuildValue("s",_ptemp);
6380 } else {
6381 Py_INCREF(Py_None);
6382 _resultobj = Py_None;
6383 }
6384 return _resultobj;
6385}
6386
6387#define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
6388static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6389 PyObject * _resultobj;
6390 wxBrush * _result;
6391 wxDC * _arg0;
6392 PyObject * _argo0 = 0;
6393 char *_kwnames[] = { "self", NULL };
6394 char _ptemp[128];
6395
6396 self = self;
6397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
6398 return NULL;
6399 if (_argo0) {
6400 if (_argo0 == Py_None) { _arg0 = NULL; }
6401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
6403 return NULL;
6404 }
6405 }
6406{
6407 wxPy_BEGIN_ALLOW_THREADS;
6408 wxBrush & _result_ref = wxDC_GetBrush(_arg0);
6409 _result = (wxBrush *) &_result_ref;
6410
6411 wxPy_END_ALLOW_THREADS;
6412} if (_result) {
6413 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6414 _resultobj = Py_BuildValue("s",_ptemp);
6415 } else {
6416 Py_INCREF(Py_None);
6417 _resultobj = Py_None;
6418 }
6419 return _resultobj;
6420}
6421
6422#define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
6423static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6424 PyObject * _resultobj;
6425 long _result;
6426 wxDC * _arg0;
6427 PyObject * _argo0 = 0;
6428 char *_kwnames[] = { "self", NULL };
6429
6430 self = self;
6431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
6432 return NULL;
6433 if (_argo0) {
6434 if (_argo0 == Py_None) { _arg0 = NULL; }
6435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
6437 return NULL;
6438 }
6439 }
6440{
6441 wxPy_BEGIN_ALLOW_THREADS;
6442 _result = (long )wxDC_GetCharHeight(_arg0);
6443
6444 wxPy_END_ALLOW_THREADS;
6445} _resultobj = Py_BuildValue("l",_result);
6446 return _resultobj;
6447}
6448
6449#define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
6450static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6451 PyObject * _resultobj;
6452 long _result;
6453 wxDC * _arg0;
6454 PyObject * _argo0 = 0;
6455 char *_kwnames[] = { "self", NULL };
6456
6457 self = self;
6458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
6459 return NULL;
6460 if (_argo0) {
6461 if (_argo0 == Py_None) { _arg0 = NULL; }
6462 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6463 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
6464 return NULL;
6465 }
6466 }
6467{
6468 wxPy_BEGIN_ALLOW_THREADS;
6469 _result = (long )wxDC_GetCharWidth(_arg0);
6470
6471 wxPy_END_ALLOW_THREADS;
6472} _resultobj = Py_BuildValue("l",_result);
6473 return _resultobj;
6474}
6475
6476#define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6477static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject * _resultobj;
6479 wxDC * _arg0;
6480 long * _arg1;
6481 long temp;
6482 long * _arg2;
6483 long temp0;
6484 long * _arg3;
6485 long temp1;
6486 long * _arg4;
6487 long temp2;
6488 PyObject * _argo0 = 0;
6489 char *_kwnames[] = { "self", NULL };
6490
6491 self = self;
6492{
6493 _arg1 = &temp;
6494}
6495{
6496 _arg2 = &temp0;
6497}
6498{
6499 _arg3 = &temp1;
6500}
6501{
6502 _arg4 = &temp2;
6503}
6504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
6505 return NULL;
6506 if (_argo0) {
6507 if (_argo0 == Py_None) { _arg0 = NULL; }
6508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
6510 return NULL;
6511 }
6512 }
6513{
6514 wxPy_BEGIN_ALLOW_THREADS;
6515 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
6516
6517 wxPy_END_ALLOW_THREADS;
6518} Py_INCREF(Py_None);
6519 _resultobj = Py_None;
6520{
6521 PyObject *o;
6522 o = PyInt_FromLong((long) (*_arg1));
6523 _resultobj = t_output_helper(_resultobj, o);
6524}
6525{
6526 PyObject *o;
6527 o = PyInt_FromLong((long) (*_arg2));
6528 _resultobj = t_output_helper(_resultobj, o);
6529}
6530{
6531 PyObject *o;
6532 o = PyInt_FromLong((long) (*_arg3));
6533 _resultobj = t_output_helper(_resultobj, o);
6534}
6535{
6536 PyObject *o;
6537 o = PyInt_FromLong((long) (*_arg4));
6538 _resultobj = t_output_helper(_resultobj, o);
6539}
6540 return _resultobj;
6541}
6542
6543#define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
6544static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6545 PyObject * _resultobj;
6546 wxFont * _result;
6547 wxDC * _arg0;
6548 PyObject * _argo0 = 0;
6549 char *_kwnames[] = { "self", NULL };
6550 char _ptemp[128];
6551
6552 self = self;
6553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
6554 return NULL;
6555 if (_argo0) {
6556 if (_argo0 == Py_None) { _arg0 = NULL; }
6557 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6558 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
6559 return NULL;
6560 }
6561 }
6562{
6563 wxPy_BEGIN_ALLOW_THREADS;
6564 wxFont & _result_ref = wxDC_GetFont(_arg0);
6565 _result = (wxFont *) &_result_ref;
6566
6567 wxPy_END_ALLOW_THREADS;
6568} if (_result) {
6569 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
6570 _resultobj = Py_BuildValue("s",_ptemp);
6571 } else {
6572 Py_INCREF(Py_None);
6573 _resultobj = Py_None;
6574 }
6575 return _resultobj;
6576}
6577
6578#define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
6579static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
6580 PyObject * _resultobj;
6581 int _result;
6582 wxDC * _arg0;
6583 PyObject * _argo0 = 0;
6584 char *_kwnames[] = { "self", NULL };
6585
6586 self = self;
6587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
6588 return NULL;
6589 if (_argo0) {
6590 if (_argo0 == Py_None) { _arg0 = NULL; }
6591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
6593 return NULL;
6594 }
6595 }
6596{
6597 wxPy_BEGIN_ALLOW_THREADS;
6598 _result = (int )wxDC_GetLogicalFunction(_arg0);
6599
6600 wxPy_END_ALLOW_THREADS;
6601} _resultobj = Py_BuildValue("i",_result);
6602 return _resultobj;
6603}
6604
6605#define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
6606static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject * _resultobj;
6608 wxDC * _arg0;
6609 double * _arg1;
6610 double temp;
6611 double * _arg2;
6612 double temp0;
6613 PyObject * _argo0 = 0;
6614 char *_kwnames[] = { "self", NULL };
6615
6616 self = self;
6617{
6618 _arg1 = &temp;
6619}
6620{
6621 _arg2 = &temp0;
6622}
6623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
6624 return NULL;
6625 if (_argo0) {
6626 if (_argo0 == Py_None) { _arg0 = NULL; }
6627 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6628 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
6629 return NULL;
6630 }
6631 }
6632{
6633 wxPy_BEGIN_ALLOW_THREADS;
6634 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
6635
6636 wxPy_END_ALLOW_THREADS;
6637} Py_INCREF(Py_None);
6638 _resultobj = Py_None;
6639{
6640 PyObject *o;
6641 o = PyFloat_FromDouble((double) (*_arg1));
6642 _resultobj = t_output_helper(_resultobj, o);
6643}
6644{
6645 PyObject *o;
6646 o = PyFloat_FromDouble((double) (*_arg2));
6647 _resultobj = t_output_helper(_resultobj, o);
6648}
6649 return _resultobj;
6650}
6651
6652#define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6653static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
6654 PyObject * _resultobj;
6655 int _result;
6656 wxDC * _arg0;
6657 PyObject * _argo0 = 0;
6658 char *_kwnames[] = { "self", NULL };
6659
6660 self = self;
6661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
6662 return NULL;
6663 if (_argo0) {
6664 if (_argo0 == Py_None) { _arg0 = NULL; }
6665 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6666 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6667 return NULL;
6668 }
6669 }
6670{
6671 wxPy_BEGIN_ALLOW_THREADS;
6672 _result = (int )wxDC_GetMapMode(_arg0);
6673
6674 wxPy_END_ALLOW_THREADS;
6675} _resultobj = Py_BuildValue("i",_result);
6676 return _resultobj;
6677}
6678
6679#define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6680static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
6681 PyObject * _resultobj;
6682 bool _result;
6683 wxDC * _arg0;
6684 PyObject * _argo0 = 0;
6685 char *_kwnames[] = { "self", NULL };
6686
6687 self = self;
6688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
6689 return NULL;
6690 if (_argo0) {
6691 if (_argo0 == Py_None) { _arg0 = NULL; }
6692 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6693 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6694 return NULL;
6695 }
6696 }
6697{
6698 wxPy_BEGIN_ALLOW_THREADS;
6699 _result = (bool )wxDC_GetOptimization(_arg0);
6700
6701 wxPy_END_ALLOW_THREADS;
6702} _resultobj = Py_BuildValue("i",_result);
6703 return _resultobj;
6704}
6705
6706#define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6707static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6708 PyObject * _resultobj;
6709 wxPen * _result;
6710 wxDC * _arg0;
6711 PyObject * _argo0 = 0;
6712 char *_kwnames[] = { "self", NULL };
6713 char _ptemp[128];
6714
6715 self = self;
6716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
6717 return NULL;
6718 if (_argo0) {
6719 if (_argo0 == Py_None) { _arg0 = NULL; }
6720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6722 return NULL;
6723 }
6724 }
6725{
6726 wxPy_BEGIN_ALLOW_THREADS;
6727 wxPen & _result_ref = wxDC_GetPen(_arg0);
6728 _result = (wxPen *) &_result_ref;
6729
6730 wxPy_END_ALLOW_THREADS;
6731} if (_result) {
6732 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6733 _resultobj = Py_BuildValue("s",_ptemp);
6734 } else {
6735 Py_INCREF(Py_None);
6736 _resultobj = Py_None;
6737 }
6738 return _resultobj;
6739}
6740
6741static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
6742 wxColour* wc = new wxColour();
6743 self->GetPixel(x, y, wc);
6744 return wc;
6745 }
6746static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
6747 PyObject * _resultobj;
6748 wxColour * _result;
6749 wxDC * _arg0;
6750 long _arg1;
6751 long _arg2;
6752 PyObject * _argo0 = 0;
6753 char *_kwnames[] = { "self","x","y", NULL };
6754 char _ptemp[128];
6755
6756 self = self;
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
6758 return NULL;
6759 if (_argo0) {
6760 if (_argo0 == Py_None) { _arg0 = NULL; }
6761 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6762 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6763 return NULL;
6764 }
6765 }
6766{
6767 wxPy_BEGIN_ALLOW_THREADS;
6768 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
6769
6770 wxPy_END_ALLOW_THREADS;
6771} if (_result) {
6772 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6773 _resultobj = Py_BuildValue("s",_ptemp);
6774 } else {
6775 Py_INCREF(Py_None);
6776 _resultobj = Py_None;
6777 }
6778 return _resultobj;
6779}
6780
6781#define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6782static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
6783 PyObject * _resultobj;
6784 wxDC * _arg0;
6785 int * _arg1;
6786 int temp;
6787 int * _arg2;
6788 int temp0;
6789 PyObject * _argo0 = 0;
6790 char *_kwnames[] = { "self", NULL };
6791
6792 self = self;
6793{
6794 _arg1 = &temp;
6795}
6796{
6797 _arg2 = &temp0;
6798}
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
6800 return NULL;
6801 if (_argo0) {
6802 if (_argo0 == Py_None) { _arg0 = NULL; }
6803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6805 return NULL;
6806 }
6807 }
6808{
6809 wxPy_BEGIN_ALLOW_THREADS;
6810 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
6811
6812 wxPy_END_ALLOW_THREADS;
6813} Py_INCREF(Py_None);
6814 _resultobj = Py_None;
6815{
6816 PyObject *o;
6817 o = PyInt_FromLong((long) (*_arg1));
6818 _resultobj = t_output_helper(_resultobj, o);
6819}
6820{
6821 PyObject *o;
6822 o = PyInt_FromLong((long) (*_arg2));
6823 _resultobj = t_output_helper(_resultobj, o);
6824}
6825 return _resultobj;
6826}
6827
6828#define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6829static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6830 PyObject * _resultobj;
6831 wxSize * _result;
6832 wxDC * _arg0;
6833 PyObject * _argo0 = 0;
6834 char *_kwnames[] = { "self", NULL };
6835 char _ptemp[128];
6836
6837 self = self;
6838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
6839 return NULL;
6840 if (_argo0) {
6841 if (_argo0 == Py_None) { _arg0 = NULL; }
6842 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6843 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6844 return NULL;
6845 }
6846 }
6847{
6848 wxPy_BEGIN_ALLOW_THREADS;
6849 _result = new wxSize (wxDC_GetSize(_arg0));
6850
6851 wxPy_END_ALLOW_THREADS;
6852} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6853 _resultobj = Py_BuildValue("s",_ptemp);
6854 return _resultobj;
6855}
6856
6857#define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6858static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
6859 PyObject * _resultobj;
6860 wxSize * _result;
6861 wxDC * _arg0;
6862 PyObject * _argo0 = 0;
6863 char *_kwnames[] = { "self", NULL };
6864 char _ptemp[128];
6865
6866 self = self;
6867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
6868 return NULL;
6869 if (_argo0) {
6870 if (_argo0 == Py_None) { _arg0 = NULL; }
6871 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6872 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6873 return NULL;
6874 }
6875 }
6876{
6877 wxPy_BEGIN_ALLOW_THREADS;
6878 _result = new wxSize (wxDC_GetSizeMM(_arg0));
6879
6880 wxPy_END_ALLOW_THREADS;
6881} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6882 _resultobj = Py_BuildValue("s",_ptemp);
6883 return _resultobj;
6884}
6885
6886#define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6887static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6888 PyObject * _resultobj;
6889 wxColour * _result;
6890 wxDC * _arg0;
6891 PyObject * _argo0 = 0;
6892 char *_kwnames[] = { "self", NULL };
6893 char _ptemp[128];
6894
6895 self = self;
6896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
6897 return NULL;
6898 if (_argo0) {
6899 if (_argo0 == Py_None) { _arg0 = NULL; }
6900 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6901 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6902 return NULL;
6903 }
6904 }
6905{
6906 wxPy_BEGIN_ALLOW_THREADS;
6907 wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
6908 _result = (wxColour *) &_result_ref;
6909
6910 wxPy_END_ALLOW_THREADS;
6911} if (_result) {
6912 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6913 _resultobj = Py_BuildValue("s",_ptemp);
6914 } else {
6915 Py_INCREF(Py_None);
6916 _resultobj = Py_None;
6917 }
6918 return _resultobj;
6919}
6920
6921#define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6922static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
6923 PyObject * _resultobj;
6924 wxDC * _arg0;
6925 wxString * _arg1;
6926 long * _arg2;
6927 long temp;
6928 long * _arg3;
6929 long temp0;
6930 PyObject * _argo0 = 0;
6931 PyObject * _obj1 = 0;
6932 char *_kwnames[] = { "self","string", NULL };
6933
6934 self = self;
6935{
6936 _arg2 = &temp;
6937}
6938{
6939 _arg3 = &temp0;
6940}
6941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
6942 return NULL;
6943 if (_argo0) {
6944 if (_argo0 == Py_None) { _arg0 = NULL; }
6945 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6946 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6947 return NULL;
6948 }
6949 }
6950{
6951#if PYTHON_API_VERSION >= 1009
6952 char* tmpPtr; int tmpSize;
6953 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6954 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6955 return NULL;
6956 }
6957 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6958 return NULL;
6959 _arg1 = new wxString(tmpPtr, tmpSize);
6960#else
6961 if (!PyString_Check(_obj1)) {
6962 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6963 return NULL;
6964 }
6965 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6966#endif
6967}
6968{
6969 wxPy_BEGIN_ALLOW_THREADS;
6970 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
6971
6972 wxPy_END_ALLOW_THREADS;
6973} Py_INCREF(Py_None);
6974 _resultobj = Py_None;
6975{
6976 PyObject *o;
6977 o = PyInt_FromLong((long) (*_arg2));
6978 _resultobj = t_output_helper(_resultobj, o);
6979}
6980{
6981 PyObject *o;
6982 o = PyInt_FromLong((long) (*_arg3));
6983 _resultobj = t_output_helper(_resultobj, o);
6984}
6985{
6986 if (_obj1)
6987 delete _arg1;
6988}
6989 return _resultobj;
6990}
6991
6992#define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6993static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
6994 PyObject * _resultobj;
6995 wxDC * _arg0;
6996 wxString * _arg1;
6997 long * _arg2;
6998 long temp;
6999 long * _arg3;
7000 long temp0;
7001 long * _arg4;
7002 long temp1;
7003 long * _arg5;
7004 long temp2;
7005 wxFont * _arg6 = (wxFont *) NULL;
7006 PyObject * _argo0 = 0;
7007 PyObject * _obj1 = 0;
7008 PyObject * _argo6 = 0;
7009 char *_kwnames[] = { "self","string","font", NULL };
7010
7011 self = self;
7012{
7013 _arg2 = &temp;
7014}
7015{
7016 _arg3 = &temp0;
7017}
7018{
7019 _arg4 = &temp1;
7020}
7021{
7022 _arg5 = &temp2;
7023}
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
7025 return NULL;
7026 if (_argo0) {
7027 if (_argo0 == Py_None) { _arg0 = NULL; }
7028 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7029 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7030 return NULL;
7031 }
7032 }
7033{
7034#if PYTHON_API_VERSION >= 1009
7035 char* tmpPtr; int tmpSize;
7036 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7037 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7038 return NULL;
7039 }
7040 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7041 return NULL;
7042 _arg1 = new wxString(tmpPtr, tmpSize);
7043#else
7044 if (!PyString_Check(_obj1)) {
7045 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7046 return NULL;
7047 }
7048 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7049#endif
7050}
7051 if (_argo6) {
7052 if (_argo6 == Py_None) { _arg6 = NULL; }
7053 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
7054 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
7055 return NULL;
7056 }
7057 }
7058{
7059 wxPy_BEGIN_ALLOW_THREADS;
7060 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
7061
7062 wxPy_END_ALLOW_THREADS;
7063} Py_INCREF(Py_None);
7064 _resultobj = Py_None;
7065{
7066 PyObject *o;
7067 o = PyInt_FromLong((long) (*_arg2));
7068 _resultobj = t_output_helper(_resultobj, o);
7069}
7070{
7071 PyObject *o;
7072 o = PyInt_FromLong((long) (*_arg3));
7073 _resultobj = t_output_helper(_resultobj, o);
7074}
7075{
7076 PyObject *o;
7077 o = PyInt_FromLong((long) (*_arg4));
7078 _resultobj = t_output_helper(_resultobj, o);
7079}
7080{
7081 PyObject *o;
7082 o = PyInt_FromLong((long) (*_arg5));
7083 _resultobj = t_output_helper(_resultobj, o);
7084}
7085{
7086 if (_obj1)
7087 delete _arg1;
7088}
7089 return _resultobj;
7090}
7091
7092#define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
7093static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
7094 PyObject * _resultobj;
7095 wxColour * _result;
7096 wxDC * _arg0;
7097 PyObject * _argo0 = 0;
7098 char *_kwnames[] = { "self", NULL };
7099 char _ptemp[128];
7100
7101 self = self;
7102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
7103 return NULL;
7104 if (_argo0) {
7105 if (_argo0 == Py_None) { _arg0 = NULL; }
7106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
7108 return NULL;
7109 }
7110 }
7111{
7112 wxPy_BEGIN_ALLOW_THREADS;
7113 wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
7114 _result = (wxColour *) &_result_ref;
7115
7116 wxPy_END_ALLOW_THREADS;
7117} if (_result) {
7118 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7119 _resultobj = Py_BuildValue("s",_ptemp);
7120 } else {
7121 Py_INCREF(Py_None);
7122 _resultobj = Py_None;
7123 }
7124 return _resultobj;
7125}
7126
7127#define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
7128static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7129 PyObject * _resultobj;
7130 wxDC * _arg0;
7131 double * _arg1;
7132 double temp;
7133 double * _arg2;
7134 double temp0;
7135 PyObject * _argo0 = 0;
7136 char *_kwnames[] = { "self", NULL };
7137
7138 self = self;
7139{
7140 _arg1 = &temp;
7141}
7142{
7143 _arg2 = &temp0;
7144}
7145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
7146 return NULL;
7147 if (_argo0) {
7148 if (_argo0 == Py_None) { _arg0 = NULL; }
7149 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7150 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
7151 return NULL;
7152 }
7153 }
7154{
7155 wxPy_BEGIN_ALLOW_THREADS;
7156 wxDC_GetUserScale(_arg0,_arg1,_arg2);
7157
7158 wxPy_END_ALLOW_THREADS;
7159} Py_INCREF(Py_None);
7160 _resultobj = Py_None;
7161{
7162 PyObject *o;
7163 o = PyFloat_FromDouble((double) (*_arg1));
7164 _resultobj = t_output_helper(_resultobj, o);
7165}
7166{
7167 PyObject *o;
7168 o = PyFloat_FromDouble((double) (*_arg2));
7169 _resultobj = t_output_helper(_resultobj, o);
7170}
7171 return _resultobj;
7172}
7173
7174#define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
7175static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
7176 PyObject * _resultobj;
7177 long _result;
7178 wxDC * _arg0;
7179 long _arg1;
7180 PyObject * _argo0 = 0;
7181 char *_kwnames[] = { "self","x", NULL };
7182
7183 self = self;
7184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
7185 return NULL;
7186 if (_argo0) {
7187 if (_argo0 == Py_None) { _arg0 = NULL; }
7188 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7189 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
7190 return NULL;
7191 }
7192 }
7193{
7194 wxPy_BEGIN_ALLOW_THREADS;
7195 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
7196
7197 wxPy_END_ALLOW_THREADS;
7198} _resultobj = Py_BuildValue("l",_result);
7199 return _resultobj;
7200}
7201
7202#define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
7203static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject * _resultobj;
7205 long _result;
7206 wxDC * _arg0;
7207 long _arg1;
7208 PyObject * _argo0 = 0;
7209 char *_kwnames[] = { "self","x", NULL };
7210
7211 self = self;
7212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
7213 return NULL;
7214 if (_argo0) {
7215 if (_argo0 == Py_None) { _arg0 = NULL; }
7216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
7218 return NULL;
7219 }
7220 }
7221{
7222 wxPy_BEGIN_ALLOW_THREADS;
7223 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
7224
7225 wxPy_END_ALLOW_THREADS;
7226} _resultobj = Py_BuildValue("l",_result);
7227 return _resultobj;
7228}
7229
7230#define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
7231static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
7232 PyObject * _resultobj;
7233 long _result;
7234 wxDC * _arg0;
7235 long _arg1;
7236 PyObject * _argo0 = 0;
7237 char *_kwnames[] = { "self","y", NULL };
7238
7239 self = self;
7240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
7241 return NULL;
7242 if (_argo0) {
7243 if (_argo0 == Py_None) { _arg0 = NULL; }
7244 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7245 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
7246 return NULL;
7247 }
7248 }
7249{
7250 wxPy_BEGIN_ALLOW_THREADS;
7251 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
7252
7253 wxPy_END_ALLOW_THREADS;
7254} _resultobj = Py_BuildValue("l",_result);
7255 return _resultobj;
7256}
7257
7258#define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
7259static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
7260 PyObject * _resultobj;
7261 long _result;
7262 wxDC * _arg0;
7263 long _arg1;
7264 PyObject * _argo0 = 0;
7265 char *_kwnames[] = { "self","y", NULL };
7266
7267 self = self;
7268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
7269 return NULL;
7270 if (_argo0) {
7271 if (_argo0 == Py_None) { _arg0 = NULL; }
7272 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7273 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
7274 return NULL;
7275 }
7276 }
7277{
7278 wxPy_BEGIN_ALLOW_THREADS;
7279 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
7280
7281 wxPy_END_ALLOW_THREADS;
7282} _resultobj = Py_BuildValue("l",_result);
7283 return _resultobj;
7284}
7285
7286#define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
7287static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
7288 PyObject * _resultobj;
7289 long _result;
7290 wxDC * _arg0;
7291 PyObject * _argo0 = 0;
7292 char *_kwnames[] = { "self", NULL };
7293
7294 self = self;
7295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
7296 return NULL;
7297 if (_argo0) {
7298 if (_argo0 == Py_None) { _arg0 = NULL; }
7299 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7300 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
7301 return NULL;
7302 }
7303 }
7304{
7305 wxPy_BEGIN_ALLOW_THREADS;
7306 _result = (long )wxDC_MaxX(_arg0);
7307
7308 wxPy_END_ALLOW_THREADS;
7309} _resultobj = Py_BuildValue("l",_result);
7310 return _resultobj;
7311}
7312
7313#define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
7314static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
7315 PyObject * _resultobj;
7316 long _result;
7317 wxDC * _arg0;
7318 PyObject * _argo0 = 0;
7319 char *_kwnames[] = { "self", NULL };
7320
7321 self = self;
7322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
7323 return NULL;
7324 if (_argo0) {
7325 if (_argo0 == Py_None) { _arg0 = NULL; }
7326 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7327 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
7328 return NULL;
7329 }
7330 }
7331{
7332 wxPy_BEGIN_ALLOW_THREADS;
7333 _result = (long )wxDC_MaxY(_arg0);
7334
7335 wxPy_END_ALLOW_THREADS;
7336} _resultobj = Py_BuildValue("l",_result);
7337 return _resultobj;
7338}
7339
7340#define wxDC_MinX(_swigobj) (_swigobj->MinX())
7341static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
7342 PyObject * _resultobj;
7343 long _result;
7344 wxDC * _arg0;
7345 PyObject * _argo0 = 0;
7346 char *_kwnames[] = { "self", NULL };
7347
7348 self = self;
7349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
7350 return NULL;
7351 if (_argo0) {
7352 if (_argo0 == Py_None) { _arg0 = NULL; }
7353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
7355 return NULL;
7356 }
7357 }
7358{
7359 wxPy_BEGIN_ALLOW_THREADS;
7360 _result = (long )wxDC_MinX(_arg0);
7361
7362 wxPy_END_ALLOW_THREADS;
7363} _resultobj = Py_BuildValue("l",_result);
7364 return _resultobj;
7365}
7366
7367#define wxDC_MinY(_swigobj) (_swigobj->MinY())
7368static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
7369 PyObject * _resultobj;
7370 long _result;
7371 wxDC * _arg0;
7372 PyObject * _argo0 = 0;
7373 char *_kwnames[] = { "self", NULL };
7374
7375 self = self;
7376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
7377 return NULL;
7378 if (_argo0) {
7379 if (_argo0 == Py_None) { _arg0 = NULL; }
7380 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7381 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
7382 return NULL;
7383 }
7384 }
7385{
7386 wxPy_BEGIN_ALLOW_THREADS;
7387 _result = (long )wxDC_MinY(_arg0);
7388
7389 wxPy_END_ALLOW_THREADS;
7390} _resultobj = Py_BuildValue("l",_result);
7391 return _resultobj;
7392}
7393
7394#define wxDC_Ok(_swigobj) (_swigobj->Ok())
7395static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7396 PyObject * _resultobj;
7397 bool _result;
7398 wxDC * _arg0;
7399 PyObject * _argo0 = 0;
7400 char *_kwnames[] = { "self", NULL };
7401
7402 self = self;
7403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
7404 return NULL;
7405 if (_argo0) {
7406 if (_argo0 == Py_None) { _arg0 = NULL; }
7407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
7409 return NULL;
7410 }
7411 }
7412{
7413 wxPy_BEGIN_ALLOW_THREADS;
7414 _result = (bool )wxDC_Ok(_arg0);
7415
7416 wxPy_END_ALLOW_THREADS;
7417} _resultobj = Py_BuildValue("i",_result);
7418 return _resultobj;
7419}
7420
7421#define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
7422static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7423 PyObject * _resultobj;
7424 wxDC * _arg0;
7425 long _arg1;
7426 long _arg2;
7427 PyObject * _argo0 = 0;
7428 char *_kwnames[] = { "self","x","y", NULL };
7429
7430 self = self;
7431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
7432 return NULL;
7433 if (_argo0) {
7434 if (_argo0 == Py_None) { _arg0 = NULL; }
7435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
7437 return NULL;
7438 }
7439 }
7440{
7441 wxPy_BEGIN_ALLOW_THREADS;
7442 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
7443
7444 wxPy_END_ALLOW_THREADS;
7445} Py_INCREF(Py_None);
7446 _resultobj = Py_None;
7447 return _resultobj;
7448}
7449
7450#define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
7451static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7452 PyObject * _resultobj;
7453 wxDC * _arg0;
7454 wxBrush * _arg1;
7455 PyObject * _argo0 = 0;
7456 PyObject * _argo1 = 0;
7457 char *_kwnames[] = { "self","brush", NULL };
7458
7459 self = self;
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
7461 return NULL;
7462 if (_argo0) {
7463 if (_argo0 == Py_None) { _arg0 = NULL; }
7464 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7465 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
7466 return NULL;
7467 }
7468 }
7469 if (_argo1) {
7470 if (_argo1 == Py_None) { _arg1 = NULL; }
7471 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7472 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
7473 return NULL;
7474 }
7475 }
7476{
7477 wxPy_BEGIN_ALLOW_THREADS;
7478 wxDC_SetBackground(_arg0,*_arg1);
7479
7480 wxPy_END_ALLOW_THREADS;
7481} Py_INCREF(Py_None);
7482 _resultobj = Py_None;
7483 return _resultobj;
7484}
7485
7486#define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
7487static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7488 PyObject * _resultobj;
7489 wxDC * _arg0;
7490 int _arg1;
7491 PyObject * _argo0 = 0;
7492 char *_kwnames[] = { "self","mode", NULL };
7493
7494 self = self;
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
7496 return NULL;
7497 if (_argo0) {
7498 if (_argo0 == Py_None) { _arg0 = NULL; }
7499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
7501 return NULL;
7502 }
7503 }
7504{
7505 wxPy_BEGIN_ALLOW_THREADS;
7506 wxDC_SetBackgroundMode(_arg0,_arg1);
7507
7508 wxPy_END_ALLOW_THREADS;
7509} Py_INCREF(Py_None);
7510 _resultobj = Py_None;
7511 return _resultobj;
7512}
7513
7514#define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7515static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
7516 PyObject * _resultobj;
7517 wxDC * _arg0;
7518 long _arg1;
7519 long _arg2;
7520 long _arg3;
7521 long _arg4;
7522 PyObject * _argo0 = 0;
7523 char *_kwnames[] = { "self","x","y","width","height", NULL };
7524
7525 self = self;
7526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7527 return NULL;
7528 if (_argo0) {
7529 if (_argo0 == Py_None) { _arg0 = NULL; }
7530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
7532 return NULL;
7533 }
7534 }
7535{
7536 wxPy_BEGIN_ALLOW_THREADS;
7537 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
7538
7539 wxPy_END_ALLOW_THREADS;
7540} Py_INCREF(Py_None);
7541 _resultobj = Py_None;
7542 return _resultobj;
7543}
7544
7545#define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
7546static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
7547 PyObject * _resultobj;
7548 wxDC * _arg0;
7549 wxPalette * _arg1;
7550 PyObject * _argo0 = 0;
7551 PyObject * _argo1 = 0;
7552 char *_kwnames[] = { "self","colourMap", NULL };
7553
7554 self = self;
7555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
7556 return NULL;
7557 if (_argo0) {
7558 if (_argo0 == Py_None) { _arg0 = NULL; }
7559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
7561 return NULL;
7562 }
7563 }
7564 if (_argo1) {
7565 if (_argo1 == Py_None) { _arg1 = NULL; }
7566 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
7567 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
7568 return NULL;
7569 }
7570 }
7571{
7572 wxPy_BEGIN_ALLOW_THREADS;
7573 wxDC_SetPalette(_arg0,*_arg1);
7574
7575 wxPy_END_ALLOW_THREADS;
7576} Py_INCREF(Py_None);
7577 _resultobj = Py_None;
7578 return _resultobj;
7579}
7580
7581#define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
7582static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7583 PyObject * _resultobj;
7584 wxDC * _arg0;
7585 wxBrush * _arg1;
7586 PyObject * _argo0 = 0;
7587 PyObject * _argo1 = 0;
7588 char *_kwnames[] = { "self","brush", NULL };
7589
7590 self = self;
7591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
7592 return NULL;
7593 if (_argo0) {
7594 if (_argo0 == Py_None) { _arg0 = NULL; }
7595 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7596 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
7597 return NULL;
7598 }
7599 }
7600 if (_argo1) {
7601 if (_argo1 == Py_None) { _arg1 = NULL; }
7602 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
7603 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
7604 return NULL;
7605 }
7606 }
7607{
7608 wxPy_BEGIN_ALLOW_THREADS;
7609 wxDC_SetBrush(_arg0,*_arg1);
7610
7611 wxPy_END_ALLOW_THREADS;
7612} Py_INCREF(Py_None);
7613 _resultobj = Py_None;
7614 return _resultobj;
7615}
7616
7617#define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
7618static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7619 PyObject * _resultobj;
7620 wxDC * _arg0;
7621 wxFont * _arg1;
7622 PyObject * _argo0 = 0;
7623 PyObject * _argo1 = 0;
7624 char *_kwnames[] = { "self","font", NULL };
7625
7626 self = self;
7627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
7628 return NULL;
7629 if (_argo0) {
7630 if (_argo0 == Py_None) { _arg0 = NULL; }
7631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7633 return NULL;
7634 }
7635 }
7636 if (_argo1) {
7637 if (_argo1 == Py_None) { _arg1 = NULL; }
7638 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
7639 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7640 return NULL;
7641 }
7642 }
7643{
7644 wxPy_BEGIN_ALLOW_THREADS;
7645 wxDC_SetFont(_arg0,*_arg1);
7646
7647 wxPy_END_ALLOW_THREADS;
7648} Py_INCREF(Py_None);
7649 _resultobj = Py_None;
7650 return _resultobj;
7651}
7652
7653#define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7654static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
7655 PyObject * _resultobj;
7656 wxDC * _arg0;
7657 int _arg1;
7658 PyObject * _argo0 = 0;
7659 char *_kwnames[] = { "self","function", NULL };
7660
7661 self = self;
7662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
7663 return NULL;
7664 if (_argo0) {
7665 if (_argo0 == Py_None) { _arg0 = NULL; }
7666 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7667 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7668 return NULL;
7669 }
7670 }
7671{
7672 wxPy_BEGIN_ALLOW_THREADS;
7673 wxDC_SetLogicalFunction(_arg0,_arg1);
7674
7675 wxPy_END_ALLOW_THREADS;
7676} Py_INCREF(Py_None);
7677 _resultobj = Py_None;
7678 return _resultobj;
7679}
7680
7681#define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7682static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject * _resultobj;
7684 wxDC * _arg0;
7685 double _arg1;
7686 double _arg2;
7687 PyObject * _argo0 = 0;
7688 char *_kwnames[] = { "self","x","y", NULL };
7689
7690 self = self;
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
7692 return NULL;
7693 if (_argo0) {
7694 if (_argo0 == Py_None) { _arg0 = NULL; }
7695 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7696 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7697 return NULL;
7698 }
7699 }
7700{
7701 wxPy_BEGIN_ALLOW_THREADS;
7702 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
7703
7704 wxPy_END_ALLOW_THREADS;
7705} Py_INCREF(Py_None);
7706 _resultobj = Py_None;
7707 return _resultobj;
7708}
7709
7710#define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7711static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7712 PyObject * _resultobj;
7713 wxDC * _arg0;
7714 int _arg1;
7715 PyObject * _argo0 = 0;
7716 char *_kwnames[] = { "self","mode", NULL };
7717
7718 self = self;
7719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
7720 return NULL;
7721 if (_argo0) {
7722 if (_argo0 == Py_None) { _arg0 = NULL; }
7723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7725 return NULL;
7726 }
7727 }
7728{
7729 wxPy_BEGIN_ALLOW_THREADS;
7730 wxDC_SetMapMode(_arg0,_arg1);
7731
7732 wxPy_END_ALLOW_THREADS;
7733} Py_INCREF(Py_None);
7734 _resultobj = Py_None;
7735 return _resultobj;
7736}
7737
7738#define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7739static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7740 PyObject * _resultobj;
7741 wxDC * _arg0;
7742 bool _arg1;
7743 PyObject * _argo0 = 0;
7744 int tempbool1;
7745 char *_kwnames[] = { "self","optimize", NULL };
7746
7747 self = self;
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
7749 return NULL;
7750 if (_argo0) {
7751 if (_argo0 == Py_None) { _arg0 = NULL; }
7752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7754 return NULL;
7755 }
7756 }
7757 _arg1 = (bool ) tempbool1;
7758{
7759 wxPy_BEGIN_ALLOW_THREADS;
7760 wxDC_SetOptimization(_arg0,_arg1);
7761
7762 wxPy_END_ALLOW_THREADS;
7763} Py_INCREF(Py_None);
7764 _resultobj = Py_None;
7765 return _resultobj;
7766}
7767
7768#define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7769static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7770 PyObject * _resultobj;
7771 wxDC * _arg0;
7772 wxPen * _arg1;
7773 PyObject * _argo0 = 0;
7774 PyObject * _argo1 = 0;
7775 char *_kwnames[] = { "self","pen", NULL };
7776
7777 self = self;
7778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
7779 return NULL;
7780 if (_argo0) {
7781 if (_argo0 == Py_None) { _arg0 = NULL; }
7782 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7783 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7784 return NULL;
7785 }
7786 }
7787 if (_argo1) {
7788 if (_argo1 == Py_None) { _arg1 = NULL; }
7789 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
7790 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7791 return NULL;
7792 }
7793 }
7794{
7795 wxPy_BEGIN_ALLOW_THREADS;
7796 wxDC_SetPen(_arg0,*_arg1);
7797
7798 wxPy_END_ALLOW_THREADS;
7799} Py_INCREF(Py_None);
7800 _resultobj = Py_None;
7801 return _resultobj;
7802}
7803
7804#define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7805static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7806 PyObject * _resultobj;
7807 wxDC * _arg0;
7808 wxColour * _arg1;
7809 PyObject * _argo0 = 0;
7810 wxColour temp;
7811 PyObject * _obj1 = 0;
7812 char *_kwnames[] = { "self","colour", NULL };
7813
7814 self = self;
7815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
7816 return NULL;
7817 if (_argo0) {
7818 if (_argo0 == Py_None) { _arg0 = NULL; }
7819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7821 return NULL;
7822 }
7823 }
7824{
7825 _arg1 = &temp;
7826 if (! wxColour_helper(_obj1, &_arg1))
7827 return NULL;
7828}
7829{
7830 wxPy_BEGIN_ALLOW_THREADS;
7831 wxDC_SetTextBackground(_arg0,*_arg1);
7832
7833 wxPy_END_ALLOW_THREADS;
7834} Py_INCREF(Py_None);
7835 _resultobj = Py_None;
7836 return _resultobj;
7837}
7838
7839#define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7840static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
7841 PyObject * _resultobj;
7842 wxDC * _arg0;
7843 wxColour * _arg1;
7844 PyObject * _argo0 = 0;
7845 wxColour temp;
7846 PyObject * _obj1 = 0;
7847 char *_kwnames[] = { "self","colour", NULL };
7848
7849 self = self;
7850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
7851 return NULL;
7852 if (_argo0) {
7853 if (_argo0 == Py_None) { _arg0 = NULL; }
7854 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7855 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7856 return NULL;
7857 }
7858 }
7859{
7860 _arg1 = &temp;
7861 if (! wxColour_helper(_obj1, &_arg1))
7862 return NULL;
7863}
7864{
7865 wxPy_BEGIN_ALLOW_THREADS;
7866 wxDC_SetTextForeground(_arg0,*_arg1);
7867
7868 wxPy_END_ALLOW_THREADS;
7869} Py_INCREF(Py_None);
7870 _resultobj = Py_None;
7871 return _resultobj;
7872}
7873
7874#define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7875static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7876 PyObject * _resultobj;
7877 wxDC * _arg0;
7878 double _arg1;
7879 double _arg2;
7880 PyObject * _argo0 = 0;
7881 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
7882
7883 self = self;
7884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
7885 return NULL;
7886 if (_argo0) {
7887 if (_argo0 == Py_None) { _arg0 = NULL; }
7888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7890 return NULL;
7891 }
7892 }
7893{
7894 wxPy_BEGIN_ALLOW_THREADS;
7895 wxDC_SetUserScale(_arg0,_arg1,_arg2);
7896
7897 wxPy_END_ALLOW_THREADS;
7898} Py_INCREF(Py_None);
7899 _resultobj = Py_None;
7900 return _resultobj;
7901}
7902
7903#define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7904static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7905 PyObject * _resultobj;
7906 bool _result;
7907 wxDC * _arg0;
7908 wxString * _arg1;
7909 PyObject * _argo0 = 0;
7910 PyObject * _obj1 = 0;
7911 char *_kwnames[] = { "self","message", NULL };
7912
7913 self = self;
7914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
7915 return NULL;
7916 if (_argo0) {
7917 if (_argo0 == Py_None) { _arg0 = NULL; }
7918 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7919 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7920 return NULL;
7921 }
7922 }
7923{
7924#if PYTHON_API_VERSION >= 1009
7925 char* tmpPtr; int tmpSize;
7926 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7927 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7928 return NULL;
7929 }
7930 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7931 return NULL;
7932 _arg1 = new wxString(tmpPtr, tmpSize);
7933#else
7934 if (!PyString_Check(_obj1)) {
7935 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7936 return NULL;
7937 }
7938 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7939#endif
7940}
7941{
7942 wxPy_BEGIN_ALLOW_THREADS;
7943 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
7944
7945 wxPy_END_ALLOW_THREADS;
7946} _resultobj = Py_BuildValue("i",_result);
7947{
7948 if (_obj1)
7949 delete _arg1;
7950}
7951 return _resultobj;
7952}
7953
7954#define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7955static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject * _resultobj;
7957 wxDC * _arg0;
7958 PyObject * _argo0 = 0;
7959 char *_kwnames[] = { "self", NULL };
7960
7961 self = self;
7962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
7963 return NULL;
7964 if (_argo0) {
7965 if (_argo0 == Py_None) { _arg0 = NULL; }
7966 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7967 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7968 return NULL;
7969 }
7970 }
7971{
7972 wxPy_BEGIN_ALLOW_THREADS;
7973 wxDC_StartPage(_arg0);
7974
7975 wxPy_END_ALLOW_THREADS;
7976} Py_INCREF(Py_None);
7977 _resultobj = Py_None;
7978 return _resultobj;
7979}
7980
7981#define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7982static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7983 PyObject * _resultobj;
7984 wxDC * _arg0;
7985 wxBitmap * _arg1;
7986 long _arg2;
7987 long _arg3;
7988 int _arg4 = (int ) FALSE;
7989 PyObject * _argo0 = 0;
7990 PyObject * _argo1 = 0;
7991 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
7992
7993 self = self;
7994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
7995 return NULL;
7996 if (_argo0) {
7997 if (_argo0 == Py_None) { _arg0 = NULL; }
7998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
8000 return NULL;
8001 }
8002 }
8003 if (_argo1) {
8004 if (_argo1 == Py_None) { _arg1 = NULL; }
8005 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8006 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
8007 return NULL;
8008 }
8009 }
8010{
8011 wxPy_BEGIN_ALLOW_THREADS;
8012 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
8013
8014 wxPy_END_ALLOW_THREADS;
8015} Py_INCREF(Py_None);
8016 _resultobj = Py_None;
8017 return _resultobj;
8018}
8019
8020#define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
8021static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8022 PyObject * _resultobj;
8023 bool _result;
8024 wxDC * _arg0;
8025 PyObject * _argo0 = 0;
8026 char *_kwnames[] = { "self", NULL };
8027
8028 self = self;
8029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
8030 return NULL;
8031 if (_argo0) {
8032 if (_argo0 == Py_None) { _arg0 = NULL; }
8033 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8034 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
8035 return NULL;
8036 }
8037 }
8038{
8039 wxPy_BEGIN_ALLOW_THREADS;
8040 _result = (bool )wxDC_CanDrawBitmap(_arg0);
8041
8042 wxPy_END_ALLOW_THREADS;
8043} _resultobj = Py_BuildValue("i",_result);
8044 return _resultobj;
8045}
8046
8047#define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
8048static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8049 PyObject * _resultobj;
8050 bool _result;
8051 wxDC * _arg0;
8052 PyObject * _argo0 = 0;
8053 char *_kwnames[] = { "self", NULL };
8054
8055 self = self;
8056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
8057 return NULL;
8058 if (_argo0) {
8059 if (_argo0 == Py_None) { _arg0 = NULL; }
8060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
8062 return NULL;
8063 }
8064 }
8065{
8066 wxPy_BEGIN_ALLOW_THREADS;
8067 _result = (bool )wxDC_CanGetTextExtent(_arg0);
8068
8069 wxPy_END_ALLOW_THREADS;
8070} _resultobj = Py_BuildValue("i",_result);
8071 return _resultobj;
8072}
8073
8074#define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
8075static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
8076 PyObject * _resultobj;
8077 int _result;
8078 wxDC * _arg0;
8079 PyObject * _argo0 = 0;
8080 char *_kwnames[] = { "self", NULL };
8081
8082 self = self;
8083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
8084 return NULL;
8085 if (_argo0) {
8086 if (_argo0 == Py_None) { _arg0 = NULL; }
8087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
8089 return NULL;
8090 }
8091 }
8092{
8093 wxPy_BEGIN_ALLOW_THREADS;
8094 _result = (int )wxDC_GetDepth(_arg0);
8095
8096 wxPy_END_ALLOW_THREADS;
8097} _resultobj = Py_BuildValue("i",_result);
8098 return _resultobj;
8099}
8100
8101#define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
8102static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
8103 PyObject * _resultobj;
8104 wxSize * _result;
8105 wxDC * _arg0;
8106 PyObject * _argo0 = 0;
8107 char *_kwnames[] = { "self", NULL };
8108 char _ptemp[128];
8109
8110 self = self;
8111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
8112 return NULL;
8113 if (_argo0) {
8114 if (_argo0 == Py_None) { _arg0 = NULL; }
8115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
8117 return NULL;
8118 }
8119 }
8120{
8121 wxPy_BEGIN_ALLOW_THREADS;
8122 _result = new wxSize (wxDC_GetPPI(_arg0));
8123
8124 wxPy_END_ALLOW_THREADS;
8125} SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
8126 _resultobj = Py_BuildValue("s",_ptemp);
8127 return _resultobj;
8128}
8129
8130#define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
8131static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8132 PyObject * _resultobj;
8133 wxDC * _arg0;
8134 int * _arg1;
8135 int temp;
8136 int * _arg2;
8137 int temp0;
8138 PyObject * _argo0 = 0;
8139 char *_kwnames[] = { "self", NULL };
8140
8141 self = self;
8142{
8143 _arg1 = &temp;
8144}
8145{
8146 _arg2 = &temp0;
8147}
8148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
8149 return NULL;
8150 if (_argo0) {
8151 if (_argo0 == Py_None) { _arg0 = NULL; }
8152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
8154 return NULL;
8155 }
8156 }
8157{
8158 wxPy_BEGIN_ALLOW_THREADS;
8159 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
8160
8161 wxPy_END_ALLOW_THREADS;
8162} Py_INCREF(Py_None);
8163 _resultobj = Py_None;
8164{
8165 PyObject *o;
8166 o = PyInt_FromLong((long) (*_arg1));
8167 _resultobj = t_output_helper(_resultobj, o);
8168}
8169{
8170 PyObject *o;
8171 o = PyInt_FromLong((long) (*_arg2));
8172 _resultobj = t_output_helper(_resultobj, o);
8173}
8174 return _resultobj;
8175}
8176
8177#define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
8178static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8179 PyObject * _resultobj;
8180 wxDC * _arg0;
8181 int _arg1;
8182 int _arg2;
8183 PyObject * _argo0 = 0;
8184 char *_kwnames[] = { "self","x","y", NULL };
8185
8186 self = self;
8187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8188 return NULL;
8189 if (_argo0) {
8190 if (_argo0 == Py_None) { _arg0 = NULL; }
8191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
8193 return NULL;
8194 }
8195 }
8196{
8197 wxPy_BEGIN_ALLOW_THREADS;
8198 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
8199
8200 wxPy_END_ALLOW_THREADS;
8201} Py_INCREF(Py_None);
8202 _resultobj = Py_None;
8203 return _resultobj;
8204}
8205
8206#define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
8207static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8208 PyObject * _resultobj;
8209 wxDC * _arg0;
8210 int * _arg1;
8211 int temp;
8212 int * _arg2;
8213 int temp0;
8214 PyObject * _argo0 = 0;
8215 char *_kwnames[] = { "self", NULL };
8216
8217 self = self;
8218{
8219 _arg1 = &temp;
8220}
8221{
8222 _arg2 = &temp0;
8223}
8224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
8225 return NULL;
8226 if (_argo0) {
8227 if (_argo0 == Py_None) { _arg0 = NULL; }
8228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
8230 return NULL;
8231 }
8232 }
8233{
8234 wxPy_BEGIN_ALLOW_THREADS;
8235 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
8236
8237 wxPy_END_ALLOW_THREADS;
8238} Py_INCREF(Py_None);
8239 _resultobj = Py_None;
8240{
8241 PyObject *o;
8242 o = PyInt_FromLong((long) (*_arg1));
8243 _resultobj = t_output_helper(_resultobj, o);
8244}
8245{
8246 PyObject *o;
8247 o = PyInt_FromLong((long) (*_arg2));
8248 _resultobj = t_output_helper(_resultobj, o);
8249}
8250 return _resultobj;
8251}
8252
8253#define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
8254static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
8255 PyObject * _resultobj;
8256 wxDC * _arg0;
8257 bool _arg1;
8258 bool _arg2;
8259 PyObject * _argo0 = 0;
8260 int tempbool1;
8261 int tempbool2;
8262 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
8263
8264 self = self;
8265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
8266 return NULL;
8267 if (_argo0) {
8268 if (_argo0 == Py_None) { _arg0 = NULL; }
8269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
8271 return NULL;
8272 }
8273 }
8274 _arg1 = (bool ) tempbool1;
8275 _arg2 = (bool ) tempbool2;
8276{
8277 wxPy_BEGIN_ALLOW_THREADS;
8278 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
8279
8280 wxPy_END_ALLOW_THREADS;
8281} Py_INCREF(Py_None);
8282 _resultobj = Py_None;
8283 return _resultobj;
8284}
8285
8286#define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
8287static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8288 PyObject * _resultobj;
8289 wxDC * _arg0;
8290 int _arg1;
8291 int _arg2;
8292 PyObject * _argo0 = 0;
8293 char *_kwnames[] = { "self","x","y", NULL };
8294
8295 self = self;
8296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
8297 return NULL;
8298 if (_argo0) {
8299 if (_argo0 == Py_None) { _arg0 = NULL; }
8300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
8302 return NULL;
8303 }
8304 }
8305{
8306 wxPy_BEGIN_ALLOW_THREADS;
8307 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
8308
8309 wxPy_END_ALLOW_THREADS;
8310} Py_INCREF(Py_None);
8311 _resultobj = Py_None;
8312 return _resultobj;
8313}
8314
8315#define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
8316static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
8317 PyObject * _resultobj;
8318 wxDC * _arg0;
8319 PyObject * _argo0 = 0;
8320 char *_kwnames[] = { "self", NULL };
8321
8322 self = self;
8323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
8324 return NULL;
8325 if (_argo0) {
8326 if (_argo0 == Py_None) { _arg0 = NULL; }
8327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
8329 return NULL;
8330 }
8331 }
8332{
8333 wxPy_BEGIN_ALLOW_THREADS;
8334 wxDC_ResetBoundingBox(_arg0);
8335
8336 wxPy_END_ALLOW_THREADS;
8337} Py_INCREF(Py_None);
8338 _resultobj = Py_None;
8339 return _resultobj;
8340}
8341
8342static void *SwigwxMemoryDCTowxDC(void *ptr) {
8343 wxMemoryDC *src;
8344 wxDC *dest;
8345 src = (wxMemoryDC *) ptr;
8346 dest = (wxDC *) src;
8347 return (void *) dest;
8348}
8349
8350static void *SwigwxMemoryDCTowxObject(void *ptr) {
8351 wxMemoryDC *src;
8352 wxObject *dest;
8353 src = (wxMemoryDC *) ptr;
8354 dest = (wxObject *) src;
8355 return (void *) dest;
8356}
8357
8358#define new_wxMemoryDC() (new wxMemoryDC())
8359static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8360 PyObject * _resultobj;
8361 wxMemoryDC * _result;
8362 char *_kwnames[] = { NULL };
8363 char _ptemp[128];
8364
8365 self = self;
8366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
8367 return NULL;
8368{
8369 wxPy_BEGIN_ALLOW_THREADS;
8370 _result = (wxMemoryDC *)new_wxMemoryDC();
8371
8372 wxPy_END_ALLOW_THREADS;
8373} if (_result) {
8374 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
8375 _resultobj = Py_BuildValue("s",_ptemp);
8376 } else {
8377 Py_INCREF(Py_None);
8378 _resultobj = Py_None;
8379 }
8380 return _resultobj;
8381}
8382
8383#define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
8384static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
8385 PyObject * _resultobj;
8386 wxMemoryDC * _arg0;
8387 wxBitmap * _arg1;
8388 PyObject * _argo0 = 0;
8389 PyObject * _argo1 = 0;
8390 char *_kwnames[] = { "self","bitmap", NULL };
8391
8392 self = self;
8393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
8394 return NULL;
8395 if (_argo0) {
8396 if (_argo0 == Py_None) { _arg0 = NULL; }
8397 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
8398 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
8399 return NULL;
8400 }
8401 }
8402 if (_argo1) {
8403 if (_argo1 == Py_None) { _arg1 = NULL; }
8404 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8405 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
8406 return NULL;
8407 }
8408 }
8409{
8410 wxPy_BEGIN_ALLOW_THREADS;
8411 wxMemoryDC_SelectObject(_arg0,*_arg1);
8412
8413 wxPy_END_ALLOW_THREADS;
8414} Py_INCREF(Py_None);
8415 _resultobj = Py_None;
8416 return _resultobj;
8417}
8418
8419static void *SwigwxScreenDCTowxDC(void *ptr) {
8420 wxScreenDC *src;
8421 wxDC *dest;
8422 src = (wxScreenDC *) ptr;
8423 dest = (wxDC *) src;
8424 return (void *) dest;
8425}
8426
8427static void *SwigwxScreenDCTowxObject(void *ptr) {
8428 wxScreenDC *src;
8429 wxObject *dest;
8430 src = (wxScreenDC *) ptr;
8431 dest = (wxObject *) src;
8432 return (void *) dest;
8433}
8434
8435#define new_wxScreenDC() (new wxScreenDC())
8436static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8437 PyObject * _resultobj;
8438 wxScreenDC * _result;
8439 char *_kwnames[] = { NULL };
8440 char _ptemp[128];
8441
8442 self = self;
8443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
8444 return NULL;
8445{
8446 wxPy_BEGIN_ALLOW_THREADS;
8447 _result = (wxScreenDC *)new_wxScreenDC();
8448
8449 wxPy_END_ALLOW_THREADS;
8450} if (_result) {
8451 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
8452 _resultobj = Py_BuildValue("s",_ptemp);
8453 } else {
8454 Py_INCREF(Py_None);
8455 _resultobj = Py_None;
8456 }
8457 return _resultobj;
8458}
8459
8460#define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8461static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
8462 PyObject * _resultobj;
8463 bool _result;
8464 wxScreenDC * _arg0;
8465 wxWindow * _arg1;
8466 PyObject * _argo0 = 0;
8467 PyObject * _argo1 = 0;
8468 char *_kwnames[] = { "self","window", NULL };
8469
8470 self = self;
8471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
8472 return NULL;
8473 if (_argo0) {
8474 if (_argo0 == Py_None) { _arg0 = NULL; }
8475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
8476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
8477 return NULL;
8478 }
8479 }
8480 if (_argo1) {
8481 if (_argo1 == Py_None) { _arg1 = NULL; }
8482 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
8483 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
8484 return NULL;
8485 }
8486 }
8487{
8488 wxPy_BEGIN_ALLOW_THREADS;
8489 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
8490
8491 wxPy_END_ALLOW_THREADS;
8492} _resultobj = Py_BuildValue("i",_result);
8493 return _resultobj;
8494}
8495
8496#define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
8497static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8498 PyObject * _resultobj;
8499 bool _result;
8500 wxScreenDC * _arg0;
8501 wxRect * _arg1 = (wxRect *) NULL;
8502 PyObject * _argo0 = 0;
8503 wxRect temp;
8504 PyObject * _obj1 = 0;
8505 char *_kwnames[] = { "self","rect", NULL };
8506
8507 self = self;
8508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
8509 return NULL;
8510 if (_argo0) {
8511 if (_argo0 == Py_None) { _arg0 = NULL; }
8512 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
8513 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
8514 return NULL;
8515 }
8516 }
8517 if (_obj1)
8518{
8519 _arg1 = &temp;
8520 if (! wxRect_helper(_obj1, &_arg1))
8521 return NULL;
8522}
8523{
8524 wxPy_BEGIN_ALLOW_THREADS;
8525 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
8526
8527 wxPy_END_ALLOW_THREADS;
8528} _resultobj = Py_BuildValue("i",_result);
8529 return _resultobj;
8530}
8531
8532#define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
8533static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
8534 PyObject * _resultobj;
8535 bool _result;
8536 wxScreenDC * _arg0;
8537 PyObject * _argo0 = 0;
8538 char *_kwnames[] = { "self", NULL };
8539
8540 self = self;
8541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
8542 return NULL;
8543 if (_argo0) {
8544 if (_argo0 == Py_None) { _arg0 = NULL; }
8545 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
8546 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
8547 return NULL;
8548 }
8549 }
8550{
8551 wxPy_BEGIN_ALLOW_THREADS;
8552 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
8553
8554 wxPy_END_ALLOW_THREADS;
8555} _resultobj = Py_BuildValue("i",_result);
8556 return _resultobj;
8557}
8558
8559static void *SwigwxClientDCTowxDC(void *ptr) {
8560 wxClientDC *src;
8561 wxDC *dest;
8562 src = (wxClientDC *) ptr;
8563 dest = (wxDC *) src;
8564 return (void *) dest;
8565}
8566
8567static void *SwigwxClientDCTowxObject(void *ptr) {
8568 wxClientDC *src;
8569 wxObject *dest;
8570 src = (wxClientDC *) ptr;
8571 dest = (wxObject *) src;
8572 return (void *) dest;
8573}
8574
8575#define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
8576static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8577 PyObject * _resultobj;
8578 wxClientDC * _result;
8579 wxWindow * _arg0;
8580 PyObject * _argo0 = 0;
8581 char *_kwnames[] = { "win", NULL };
8582 char _ptemp[128];
8583
8584 self = self;
8585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
8586 return NULL;
8587 if (_argo0) {
8588 if (_argo0 == Py_None) { _arg0 = NULL; }
8589 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8590 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
8591 return NULL;
8592 }
8593 }
8594{
8595 wxPy_BEGIN_ALLOW_THREADS;
8596 _result = (wxClientDC *)new_wxClientDC(_arg0);
8597
8598 wxPy_END_ALLOW_THREADS;
8599} if (_result) {
8600 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
8601 _resultobj = Py_BuildValue("s",_ptemp);
8602 } else {
8603 Py_INCREF(Py_None);
8604 _resultobj = Py_None;
8605 }
8606 return _resultobj;
8607}
8608
8609static void *SwigwxPaintDCTowxDC(void *ptr) {
8610 wxPaintDC *src;
8611 wxDC *dest;
8612 src = (wxPaintDC *) ptr;
8613 dest = (wxDC *) src;
8614 return (void *) dest;
8615}
8616
8617static void *SwigwxPaintDCTowxObject(void *ptr) {
8618 wxPaintDC *src;
8619 wxObject *dest;
8620 src = (wxPaintDC *) ptr;
8621 dest = (wxObject *) src;
8622 return (void *) dest;
8623}
8624
8625#define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8626static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8627 PyObject * _resultobj;
8628 wxPaintDC * _result;
8629 wxWindow * _arg0;
8630 PyObject * _argo0 = 0;
8631 char *_kwnames[] = { "win", NULL };
8632 char _ptemp[128];
8633
8634 self = self;
8635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
8636 return NULL;
8637 if (_argo0) {
8638 if (_argo0 == Py_None) { _arg0 = NULL; }
8639 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8640 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8641 return NULL;
8642 }
8643 }
8644{
8645 wxPy_BEGIN_ALLOW_THREADS;
8646 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
8647
8648 wxPy_END_ALLOW_THREADS;
8649} if (_result) {
8650 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
8651 _resultobj = Py_BuildValue("s",_ptemp);
8652 } else {
8653 Py_INCREF(Py_None);
8654 _resultobj = Py_None;
8655 }
8656 return _resultobj;
8657}
8658
8659static void *SwigwxWindowDCTowxDC(void *ptr) {
8660 wxWindowDC *src;
8661 wxDC *dest;
8662 src = (wxWindowDC *) ptr;
8663 dest = (wxDC *) src;
8664 return (void *) dest;
8665}
8666
8667static void *SwigwxWindowDCTowxObject(void *ptr) {
8668 wxWindowDC *src;
8669 wxObject *dest;
8670 src = (wxWindowDC *) ptr;
8671 dest = (wxObject *) src;
8672 return (void *) dest;
8673}
8674
8675#define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8676static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8677 PyObject * _resultobj;
8678 wxWindowDC * _result;
8679 wxWindow * _arg0;
8680 PyObject * _argo0 = 0;
8681 char *_kwnames[] = { "win", NULL };
8682 char _ptemp[128];
8683
8684 self = self;
8685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
8686 return NULL;
8687 if (_argo0) {
8688 if (_argo0 == Py_None) { _arg0 = NULL; }
8689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8691 return NULL;
8692 }
8693 }
8694{
8695 wxPy_BEGIN_ALLOW_THREADS;
8696 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
8697
8698 wxPy_END_ALLOW_THREADS;
8699} if (_result) {
8700 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
8701 _resultobj = Py_BuildValue("s",_ptemp);
8702 } else {
8703 Py_INCREF(Py_None);
8704 _resultobj = Py_None;
8705 }
8706 return _resultobj;
8707}
8708
8709static void *SwigwxMetaFileDCTowxDC(void *ptr) {
8710 wxMetaFileDC *src;
8711 wxDC *dest;
8712 src = (wxMetaFileDC *) ptr;
8713 dest = (wxDC *) src;
8714 return (void *) dest;
8715}
8716
8717static void *SwigwxMetaFileDCTowxObject(void *ptr) {
8718 wxMetaFileDC *src;
8719 wxObject *dest;
8720 src = (wxMetaFileDC *) ptr;
8721 dest = (wxObject *) src;
8722 return (void *) dest;
8723}
8724
8725#define new_wxMetaFileDC(_swigarg0) (new wxMetaFileDC(_swigarg0))
8726static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8727 PyObject * _resultobj;
8728 wxMetaFileDC * _result;
8729 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
8730 PyObject * _obj0 = 0;
8731 char *_kwnames[] = { "filename", NULL };
8732 char _ptemp[128];
8733
8734 self = self;
8735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFileDC",_kwnames,&_obj0))
8736 return NULL;
8737 if (_obj0)
8738{
8739#if PYTHON_API_VERSION >= 1009
8740 char* tmpPtr; int tmpSize;
8741 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
8742 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8743 return NULL;
8744 }
8745 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
8746 return NULL;
8747 _arg0 = new wxString(tmpPtr, tmpSize);
8748#else
8749 if (!PyString_Check(_obj0)) {
8750 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8751 return NULL;
8752 }
8753 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
8754#endif
8755}
8756{
8757 wxPy_BEGIN_ALLOW_THREADS;
8758 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0);
8759
8760 wxPy_END_ALLOW_THREADS;
8761} if (_result) {
8762 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
8763 _resultobj = Py_BuildValue("s",_ptemp);
8764 } else {
8765 Py_INCREF(Py_None);
8766 _resultobj = Py_None;
8767 }
8768{
8769 if (_obj0)
8770 delete _arg0;
8771}
8772 return _resultobj;
8773}
8774
8775#define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
8776static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
8777 PyObject * _resultobj;
8778 wxMetaFile * _result;
8779 wxMetaFileDC * _arg0;
8780 PyObject * _argo0 = 0;
8781 char *_kwnames[] = { "self", NULL };
8782 char _ptemp[128];
8783
8784 self = self;
8785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
8786 return NULL;
8787 if (_argo0) {
8788 if (_argo0 == Py_None) { _arg0 = NULL; }
8789 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
8790 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
8791 return NULL;
8792 }
8793 }
8794{
8795 wxPy_BEGIN_ALLOW_THREADS;
8796 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
8797
8798 wxPy_END_ALLOW_THREADS;
8799} if (_result) {
8800 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
8801 _resultobj = Py_BuildValue("s",_ptemp);
8802 } else {
8803 Py_INCREF(Py_None);
8804 _resultobj = Py_None;
8805 }
8806 return _resultobj;
8807}
8808
8809static void *SwigwxPaletteTowxGDIObject(void *ptr) {
8810 wxPalette *src;
8811 wxGDIObject *dest;
8812 src = (wxPalette *) ptr;
8813 dest = (wxGDIObject *) src;
8814 return (void *) dest;
8815}
8816
8817static void *SwigwxPaletteTowxObject(void *ptr) {
8818 wxPalette *src;
8819 wxObject *dest;
8820 src = (wxPalette *) ptr;
8821 dest = (wxObject *) src;
8822 return (void *) dest;
8823}
8824
8825#define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8826static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8827 PyObject * _resultobj;
8828 wxPalette * _result;
8829 int _arg0;
8830 byte * _arg1;
8831 byte * _arg2;
8832 byte * _arg3;
8833 PyObject * _obj1 = 0;
8834 PyObject * _obj2 = 0;
8835 PyObject * _obj3 = 0;
8836 char *_kwnames[] = { "choices","choices","choices", NULL };
8837 char _ptemp[128];
8838
8839 self = self;
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
8841 return NULL;
8842{
8843 _arg1 = byte_LIST_helper(_obj1);
8844 if (_arg1 == NULL) {
8845 return NULL;
8846 }
8847}
8848{
8849 _arg2 = byte_LIST_helper(_obj2);
8850 if (_arg2 == NULL) {
8851 return NULL;
8852 }
8853}
8854 if (_obj3)
8855{
8856 _arg3 = byte_LIST_helper(_obj3);
8857 if (_arg3 == NULL) {
8858 return NULL;
8859 }
8860}
8861{
8862 if (_obj1) {
8863 _arg0 = PyList_Size(_obj1);
8864 }
8865 else {
8866 _arg0 = 0;
8867 }
8868}
8869{
8870 wxPy_BEGIN_ALLOW_THREADS;
8871 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
8872
8873 wxPy_END_ALLOW_THREADS;
8874} if (_result) {
8875 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
8876 _resultobj = Py_BuildValue("s",_ptemp);
8877 } else {
8878 Py_INCREF(Py_None);
8879 _resultobj = Py_None;
8880 }
8881{
8882 delete [] _arg1;
8883}
8884{
8885 delete [] _arg2;
8886}
8887{
8888 delete [] _arg3;
8889}
8890 return _resultobj;
8891}
8892
8893#define delete_wxPalette(_swigobj) (delete _swigobj)
8894static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8895 PyObject * _resultobj;
8896 wxPalette * _arg0;
8897 PyObject * _argo0 = 0;
8898 char *_kwnames[] = { "self", NULL };
8899
8900 self = self;
8901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
8902 return NULL;
8903 if (_argo0) {
8904 if (_argo0 == Py_None) { _arg0 = NULL; }
8905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8907 return NULL;
8908 }
8909 }
8910{
8911 wxPy_BEGIN_ALLOW_THREADS;
8912 delete_wxPalette(_arg0);
8913
8914 wxPy_END_ALLOW_THREADS;
8915} Py_INCREF(Py_None);
8916 _resultobj = Py_None;
8917 return _resultobj;
8918}
8919
8920#define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8921static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8922 PyObject * _resultobj;
8923 int _result;
8924 wxPalette * _arg0;
8925 byte _arg1;
8926 byte _arg2;
8927 byte _arg3;
8928 PyObject * _argo0 = 0;
8929 char *_kwnames[] = { "self","red","green","blue", NULL };
8930
8931 self = self;
8932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
8933 return NULL;
8934 if (_argo0) {
8935 if (_argo0 == Py_None) { _arg0 = NULL; }
8936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8938 return NULL;
8939 }
8940 }
8941{
8942 wxPy_BEGIN_ALLOW_THREADS;
8943 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
8944
8945 wxPy_END_ALLOW_THREADS;
8946} _resultobj = Py_BuildValue("i",_result);
8947 return _resultobj;
8948}
8949
8950#define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8951static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
8952 PyObject * _resultobj;
8953 bool _result;
8954 wxPalette * _arg0;
8955 int _arg1;
8956 byte * _arg2;
8957 byte * _arg3;
8958 byte * _arg4;
8959 PyObject * _argo0 = 0;
8960 PyObject * _argo2 = 0;
8961 PyObject * _argo3 = 0;
8962 PyObject * _argo4 = 0;
8963 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
8964
8965 self = self;
8966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
8967 return NULL;
8968 if (_argo0) {
8969 if (_argo0 == Py_None) { _arg0 = NULL; }
8970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8972 return NULL;
8973 }
8974 }
8975 if (_argo2) {
8976 if (_argo2 == Py_None) { _arg2 = NULL; }
8977 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
8978 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8979 return NULL;
8980 }
8981 }
8982 if (_argo3) {
8983 if (_argo3 == Py_None) { _arg3 = NULL; }
8984 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
8985 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8986 return NULL;
8987 }
8988 }
8989 if (_argo4) {
8990 if (_argo4 == Py_None) { _arg4 = NULL; }
8991 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
8992 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8993 return NULL;
8994 }
8995 }
8996{
8997 wxPy_BEGIN_ALLOW_THREADS;
8998 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
8999
9000 wxPy_END_ALLOW_THREADS;
9001} _resultobj = Py_BuildValue("i",_result);
9002 return _resultobj;
9003}
9004
9005#define wxPalette_Ok(_swigobj) (_swigobj->Ok())
9006static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
9007 PyObject * _resultobj;
9008 bool _result;
9009 wxPalette * _arg0;
9010 PyObject * _argo0 = 0;
9011 char *_kwnames[] = { "self", NULL };
9012
9013 self = self;
9014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
9015 return NULL;
9016 if (_argo0) {
9017 if (_argo0 == Py_None) { _arg0 = NULL; }
9018 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
9019 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
9020 return NULL;
9021 }
9022 }
9023{
9024 wxPy_BEGIN_ALLOW_THREADS;
9025 _result = (bool )wxPalette_Ok(_arg0);
9026
9027 wxPy_END_ALLOW_THREADS;
9028} _resultobj = Py_BuildValue("i",_result);
9029 return _resultobj;
9030}
9031
9032static void *SwigwxImageListTowxObject(void *ptr) {
9033 wxImageList *src;
9034 wxObject *dest;
9035 src = (wxImageList *) ptr;
9036 dest = (wxObject *) src;
9037 return (void *) dest;
9038}
9039
9040#define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9041static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
9042 PyObject * _resultobj;
9043 wxImageList * _result;
9044 int _arg0;
9045 int _arg1;
9046 int _arg2 = (int ) TRUE;
9047 int _arg3 = (int ) 1;
9048 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
9049 char _ptemp[128];
9050
9051 self = self;
9052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
9053 return NULL;
9054{
9055 wxPy_BEGIN_ALLOW_THREADS;
9056 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
9057
9058 wxPy_END_ALLOW_THREADS;
9059} if (_result) {
9060 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
9061 _resultobj = Py_BuildValue("s",_ptemp);
9062 } else {
9063 Py_INCREF(Py_None);
9064 _resultobj = Py_None;
9065 }
9066 return _resultobj;
9067}
9068
9069#define delete_wxImageList(_swigobj) (delete _swigobj)
9070static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
9071 PyObject * _resultobj;
9072 wxImageList * _arg0;
9073 PyObject * _argo0 = 0;
9074 char *_kwnames[] = { "self", NULL };
9075
9076 self = self;
9077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
9078 return NULL;
9079 if (_argo0) {
9080 if (_argo0 == Py_None) { _arg0 = NULL; }
9081 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9082 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
9083 return NULL;
9084 }
9085 }
9086{
9087 wxPy_BEGIN_ALLOW_THREADS;
9088 delete_wxImageList(_arg0);
9089
9090 wxPy_END_ALLOW_THREADS;
9091} Py_INCREF(Py_None);
9092 _resultobj = Py_None;
9093 return _resultobj;
9094}
9095
9096#define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9097static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
9098 PyObject * _resultobj;
9099 int _result;
9100 wxImageList * _arg0;
9101 wxBitmap * _arg1;
9102 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
9103 PyObject * _argo0 = 0;
9104 PyObject * _argo1 = 0;
9105 PyObject * _argo2 = 0;
9106 char *_kwnames[] = { "self","bitmap","mask", NULL };
9107
9108 self = self;
9109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
9110 return NULL;
9111 if (_argo0) {
9112 if (_argo0 == Py_None) { _arg0 = NULL; }
9113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
9115 return NULL;
9116 }
9117 }
9118 if (_argo1) {
9119 if (_argo1 == Py_None) { _arg1 = NULL; }
9120 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9121 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
9122 return NULL;
9123 }
9124 }
9125 if (_argo2) {
9126 if (_argo2 == Py_None) { _arg2 = NULL; }
9127 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
9128 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
9129 return NULL;
9130 }
9131 }
9132{
9133 wxPy_BEGIN_ALLOW_THREADS;
9134 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
9135
9136 wxPy_END_ALLOW_THREADS;
9137} _resultobj = Py_BuildValue("i",_result);
9138 return _resultobj;
9139}
9140
9141#define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
9142static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
9143 PyObject * _resultobj;
9144 int _result;
9145 wxImageList * _arg0;
9146 wxBitmap * _arg1;
9147 wxColour * _arg2;
9148 PyObject * _argo0 = 0;
9149 PyObject * _argo1 = 0;
9150 wxColour temp;
9151 PyObject * _obj2 = 0;
9152 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
9153
9154 self = self;
9155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
9156 return NULL;
9157 if (_argo0) {
9158 if (_argo0 == Py_None) { _arg0 = NULL; }
9159 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9160 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
9161 return NULL;
9162 }
9163 }
9164 if (_argo1) {
9165 if (_argo1 == Py_None) { _arg1 = NULL; }
9166 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9167 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
9168 return NULL;
9169 }
9170 }
9171{
9172 _arg2 = &temp;
9173 if (! wxColour_helper(_obj2, &_arg2))
9174 return NULL;
9175}
9176{
9177 wxPy_BEGIN_ALLOW_THREADS;
9178 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
9179
9180 wxPy_END_ALLOW_THREADS;
9181} _resultobj = Py_BuildValue("i",_result);
9182 return _resultobj;
9183}
9184
9185#define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
9186static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject * _resultobj;
9188 int _result;
9189 wxImageList * _arg0;
9190 wxIcon * _arg1;
9191 PyObject * _argo0 = 0;
9192 PyObject * _argo1 = 0;
9193 char *_kwnames[] = { "self","icon", NULL };
9194
9195 self = self;
9196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
9197 return NULL;
9198 if (_argo0) {
9199 if (_argo0 == Py_None) { _arg0 = NULL; }
9200 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9201 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
9202 return NULL;
9203 }
9204 }
9205 if (_argo1) {
9206 if (_argo1 == Py_None) { _arg1 = NULL; }
9207 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
9208 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
9209 return NULL;
9210 }
9211 }
9212{
9213 wxPy_BEGIN_ALLOW_THREADS;
9214 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
9215
9216 wxPy_END_ALLOW_THREADS;
9217} _resultobj = Py_BuildValue("i",_result);
9218 return _resultobj;
9219}
9220
9221#define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
9222static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
9223 PyObject * _resultobj;
9224 bool _result;
9225 wxImageList * _arg0;
9226 int _arg1;
9227 wxBitmap * _arg2;
9228 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
9229 PyObject * _argo0 = 0;
9230 PyObject * _argo2 = 0;
9231 PyObject * _argo3 = 0;
9232 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
9233
9234 self = self;
9235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
9236 return NULL;
9237 if (_argo0) {
9238 if (_argo0 == Py_None) { _arg0 = NULL; }
9239 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9240 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
9241 return NULL;
9242 }
9243 }
9244 if (_argo2) {
9245 if (_argo2 == Py_None) { _arg2 = NULL; }
9246 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
9247 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
9248 return NULL;
9249 }
9250 }
9251 if (_argo3) {
9252 if (_argo3 == Py_None) { _arg3 = NULL; }
9253 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
9254 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
9255 return NULL;
9256 }
9257 }
9258{
9259 wxPy_BEGIN_ALLOW_THREADS;
9260 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
9261
9262 wxPy_END_ALLOW_THREADS;
9263} _resultobj = Py_BuildValue("i",_result);
9264 return _resultobj;
9265}
9266
9267#define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
9268static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
9269 PyObject * _resultobj;
9270 bool _result;
9271 wxImageList * _arg0;
9272 int _arg1;
9273 wxDC * _arg2;
9274 int _arg3;
9275 int _arg4;
9276 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
9277 bool _arg6 = (bool ) FALSE;
9278 PyObject * _argo0 = 0;
9279 PyObject * _argo2 = 0;
9280 int tempbool6 = (int) FALSE;
9281 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
9282
9283 self = self;
9284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
9285 return NULL;
9286 if (_argo0) {
9287 if (_argo0 == Py_None) { _arg0 = NULL; }
9288 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9289 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
9290 return NULL;
9291 }
9292 }
9293 if (_argo2) {
9294 if (_argo2 == Py_None) { _arg2 = NULL; }
9295 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
9296 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
9297 return NULL;
9298 }
9299 }
9300 _arg6 = (bool ) tempbool6;
9301{
9302 wxPy_BEGIN_ALLOW_THREADS;
9303 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
9304
9305 wxPy_END_ALLOW_THREADS;
9306} _resultobj = Py_BuildValue("i",_result);
9307 return _resultobj;
9308}
9309
9310#define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
9311static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
9312 PyObject * _resultobj;
9313 int _result;
9314 wxImageList * _arg0;
9315 PyObject * _argo0 = 0;
9316 char *_kwnames[] = { "self", NULL };
9317
9318 self = self;
9319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
9320 return NULL;
9321 if (_argo0) {
9322 if (_argo0 == Py_None) { _arg0 = NULL; }
9323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
9325 return NULL;
9326 }
9327 }
9328{
9329 wxPy_BEGIN_ALLOW_THREADS;
9330 _result = (int )wxImageList_GetImageCount(_arg0);
9331
9332 wxPy_END_ALLOW_THREADS;
9333} _resultobj = Py_BuildValue("i",_result);
9334 return _resultobj;
9335}
9336
9337#define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
9338static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
9339 PyObject * _resultobj;
9340 bool _result;
9341 wxImageList * _arg0;
9342 int _arg1;
9343 PyObject * _argo0 = 0;
9344 char *_kwnames[] = { "self","index", NULL };
9345
9346 self = self;
9347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
9348 return NULL;
9349 if (_argo0) {
9350 if (_argo0 == Py_None) { _arg0 = NULL; }
9351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
9353 return NULL;
9354 }
9355 }
9356{
9357 wxPy_BEGIN_ALLOW_THREADS;
9358 _result = (bool )wxImageList_Remove(_arg0,_arg1);
9359
9360 wxPy_END_ALLOW_THREADS;
9361} _resultobj = Py_BuildValue("i",_result);
9362 return _resultobj;
9363}
9364
9365#define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
9366static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
9367 PyObject * _resultobj;
9368 bool _result;
9369 wxImageList * _arg0;
9370 PyObject * _argo0 = 0;
9371 char *_kwnames[] = { "self", NULL };
9372
9373 self = self;
9374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
9375 return NULL;
9376 if (_argo0) {
9377 if (_argo0 == Py_None) { _arg0 = NULL; }
9378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
9380 return NULL;
9381 }
9382 }
9383{
9384 wxPy_BEGIN_ALLOW_THREADS;
9385 _result = (bool )wxImageList_RemoveAll(_arg0);
9386
9387 wxPy_END_ALLOW_THREADS;
9388} _resultobj = Py_BuildValue("i",_result);
9389 return _resultobj;
9390}
9391
9392#define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
9393static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
9394 PyObject * _resultobj;
9395 wxImageList * _arg0;
9396 int _arg1;
9397 int * _arg2;
9398 int temp;
9399 int * _arg3;
9400 int temp0;
9401 PyObject * _argo0 = 0;
9402 char *_kwnames[] = { "self","index", NULL };
9403
9404 self = self;
9405{
9406 _arg2 = &temp;
9407}
9408{
9409 _arg3 = &temp0;
9410}
9411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
9412 return NULL;
9413 if (_argo0) {
9414 if (_argo0 == Py_None) { _arg0 = NULL; }
9415 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
9416 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
9417 return NULL;
9418 }
9419 }
9420{
9421 wxPy_BEGIN_ALLOW_THREADS;
9422 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
9423
9424 wxPy_END_ALLOW_THREADS;
9425} Py_INCREF(Py_None);
9426 _resultobj = Py_None;
9427{
9428 PyObject *o;
9429 o = PyInt_FromLong((long) (*_arg2));
9430 _resultobj = t_output_helper(_resultobj, o);
9431}
9432{
9433 PyObject *o;
9434 o = PyInt_FromLong((long) (*_arg3));
9435 _resultobj = t_output_helper(_resultobj, o);
9436}
9437 return _resultobj;
9438}
9439
9440static void *SwigwxRegionTowxGDIObject(void *ptr) {
9441 wxRegion *src;
9442 wxGDIObject *dest;
9443 src = (wxRegion *) ptr;
9444 dest = (wxGDIObject *) src;
9445 return (void *) dest;
9446}
9447
9448static void *SwigwxRegionTowxObject(void *ptr) {
9449 wxRegion *src;
9450 wxObject *dest;
9451 src = (wxRegion *) ptr;
9452 dest = (wxObject *) src;
9453 return (void *) dest;
9454}
9455
9456#define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9457static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9458 PyObject * _resultobj;
9459 wxRegion * _result;
9460 long _arg0 = (long ) 0;
9461 long _arg1 = (long ) 0;
9462 long _arg2 = (long ) 0;
9463 long _arg3 = (long ) 0;
9464 char *_kwnames[] = { "x","y","width","height", NULL };
9465 char _ptemp[128];
9466
9467 self = self;
9468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
9469 return NULL;
9470{
9471 wxPy_BEGIN_ALLOW_THREADS;
9472 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
9473
9474 wxPy_END_ALLOW_THREADS;
9475} if (_result) {
9476 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
9477 _resultobj = Py_BuildValue("s",_ptemp);
9478 } else {
9479 Py_INCREF(Py_None);
9480 _resultobj = Py_None;
9481 }
9482 return _resultobj;
9483}
9484
9485#define delete_wxRegion(_swigobj) (delete _swigobj)
9486static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9487 PyObject * _resultobj;
9488 wxRegion * _arg0;
9489 PyObject * _argo0 = 0;
9490 char *_kwnames[] = { "self", NULL };
9491
9492 self = self;
9493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
9494 return NULL;
9495 if (_argo0) {
9496 if (_argo0 == Py_None) { _arg0 = NULL; }
9497 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9498 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
9499 return NULL;
9500 }
9501 }
9502{
9503 wxPy_BEGIN_ALLOW_THREADS;
9504 delete_wxRegion(_arg0);
9505
9506 wxPy_END_ALLOW_THREADS;
9507} Py_INCREF(Py_None);
9508 _resultobj = Py_None;
9509 return _resultobj;
9510}
9511
9512#define wxRegion_Clear(_swigobj) (_swigobj->Clear())
9513static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
9514 PyObject * _resultobj;
9515 wxRegion * _arg0;
9516 PyObject * _argo0 = 0;
9517 char *_kwnames[] = { "self", NULL };
9518
9519 self = self;
9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
9521 return NULL;
9522 if (_argo0) {
9523 if (_argo0 == Py_None) { _arg0 = NULL; }
9524 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9525 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
9526 return NULL;
9527 }
9528 }
9529{
9530 wxPy_BEGIN_ALLOW_THREADS;
9531 wxRegion_Clear(_arg0);
9532
9533 wxPy_END_ALLOW_THREADS;
9534} Py_INCREF(Py_None);
9535 _resultobj = Py_None;
9536 return _resultobj;
9537}
9538
9539#define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
9540static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
9541 PyObject * _resultobj;
9542 wxRegionContain _result;
9543 wxRegion * _arg0;
9544 long _arg1;
9545 long _arg2;
9546 PyObject * _argo0 = 0;
9547 char *_kwnames[] = { "self","x","y", NULL };
9548
9549 self = self;
9550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
9551 return NULL;
9552 if (_argo0) {
9553 if (_argo0 == Py_None) { _arg0 = NULL; }
9554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
9556 return NULL;
9557 }
9558 }
9559{
9560 wxPy_BEGIN_ALLOW_THREADS;
9561 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
9562
9563 wxPy_END_ALLOW_THREADS;
9564} _resultobj = Py_BuildValue("i",_result);
9565 return _resultobj;
9566}
9567
9568#define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9569static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
9570 PyObject * _resultobj;
9571 wxRegionContain _result;
9572 wxRegion * _arg0;
9573 wxPoint * _arg1;
9574 PyObject * _argo0 = 0;
9575 wxPoint temp;
9576 PyObject * _obj1 = 0;
9577 char *_kwnames[] = { "self","pt", NULL };
9578
9579 self = self;
9580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
9581 return NULL;
9582 if (_argo0) {
9583 if (_argo0 == Py_None) { _arg0 = NULL; }
9584 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9585 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
9586 return NULL;
9587 }
9588 }
9589{
9590 _arg1 = &temp;
9591 if (! wxPoint_helper(_obj1, &_arg1))
9592 return NULL;
9593}
9594{
9595 wxPy_BEGIN_ALLOW_THREADS;
9596 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
9597
9598 wxPy_END_ALLOW_THREADS;
9599} _resultobj = Py_BuildValue("i",_result);
9600 return _resultobj;
9601}
9602
9603#define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
9604static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9605 PyObject * _resultobj;
9606 wxRegionContain _result;
9607 wxRegion * _arg0;
9608 wxRect * _arg1;
9609 PyObject * _argo0 = 0;
9610 wxRect temp;
9611 PyObject * _obj1 = 0;
9612 char *_kwnames[] = { "self","rect", NULL };
9613
9614 self = self;
9615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
9616 return NULL;
9617 if (_argo0) {
9618 if (_argo0 == Py_None) { _arg0 = NULL; }
9619 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9620 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9621 return NULL;
9622 }
9623 }
9624{
9625 _arg1 = &temp;
9626 if (! wxRect_helper(_obj1, &_arg1))
9627 return NULL;
9628}
9629{
9630 wxPy_BEGIN_ALLOW_THREADS;
9631 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
9632
9633 wxPy_END_ALLOW_THREADS;
9634} _resultobj = Py_BuildValue("i",_result);
9635 return _resultobj;
9636}
9637
9638#define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9639static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
9640 PyObject * _resultobj;
9641 wxRegionContain _result;
9642 wxRegion * _arg0;
9643 long _arg1;
9644 long _arg2;
9645 long _arg3;
9646 long _arg4;
9647 PyObject * _argo0 = 0;
9648 char *_kwnames[] = { "self","x","y","w","h", NULL };
9649
9650 self = self;
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9652 return NULL;
9653 if (_argo0) {
9654 if (_argo0 == Py_None) { _arg0 = NULL; }
9655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9657 return NULL;
9658 }
9659 }
9660{
9661 wxPy_BEGIN_ALLOW_THREADS;
9662 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
9663
9664 wxPy_END_ALLOW_THREADS;
9665} _resultobj = Py_BuildValue("i",_result);
9666 return _resultobj;
9667}
9668
9669#define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9670static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9671 PyObject * _resultobj;
9672 wxRect * _result;
9673 wxRegion * _arg0;
9674 PyObject * _argo0 = 0;
9675 char *_kwnames[] = { "self", NULL };
9676 char _ptemp[128];
9677
9678 self = self;
9679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
9680 return NULL;
9681 if (_argo0) {
9682 if (_argo0 == Py_None) { _arg0 = NULL; }
9683 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9684 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9685 return NULL;
9686 }
9687 }
9688{
9689 wxPy_BEGIN_ALLOW_THREADS;
9690 _result = new wxRect (wxRegion_GetBox(_arg0));
9691
9692 wxPy_END_ALLOW_THREADS;
9693} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
9694 _resultobj = Py_BuildValue("s",_ptemp);
9695 return _resultobj;
9696}
9697
9698#define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9699static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
9700 PyObject * _resultobj;
9701 bool _result;
9702 wxRegion * _arg0;
9703 long _arg1;
9704 long _arg2;
9705 long _arg3;
9706 long _arg4;
9707 PyObject * _argo0 = 0;
9708 char *_kwnames[] = { "self","x","y","width","height", NULL };
9709
9710 self = self;
9711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9712 return NULL;
9713 if (_argo0) {
9714 if (_argo0 == Py_None) { _arg0 = NULL; }
9715 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9716 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9717 return NULL;
9718 }
9719 }
9720{
9721 wxPy_BEGIN_ALLOW_THREADS;
9722 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
9723
9724 wxPy_END_ALLOW_THREADS;
9725} _resultobj = Py_BuildValue("i",_result);
9726 return _resultobj;
9727}
9728
9729#define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9730static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9731 PyObject * _resultobj;
9732 bool _result;
9733 wxRegion * _arg0;
9734 wxRect * _arg1;
9735 PyObject * _argo0 = 0;
9736 wxRect temp;
9737 PyObject * _obj1 = 0;
9738 char *_kwnames[] = { "self","rect", NULL };
9739
9740 self = self;
9741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
9742 return NULL;
9743 if (_argo0) {
9744 if (_argo0 == Py_None) { _arg0 = NULL; }
9745 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9746 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9747 return NULL;
9748 }
9749 }
9750{
9751 _arg1 = &temp;
9752 if (! wxRect_helper(_obj1, &_arg1))
9753 return NULL;
9754}
9755{
9756 wxPy_BEGIN_ALLOW_THREADS;
9757 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
9758
9759 wxPy_END_ALLOW_THREADS;
9760} _resultobj = Py_BuildValue("i",_result);
9761 return _resultobj;
9762}
9763
9764#define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9765static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9766 PyObject * _resultobj;
9767 bool _result;
9768 wxRegion * _arg0;
9769 wxRegion * _arg1;
9770 PyObject * _argo0 = 0;
9771 PyObject * _argo1 = 0;
9772 char *_kwnames[] = { "self","region", NULL };
9773
9774 self = self;
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
9776 return NULL;
9777 if (_argo0) {
9778 if (_argo0 == Py_None) { _arg0 = NULL; }
9779 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9780 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9781 return NULL;
9782 }
9783 }
9784 if (_argo1) {
9785 if (_argo1 == Py_None) { _arg1 = NULL; }
9786 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9787 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9788 return NULL;
9789 }
9790 }
9791{
9792 wxPy_BEGIN_ALLOW_THREADS;
9793 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
9794
9795 wxPy_END_ALLOW_THREADS;
9796} _resultobj = Py_BuildValue("i",_result);
9797 return _resultobj;
9798}
9799
9800#define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9801static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
9802 PyObject * _resultobj;
9803 bool _result;
9804 wxRegion * _arg0;
9805 PyObject * _argo0 = 0;
9806 char *_kwnames[] = { "self", NULL };
9807
9808 self = self;
9809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
9810 return NULL;
9811 if (_argo0) {
9812 if (_argo0 == Py_None) { _arg0 = NULL; }
9813 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9814 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9815 return NULL;
9816 }
9817 }
9818{
9819 wxPy_BEGIN_ALLOW_THREADS;
9820 _result = (bool )wxRegion_IsEmpty(_arg0);
9821
9822 wxPy_END_ALLOW_THREADS;
9823} _resultobj = Py_BuildValue("i",_result);
9824 return _resultobj;
9825}
9826
9827#define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9828static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
9829 PyObject * _resultobj;
9830 bool _result;
9831 wxRegion * _arg0;
9832 long _arg1;
9833 long _arg2;
9834 long _arg3;
9835 long _arg4;
9836 PyObject * _argo0 = 0;
9837 char *_kwnames[] = { "self","x","y","width","height", NULL };
9838
9839 self = self;
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9841 return NULL;
9842 if (_argo0) {
9843 if (_argo0 == Py_None) { _arg0 = NULL; }
9844 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9845 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9846 return NULL;
9847 }
9848 }
9849{
9850 wxPy_BEGIN_ALLOW_THREADS;
9851 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
9852
9853 wxPy_END_ALLOW_THREADS;
9854} _resultobj = Py_BuildValue("i",_result);
9855 return _resultobj;
9856}
9857
9858#define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9859static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9860 PyObject * _resultobj;
9861 bool _result;
9862 wxRegion * _arg0;
9863 wxRect * _arg1;
9864 PyObject * _argo0 = 0;
9865 wxRect temp;
9866 PyObject * _obj1 = 0;
9867 char *_kwnames[] = { "self","rect", NULL };
9868
9869 self = self;
9870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
9871 return NULL;
9872 if (_argo0) {
9873 if (_argo0 == Py_None) { _arg0 = NULL; }
9874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9876 return NULL;
9877 }
9878 }
9879{
9880 _arg1 = &temp;
9881 if (! wxRect_helper(_obj1, &_arg1))
9882 return NULL;
9883}
9884{
9885 wxPy_BEGIN_ALLOW_THREADS;
9886 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
9887
9888 wxPy_END_ALLOW_THREADS;
9889} _resultobj = Py_BuildValue("i",_result);
9890 return _resultobj;
9891}
9892
9893#define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9894static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9895 PyObject * _resultobj;
9896 bool _result;
9897 wxRegion * _arg0;
9898 wxRegion * _arg1;
9899 PyObject * _argo0 = 0;
9900 PyObject * _argo1 = 0;
9901 char *_kwnames[] = { "self","region", NULL };
9902
9903 self = self;
9904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
9905 return NULL;
9906 if (_argo0) {
9907 if (_argo0 == Py_None) { _arg0 = NULL; }
9908 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9909 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9910 return NULL;
9911 }
9912 }
9913 if (_argo1) {
9914 if (_argo1 == Py_None) { _arg1 = NULL; }
9915 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9916 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9917 return NULL;
9918 }
9919 }
9920{
9921 wxPy_BEGIN_ALLOW_THREADS;
9922 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
9923
9924 wxPy_END_ALLOW_THREADS;
9925} _resultobj = Py_BuildValue("i",_result);
9926 return _resultobj;
9927}
9928
9929#define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9930static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
9931 PyObject * _resultobj;
9932 bool _result;
9933 wxRegion * _arg0;
9934 long _arg1;
9935 long _arg2;
9936 long _arg3;
9937 long _arg4;
9938 PyObject * _argo0 = 0;
9939 char *_kwnames[] = { "self","x","y","width","height", NULL };
9940
9941 self = self;
9942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9943 return NULL;
9944 if (_argo0) {
9945 if (_argo0 == Py_None) { _arg0 = NULL; }
9946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9948 return NULL;
9949 }
9950 }
9951{
9952 wxPy_BEGIN_ALLOW_THREADS;
9953 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
9954
9955 wxPy_END_ALLOW_THREADS;
9956} _resultobj = Py_BuildValue("i",_result);
9957 return _resultobj;
9958}
9959
9960#define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9961static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9962 PyObject * _resultobj;
9963 bool _result;
9964 wxRegion * _arg0;
9965 wxRect * _arg1;
9966 PyObject * _argo0 = 0;
9967 wxRect temp;
9968 PyObject * _obj1 = 0;
9969 char *_kwnames[] = { "self","rect", NULL };
9970
9971 self = self;
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
9973 return NULL;
9974 if (_argo0) {
9975 if (_argo0 == Py_None) { _arg0 = NULL; }
9976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9978 return NULL;
9979 }
9980 }
9981{
9982 _arg1 = &temp;
9983 if (! wxRect_helper(_obj1, &_arg1))
9984 return NULL;
9985}
9986{
9987 wxPy_BEGIN_ALLOW_THREADS;
9988 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
9989
9990 wxPy_END_ALLOW_THREADS;
9991} _resultobj = Py_BuildValue("i",_result);
9992 return _resultobj;
9993}
9994
9995#define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9996static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9997 PyObject * _resultobj;
9998 bool _result;
9999 wxRegion * _arg0;
10000 wxRegion * _arg1;
10001 PyObject * _argo0 = 0;
10002 PyObject * _argo1 = 0;
10003 char *_kwnames[] = { "self","region", NULL };
10004
10005 self = self;
10006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
10007 return NULL;
10008 if (_argo0) {
10009 if (_argo0 == Py_None) { _arg0 = NULL; }
10010 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10011 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10012 return NULL;
10013 }
10014 }
10015 if (_argo1) {
10016 if (_argo1 == Py_None) { _arg1 = NULL; }
10017 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10018 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
10019 return NULL;
10020 }
10021 }
10022{
10023 wxPy_BEGIN_ALLOW_THREADS;
10024 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
10025
10026 wxPy_END_ALLOW_THREADS;
10027} _resultobj = Py_BuildValue("i",_result);
10028 return _resultobj;
10029}
10030
10031#define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10032static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
10033 PyObject * _resultobj;
10034 bool _result;
10035 wxRegion * _arg0;
10036 long _arg1;
10037 long _arg2;
10038 long _arg3;
10039 long _arg4;
10040 PyObject * _argo0 = 0;
10041 char *_kwnames[] = { "self","x","y","width","height", NULL };
10042
10043 self = self;
10044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
10045 return NULL;
10046 if (_argo0) {
10047 if (_argo0 == Py_None) { _arg0 = NULL; }
10048 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10049 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
10050 return NULL;
10051 }
10052 }
10053{
10054 wxPy_BEGIN_ALLOW_THREADS;
10055 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
10056
10057 wxPy_END_ALLOW_THREADS;
10058} _resultobj = Py_BuildValue("i",_result);
10059 return _resultobj;
10060}
10061
10062#define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10063static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10064 PyObject * _resultobj;
10065 bool _result;
10066 wxRegion * _arg0;
10067 wxRect * _arg1;
10068 PyObject * _argo0 = 0;
10069 wxRect temp;
10070 PyObject * _obj1 = 0;
10071 char *_kwnames[] = { "self","rect", NULL };
10072
10073 self = self;
10074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
10075 return NULL;
10076 if (_argo0) {
10077 if (_argo0 == Py_None) { _arg0 = NULL; }
10078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
10080 return NULL;
10081 }
10082 }
10083{
10084 _arg1 = &temp;
10085 if (! wxRect_helper(_obj1, &_arg1))
10086 return NULL;
10087}
10088{
10089 wxPy_BEGIN_ALLOW_THREADS;
10090 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
10091
10092 wxPy_END_ALLOW_THREADS;
10093} _resultobj = Py_BuildValue("i",_result);
10094 return _resultobj;
10095}
10096
10097#define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
10098static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
10099 PyObject * _resultobj;
10100 bool _result;
10101 wxRegion * _arg0;
10102 wxRegion * _arg1;
10103 PyObject * _argo0 = 0;
10104 PyObject * _argo1 = 0;
10105 char *_kwnames[] = { "self","region", NULL };
10106
10107 self = self;
10108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
10109 return NULL;
10110 if (_argo0) {
10111 if (_argo0 == Py_None) { _arg0 = NULL; }
10112 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10113 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
10114 return NULL;
10115 }
10116 }
10117 if (_argo1) {
10118 if (_argo1 == Py_None) { _arg1 = NULL; }
10119 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
10120 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
10121 return NULL;
10122 }
10123 }
10124{
10125 wxPy_BEGIN_ALLOW_THREADS;
10126 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
10127
10128 wxPy_END_ALLOW_THREADS;
10129} _resultobj = Py_BuildValue("i",_result);
10130 return _resultobj;
10131}
10132
10133static void *SwigwxRegionIteratorTowxObject(void *ptr) {
10134 wxRegionIterator *src;
10135 wxObject *dest;
10136 src = (wxRegionIterator *) ptr;
10137 dest = (wxObject *) src;
10138 return (void *) dest;
10139}
10140
10141#define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
10142static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject * _resultobj;
10144 wxRegionIterator * _result;
10145 wxRegion * _arg0;
10146 PyObject * _argo0 = 0;
10147 char *_kwnames[] = { "region", NULL };
10148 char _ptemp[128];
10149
10150 self = self;
10151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
10152 return NULL;
10153 if (_argo0) {
10154 if (_argo0 == Py_None) { _arg0 = NULL; }
10155 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
10156 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
10157 return NULL;
10158 }
10159 }
10160{
10161 wxPy_BEGIN_ALLOW_THREADS;
10162 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
10163
10164 wxPy_END_ALLOW_THREADS;
10165} if (_result) {
10166 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
10167 _resultobj = Py_BuildValue("s",_ptemp);
10168 } else {
10169 Py_INCREF(Py_None);
10170 _resultobj = Py_None;
10171 }
10172 return _resultobj;
10173}
10174
10175#define delete_wxRegionIterator(_swigobj) (delete _swigobj)
10176static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
10177 PyObject * _resultobj;
10178 wxRegionIterator * _arg0;
10179 PyObject * _argo0 = 0;
10180 char *_kwnames[] = { "self", NULL };
10181
10182 self = self;
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
10184 return NULL;
10185 if (_argo0) {
10186 if (_argo0 == Py_None) { _arg0 = NULL; }
10187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
10189 return NULL;
10190 }
10191 }
10192{
10193 wxPy_BEGIN_ALLOW_THREADS;
10194 delete_wxRegionIterator(_arg0);
10195
10196 wxPy_END_ALLOW_THREADS;
10197} Py_INCREF(Py_None);
10198 _resultobj = Py_None;
10199 return _resultobj;
10200}
10201
10202#define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
10203static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
10204 PyObject * _resultobj;
10205 long _result;
10206 wxRegionIterator * _arg0;
10207 PyObject * _argo0 = 0;
10208 char *_kwnames[] = { "self", NULL };
10209
10210 self = self;
10211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
10212 return NULL;
10213 if (_argo0) {
10214 if (_argo0 == Py_None) { _arg0 = NULL; }
10215 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10216 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
10217 return NULL;
10218 }
10219 }
10220{
10221 wxPy_BEGIN_ALLOW_THREADS;
10222 _result = (long )wxRegionIterator_GetX(_arg0);
10223
10224 wxPy_END_ALLOW_THREADS;
10225} _resultobj = Py_BuildValue("l",_result);
10226 return _resultobj;
10227}
10228
10229#define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
10230static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
10231 PyObject * _resultobj;
10232 long _result;
10233 wxRegionIterator * _arg0;
10234 PyObject * _argo0 = 0;
10235 char *_kwnames[] = { "self", NULL };
10236
10237 self = self;
10238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
10239 return NULL;
10240 if (_argo0) {
10241 if (_argo0 == Py_None) { _arg0 = NULL; }
10242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
10244 return NULL;
10245 }
10246 }
10247{
10248 wxPy_BEGIN_ALLOW_THREADS;
10249 _result = (long )wxRegionIterator_GetY(_arg0);
10250
10251 wxPy_END_ALLOW_THREADS;
10252} _resultobj = Py_BuildValue("l",_result);
10253 return _resultobj;
10254}
10255
10256#define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
10257static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
10258 PyObject * _resultobj;
10259 long _result;
10260 wxRegionIterator * _arg0;
10261 PyObject * _argo0 = 0;
10262 char *_kwnames[] = { "self", NULL };
10263
10264 self = self;
10265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
10266 return NULL;
10267 if (_argo0) {
10268 if (_argo0 == Py_None) { _arg0 = NULL; }
10269 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10270 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
10271 return NULL;
10272 }
10273 }
10274{
10275 wxPy_BEGIN_ALLOW_THREADS;
10276 _result = (long )wxRegionIterator_GetW(_arg0);
10277
10278 wxPy_END_ALLOW_THREADS;
10279} _resultobj = Py_BuildValue("l",_result);
10280 return _resultobj;
10281}
10282
10283#define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
10284static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10285 PyObject * _resultobj;
10286 long _result;
10287 wxRegionIterator * _arg0;
10288 PyObject * _argo0 = 0;
10289 char *_kwnames[] = { "self", NULL };
10290
10291 self = self;
10292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
10293 return NULL;
10294 if (_argo0) {
10295 if (_argo0 == Py_None) { _arg0 = NULL; }
10296 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10297 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
10298 return NULL;
10299 }
10300 }
10301{
10302 wxPy_BEGIN_ALLOW_THREADS;
10303 _result = (long )wxRegionIterator_GetWidth(_arg0);
10304
10305 wxPy_END_ALLOW_THREADS;
10306} _resultobj = Py_BuildValue("l",_result);
10307 return _resultobj;
10308}
10309
10310#define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
10311static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
10312 PyObject * _resultobj;
10313 long _result;
10314 wxRegionIterator * _arg0;
10315 PyObject * _argo0 = 0;
10316 char *_kwnames[] = { "self", NULL };
10317
10318 self = self;
10319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
10320 return NULL;
10321 if (_argo0) {
10322 if (_argo0 == Py_None) { _arg0 = NULL; }
10323 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10324 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
10325 return NULL;
10326 }
10327 }
10328{
10329 wxPy_BEGIN_ALLOW_THREADS;
10330 _result = (long )wxRegionIterator_GetH(_arg0);
10331
10332 wxPy_END_ALLOW_THREADS;
10333} _resultobj = Py_BuildValue("l",_result);
10334 return _resultobj;
10335}
10336
10337#define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
10338static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10339 PyObject * _resultobj;
10340 long _result;
10341 wxRegionIterator * _arg0;
10342 PyObject * _argo0 = 0;
10343 char *_kwnames[] = { "self", NULL };
10344
10345 self = self;
10346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
10347 return NULL;
10348 if (_argo0) {
10349 if (_argo0 == Py_None) { _arg0 = NULL; }
10350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
10352 return NULL;
10353 }
10354 }
10355{
10356 wxPy_BEGIN_ALLOW_THREADS;
10357 _result = (long )wxRegionIterator_GetHeight(_arg0);
10358
10359 wxPy_END_ALLOW_THREADS;
10360} _resultobj = Py_BuildValue("l",_result);
10361 return _resultobj;
10362}
10363
10364#define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
10365static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10366 PyObject * _resultobj;
10367 wxRect * _result;
10368 wxRegionIterator * _arg0;
10369 PyObject * _argo0 = 0;
10370 char *_kwnames[] = { "self", NULL };
10371 char _ptemp[128];
10372
10373 self = self;
10374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
10375 return NULL;
10376 if (_argo0) {
10377 if (_argo0 == Py_None) { _arg0 = NULL; }
10378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
10380 return NULL;
10381 }
10382 }
10383{
10384 wxPy_BEGIN_ALLOW_THREADS;
10385 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
10386
10387 wxPy_END_ALLOW_THREADS;
10388} SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
10389 _resultobj = Py_BuildValue("s",_ptemp);
10390 return _resultobj;
10391}
10392
10393#define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
10394static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
10395 PyObject * _resultobj;
10396 bool _result;
10397 wxRegionIterator * _arg0;
10398 PyObject * _argo0 = 0;
10399 char *_kwnames[] = { "self", NULL };
10400
10401 self = self;
10402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
10403 return NULL;
10404 if (_argo0) {
10405 if (_argo0 == Py_None) { _arg0 = NULL; }
10406 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10407 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
10408 return NULL;
10409 }
10410 }
10411{
10412 wxPy_BEGIN_ALLOW_THREADS;
10413 _result = (bool )wxRegionIterator_HaveRects(_arg0);
10414
10415 wxPy_END_ALLOW_THREADS;
10416} _resultobj = Py_BuildValue("i",_result);
10417 return _resultobj;
10418}
10419
10420#define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
10421static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
10422 PyObject * _resultobj;
10423 wxRegionIterator * _arg0;
10424 PyObject * _argo0 = 0;
10425 char *_kwnames[] = { "self", NULL };
10426
10427 self = self;
10428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
10429 return NULL;
10430 if (_argo0) {
10431 if (_argo0 == Py_None) { _arg0 = NULL; }
10432 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10433 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
10434 return NULL;
10435 }
10436 }
10437{
10438 wxPy_BEGIN_ALLOW_THREADS;
10439 wxRegionIterator_Reset(_arg0);
10440
10441 wxPy_END_ALLOW_THREADS;
10442} Py_INCREF(Py_None);
10443 _resultobj = Py_None;
10444 return _resultobj;
10445}
10446
10447static void wxRegionIterator_Next(wxRegionIterator *self) {
10448 (*self) ++;
10449 }
10450static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
10451 PyObject * _resultobj;
10452 wxRegionIterator * _arg0;
10453 PyObject * _argo0 = 0;
10454 char *_kwnames[] = { "self", NULL };
10455
10456 self = self;
10457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
10458 return NULL;
10459 if (_argo0) {
10460 if (_argo0 == Py_None) { _arg0 = NULL; }
10461 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
10462 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
10463 return NULL;
10464 }
10465 }
10466{
10467 wxPy_BEGIN_ALLOW_THREADS;
10468 wxRegionIterator_Next(_arg0);
10469
10470 wxPy_END_ALLOW_THREADS;
10471} Py_INCREF(Py_None);
10472 _resultobj = Py_None;
10473 return _resultobj;
10474}
10475
10476static PyMethodDef gdicMethods[] = {
10477 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
10478 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
10479 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
10480 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
10481 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
10482 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
10483 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
10484 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
10485 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
10486 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
10487 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
10488 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
10489 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
10490 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
10491 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
10492 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
10493 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
10494 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
10495 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
10496 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
10497 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
10498 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
10499 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
10500 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
10501 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
10502 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
10503 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
10504 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
10505 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
10506 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
10507 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
10508 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
10509 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
10510 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
10511 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
10512 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
10513 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
10514 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
10515 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
10516 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
10517 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
10518 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
10519 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
10520 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
10521 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
10522 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
10523 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
10524 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
10525 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
10526 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
10527 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
10528 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
10529 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
10530 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
10531 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
10532 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
10533 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
10534 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
10535 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
10536 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
10537 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
10538 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
10539 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
10540 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
10541 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
10542 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
10543 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
10544 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
10545 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
10546 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
10547 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
10548 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
10549 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
10550 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
10551 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
10552 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
10553 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
10554 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
10555 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
10556 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
10557 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
10558 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
10559 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
10560 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
10561 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
10562 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
10563 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
10564 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
10565 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
10566 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
10567 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
10568 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
10569 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
10570 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
10571 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
10572 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
10573 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
10574 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
10575 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
10576 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
10577 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
10578 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
10579 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
10580 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
10581 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10582 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
10583 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
10584 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
10585 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
10586 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
10587 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
10588 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
10589 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
10590 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
10591 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
10592 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
10593 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
10594 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
10595 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
10596 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
10597 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
10598 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
10599 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
10600 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
10601 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
10602 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
10603 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
10604 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
10605 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
10606 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
10607 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
10608 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
10609 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
10610 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
10611 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
10612 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
10613 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
10614 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
10615 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
10616 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
10617 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
10618 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
10619 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
10620 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
10621 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
10622 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
10623 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
10624 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
10625 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
10626 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
10627 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
10628 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
10629 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
10630 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
10631 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
10632 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
10633 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
10634 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
10635 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
10636 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
10637 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
10638 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
10639 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
10640 { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
10641 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
10642 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
10643 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
10644 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
10645 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
10646 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
10647 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
10648 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
10649 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
10650 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
10651 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
10652 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
10653 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
10654 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
10655 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
10656 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
10657 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
10658 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
10659 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
10660 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
10661 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
10662 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
10663 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
10664 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
10665 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
10666 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
10667 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
10668 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
10669 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
10670 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
10671 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
10672 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
10673 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
10674 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
10675 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
10676 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
10677 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
10678 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
10679 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
10680 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
10681 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
10682 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
10683 { "wxFont_GetFontId", (PyCFunction) _wrap_wxFont_GetFontId, METH_VARARGS | METH_KEYWORDS },
10684 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
10685 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
10686 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
10687 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
10688 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
10689 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
10690 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
10691 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
10692 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
10693 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
10694 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
10695 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
10696 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
10697 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
10698 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
10699 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
10700 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
10701 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
10702 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
10703 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
10704 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
10705 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
10706 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
10707 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
10708 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
10709 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
10710 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
10711 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
10712 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
10713 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
10714 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
10715 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
10716 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
10717 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
10718 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
10719 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
10720 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
10721 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
10722 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
10723 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
10724 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
10725 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
10726 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
10727 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
10728 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
10729 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
10730 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
10731 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
10732 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
10733 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
10734 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
10735 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
10736 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
10737 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
10738 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
10739 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
10740 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
10741 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
10742 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
10743 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
10744 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
10745 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
10746 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
10747 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
10748 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
10749 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
10750 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
10751 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
10752 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
10753 { "wxBitmapFromData", (PyCFunction) _wrap_wxBitmapFromData, METH_VARARGS | METH_KEYWORDS },
10754 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
10755 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
10756 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
10757 { NULL, NULL }
10758};
10759#ifdef __cplusplus
10760}
10761#endif
10762/*
10763 * This table is used by the pointer type-checker
10764 */
10765static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10766 { "_wxAcceleratorTable","_class_wxAcceleratorTable",0},
10767 { "_signed_long","_long",0},
10768 { "_wxPrintQuality","_wxCoord",0},
10769 { "_wxPrintQuality","_int",0},
10770 { "_wxPrintQuality","_signed_int",0},
10771 { "_wxPrintQuality","_unsigned_int",0},
10772 { "_wxPrintQuality","_wxWindowID",0},
10773 { "_wxPrintQuality","_uint",0},
10774 { "_wxPrintQuality","_EBool",0},
10775 { "_wxPrintQuality","_size_t",0},
10776 { "_wxPrintQuality","_time_t",0},
10777 { "_class_wxRegionIterator","_wxRegionIterator",0},
10778 { "_wxIndividualLayoutConstraint","_class_wxIndividualLayoutConstraint",0},
10779 { "_wxCursor","_class_wxCursor",0},
10780 { "_wxMask","_class_wxMask",0},
10781 { "_wxPen","_class_wxPen",0},
10782 { "_byte","_unsigned_char",0},
10783 { "_wxColourDatabase","_class_wxColourDatabase",0},
10784 { "_long","_unsigned_long",0},
10785 { "_long","_signed_long",0},
10786 { "_wxImageList","_class_wxImageList",0},
10787 { "_class_wxAcceleratorTable","_wxAcceleratorTable",0},
10788 { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
10789 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
10790 { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
10791 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
10792 { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
10793 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
10794 { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
10795 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
10796 { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
10797 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
10798 { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
10799 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
10800 { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
10801 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
10802 { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
10803 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
10804 { "_wxGDIObject","_class_wxGDIObject",0},
10805 { "_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
10806 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
10807 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
10808 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
10809 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
10810 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
10811 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
10812 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
10813 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
10814 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
10815 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
10816 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
10817 { "_wxDC","_class_wxDC",0},
10818 { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10819 { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10820 { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
10821 { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject},
10822 { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
10823 { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject},
10824 { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
10825 { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject},
10826 { "_class_wxObject","_class_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
10827 { "_class_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
10828 { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
10829 { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
10830 { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
10831 { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
10832 { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
10833 { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
10834 { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
10835 { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
10836 { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
10837 { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
10838 { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject},
10839 { "_class_wxObject","_wxDC",SwigwxDCTowxObject},
10840 { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
10841 { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject},
10842 { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
10843 { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject},
10844 { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject},
10845 { "_class_wxObject","_wxPen",SwigwxPenTowxObject},
10846 { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10847 { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10848 { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject},
10849 { "_class_wxObject","_wxColour",SwigwxColourTowxObject},
10850 { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
10851 { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject},
10852 { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject},
10853 { "_class_wxObject","_wxFont",SwigwxFontTowxObject},
10854 { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
10855 { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject},
10856 { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject},
10857 { "_class_wxObject","_wxIcon",SwigwxIconTowxObject},
10858 { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject},
10859 { "_class_wxObject","_wxMask",SwigwxMaskTowxObject},
10860 { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
10861 { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
10862 { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
10863 { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
10864 { "_class_wxObject","_wxObject",0},
10865 { "_size_t","_wxCoord",0},
10866 { "_size_t","_wxPrintQuality",0},
10867 { "_size_t","_time_t",0},
10868 { "_size_t","_unsigned_int",0},
10869 { "_size_t","_int",0},
10870 { "_size_t","_wxWindowID",0},
10871 { "_size_t","_uint",0},
10872 { "_class_wxRealPoint","_wxRealPoint",0},
10873 { "_class_wxMask","_wxMask",0},
10874 { "_wxColour","_class_wxColour",0},
10875 { "_wxBrush","_class_wxBrush",0},
10876 { "_uint","_wxCoord",0},
10877 { "_uint","_wxPrintQuality",0},
10878 { "_uint","_time_t",0},
10879 { "_uint","_size_t",0},
10880 { "_uint","_unsigned_int",0},
10881 { "_uint","_int",0},
10882 { "_uint","_wxWindowID",0},
10883 { "_wxChar","_char",0},
10884 { "_wxRect","_class_wxRect",0},
10885 { "_wxPoint","_class_wxPoint",0},
10886 { "_char","_wxChar",0},
10887 { "_wxBitmap","_class_wxBitmap",0},
10888 { "_wxPenList","_class_wxPenList",0},
10889 { "_wxWindowDC","_class_wxWindowDC",0},
10890 { "_class_wxIndividualLayoutConstraint","_wxIndividualLayoutConstraint",0},
10891 { "_class_wxColourDatabase","_wxColourDatabase",0},
10892 { "_EBool","_wxCoord",0},
10893 { "_EBool","_wxPrintQuality",0},
10894 { "_EBool","_signed_int",0},
10895 { "_EBool","_int",0},
10896 { "_EBool","_wxWindowID",0},
10897 { "_class_wxRegion","_wxRegion",0},
10898 { "_wxFont","_class_wxFont",0},
10899 { "_unsigned_long","_long",0},
10900 { "_class_wxRect","_wxRect",0},
10901 { "_class_wxDC","_class_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
10902 { "_class_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
10903 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
10904 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
10905 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
10906 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
10907 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
10908 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
10909 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
10910 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
10911 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
10912 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
10913 { "_class_wxDC","_wxDC",0},
10914 { "_class_wxBrushList","_wxBrushList",0},
10915 { "_class_wxPenList","_wxPenList",0},
10916 { "_wxAcceleratorEntry","_class_wxAcceleratorEntry",0},
10917 { "_signed_int","_wxCoord",0},
10918 { "_signed_int","_wxPrintQuality",0},
10919 { "_signed_int","_EBool",0},
10920 { "_signed_int","_wxWindowID",0},
10921 { "_signed_int","_int",0},
10922 { "_wxLayoutConstraints","_class_wxLayoutConstraints",0},
10923 { "_wxMetaFileDC","_class_wxMetaFileDC",0},
10924 { "_wxScreenDC","_class_wxScreenDC",0},
10925 { "_WXTYPE","_short",0},
10926 { "_WXTYPE","_signed_short",0},
10927 { "_WXTYPE","_unsigned_short",0},
10928 { "_class_wxBrush","_wxBrush",0},
10929 { "_unsigned_short","_WXTYPE",0},
10930 { "_unsigned_short","_short",0},
10931 { "_class_wxFont","_wxFont",0},
10932 { "_wxBusyInfo","_class_wxBusyInfo",0},
10933 { "_wxFontList","_class_wxFontList",0},
10934 { "_wxClientDC","_class_wxClientDC",0},
10935 { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10936 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10937 { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
10938 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
10939 { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
10940 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
10941 { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
10942 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
10943 { "_wxObject","_class_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
10944 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
10945 { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
10946 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
10947 { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
10948 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
10949 { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
10950 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
10951 { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
10952 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
10953 { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
10954 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
10955 { "_wxObject","_class_wxDC",SwigwxDCTowxObject},
10956 { "_wxObject","_wxDC",SwigwxDCTowxObject},
10957 { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
10958 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
10959 { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
10960 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
10961 { "_wxObject","_class_wxPen",SwigwxPenTowxObject},
10962 { "_wxObject","_wxPen",SwigwxPenTowxObject},
10963 { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10964 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10965 { "_wxObject","_class_wxColour",SwigwxColourTowxObject},
10966 { "_wxObject","_wxColour",SwigwxColourTowxObject},
10967 { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
10968 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
10969 { "_wxObject","_class_wxFont",SwigwxFontTowxObject},
10970 { "_wxObject","_wxFont",SwigwxFontTowxObject},
10971 { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
10972 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
10973 { "_wxObject","_class_wxIcon",SwigwxIconTowxObject},
10974 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
10975 { "_wxObject","_class_wxMask",SwigwxMaskTowxObject},
10976 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
10977 { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
10978 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
10979 { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
10980 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
10981 { "_wxObject","_class_wxObject",0},
10982 { "_class_wxPoint","_wxPoint",0},
10983 { "_wxRealPoint","_class_wxRealPoint",0},
10984 { "_signed_short","_WXTYPE",0},
10985 { "_signed_short","_short",0},
10986 { "_wxMemoryDC","_class_wxMemoryDC",0},
10987 { "_wxPaintDC","_class_wxPaintDC",0},
10988 { "_class_wxWindowDC","_wxWindowDC",0},
10989 { "_class_wxAcceleratorEntry","_wxAcceleratorEntry",0},
10990 { "_class_wxCursor","_wxCursor",0},
10991 { "_unsigned_char","_byte",0},
10992 { "_class_wxMetaFileDC","_wxMetaFileDC",0},
10993 { "_unsigned_int","_wxCoord",0},
10994 { "_unsigned_int","_wxPrintQuality",0},
10995 { "_unsigned_int","_time_t",0},
10996 { "_unsigned_int","_size_t",0},
10997 { "_unsigned_int","_uint",0},
10998 { "_unsigned_int","_wxWindowID",0},
10999 { "_unsigned_int","_int",0},
11000 { "_wxIcon","_class_wxIcon",0},
11001 { "_class_wxPen","_wxPen",0},
11002 { "_short","_WXTYPE",0},
11003 { "_short","_unsigned_short",0},
11004 { "_short","_signed_short",0},
11005 { "_class_wxImageList","_wxImageList",0},
11006 { "_wxWindowID","_wxCoord",0},
11007 { "_wxWindowID","_wxPrintQuality",0},
11008 { "_wxWindowID","_time_t",0},
11009 { "_wxWindowID","_size_t",0},
11010 { "_wxWindowID","_EBool",0},
11011 { "_wxWindowID","_uint",0},
11012 { "_wxWindowID","_int",0},
11013 { "_wxWindowID","_signed_int",0},
11014 { "_wxWindowID","_unsigned_int",0},
11015 { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
11016 { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
11017 { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
11018 { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
11019 { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
11020 { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
11021 { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
11022 { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
11023 { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
11024 { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
11025 { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
11026 { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
11027 { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
11028 { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
11029 { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
11030 { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
11031 { "_class_wxGDIObject","_wxGDIObject",0},
11032 { "_int","_wxCoord",0},
11033 { "_int","_wxPrintQuality",0},
11034 { "_int","_time_t",0},
11035 { "_int","_size_t",0},
11036 { "_int","_EBool",0},
11037 { "_int","_uint",0},
11038 { "_int","_wxWindowID",0},
11039 { "_int","_unsigned_int",0},
11040 { "_int","_signed_int",0},
11041 { "_time_t","_wxCoord",0},
11042 { "_time_t","_wxPrintQuality",0},
11043 { "_time_t","_unsigned_int",0},
11044 { "_time_t","_int",0},
11045 { "_time_t","_wxWindowID",0},
11046 { "_time_t","_uint",0},
11047 { "_time_t","_size_t",0},
11048 { "_wxSize","_class_wxSize",0},
11049 { "_wxRegionIterator","_class_wxRegionIterator",0},
11050 { "_class_wxPaintDC","_wxPaintDC",0},
11051 { "_class_wxLayoutConstraints","_wxLayoutConstraints",0},
11052 { "_class_wxIcon","_wxIcon",0},
11053 { "_class_wxColour","_wxColour",0},
11054 { "_class_wxScreenDC","_wxScreenDC",0},
11055 { "_wxPalette","_class_wxPalette",0},
11056 { "_wxCoord","_int",0},
11057 { "_wxCoord","_signed_int",0},
11058 { "_wxCoord","_unsigned_int",0},
11059 { "_wxCoord","_wxWindowID",0},
11060 { "_wxCoord","_uint",0},
11061 { "_wxCoord","_EBool",0},
11062 { "_wxCoord","_size_t",0},
11063 { "_wxCoord","_time_t",0},
11064 { "_wxCoord","_wxPrintQuality",0},
11065 { "_wxRegion","_class_wxRegion",0},
11066 { "_class_wxBusyInfo","_wxBusyInfo",0},
11067 { "_class_wxFontList","_wxFontList",0},
11068 { "_class_wxClientDC","_wxClientDC",0},
11069 { "_wxBrushList","_class_wxBrushList",0},
11070 { "_class_wxSize","_wxSize",0},
11071 { "_class_wxBitmap","_wxBitmap",0},
11072 { "_class_wxMemoryDC","_wxMemoryDC",0},
11073 { "_class_wxPalette","_wxPalette",0},
11074{0,0,0}};
11075
11076static PyObject *SWIG_globals;
11077#ifdef __cplusplus
11078extern "C"
11079#endif
11080SWIGEXPORT(void) initgdic() {
11081 PyObject *m, *d;
11082 SWIG_globals = SWIG_newvarlink();
11083 m = Py_InitModule("gdic", gdicMethods);
11084 d = PyModule_GetDict(m);
11085 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
11086 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
11087 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
11088 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
11089 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
11090 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
11091 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
11092 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
11093 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
11094 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
11095 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
11096 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
11097 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
11098 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
11099 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
11100 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
11101 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
11102 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
11103 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
11104 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
11105 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
11106 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
11107 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
11108 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
11109 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
11110 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
11111 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
11112 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
11113 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
11114 PyDict_SetItemString(d,"cvar", SWIG_globals);
11115 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
11116 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
11117 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
11118 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
11119 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
11120 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
11121 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
11122 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
11123 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
11124 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
11125 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
11126 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
11127 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
11128 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
11129 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
11130 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
11131 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
11132 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
11133 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
11134 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
11135 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
11136 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
11137 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
11138 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
11139 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
11140 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
11141 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
11142 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
11143 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
11144 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
11145 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
11146 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
11147 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
11148 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
11149 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
11150 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
11151 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
11152 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
11153 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
11154 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
11155 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
11156 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
11157 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
11158 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
11159 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
11160 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
11161 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
11162 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
11163 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
11164 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
11165 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
11166 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
11167 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
11168 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
11169 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
11170 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
11171{
11172 int i;
11173 for (i = 0; _swig_mapping[i].n1; i++)
11174 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
11175}
11176}