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