]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi.cpp
8044ee56b6bcd0a954840ef31009ec72ac34ccc9
[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 wxColour & _result_ref = wxPen_GetColour(_arg0);
3794 _result = (wxColour *) &_result_ref;
3795
3796 wxPy_END_ALLOW_THREADS;
3797 if (PyErr_Occurred()) return NULL;
3798 } if (_result) {
3799 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
3800 _resultobj = Py_BuildValue("s",_ptemp);
3801 } else {
3802 Py_INCREF(Py_None);
3803 _resultobj = Py_None;
3804 }
3805 return _resultobj;
3806 }
3807
3808 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
3809 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject * _resultobj;
3811 int _result;
3812 wxPen * _arg0;
3813 PyObject * _argo0 = 0;
3814 char *_kwnames[] = { "self", NULL };
3815
3816 self = self;
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
3818 return NULL;
3819 if (_argo0) {
3820 if (_argo0 == Py_None) { _arg0 = NULL; }
3821 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3822 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
3823 return NULL;
3824 }
3825 }
3826 {
3827 wxPy_BEGIN_ALLOW_THREADS;
3828 _result = (int )wxPen_GetJoin(_arg0);
3829
3830 wxPy_END_ALLOW_THREADS;
3831 if (PyErr_Occurred()) return NULL;
3832 } _resultobj = Py_BuildValue("i",_result);
3833 return _resultobj;
3834 }
3835
3836 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
3837 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3838 PyObject * _resultobj;
3839 int _result;
3840 wxPen * _arg0;
3841 PyObject * _argo0 = 0;
3842 char *_kwnames[] = { "self", NULL };
3843
3844 self = self;
3845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
3846 return NULL;
3847 if (_argo0) {
3848 if (_argo0 == Py_None) { _arg0 = NULL; }
3849 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3850 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
3851 return NULL;
3852 }
3853 }
3854 {
3855 wxPy_BEGIN_ALLOW_THREADS;
3856 _result = (int )wxPen_GetStyle(_arg0);
3857
3858 wxPy_END_ALLOW_THREADS;
3859 if (PyErr_Occurred()) return NULL;
3860 } _resultobj = Py_BuildValue("i",_result);
3861 return _resultobj;
3862 }
3863
3864 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
3865 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject * _resultobj;
3867 int _result;
3868 wxPen * _arg0;
3869 PyObject * _argo0 = 0;
3870 char *_kwnames[] = { "self", NULL };
3871
3872 self = self;
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
3874 return NULL;
3875 if (_argo0) {
3876 if (_argo0 == Py_None) { _arg0 = NULL; }
3877 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3878 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
3879 return NULL;
3880 }
3881 }
3882 {
3883 wxPy_BEGIN_ALLOW_THREADS;
3884 _result = (int )wxPen_GetWidth(_arg0);
3885
3886 wxPy_END_ALLOW_THREADS;
3887 if (PyErr_Occurred()) return NULL;
3888 } _resultobj = Py_BuildValue("i",_result);
3889 return _resultobj;
3890 }
3891
3892 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
3893 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3894 PyObject * _resultobj;
3895 bool _result;
3896 wxPen * _arg0;
3897 PyObject * _argo0 = 0;
3898 char *_kwnames[] = { "self", NULL };
3899
3900 self = self;
3901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
3902 return NULL;
3903 if (_argo0) {
3904 if (_argo0 == Py_None) { _arg0 = NULL; }
3905 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3906 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
3907 return NULL;
3908 }
3909 }
3910 {
3911 wxPy_BEGIN_ALLOW_THREADS;
3912 _result = (bool )wxPen_Ok(_arg0);
3913
3914 wxPy_END_ALLOW_THREADS;
3915 if (PyErr_Occurred()) return NULL;
3916 } _resultobj = Py_BuildValue("i",_result);
3917 return _resultobj;
3918 }
3919
3920 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
3921 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject * _resultobj;
3923 wxPen * _arg0;
3924 int _arg1;
3925 PyObject * _argo0 = 0;
3926 char *_kwnames[] = { "self","cap_style", NULL };
3927
3928 self = self;
3929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
3930 return NULL;
3931 if (_argo0) {
3932 if (_argo0 == Py_None) { _arg0 = NULL; }
3933 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3934 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
3935 return NULL;
3936 }
3937 }
3938 {
3939 wxPy_BEGIN_ALLOW_THREADS;
3940 wxPen_SetCap(_arg0,_arg1);
3941
3942 wxPy_END_ALLOW_THREADS;
3943 if (PyErr_Occurred()) return NULL;
3944 } Py_INCREF(Py_None);
3945 _resultobj = Py_None;
3946 return _resultobj;
3947 }
3948
3949 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
3950 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3951 PyObject * _resultobj;
3952 wxPen * _arg0;
3953 wxColour * _arg1;
3954 PyObject * _argo0 = 0;
3955 wxColour temp;
3956 PyObject * _obj1 = 0;
3957 char *_kwnames[] = { "self","colour", NULL };
3958
3959 self = self;
3960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
3961 return NULL;
3962 if (_argo0) {
3963 if (_argo0 == Py_None) { _arg0 = NULL; }
3964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
3966 return NULL;
3967 }
3968 }
3969 {
3970 _arg1 = &temp;
3971 if (! wxColour_helper(_obj1, &_arg1))
3972 return NULL;
3973 }
3974 {
3975 wxPy_BEGIN_ALLOW_THREADS;
3976 wxPen_SetColour(_arg0,*_arg1);
3977
3978 wxPy_END_ALLOW_THREADS;
3979 if (PyErr_Occurred()) return NULL;
3980 } Py_INCREF(Py_None);
3981 _resultobj = Py_None;
3982 return _resultobj;
3983 }
3984
3985 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
3986 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
3987 PyObject * _resultobj;
3988 wxPen * _arg0;
3989 int _arg1;
3990 PyObject * _argo0 = 0;
3991 char *_kwnames[] = { "self","join_style", NULL };
3992
3993 self = self;
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
3995 return NULL;
3996 if (_argo0) {
3997 if (_argo0 == Py_None) { _arg0 = NULL; }
3998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
3999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
4000 return NULL;
4001 }
4002 }
4003 {
4004 wxPy_BEGIN_ALLOW_THREADS;
4005 wxPen_SetJoin(_arg0,_arg1);
4006
4007 wxPy_END_ALLOW_THREADS;
4008 if (PyErr_Occurred()) return NULL;
4009 } Py_INCREF(Py_None);
4010 _resultobj = Py_None;
4011 return _resultobj;
4012 }
4013
4014 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4015 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4016 PyObject * _resultobj;
4017 wxPen * _arg0;
4018 int _arg1;
4019 PyObject * _argo0 = 0;
4020 char *_kwnames[] = { "self","style", NULL };
4021
4022 self = self;
4023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
4024 return NULL;
4025 if (_argo0) {
4026 if (_argo0 == Py_None) { _arg0 = NULL; }
4027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
4029 return NULL;
4030 }
4031 }
4032 {
4033 wxPy_BEGIN_ALLOW_THREADS;
4034 wxPen_SetStyle(_arg0,_arg1);
4035
4036 wxPy_END_ALLOW_THREADS;
4037 if (PyErr_Occurred()) return NULL;
4038 } Py_INCREF(Py_None);
4039 _resultobj = Py_None;
4040 return _resultobj;
4041 }
4042
4043 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
4044 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4045 PyObject * _resultobj;
4046 wxPen * _arg0;
4047 int _arg1;
4048 PyObject * _argo0 = 0;
4049 char *_kwnames[] = { "self","width", NULL };
4050
4051 self = self;
4052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
4053 return NULL;
4054 if (_argo0) {
4055 if (_argo0 == Py_None) { _arg0 = NULL; }
4056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
4058 return NULL;
4059 }
4060 }
4061 {
4062 wxPy_BEGIN_ALLOW_THREADS;
4063 wxPen_SetWidth(_arg0,_arg1);
4064
4065 wxPy_END_ALLOW_THREADS;
4066 if (PyErr_Occurred()) return NULL;
4067 } Py_INCREF(Py_None);
4068 _resultobj = Py_None;
4069 return _resultobj;
4070 }
4071
4072 #define wxPen_GetDashes(_swigobj,_swigarg0) (_swigobj->GetDashes(_swigarg0))
4073 static PyObject *_wrap_wxPen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4074 PyObject * _resultobj;
4075 int _result;
4076 wxPen * _arg0;
4077 wxDash ** _arg1;
4078 PyObject * _argo0 = 0;
4079 PyObject * _argo1 = 0;
4080 char *_kwnames[] = { "self","dashes", NULL };
4081
4082 self = self;
4083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_GetDashes",_kwnames,&_argo0,&_argo1))
4084 return NULL;
4085 if (_argo0) {
4086 if (_argo0 == Py_None) { _arg0 = NULL; }
4087 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4088 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetDashes. Expected _wxPen_p.");
4089 return NULL;
4090 }
4091 }
4092 if (_argo1) {
4093 if (_argo1 == Py_None) { _arg1 = NULL; }
4094 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxDash_pp")) {
4095 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_GetDashes. Expected _wxDash_pp.");
4096 return NULL;
4097 }
4098 }
4099 {
4100 wxPy_BEGIN_ALLOW_THREADS;
4101 _result = (int )wxPen_GetDashes(_arg0,_arg1);
4102
4103 wxPy_END_ALLOW_THREADS;
4104 if (PyErr_Occurred()) return NULL;
4105 } _resultobj = Py_BuildValue("i",_result);
4106 return _resultobj;
4107 }
4108
4109 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
4110 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
4111 PyObject * _resultobj;
4112 wxPen * _arg0;
4113 int _arg1;
4114 wxDash * _arg2;
4115 PyObject * _argo0 = 0;
4116 PyObject * _obj2 = 0;
4117 char *_kwnames[] = { "self","choices", NULL };
4118
4119 self = self;
4120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
4121 return NULL;
4122 if (_argo0) {
4123 if (_argo0 == Py_None) { _arg0 = NULL; }
4124 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
4125 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
4126 return NULL;
4127 }
4128 }
4129 if (_obj2)
4130 {
4131 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
4132 if (_arg2 == NULL) {
4133 return NULL;
4134 }
4135 }
4136 {
4137 if (_obj2) {
4138 _arg1 = PyList_Size(_obj2);
4139 }
4140 else {
4141 _arg1 = 0;
4142 }
4143 }
4144 {
4145 wxPy_BEGIN_ALLOW_THREADS;
4146 wxPen_SetDashes(_arg0,_arg1,_arg2);
4147
4148 wxPy_END_ALLOW_THREADS;
4149 if (PyErr_Occurred()) return NULL;
4150 } Py_INCREF(Py_None);
4151 _resultobj = Py_None;
4152 {
4153 delete [] _arg2;
4154 }
4155 return _resultobj;
4156 }
4157
4158 static void *SwigwxPenListTowxObject(void *ptr) {
4159 wxPenList *src;
4160 wxObject *dest;
4161 src = (wxPenList *) ptr;
4162 dest = (wxObject *) src;
4163 return (void *) dest;
4164 }
4165
4166 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
4167 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
4168 PyObject * _resultobj;
4169 wxPenList * _arg0;
4170 wxPen * _arg1;
4171 PyObject * _argo0 = 0;
4172 PyObject * _argo1 = 0;
4173 char *_kwnames[] = { "self","pen", NULL };
4174
4175 self = self;
4176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
4177 return NULL;
4178 if (_argo0) {
4179 if (_argo0 == Py_None) { _arg0 = NULL; }
4180 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4181 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
4182 return NULL;
4183 }
4184 }
4185 if (_argo1) {
4186 if (_argo1 == Py_None) { _arg1 = NULL; }
4187 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
4188 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
4189 return NULL;
4190 }
4191 }
4192 {
4193 wxPy_BEGIN_ALLOW_THREADS;
4194 wxPenList_AddPen(_arg0,_arg1);
4195
4196 wxPy_END_ALLOW_THREADS;
4197 if (PyErr_Occurred()) return NULL;
4198 } Py_INCREF(Py_None);
4199 _resultobj = Py_None;
4200 return _resultobj;
4201 }
4202
4203 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
4204 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
4205 PyObject * _resultobj;
4206 wxPen * _result;
4207 wxPenList * _arg0;
4208 wxColour * _arg1;
4209 int _arg2;
4210 int _arg3;
4211 PyObject * _argo0 = 0;
4212 wxColour temp;
4213 PyObject * _obj1 = 0;
4214 char *_kwnames[] = { "self","colour","width","style", NULL };
4215 char _ptemp[128];
4216
4217 self = self;
4218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
4219 return NULL;
4220 if (_argo0) {
4221 if (_argo0 == Py_None) { _arg0 = NULL; }
4222 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4223 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
4224 return NULL;
4225 }
4226 }
4227 {
4228 _arg1 = &temp;
4229 if (! wxColour_helper(_obj1, &_arg1))
4230 return NULL;
4231 }
4232 {
4233 wxPy_BEGIN_ALLOW_THREADS;
4234 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
4235
4236 wxPy_END_ALLOW_THREADS;
4237 if (PyErr_Occurred()) return NULL;
4238 } if (_result) {
4239 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
4240 _resultobj = Py_BuildValue("s",_ptemp);
4241 } else {
4242 Py_INCREF(Py_None);
4243 _resultobj = Py_None;
4244 }
4245 return _resultobj;
4246 }
4247
4248 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
4249 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
4250 PyObject * _resultobj;
4251 wxPenList * _arg0;
4252 wxPen * _arg1;
4253 PyObject * _argo0 = 0;
4254 PyObject * _argo1 = 0;
4255 char *_kwnames[] = { "self","pen", NULL };
4256
4257 self = self;
4258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
4259 return NULL;
4260 if (_argo0) {
4261 if (_argo0 == Py_None) { _arg0 = NULL; }
4262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
4263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
4264 return NULL;
4265 }
4266 }
4267 if (_argo1) {
4268 if (_argo1 == Py_None) { _arg1 = NULL; }
4269 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
4270 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
4271 return NULL;
4272 }
4273 }
4274 {
4275 wxPy_BEGIN_ALLOW_THREADS;
4276 wxPenList_RemovePen(_arg0,_arg1);
4277
4278 wxPy_END_ALLOW_THREADS;
4279 if (PyErr_Occurred()) return NULL;
4280 } Py_INCREF(Py_None);
4281 _resultobj = Py_None;
4282 return _resultobj;
4283 }
4284
4285 static void *SwigwxBrushTowxGDIObject(void *ptr) {
4286 wxBrush *src;
4287 wxGDIObject *dest;
4288 src = (wxBrush *) ptr;
4289 dest = (wxGDIObject *) src;
4290 return (void *) dest;
4291 }
4292
4293 static void *SwigwxBrushTowxObject(void *ptr) {
4294 wxBrush *src;
4295 wxObject *dest;
4296 src = (wxBrush *) ptr;
4297 dest = (wxObject *) src;
4298 return (void *) dest;
4299 }
4300
4301 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
4302 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4303 PyObject * _resultobj;
4304 wxBrush * _result;
4305 wxColour * _arg0;
4306 int _arg1 = (int ) wxSOLID;
4307 wxColour temp;
4308 PyObject * _obj0 = 0;
4309 char *_kwnames[] = { "colour","style", NULL };
4310 char _ptemp[128];
4311
4312 self = self;
4313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
4314 return NULL;
4315 {
4316 _arg0 = &temp;
4317 if (! wxColour_helper(_obj0, &_arg0))
4318 return NULL;
4319 }
4320 {
4321 wxPy_BEGIN_ALLOW_THREADS;
4322 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
4323
4324 wxPy_END_ALLOW_THREADS;
4325 if (PyErr_Occurred()) return NULL;
4326 } if (_result) {
4327 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4328 _resultobj = Py_BuildValue("s",_ptemp);
4329 } else {
4330 Py_INCREF(Py_None);
4331 _resultobj = Py_None;
4332 }
4333 return _resultobj;
4334 }
4335
4336 #define delete_wxBrush(_swigobj) (delete _swigobj)
4337 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4338 PyObject * _resultobj;
4339 wxBrush * _arg0;
4340 PyObject * _argo0 = 0;
4341 char *_kwnames[] = { "self", NULL };
4342
4343 self = self;
4344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
4345 return NULL;
4346 if (_argo0) {
4347 if (_argo0 == Py_None) { _arg0 = NULL; }
4348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
4350 return NULL;
4351 }
4352 }
4353 {
4354 wxPy_BEGIN_ALLOW_THREADS;
4355 delete_wxBrush(_arg0);
4356
4357 wxPy_END_ALLOW_THREADS;
4358 if (PyErr_Occurred()) return NULL;
4359 } Py_INCREF(Py_None);
4360 _resultobj = Py_None;
4361 return _resultobj;
4362 }
4363
4364 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
4365 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4366 PyObject * _resultobj;
4367 wxColour * _result;
4368 wxBrush * _arg0;
4369 PyObject * _argo0 = 0;
4370 char *_kwnames[] = { "self", NULL };
4371 char _ptemp[128];
4372
4373 self = self;
4374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
4375 return NULL;
4376 if (_argo0) {
4377 if (_argo0 == Py_None) { _arg0 = NULL; }
4378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
4380 return NULL;
4381 }
4382 }
4383 {
4384 wxPy_BEGIN_ALLOW_THREADS;
4385 wxColour & _result_ref = wxBrush_GetColour(_arg0);
4386 _result = (wxColour *) &_result_ref;
4387
4388 wxPy_END_ALLOW_THREADS;
4389 if (PyErr_Occurred()) return NULL;
4390 } if (_result) {
4391 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4392 _resultobj = Py_BuildValue("s",_ptemp);
4393 } else {
4394 Py_INCREF(Py_None);
4395 _resultobj = Py_None;
4396 }
4397 return _resultobj;
4398 }
4399
4400 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
4401 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4402 PyObject * _resultobj;
4403 wxBitmap * _result;
4404 wxBrush * _arg0;
4405 PyObject * _argo0 = 0;
4406 char *_kwnames[] = { "self", NULL };
4407 char _ptemp[128];
4408
4409 self = self;
4410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
4411 return NULL;
4412 if (_argo0) {
4413 if (_argo0 == Py_None) { _arg0 = NULL; }
4414 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4415 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
4416 return NULL;
4417 }
4418 }
4419 {
4420 wxPy_BEGIN_ALLOW_THREADS;
4421 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
4422
4423 wxPy_END_ALLOW_THREADS;
4424 if (PyErr_Occurred()) return NULL;
4425 } if (_result) {
4426 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
4427 _resultobj = Py_BuildValue("s",_ptemp);
4428 } else {
4429 Py_INCREF(Py_None);
4430 _resultobj = Py_None;
4431 }
4432 return _resultobj;
4433 }
4434
4435 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
4436 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4437 PyObject * _resultobj;
4438 int _result;
4439 wxBrush * _arg0;
4440 PyObject * _argo0 = 0;
4441 char *_kwnames[] = { "self", NULL };
4442
4443 self = self;
4444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
4445 return NULL;
4446 if (_argo0) {
4447 if (_argo0 == Py_None) { _arg0 = NULL; }
4448 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4449 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
4450 return NULL;
4451 }
4452 }
4453 {
4454 wxPy_BEGIN_ALLOW_THREADS;
4455 _result = (int )wxBrush_GetStyle(_arg0);
4456
4457 wxPy_END_ALLOW_THREADS;
4458 if (PyErr_Occurred()) return NULL;
4459 } _resultobj = Py_BuildValue("i",_result);
4460 return _resultobj;
4461 }
4462
4463 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
4464 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject * _resultobj;
4466 bool _result;
4467 wxBrush * _arg0;
4468 PyObject * _argo0 = 0;
4469 char *_kwnames[] = { "self", NULL };
4470
4471 self = self;
4472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
4473 return NULL;
4474 if (_argo0) {
4475 if (_argo0 == Py_None) { _arg0 = NULL; }
4476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
4478 return NULL;
4479 }
4480 }
4481 {
4482 wxPy_BEGIN_ALLOW_THREADS;
4483 _result = (bool )wxBrush_Ok(_arg0);
4484
4485 wxPy_END_ALLOW_THREADS;
4486 if (PyErr_Occurred()) return NULL;
4487 } _resultobj = Py_BuildValue("i",_result);
4488 return _resultobj;
4489 }
4490
4491 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
4492 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4493 PyObject * _resultobj;
4494 wxBrush * _arg0;
4495 wxColour * _arg1;
4496 PyObject * _argo0 = 0;
4497 wxColour temp;
4498 PyObject * _obj1 = 0;
4499 char *_kwnames[] = { "self","colour", NULL };
4500
4501 self = self;
4502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
4503 return NULL;
4504 if (_argo0) {
4505 if (_argo0 == Py_None) { _arg0 = NULL; }
4506 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4507 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
4508 return NULL;
4509 }
4510 }
4511 {
4512 _arg1 = &temp;
4513 if (! wxColour_helper(_obj1, &_arg1))
4514 return NULL;
4515 }
4516 {
4517 wxPy_BEGIN_ALLOW_THREADS;
4518 wxBrush_SetColour(_arg0,*_arg1);
4519
4520 wxPy_END_ALLOW_THREADS;
4521 if (PyErr_Occurred()) return NULL;
4522 } Py_INCREF(Py_None);
4523 _resultobj = Py_None;
4524 return _resultobj;
4525 }
4526
4527 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
4528 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
4529 PyObject * _resultobj;
4530 wxBrush * _arg0;
4531 wxBitmap * _arg1;
4532 PyObject * _argo0 = 0;
4533 PyObject * _argo1 = 0;
4534 char *_kwnames[] = { "self","bitmap", NULL };
4535
4536 self = self;
4537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
4538 return NULL;
4539 if (_argo0) {
4540 if (_argo0 == Py_None) { _arg0 = NULL; }
4541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
4543 return NULL;
4544 }
4545 }
4546 if (_argo1) {
4547 if (_argo1 == Py_None) { _arg1 = NULL; }
4548 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
4549 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
4550 return NULL;
4551 }
4552 }
4553 {
4554 wxPy_BEGIN_ALLOW_THREADS;
4555 wxBrush_SetStipple(_arg0,*_arg1);
4556
4557 wxPy_END_ALLOW_THREADS;
4558 if (PyErr_Occurred()) return NULL;
4559 } Py_INCREF(Py_None);
4560 _resultobj = Py_None;
4561 return _resultobj;
4562 }
4563
4564 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4565 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4566 PyObject * _resultobj;
4567 wxBrush * _arg0;
4568 int _arg1;
4569 PyObject * _argo0 = 0;
4570 char *_kwnames[] = { "self","style", NULL };
4571
4572 self = self;
4573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
4574 return NULL;
4575 if (_argo0) {
4576 if (_argo0 == Py_None) { _arg0 = NULL; }
4577 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
4578 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
4579 return NULL;
4580 }
4581 }
4582 {
4583 wxPy_BEGIN_ALLOW_THREADS;
4584 wxBrush_SetStyle(_arg0,_arg1);
4585
4586 wxPy_END_ALLOW_THREADS;
4587 if (PyErr_Occurred()) return NULL;
4588 } Py_INCREF(Py_None);
4589 _resultobj = Py_None;
4590 return _resultobj;
4591 }
4592
4593 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
4594 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4595 PyObject * _resultobj;
4596 wxBrushList * _arg0;
4597 wxBrush * _arg1;
4598 PyObject * _argo0 = 0;
4599 PyObject * _argo1 = 0;
4600 char *_kwnames[] = { "self","brush", NULL };
4601
4602 self = self;
4603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
4604 return NULL;
4605 if (_argo0) {
4606 if (_argo0 == Py_None) { _arg0 = NULL; }
4607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
4609 return NULL;
4610 }
4611 }
4612 if (_argo1) {
4613 if (_argo1 == Py_None) { _arg1 = NULL; }
4614 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4615 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
4616 return NULL;
4617 }
4618 }
4619 {
4620 wxPy_BEGIN_ALLOW_THREADS;
4621 wxBrushList_AddBrush(_arg0,_arg1);
4622
4623 wxPy_END_ALLOW_THREADS;
4624 if (PyErr_Occurred()) return NULL;
4625 } Py_INCREF(Py_None);
4626 _resultobj = Py_None;
4627 return _resultobj;
4628 }
4629
4630 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
4631 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4632 PyObject * _resultobj;
4633 wxBrush * _result;
4634 wxBrushList * _arg0;
4635 wxColour * _arg1;
4636 int _arg2;
4637 PyObject * _argo0 = 0;
4638 wxColour temp;
4639 PyObject * _obj1 = 0;
4640 char *_kwnames[] = { "self","colour","style", NULL };
4641 char _ptemp[128];
4642
4643 self = self;
4644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
4645 return NULL;
4646 if (_argo0) {
4647 if (_argo0 == Py_None) { _arg0 = NULL; }
4648 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4649 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
4650 return NULL;
4651 }
4652 }
4653 {
4654 _arg1 = &temp;
4655 if (! wxColour_helper(_obj1, &_arg1))
4656 return NULL;
4657 }
4658 {
4659 wxPy_BEGIN_ALLOW_THREADS;
4660 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
4661
4662 wxPy_END_ALLOW_THREADS;
4663 if (PyErr_Occurred()) return NULL;
4664 } if (_result) {
4665 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
4666 _resultobj = Py_BuildValue("s",_ptemp);
4667 } else {
4668 Py_INCREF(Py_None);
4669 _resultobj = Py_None;
4670 }
4671 return _resultobj;
4672 }
4673
4674 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
4675 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
4676 PyObject * _resultobj;
4677 wxBrushList * _arg0;
4678 wxBrush * _arg1;
4679 PyObject * _argo0 = 0;
4680 PyObject * _argo1 = 0;
4681 char *_kwnames[] = { "self","brush", NULL };
4682
4683 self = self;
4684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
4685 return NULL;
4686 if (_argo0) {
4687 if (_argo0 == Py_None) { _arg0 = NULL; }
4688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
4689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
4690 return NULL;
4691 }
4692 }
4693 if (_argo1) {
4694 if (_argo1 == Py_None) { _arg1 = NULL; }
4695 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
4696 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
4697 return NULL;
4698 }
4699 }
4700 {
4701 wxPy_BEGIN_ALLOW_THREADS;
4702 wxBrushList_RemoveBrush(_arg0,_arg1);
4703
4704 wxPy_END_ALLOW_THREADS;
4705 if (PyErr_Occurred()) return NULL;
4706 } Py_INCREF(Py_None);
4707 _resultobj = Py_None;
4708 return _resultobj;
4709 }
4710
4711 static void *SwigwxDCTowxObject(void *ptr) {
4712 wxDC *src;
4713 wxObject *dest;
4714 src = (wxDC *) ptr;
4715 dest = (wxObject *) src;
4716 return (void *) dest;
4717 }
4718
4719 #define delete_wxDC(_swigobj) (delete _swigobj)
4720 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
4721 PyObject * _resultobj;
4722 wxDC * _arg0;
4723 PyObject * _argo0 = 0;
4724 char *_kwnames[] = { "self", NULL };
4725
4726 self = self;
4727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
4728 return NULL;
4729 if (_argo0) {
4730 if (_argo0 == Py_None) { _arg0 = NULL; }
4731 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4732 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
4733 return NULL;
4734 }
4735 }
4736 {
4737 wxPy_BEGIN_ALLOW_THREADS;
4738 delete_wxDC(_arg0);
4739
4740 wxPy_END_ALLOW_THREADS;
4741 if (PyErr_Occurred()) return NULL;
4742 } Py_INCREF(Py_None);
4743 _resultobj = Py_None;
4744 return _resultobj;
4745 }
4746
4747 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
4748 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
4749 PyObject * _resultobj;
4750 wxDC * _arg0;
4751 PyObject * _argo0 = 0;
4752 char *_kwnames[] = { "self", NULL };
4753
4754 self = self;
4755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
4756 return NULL;
4757 if (_argo0) {
4758 if (_argo0 == Py_None) { _arg0 = NULL; }
4759 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4760 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
4761 return NULL;
4762 }
4763 }
4764 {
4765 wxPy_BEGIN_ALLOW_THREADS;
4766 wxDC_BeginDrawing(_arg0);
4767
4768 wxPy_END_ALLOW_THREADS;
4769 if (PyErr_Occurred()) return NULL;
4770 } Py_INCREF(Py_None);
4771 _resultobj = Py_None;
4772 return _resultobj;
4773 }
4774
4775 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
4776 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
4777 PyObject * _resultobj;
4778 bool _result;
4779 wxDC * _arg0;
4780 long _arg1;
4781 long _arg2;
4782 long _arg3;
4783 long _arg4;
4784 wxDC * _arg5;
4785 long _arg6;
4786 long _arg7;
4787 int _arg8 = (int ) wxCOPY;
4788 int _arg9 = (int ) FALSE;
4789 PyObject * _argo0 = 0;
4790 PyObject * _argo5 = 0;
4791 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
4792
4793 self = self;
4794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
4795 return NULL;
4796 if (_argo0) {
4797 if (_argo0 == Py_None) { _arg0 = NULL; }
4798 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4799 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
4800 return NULL;
4801 }
4802 }
4803 if (_argo5) {
4804 if (_argo5 == Py_None) { _arg5 = NULL; }
4805 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
4806 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
4807 return NULL;
4808 }
4809 }
4810 {
4811 wxPy_BEGIN_ALLOW_THREADS;
4812 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
4813
4814 wxPy_END_ALLOW_THREADS;
4815 if (PyErr_Occurred()) return NULL;
4816 } _resultobj = Py_BuildValue("i",_result);
4817 return _resultobj;
4818 }
4819
4820 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
4821 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4822 PyObject * _resultobj;
4823 wxDC * _arg0;
4824 PyObject * _argo0 = 0;
4825 char *_kwnames[] = { "self", NULL };
4826
4827 self = self;
4828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
4829 return NULL;
4830 if (_argo0) {
4831 if (_argo0 == Py_None) { _arg0 = NULL; }
4832 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4833 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
4834 return NULL;
4835 }
4836 }
4837 {
4838 wxPy_BEGIN_ALLOW_THREADS;
4839 wxDC_Clear(_arg0);
4840
4841 wxPy_END_ALLOW_THREADS;
4842 if (PyErr_Occurred()) return NULL;
4843 } Py_INCREF(Py_None);
4844 _resultobj = Py_None;
4845 return _resultobj;
4846 }
4847
4848 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
4849 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
4850 PyObject * _resultobj;
4851 wxDC * _arg0;
4852 long _arg1;
4853 long _arg2;
4854 PyObject * _argo0 = 0;
4855 char *_kwnames[] = { "self","x","y", NULL };
4856
4857 self = self;
4858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
4859 return NULL;
4860 if (_argo0) {
4861 if (_argo0 == Py_None) { _arg0 = NULL; }
4862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
4864 return NULL;
4865 }
4866 }
4867 {
4868 wxPy_BEGIN_ALLOW_THREADS;
4869 wxDC_CrossHair(_arg0,_arg1,_arg2);
4870
4871 wxPy_END_ALLOW_THREADS;
4872 if (PyErr_Occurred()) return NULL;
4873 } Py_INCREF(Py_None);
4874 _resultobj = Py_None;
4875 return _resultobj;
4876 }
4877
4878 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
4879 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4880 PyObject * _resultobj;
4881 wxDC * _arg0;
4882 PyObject * _argo0 = 0;
4883 char *_kwnames[] = { "self", NULL };
4884
4885 self = self;
4886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
4887 return NULL;
4888 if (_argo0) {
4889 if (_argo0 == Py_None) { _arg0 = NULL; }
4890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
4892 return NULL;
4893 }
4894 }
4895 {
4896 wxPy_BEGIN_ALLOW_THREADS;
4897 wxDC_DestroyClippingRegion(_arg0);
4898
4899 wxPy_END_ALLOW_THREADS;
4900 if (PyErr_Occurred()) return NULL;
4901 } Py_INCREF(Py_None);
4902 _resultobj = Py_None;
4903 return _resultobj;
4904 }
4905
4906 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
4907 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
4908 PyObject * _resultobj;
4909 long _result;
4910 wxDC * _arg0;
4911 long _arg1;
4912 PyObject * _argo0 = 0;
4913 char *_kwnames[] = { "self","x", NULL };
4914
4915 self = self;
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
4917 return NULL;
4918 if (_argo0) {
4919 if (_argo0 == Py_None) { _arg0 = NULL; }
4920 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4921 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
4922 return NULL;
4923 }
4924 }
4925 {
4926 wxPy_BEGIN_ALLOW_THREADS;
4927 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
4928
4929 wxPy_END_ALLOW_THREADS;
4930 if (PyErr_Occurred()) return NULL;
4931 } _resultobj = Py_BuildValue("l",_result);
4932 return _resultobj;
4933 }
4934
4935 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
4936 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
4937 PyObject * _resultobj;
4938 long _result;
4939 wxDC * _arg0;
4940 long _arg1;
4941 PyObject * _argo0 = 0;
4942 char *_kwnames[] = { "self","x", NULL };
4943
4944 self = self;
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
4946 return NULL;
4947 if (_argo0) {
4948 if (_argo0 == Py_None) { _arg0 = NULL; }
4949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
4951 return NULL;
4952 }
4953 }
4954 {
4955 wxPy_BEGIN_ALLOW_THREADS;
4956 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
4957
4958 wxPy_END_ALLOW_THREADS;
4959 if (PyErr_Occurred()) return NULL;
4960 } _resultobj = Py_BuildValue("l",_result);
4961 return _resultobj;
4962 }
4963
4964 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
4965 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject * _resultobj;
4967 long _result;
4968 wxDC * _arg0;
4969 long _arg1;
4970 PyObject * _argo0 = 0;
4971 char *_kwnames[] = { "self","y", NULL };
4972
4973 self = self;
4974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
4975 return NULL;
4976 if (_argo0) {
4977 if (_argo0 == Py_None) { _arg0 = NULL; }
4978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
4979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
4980 return NULL;
4981 }
4982 }
4983 {
4984 wxPy_BEGIN_ALLOW_THREADS;
4985 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
4986
4987 wxPy_END_ALLOW_THREADS;
4988 if (PyErr_Occurred()) return NULL;
4989 } _resultobj = Py_BuildValue("l",_result);
4990 return _resultobj;
4991 }
4992
4993 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
4994 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
4995 PyObject * _resultobj;
4996 long _result;
4997 wxDC * _arg0;
4998 long _arg1;
4999 PyObject * _argo0 = 0;
5000 char *_kwnames[] = { "self","y", NULL };
5001
5002 self = self;
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
5004 return NULL;
5005 if (_argo0) {
5006 if (_argo0 == Py_None) { _arg0 = NULL; }
5007 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5008 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
5009 return NULL;
5010 }
5011 }
5012 {
5013 wxPy_BEGIN_ALLOW_THREADS;
5014 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
5015
5016 wxPy_END_ALLOW_THREADS;
5017 if (PyErr_Occurred()) return NULL;
5018 } _resultobj = Py_BuildValue("l",_result);
5019 return _resultobj;
5020 }
5021
5022 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5023 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
5024 PyObject * _resultobj;
5025 wxDC * _arg0;
5026 long _arg1;
5027 long _arg2;
5028 long _arg3;
5029 long _arg4;
5030 long _arg5;
5031 long _arg6;
5032 PyObject * _argo0 = 0;
5033 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
5034
5035 self = self;
5036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5037 return NULL;
5038 if (_argo0) {
5039 if (_argo0 == Py_None) { _arg0 = NULL; }
5040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
5042 return NULL;
5043 }
5044 }
5045 {
5046 wxPy_BEGIN_ALLOW_THREADS;
5047 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5048
5049 wxPy_END_ALLOW_THREADS;
5050 if (PyErr_Occurred()) return NULL;
5051 } Py_INCREF(Py_None);
5052 _resultobj = Py_None;
5053 return _resultobj;
5054 }
5055
5056 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
5057 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
5058 PyObject * _resultobj;
5059 wxDC * _arg0;
5060 long _arg1;
5061 long _arg2;
5062 long _arg3;
5063 PyObject * _argo0 = 0;
5064 char *_kwnames[] = { "self","x","y","radius", NULL };
5065
5066 self = self;
5067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
5068 return NULL;
5069 if (_argo0) {
5070 if (_argo0 == Py_None) { _arg0 = NULL; }
5071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
5073 return NULL;
5074 }
5075 }
5076 {
5077 wxPy_BEGIN_ALLOW_THREADS;
5078 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
5079
5080 wxPy_END_ALLOW_THREADS;
5081 if (PyErr_Occurred()) return NULL;
5082 } Py_INCREF(Py_None);
5083 _resultobj = Py_None;
5084 return _resultobj;
5085 }
5086
5087 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5088 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
5089 PyObject * _resultobj;
5090 wxDC * _arg0;
5091 long _arg1;
5092 long _arg2;
5093 long _arg3;
5094 long _arg4;
5095 PyObject * _argo0 = 0;
5096 char *_kwnames[] = { "self","x","y","width","height", NULL };
5097
5098 self = self;
5099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
5100 return NULL;
5101 if (_argo0) {
5102 if (_argo0 == Py_None) { _arg0 = NULL; }
5103 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5104 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
5105 return NULL;
5106 }
5107 }
5108 {
5109 wxPy_BEGIN_ALLOW_THREADS;
5110 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
5111
5112 wxPy_END_ALLOW_THREADS;
5113 if (PyErr_Occurred()) return NULL;
5114 } Py_INCREF(Py_None);
5115 _resultobj = Py_None;
5116 return _resultobj;
5117 }
5118
5119 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
5120 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
5121 PyObject * _resultobj;
5122 wxDC * _arg0;
5123 long _arg1;
5124 long _arg2;
5125 long _arg3;
5126 long _arg4;
5127 long _arg5;
5128 long _arg6;
5129 PyObject * _argo0 = 0;
5130 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
5131
5132 self = self;
5133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
5134 return NULL;
5135 if (_argo0) {
5136 if (_argo0 == Py_None) { _arg0 = NULL; }
5137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
5139 return NULL;
5140 }
5141 }
5142 {
5143 wxPy_BEGIN_ALLOW_THREADS;
5144 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
5145
5146 wxPy_END_ALLOW_THREADS;
5147 if (PyErr_Occurred()) return NULL;
5148 } Py_INCREF(Py_None);
5149 _resultobj = Py_None;
5150 return _resultobj;
5151 }
5152
5153 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
5154 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
5155 PyObject * _resultobj;
5156 wxDC * _arg0;
5157 wxIcon * _arg1;
5158 long _arg2;
5159 long _arg3;
5160 PyObject * _argo0 = 0;
5161 PyObject * _argo1 = 0;
5162 char *_kwnames[] = { "self","icon","x","y", NULL };
5163
5164 self = self;
5165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
5166 return NULL;
5167 if (_argo0) {
5168 if (_argo0 == Py_None) { _arg0 = NULL; }
5169 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5170 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
5171 return NULL;
5172 }
5173 }
5174 if (_argo1) {
5175 if (_argo1 == Py_None) { _arg1 = NULL; }
5176 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
5177 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
5178 return NULL;
5179 }
5180 }
5181 {
5182 wxPy_BEGIN_ALLOW_THREADS;
5183 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
5184
5185 wxPy_END_ALLOW_THREADS;
5186 if (PyErr_Occurred()) return NULL;
5187 } Py_INCREF(Py_None);
5188 _resultobj = Py_None;
5189 return _resultobj;
5190 }
5191
5192 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5193 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
5194 PyObject * _resultobj;
5195 wxDC * _arg0;
5196 long _arg1;
5197 long _arg2;
5198 long _arg3;
5199 long _arg4;
5200 PyObject * _argo0 = 0;
5201 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
5202
5203 self = self;
5204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
5205 return NULL;
5206 if (_argo0) {
5207 if (_argo0 == Py_None) { _arg0 = NULL; }
5208 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5209 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
5210 return NULL;
5211 }
5212 }
5213 {
5214 wxPy_BEGIN_ALLOW_THREADS;
5215 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
5216
5217 wxPy_END_ALLOW_THREADS;
5218 if (PyErr_Occurred()) return NULL;
5219 } Py_INCREF(Py_None);
5220 _resultobj = Py_None;
5221 return _resultobj;
5222 }
5223
5224 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5225 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
5226 PyObject * _resultobj;
5227 wxDC * _arg0;
5228 int _arg1;
5229 wxPoint * _arg2;
5230 long _arg3 = (long ) 0;
5231 long _arg4 = (long ) 0;
5232 PyObject * _argo0 = 0;
5233 int NPOINTS;
5234 PyObject * _obj2 = 0;
5235 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
5236
5237 self = self;
5238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
5239 return NULL;
5240 if (_argo0) {
5241 if (_argo0 == Py_None) { _arg0 = NULL; }
5242 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5243 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
5244 return NULL;
5245 }
5246 }
5247 if (_obj2)
5248 {
5249 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5250 if (_arg2 == NULL) {
5251 return NULL;
5252 }
5253 }
5254 {
5255 _arg1 = NPOINTS;
5256 }
5257 {
5258 wxPy_BEGIN_ALLOW_THREADS;
5259 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
5260
5261 wxPy_END_ALLOW_THREADS;
5262 if (PyErr_Occurred()) return NULL;
5263 } Py_INCREF(Py_None);
5264 _resultobj = Py_None;
5265 {
5266 delete [] _arg2;
5267 }
5268 return _resultobj;
5269 }
5270
5271 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5272 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
5273 PyObject * _resultobj;
5274 wxDC * _arg0;
5275 int _arg1;
5276 wxPoint * _arg2;
5277 long _arg3 = (long ) 0;
5278 long _arg4 = (long ) 0;
5279 int _arg5 = (int ) wxODDEVEN_RULE;
5280 PyObject * _argo0 = 0;
5281 int NPOINTS;
5282 PyObject * _obj2 = 0;
5283 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
5284
5285 self = self;
5286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
5287 return NULL;
5288 if (_argo0) {
5289 if (_argo0 == Py_None) { _arg0 = NULL; }
5290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
5292 return NULL;
5293 }
5294 }
5295 if (_obj2)
5296 {
5297 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5298 if (_arg2 == NULL) {
5299 return NULL;
5300 }
5301 }
5302 {
5303 _arg1 = NPOINTS;
5304 }
5305 {
5306 wxPy_BEGIN_ALLOW_THREADS;
5307 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
5308
5309 wxPy_END_ALLOW_THREADS;
5310 if (PyErr_Occurred()) return NULL;
5311 } Py_INCREF(Py_None);
5312 _resultobj = Py_None;
5313 {
5314 delete [] _arg2;
5315 }
5316 return _resultobj;
5317 }
5318
5319 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
5320 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject * _resultobj;
5322 wxDC * _arg0;
5323 long _arg1;
5324 long _arg2;
5325 PyObject * _argo0 = 0;
5326 char *_kwnames[] = { "self","x","y", NULL };
5327
5328 self = self;
5329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
5330 return NULL;
5331 if (_argo0) {
5332 if (_argo0 == Py_None) { _arg0 = NULL; }
5333 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5334 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
5335 return NULL;
5336 }
5337 }
5338 {
5339 wxPy_BEGIN_ALLOW_THREADS;
5340 wxDC_DrawPoint(_arg0,_arg1,_arg2);
5341
5342 wxPy_END_ALLOW_THREADS;
5343 if (PyErr_Occurred()) return NULL;
5344 } Py_INCREF(Py_None);
5345 _resultobj = Py_None;
5346 return _resultobj;
5347 }
5348
5349 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5350 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
5351 PyObject * _resultobj;
5352 wxDC * _arg0;
5353 long _arg1;
5354 long _arg2;
5355 long _arg3;
5356 long _arg4;
5357 PyObject * _argo0 = 0;
5358 char *_kwnames[] = { "self","x","y","width","height", NULL };
5359
5360 self = self;
5361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
5362 return NULL;
5363 if (_argo0) {
5364 if (_argo0 == Py_None) { _arg0 = NULL; }
5365 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5366 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
5367 return NULL;
5368 }
5369 }
5370 {
5371 wxPy_BEGIN_ALLOW_THREADS;
5372 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
5373
5374 wxPy_END_ALLOW_THREADS;
5375 if (PyErr_Occurred()) return NULL;
5376 } Py_INCREF(Py_None);
5377 _resultobj = Py_None;
5378 return _resultobj;
5379 }
5380
5381 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5382 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
5383 PyObject * _resultobj;
5384 wxDC * _arg0;
5385 wxString * _arg1;
5386 wxCoord _arg2;
5387 wxCoord _arg3;
5388 double _arg4;
5389 PyObject * _argo0 = 0;
5390 PyObject * _obj1 = 0;
5391 char *_kwnames[] = { "self","text","x","y","angle", NULL };
5392
5393 self = self;
5394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5395 return NULL;
5396 if (_argo0) {
5397 if (_argo0 == Py_None) { _arg0 = NULL; }
5398 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5399 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
5400 return NULL;
5401 }
5402 }
5403 {
5404 #if PYTHON_API_VERSION >= 1009
5405 char* tmpPtr; int tmpSize;
5406 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5407 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5408 return NULL;
5409 }
5410 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5411 return NULL;
5412 _arg1 = new wxString(tmpPtr, tmpSize);
5413 #else
5414 if (!PyString_Check(_obj1)) {
5415 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5416 return NULL;
5417 }
5418 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5419 #endif
5420 }
5421 {
5422 wxPy_BEGIN_ALLOW_THREADS;
5423 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
5424
5425 wxPy_END_ALLOW_THREADS;
5426 if (PyErr_Occurred()) return NULL;
5427 } Py_INCREF(Py_None);
5428 _resultobj = Py_None;
5429 {
5430 if (_obj1)
5431 delete _arg1;
5432 }
5433 return _resultobj;
5434 }
5435
5436 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
5437 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
5438 PyObject * _resultobj;
5439 wxDC * _arg0;
5440 long _arg1;
5441 long _arg2;
5442 long _arg3;
5443 long _arg4;
5444 long _arg5 = (long ) 20;
5445 PyObject * _argo0 = 0;
5446 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
5447
5448 self = self;
5449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
5450 return NULL;
5451 if (_argo0) {
5452 if (_argo0 == Py_None) { _arg0 = NULL; }
5453 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5454 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
5455 return NULL;
5456 }
5457 }
5458 {
5459 wxPy_BEGIN_ALLOW_THREADS;
5460 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
5461
5462 wxPy_END_ALLOW_THREADS;
5463 if (PyErr_Occurred()) return NULL;
5464 } Py_INCREF(Py_None);
5465 _resultobj = Py_None;
5466 return _resultobj;
5467 }
5468
5469 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
5470 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
5471 PyObject * _resultobj;
5472 wxDC * _arg0;
5473 int _arg1;
5474 wxPoint * _arg2;
5475 PyObject * _argo0 = 0;
5476 int NPOINTS;
5477 PyObject * _obj2 = 0;
5478 char *_kwnames[] = { "self","points", NULL };
5479
5480 self = self;
5481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
5482 return NULL;
5483 if (_argo0) {
5484 if (_argo0 == Py_None) { _arg0 = NULL; }
5485 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5486 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
5487 return NULL;
5488 }
5489 }
5490 if (_obj2)
5491 {
5492 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
5493 if (_arg2 == NULL) {
5494 return NULL;
5495 }
5496 }
5497 {
5498 _arg1 = NPOINTS;
5499 }
5500 {
5501 wxPy_BEGIN_ALLOW_THREADS;
5502 wxDC_DrawSpline(_arg0,_arg1,_arg2);
5503
5504 wxPy_END_ALLOW_THREADS;
5505 if (PyErr_Occurred()) return NULL;
5506 } Py_INCREF(Py_None);
5507 _resultobj = Py_None;
5508 {
5509 delete [] _arg2;
5510 }
5511 return _resultobj;
5512 }
5513
5514 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
5515 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
5516 PyObject * _resultobj;
5517 wxDC * _arg0;
5518 wxString * _arg1;
5519 long _arg2;
5520 long _arg3;
5521 PyObject * _argo0 = 0;
5522 PyObject * _obj1 = 0;
5523 char *_kwnames[] = { "self","text","x","y", NULL };
5524
5525 self = self;
5526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5527 return NULL;
5528 if (_argo0) {
5529 if (_argo0 == Py_None) { _arg0 = NULL; }
5530 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5531 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
5532 return NULL;
5533 }
5534 }
5535 {
5536 #if PYTHON_API_VERSION >= 1009
5537 char* tmpPtr; int tmpSize;
5538 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5539 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5540 return NULL;
5541 }
5542 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5543 return NULL;
5544 _arg1 = new wxString(tmpPtr, tmpSize);
5545 #else
5546 if (!PyString_Check(_obj1)) {
5547 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5548 return NULL;
5549 }
5550 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5551 #endif
5552 }
5553 {
5554 wxPy_BEGIN_ALLOW_THREADS;
5555 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
5556
5557 wxPy_END_ALLOW_THREADS;
5558 if (PyErr_Occurred()) return NULL;
5559 } Py_INCREF(Py_None);
5560 _resultobj = Py_None;
5561 {
5562 if (_obj1)
5563 delete _arg1;
5564 }
5565 return _resultobj;
5566 }
5567
5568 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
5569 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
5570 PyObject * _resultobj;
5571 wxDC * _arg0;
5572 PyObject * _argo0 = 0;
5573 char *_kwnames[] = { "self", NULL };
5574
5575 self = self;
5576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
5577 return NULL;
5578 if (_argo0) {
5579 if (_argo0 == Py_None) { _arg0 = NULL; }
5580 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5581 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
5582 return NULL;
5583 }
5584 }
5585 {
5586 wxPy_BEGIN_ALLOW_THREADS;
5587 wxDC_EndDoc(_arg0);
5588
5589 wxPy_END_ALLOW_THREADS;
5590 if (PyErr_Occurred()) return NULL;
5591 } Py_INCREF(Py_None);
5592 _resultobj = Py_None;
5593 return _resultobj;
5594 }
5595
5596 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
5597 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject * _resultobj;
5599 wxDC * _arg0;
5600 PyObject * _argo0 = 0;
5601 char *_kwnames[] = { "self", NULL };
5602
5603 self = self;
5604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
5605 return NULL;
5606 if (_argo0) {
5607 if (_argo0 == Py_None) { _arg0 = NULL; }
5608 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5609 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
5610 return NULL;
5611 }
5612 }
5613 {
5614 wxPy_BEGIN_ALLOW_THREADS;
5615 wxDC_EndDrawing(_arg0);
5616
5617 wxPy_END_ALLOW_THREADS;
5618 if (PyErr_Occurred()) return NULL;
5619 } Py_INCREF(Py_None);
5620 _resultobj = Py_None;
5621 return _resultobj;
5622 }
5623
5624 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
5625 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject * _resultobj;
5627 wxDC * _arg0;
5628 PyObject * _argo0 = 0;
5629 char *_kwnames[] = { "self", NULL };
5630
5631 self = self;
5632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
5633 return NULL;
5634 if (_argo0) {
5635 if (_argo0 == Py_None) { _arg0 = NULL; }
5636 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5637 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
5638 return NULL;
5639 }
5640 }
5641 {
5642 wxPy_BEGIN_ALLOW_THREADS;
5643 wxDC_EndPage(_arg0);
5644
5645 wxPy_END_ALLOW_THREADS;
5646 if (PyErr_Occurred()) return NULL;
5647 } Py_INCREF(Py_None);
5648 _resultobj = Py_None;
5649 return _resultobj;
5650 }
5651
5652 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5653 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
5654 PyObject * _resultobj;
5655 wxDC * _arg0;
5656 long _arg1;
5657 long _arg2;
5658 wxColour * _arg3;
5659 int _arg4 = (int ) wxFLOOD_SURFACE;
5660 PyObject * _argo0 = 0;
5661 wxColour temp;
5662 PyObject * _obj3 = 0;
5663 char *_kwnames[] = { "self","x","y","colour","style", NULL };
5664
5665 self = self;
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
5667 return NULL;
5668 if (_argo0) {
5669 if (_argo0 == Py_None) { _arg0 = NULL; }
5670 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5671 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
5672 return NULL;
5673 }
5674 }
5675 {
5676 _arg3 = &temp;
5677 if (! wxColour_helper(_obj3, &_arg3))
5678 return NULL;
5679 }
5680 {
5681 wxPy_BEGIN_ALLOW_THREADS;
5682 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
5683
5684 wxPy_END_ALLOW_THREADS;
5685 if (PyErr_Occurred()) return NULL;
5686 } Py_INCREF(Py_None);
5687 _resultobj = Py_None;
5688 return _resultobj;
5689 }
5690
5691 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
5692 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
5693 PyObject * _resultobj;
5694 wxBrush * _result;
5695 wxDC * _arg0;
5696 PyObject * _argo0 = 0;
5697 char *_kwnames[] = { "self", NULL };
5698 char _ptemp[128];
5699
5700 self = self;
5701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
5702 return NULL;
5703 if (_argo0) {
5704 if (_argo0 == Py_None) { _arg0 = NULL; }
5705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
5707 return NULL;
5708 }
5709 }
5710 {
5711 wxPy_BEGIN_ALLOW_THREADS;
5712 wxBrush & _result_ref = wxDC_GetBackground(_arg0);
5713 _result = (wxBrush *) &_result_ref;
5714
5715 wxPy_END_ALLOW_THREADS;
5716 if (PyErr_Occurred()) return NULL;
5717 } if (_result) {
5718 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5719 _resultobj = Py_BuildValue("s",_ptemp);
5720 } else {
5721 Py_INCREF(Py_None);
5722 _resultobj = Py_None;
5723 }
5724 return _resultobj;
5725 }
5726
5727 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
5728 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5729 PyObject * _resultobj;
5730 wxBrush * _result;
5731 wxDC * _arg0;
5732 PyObject * _argo0 = 0;
5733 char *_kwnames[] = { "self", NULL };
5734 char _ptemp[128];
5735
5736 self = self;
5737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
5738 return NULL;
5739 if (_argo0) {
5740 if (_argo0 == Py_None) { _arg0 = NULL; }
5741 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5742 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
5743 return NULL;
5744 }
5745 }
5746 {
5747 wxPy_BEGIN_ALLOW_THREADS;
5748 wxBrush & _result_ref = wxDC_GetBrush(_arg0);
5749 _result = (wxBrush *) &_result_ref;
5750
5751 wxPy_END_ALLOW_THREADS;
5752 if (PyErr_Occurred()) return NULL;
5753 } if (_result) {
5754 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5755 _resultobj = Py_BuildValue("s",_ptemp);
5756 } else {
5757 Py_INCREF(Py_None);
5758 _resultobj = Py_None;
5759 }
5760 return _resultobj;
5761 }
5762
5763 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
5764 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5765 PyObject * _resultobj;
5766 long _result;
5767 wxDC * _arg0;
5768 PyObject * _argo0 = 0;
5769 char *_kwnames[] = { "self", NULL };
5770
5771 self = self;
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
5773 return NULL;
5774 if (_argo0) {
5775 if (_argo0 == Py_None) { _arg0 = NULL; }
5776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
5778 return NULL;
5779 }
5780 }
5781 {
5782 wxPy_BEGIN_ALLOW_THREADS;
5783 _result = (long )wxDC_GetCharHeight(_arg0);
5784
5785 wxPy_END_ALLOW_THREADS;
5786 if (PyErr_Occurred()) return NULL;
5787 } _resultobj = Py_BuildValue("l",_result);
5788 return _resultobj;
5789 }
5790
5791 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
5792 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5793 PyObject * _resultobj;
5794 long _result;
5795 wxDC * _arg0;
5796 PyObject * _argo0 = 0;
5797 char *_kwnames[] = { "self", NULL };
5798
5799 self = self;
5800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
5801 return NULL;
5802 if (_argo0) {
5803 if (_argo0 == Py_None) { _arg0 = NULL; }
5804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
5806 return NULL;
5807 }
5808 }
5809 {
5810 wxPy_BEGIN_ALLOW_THREADS;
5811 _result = (long )wxDC_GetCharWidth(_arg0);
5812
5813 wxPy_END_ALLOW_THREADS;
5814 if (PyErr_Occurred()) return NULL;
5815 } _resultobj = Py_BuildValue("l",_result);
5816 return _resultobj;
5817 }
5818
5819 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
5820 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5821 PyObject * _resultobj;
5822 wxDC * _arg0;
5823 long * _arg1;
5824 long temp;
5825 long * _arg2;
5826 long temp0;
5827 long * _arg3;
5828 long temp1;
5829 long * _arg4;
5830 long temp2;
5831 PyObject * _argo0 = 0;
5832 char *_kwnames[] = { "self", NULL };
5833
5834 self = self;
5835 {
5836 _arg1 = &temp;
5837 }
5838 {
5839 _arg2 = &temp0;
5840 }
5841 {
5842 _arg3 = &temp1;
5843 }
5844 {
5845 _arg4 = &temp2;
5846 }
5847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
5848 return NULL;
5849 if (_argo0) {
5850 if (_argo0 == Py_None) { _arg0 = NULL; }
5851 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5852 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
5853 return NULL;
5854 }
5855 }
5856 {
5857 wxPy_BEGIN_ALLOW_THREADS;
5858 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
5859
5860 wxPy_END_ALLOW_THREADS;
5861 if (PyErr_Occurred()) return NULL;
5862 } Py_INCREF(Py_None);
5863 _resultobj = Py_None;
5864 {
5865 PyObject *o;
5866 o = PyInt_FromLong((long) (*_arg1));
5867 _resultobj = t_output_helper(_resultobj, o);
5868 }
5869 {
5870 PyObject *o;
5871 o = PyInt_FromLong((long) (*_arg2));
5872 _resultobj = t_output_helper(_resultobj, o);
5873 }
5874 {
5875 PyObject *o;
5876 o = PyInt_FromLong((long) (*_arg3));
5877 _resultobj = t_output_helper(_resultobj, o);
5878 }
5879 {
5880 PyObject *o;
5881 o = PyInt_FromLong((long) (*_arg4));
5882 _resultobj = t_output_helper(_resultobj, o);
5883 }
5884 return _resultobj;
5885 }
5886
5887 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
5888 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5889 PyObject * _resultobj;
5890 wxFont * _result;
5891 wxDC * _arg0;
5892 PyObject * _argo0 = 0;
5893 char *_kwnames[] = { "self", NULL };
5894 char _ptemp[128];
5895
5896 self = self;
5897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
5898 return NULL;
5899 if (_argo0) {
5900 if (_argo0 == Py_None) { _arg0 = NULL; }
5901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
5903 return NULL;
5904 }
5905 }
5906 {
5907 wxPy_BEGIN_ALLOW_THREADS;
5908 wxFont & _result_ref = wxDC_GetFont(_arg0);
5909 _result = (wxFont *) &_result_ref;
5910
5911 wxPy_END_ALLOW_THREADS;
5912 if (PyErr_Occurred()) return NULL;
5913 } if (_result) {
5914 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
5915 _resultobj = Py_BuildValue("s",_ptemp);
5916 } else {
5917 Py_INCREF(Py_None);
5918 _resultobj = Py_None;
5919 }
5920 return _resultobj;
5921 }
5922
5923 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
5924 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
5925 PyObject * _resultobj;
5926 int _result;
5927 wxDC * _arg0;
5928 PyObject * _argo0 = 0;
5929 char *_kwnames[] = { "self", NULL };
5930
5931 self = self;
5932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
5933 return NULL;
5934 if (_argo0) {
5935 if (_argo0 == Py_None) { _arg0 = NULL; }
5936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
5938 return NULL;
5939 }
5940 }
5941 {
5942 wxPy_BEGIN_ALLOW_THREADS;
5943 _result = (int )wxDC_GetLogicalFunction(_arg0);
5944
5945 wxPy_END_ALLOW_THREADS;
5946 if (PyErr_Occurred()) return NULL;
5947 } _resultobj = Py_BuildValue("i",_result);
5948 return _resultobj;
5949 }
5950
5951 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
5952 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
5953 PyObject * _resultobj;
5954 wxDC * _arg0;
5955 double * _arg1;
5956 double temp;
5957 double * _arg2;
5958 double temp0;
5959 PyObject * _argo0 = 0;
5960 char *_kwnames[] = { "self", NULL };
5961
5962 self = self;
5963 {
5964 _arg1 = &temp;
5965 }
5966 {
5967 _arg2 = &temp0;
5968 }
5969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
5970 return NULL;
5971 if (_argo0) {
5972 if (_argo0 == Py_None) { _arg0 = NULL; }
5973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
5974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
5975 return NULL;
5976 }
5977 }
5978 {
5979 wxPy_BEGIN_ALLOW_THREADS;
5980 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
5981
5982 wxPy_END_ALLOW_THREADS;
5983 if (PyErr_Occurred()) return NULL;
5984 } Py_INCREF(Py_None);
5985 _resultobj = Py_None;
5986 {
5987 PyObject *o;
5988 o = PyFloat_FromDouble((double) (*_arg1));
5989 _resultobj = t_output_helper(_resultobj, o);
5990 }
5991 {
5992 PyObject *o;
5993 o = PyFloat_FromDouble((double) (*_arg2));
5994 _resultobj = t_output_helper(_resultobj, o);
5995 }
5996 return _resultobj;
5997 }
5998
5999 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
6000 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
6001 PyObject * _resultobj;
6002 int _result;
6003 wxDC * _arg0;
6004 PyObject * _argo0 = 0;
6005 char *_kwnames[] = { "self", NULL };
6006
6007 self = self;
6008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
6009 return NULL;
6010 if (_argo0) {
6011 if (_argo0 == Py_None) { _arg0 = NULL; }
6012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
6014 return NULL;
6015 }
6016 }
6017 {
6018 wxPy_BEGIN_ALLOW_THREADS;
6019 _result = (int )wxDC_GetMapMode(_arg0);
6020
6021 wxPy_END_ALLOW_THREADS;
6022 if (PyErr_Occurred()) return NULL;
6023 } _resultobj = Py_BuildValue("i",_result);
6024 return _resultobj;
6025 }
6026
6027 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
6028 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
6029 PyObject * _resultobj;
6030 bool _result;
6031 wxDC * _arg0;
6032 PyObject * _argo0 = 0;
6033 char *_kwnames[] = { "self", NULL };
6034
6035 self = self;
6036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
6037 return NULL;
6038 if (_argo0) {
6039 if (_argo0 == Py_None) { _arg0 = NULL; }
6040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
6042 return NULL;
6043 }
6044 }
6045 {
6046 wxPy_BEGIN_ALLOW_THREADS;
6047 _result = (bool )wxDC_GetOptimization(_arg0);
6048
6049 wxPy_END_ALLOW_THREADS;
6050 if (PyErr_Occurred()) return NULL;
6051 } _resultobj = Py_BuildValue("i",_result);
6052 return _resultobj;
6053 }
6054
6055 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
6056 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
6057 PyObject * _resultobj;
6058 wxPen * _result;
6059 wxDC * _arg0;
6060 PyObject * _argo0 = 0;
6061 char *_kwnames[] = { "self", NULL };
6062 char _ptemp[128];
6063
6064 self = self;
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
6066 return NULL;
6067 if (_argo0) {
6068 if (_argo0 == Py_None) { _arg0 = NULL; }
6069 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6070 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
6071 return NULL;
6072 }
6073 }
6074 {
6075 wxPy_BEGIN_ALLOW_THREADS;
6076 wxPen & _result_ref = wxDC_GetPen(_arg0);
6077 _result = (wxPen *) &_result_ref;
6078
6079 wxPy_END_ALLOW_THREADS;
6080 if (PyErr_Occurred()) return NULL;
6081 } if (_result) {
6082 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
6083 _resultobj = Py_BuildValue("s",_ptemp);
6084 } else {
6085 Py_INCREF(Py_None);
6086 _resultobj = Py_None;
6087 }
6088 return _resultobj;
6089 }
6090
6091 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
6092 wxColour* wc = new wxColour();
6093 self->GetPixel(x, y, wc);
6094 return wc;
6095 }
6096 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
6097 PyObject * _resultobj;
6098 wxColour * _result;
6099 wxDC * _arg0;
6100 long _arg1;
6101 long _arg2;
6102 PyObject * _argo0 = 0;
6103 char *_kwnames[] = { "self","x","y", NULL };
6104 char _ptemp[128];
6105
6106 self = self;
6107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
6108 return NULL;
6109 if (_argo0) {
6110 if (_argo0 == Py_None) { _arg0 = NULL; }
6111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
6113 return NULL;
6114 }
6115 }
6116 {
6117 wxPy_BEGIN_ALLOW_THREADS;
6118 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
6119
6120 wxPy_END_ALLOW_THREADS;
6121 if (PyErr_Occurred()) return NULL;
6122 } if (_result) {
6123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6124 _resultobj = Py_BuildValue("s",_ptemp);
6125 } else {
6126 Py_INCREF(Py_None);
6127 _resultobj = Py_None;
6128 }
6129 return _resultobj;
6130 }
6131
6132 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
6133 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
6134 PyObject * _resultobj;
6135 wxDC * _arg0;
6136 int * _arg1;
6137 int temp;
6138 int * _arg2;
6139 int temp0;
6140 PyObject * _argo0 = 0;
6141 char *_kwnames[] = { "self", NULL };
6142
6143 self = self;
6144 {
6145 _arg1 = &temp;
6146 }
6147 {
6148 _arg2 = &temp0;
6149 }
6150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
6151 return NULL;
6152 if (_argo0) {
6153 if (_argo0 == Py_None) { _arg0 = NULL; }
6154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
6156 return NULL;
6157 }
6158 }
6159 {
6160 wxPy_BEGIN_ALLOW_THREADS;
6161 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
6162
6163 wxPy_END_ALLOW_THREADS;
6164 if (PyErr_Occurred()) return NULL;
6165 } Py_INCREF(Py_None);
6166 _resultobj = Py_None;
6167 {
6168 PyObject *o;
6169 o = PyInt_FromLong((long) (*_arg1));
6170 _resultobj = t_output_helper(_resultobj, o);
6171 }
6172 {
6173 PyObject *o;
6174 o = PyInt_FromLong((long) (*_arg2));
6175 _resultobj = t_output_helper(_resultobj, o);
6176 }
6177 return _resultobj;
6178 }
6179
6180 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
6181 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6182 PyObject * _resultobj;
6183 wxSize * _result;
6184 wxDC * _arg0;
6185 PyObject * _argo0 = 0;
6186 char *_kwnames[] = { "self", NULL };
6187 char _ptemp[128];
6188
6189 self = self;
6190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
6191 return NULL;
6192 if (_argo0) {
6193 if (_argo0 == Py_None) { _arg0 = NULL; }
6194 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6195 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
6196 return NULL;
6197 }
6198 }
6199 {
6200 wxPy_BEGIN_ALLOW_THREADS;
6201 _result = new wxSize (wxDC_GetSize(_arg0));
6202
6203 wxPy_END_ALLOW_THREADS;
6204 if (PyErr_Occurred()) return NULL;
6205 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6206 _resultobj = Py_BuildValue("s",_ptemp);
6207 return _resultobj;
6208 }
6209
6210 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
6211 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
6212 PyObject * _resultobj;
6213 wxSize * _result;
6214 wxDC * _arg0;
6215 PyObject * _argo0 = 0;
6216 char *_kwnames[] = { "self", NULL };
6217 char _ptemp[128];
6218
6219 self = self;
6220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
6221 return NULL;
6222 if (_argo0) {
6223 if (_argo0 == Py_None) { _arg0 = NULL; }
6224 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6225 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
6226 return NULL;
6227 }
6228 }
6229 {
6230 wxPy_BEGIN_ALLOW_THREADS;
6231 _result = new wxSize (wxDC_GetSizeMM(_arg0));
6232
6233 wxPy_END_ALLOW_THREADS;
6234 if (PyErr_Occurred()) return NULL;
6235 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
6236 _resultobj = Py_BuildValue("s",_ptemp);
6237 return _resultobj;
6238 }
6239
6240 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
6241 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6242 PyObject * _resultobj;
6243 wxColour * _result;
6244 wxDC * _arg0;
6245 PyObject * _argo0 = 0;
6246 char *_kwnames[] = { "self", NULL };
6247 char _ptemp[128];
6248
6249 self = self;
6250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
6251 return NULL;
6252 if (_argo0) {
6253 if (_argo0 == Py_None) { _arg0 = NULL; }
6254 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6255 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
6256 return NULL;
6257 }
6258 }
6259 {
6260 wxPy_BEGIN_ALLOW_THREADS;
6261 wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
6262 _result = (wxColour *) &_result_ref;
6263
6264 wxPy_END_ALLOW_THREADS;
6265 if (PyErr_Occurred()) return NULL;
6266 } if (_result) {
6267 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6268 _resultobj = Py_BuildValue("s",_ptemp);
6269 } else {
6270 Py_INCREF(Py_None);
6271 _resultobj = Py_None;
6272 }
6273 return _resultobj;
6274 }
6275
6276 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
6277 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
6278 PyObject * _resultobj;
6279 wxDC * _arg0;
6280 wxString * _arg1;
6281 long * _arg2;
6282 long temp;
6283 long * _arg3;
6284 long temp0;
6285 PyObject * _argo0 = 0;
6286 PyObject * _obj1 = 0;
6287 char *_kwnames[] = { "self","string", NULL };
6288
6289 self = self;
6290 {
6291 _arg2 = &temp;
6292 }
6293 {
6294 _arg3 = &temp0;
6295 }
6296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
6297 return NULL;
6298 if (_argo0) {
6299 if (_argo0 == Py_None) { _arg0 = NULL; }
6300 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6301 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
6302 return NULL;
6303 }
6304 }
6305 {
6306 #if PYTHON_API_VERSION >= 1009
6307 char* tmpPtr; int tmpSize;
6308 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6309 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6310 return NULL;
6311 }
6312 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6313 return NULL;
6314 _arg1 = new wxString(tmpPtr, tmpSize);
6315 #else
6316 if (!PyString_Check(_obj1)) {
6317 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6318 return NULL;
6319 }
6320 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6321 #endif
6322 }
6323 {
6324 wxPy_BEGIN_ALLOW_THREADS;
6325 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
6326
6327 wxPy_END_ALLOW_THREADS;
6328 if (PyErr_Occurred()) return NULL;
6329 } Py_INCREF(Py_None);
6330 _resultobj = Py_None;
6331 {
6332 PyObject *o;
6333 o = PyInt_FromLong((long) (*_arg2));
6334 _resultobj = t_output_helper(_resultobj, o);
6335 }
6336 {
6337 PyObject *o;
6338 o = PyInt_FromLong((long) (*_arg3));
6339 _resultobj = t_output_helper(_resultobj, o);
6340 }
6341 {
6342 if (_obj1)
6343 delete _arg1;
6344 }
6345 return _resultobj;
6346 }
6347
6348 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6349 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
6350 PyObject * _resultobj;
6351 wxDC * _arg0;
6352 wxString * _arg1;
6353 long * _arg2;
6354 long temp;
6355 long * _arg3;
6356 long temp0;
6357 long * _arg4;
6358 long temp1;
6359 long * _arg5;
6360 long temp2;
6361 wxFont * _arg6 = (wxFont *) NULL;
6362 PyObject * _argo0 = 0;
6363 PyObject * _obj1 = 0;
6364 PyObject * _argo6 = 0;
6365 char *_kwnames[] = { "self","string","font", NULL };
6366
6367 self = self;
6368 {
6369 _arg2 = &temp;
6370 }
6371 {
6372 _arg3 = &temp0;
6373 }
6374 {
6375 _arg4 = &temp1;
6376 }
6377 {
6378 _arg5 = &temp2;
6379 }
6380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
6381 return NULL;
6382 if (_argo0) {
6383 if (_argo0 == Py_None) { _arg0 = NULL; }
6384 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6385 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
6386 return NULL;
6387 }
6388 }
6389 {
6390 #if PYTHON_API_VERSION >= 1009
6391 char* tmpPtr; int tmpSize;
6392 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
6393 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6394 return NULL;
6395 }
6396 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
6397 return NULL;
6398 _arg1 = new wxString(tmpPtr, tmpSize);
6399 #else
6400 if (!PyString_Check(_obj1)) {
6401 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
6402 return NULL;
6403 }
6404 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
6405 #endif
6406 }
6407 if (_argo6) {
6408 if (_argo6 == Py_None) { _arg6 = NULL; }
6409 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
6410 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
6411 return NULL;
6412 }
6413 }
6414 {
6415 wxPy_BEGIN_ALLOW_THREADS;
6416 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6417
6418 wxPy_END_ALLOW_THREADS;
6419 if (PyErr_Occurred()) return NULL;
6420 } Py_INCREF(Py_None);
6421 _resultobj = Py_None;
6422 {
6423 PyObject *o;
6424 o = PyInt_FromLong((long) (*_arg2));
6425 _resultobj = t_output_helper(_resultobj, o);
6426 }
6427 {
6428 PyObject *o;
6429 o = PyInt_FromLong((long) (*_arg3));
6430 _resultobj = t_output_helper(_resultobj, o);
6431 }
6432 {
6433 PyObject *o;
6434 o = PyInt_FromLong((long) (*_arg4));
6435 _resultobj = t_output_helper(_resultobj, o);
6436 }
6437 {
6438 PyObject *o;
6439 o = PyInt_FromLong((long) (*_arg5));
6440 _resultobj = t_output_helper(_resultobj, o);
6441 }
6442 {
6443 if (_obj1)
6444 delete _arg1;
6445 }
6446 return _resultobj;
6447 }
6448
6449 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
6450 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
6451 PyObject * _resultobj;
6452 wxColour * _result;
6453 wxDC * _arg0;
6454 PyObject * _argo0 = 0;
6455 char *_kwnames[] = { "self", NULL };
6456 char _ptemp[128];
6457
6458 self = self;
6459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
6460 return NULL;
6461 if (_argo0) {
6462 if (_argo0 == Py_None) { _arg0 = NULL; }
6463 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6464 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
6465 return NULL;
6466 }
6467 }
6468 {
6469 wxPy_BEGIN_ALLOW_THREADS;
6470 wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
6471 _result = (wxColour *) &_result_ref;
6472
6473 wxPy_END_ALLOW_THREADS;
6474 if (PyErr_Occurred()) return NULL;
6475 } if (_result) {
6476 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
6477 _resultobj = Py_BuildValue("s",_ptemp);
6478 } else {
6479 Py_INCREF(Py_None);
6480 _resultobj = Py_None;
6481 }
6482 return _resultobj;
6483 }
6484
6485 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
6486 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
6487 PyObject * _resultobj;
6488 wxDC * _arg0;
6489 double * _arg1;
6490 double temp;
6491 double * _arg2;
6492 double temp0;
6493 PyObject * _argo0 = 0;
6494 char *_kwnames[] = { "self", NULL };
6495
6496 self = self;
6497 {
6498 _arg1 = &temp;
6499 }
6500 {
6501 _arg2 = &temp0;
6502 }
6503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
6504 return NULL;
6505 if (_argo0) {
6506 if (_argo0 == Py_None) { _arg0 = NULL; }
6507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
6509 return NULL;
6510 }
6511 }
6512 {
6513 wxPy_BEGIN_ALLOW_THREADS;
6514 wxDC_GetUserScale(_arg0,_arg1,_arg2);
6515
6516 wxPy_END_ALLOW_THREADS;
6517 if (PyErr_Occurred()) return NULL;
6518 } Py_INCREF(Py_None);
6519 _resultobj = Py_None;
6520 {
6521 PyObject *o;
6522 o = PyFloat_FromDouble((double) (*_arg1));
6523 _resultobj = t_output_helper(_resultobj, o);
6524 }
6525 {
6526 PyObject *o;
6527 o = PyFloat_FromDouble((double) (*_arg2));
6528 _resultobj = t_output_helper(_resultobj, o);
6529 }
6530 return _resultobj;
6531 }
6532
6533 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
6534 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
6535 PyObject * _resultobj;
6536 long _result;
6537 wxDC * _arg0;
6538 long _arg1;
6539 PyObject * _argo0 = 0;
6540 char *_kwnames[] = { "self","x", NULL };
6541
6542 self = self;
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
6544 return NULL;
6545 if (_argo0) {
6546 if (_argo0 == Py_None) { _arg0 = NULL; }
6547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
6549 return NULL;
6550 }
6551 }
6552 {
6553 wxPy_BEGIN_ALLOW_THREADS;
6554 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
6555
6556 wxPy_END_ALLOW_THREADS;
6557 if (PyErr_Occurred()) return NULL;
6558 } _resultobj = Py_BuildValue("l",_result);
6559 return _resultobj;
6560 }
6561
6562 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
6563 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject * _resultobj;
6565 long _result;
6566 wxDC * _arg0;
6567 long _arg1;
6568 PyObject * _argo0 = 0;
6569 char *_kwnames[] = { "self","x", NULL };
6570
6571 self = self;
6572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
6573 return NULL;
6574 if (_argo0) {
6575 if (_argo0 == Py_None) { _arg0 = NULL; }
6576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
6578 return NULL;
6579 }
6580 }
6581 {
6582 wxPy_BEGIN_ALLOW_THREADS;
6583 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
6584
6585 wxPy_END_ALLOW_THREADS;
6586 if (PyErr_Occurred()) return NULL;
6587 } _resultobj = Py_BuildValue("l",_result);
6588 return _resultobj;
6589 }
6590
6591 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
6592 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
6593 PyObject * _resultobj;
6594 long _result;
6595 wxDC * _arg0;
6596 long _arg1;
6597 PyObject * _argo0 = 0;
6598 char *_kwnames[] = { "self","y", NULL };
6599
6600 self = self;
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
6602 return NULL;
6603 if (_argo0) {
6604 if (_argo0 == Py_None) { _arg0 = NULL; }
6605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
6607 return NULL;
6608 }
6609 }
6610 {
6611 wxPy_BEGIN_ALLOW_THREADS;
6612 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
6613
6614 wxPy_END_ALLOW_THREADS;
6615 if (PyErr_Occurred()) return NULL;
6616 } _resultobj = Py_BuildValue("l",_result);
6617 return _resultobj;
6618 }
6619
6620 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
6621 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject * _resultobj;
6623 long _result;
6624 wxDC * _arg0;
6625 long _arg1;
6626 PyObject * _argo0 = 0;
6627 char *_kwnames[] = { "self","y", NULL };
6628
6629 self = self;
6630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
6631 return NULL;
6632 if (_argo0) {
6633 if (_argo0 == Py_None) { _arg0 = NULL; }
6634 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6635 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
6636 return NULL;
6637 }
6638 }
6639 {
6640 wxPy_BEGIN_ALLOW_THREADS;
6641 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
6642
6643 wxPy_END_ALLOW_THREADS;
6644 if (PyErr_Occurred()) return NULL;
6645 } _resultobj = Py_BuildValue("l",_result);
6646 return _resultobj;
6647 }
6648
6649 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
6650 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
6651 PyObject * _resultobj;
6652 long _result;
6653 wxDC * _arg0;
6654 PyObject * _argo0 = 0;
6655 char *_kwnames[] = { "self", NULL };
6656
6657 self = self;
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
6659 return NULL;
6660 if (_argo0) {
6661 if (_argo0 == Py_None) { _arg0 = NULL; }
6662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
6664 return NULL;
6665 }
6666 }
6667 {
6668 wxPy_BEGIN_ALLOW_THREADS;
6669 _result = (long )wxDC_MaxX(_arg0);
6670
6671 wxPy_END_ALLOW_THREADS;
6672 if (PyErr_Occurred()) return NULL;
6673 } _resultobj = Py_BuildValue("l",_result);
6674 return _resultobj;
6675 }
6676
6677 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
6678 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
6679 PyObject * _resultobj;
6680 long _result;
6681 wxDC * _arg0;
6682 PyObject * _argo0 = 0;
6683 char *_kwnames[] = { "self", NULL };
6684
6685 self = self;
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
6687 return NULL;
6688 if (_argo0) {
6689 if (_argo0 == Py_None) { _arg0 = NULL; }
6690 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6691 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
6692 return NULL;
6693 }
6694 }
6695 {
6696 wxPy_BEGIN_ALLOW_THREADS;
6697 _result = (long )wxDC_MaxY(_arg0);
6698
6699 wxPy_END_ALLOW_THREADS;
6700 if (PyErr_Occurred()) return NULL;
6701 } _resultobj = Py_BuildValue("l",_result);
6702 return _resultobj;
6703 }
6704
6705 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
6706 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
6707 PyObject * _resultobj;
6708 long _result;
6709 wxDC * _arg0;
6710 PyObject * _argo0 = 0;
6711 char *_kwnames[] = { "self", NULL };
6712
6713 self = self;
6714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
6715 return NULL;
6716 if (_argo0) {
6717 if (_argo0 == Py_None) { _arg0 = NULL; }
6718 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6719 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
6720 return NULL;
6721 }
6722 }
6723 {
6724 wxPy_BEGIN_ALLOW_THREADS;
6725 _result = (long )wxDC_MinX(_arg0);
6726
6727 wxPy_END_ALLOW_THREADS;
6728 if (PyErr_Occurred()) return NULL;
6729 } _resultobj = Py_BuildValue("l",_result);
6730 return _resultobj;
6731 }
6732
6733 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
6734 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
6735 PyObject * _resultobj;
6736 long _result;
6737 wxDC * _arg0;
6738 PyObject * _argo0 = 0;
6739 char *_kwnames[] = { "self", NULL };
6740
6741 self = self;
6742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
6743 return NULL;
6744 if (_argo0) {
6745 if (_argo0 == Py_None) { _arg0 = NULL; }
6746 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6747 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
6748 return NULL;
6749 }
6750 }
6751 {
6752 wxPy_BEGIN_ALLOW_THREADS;
6753 _result = (long )wxDC_MinY(_arg0);
6754
6755 wxPy_END_ALLOW_THREADS;
6756 if (PyErr_Occurred()) return NULL;
6757 } _resultobj = Py_BuildValue("l",_result);
6758 return _resultobj;
6759 }
6760
6761 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
6762 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6763 PyObject * _resultobj;
6764 bool _result;
6765 wxDC * _arg0;
6766 PyObject * _argo0 = 0;
6767 char *_kwnames[] = { "self", NULL };
6768
6769 self = self;
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
6771 return NULL;
6772 if (_argo0) {
6773 if (_argo0 == Py_None) { _arg0 = NULL; }
6774 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6775 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
6776 return NULL;
6777 }
6778 }
6779 {
6780 wxPy_BEGIN_ALLOW_THREADS;
6781 _result = (bool )wxDC_Ok(_arg0);
6782
6783 wxPy_END_ALLOW_THREADS;
6784 if (PyErr_Occurred()) return NULL;
6785 } _resultobj = Py_BuildValue("i",_result);
6786 return _resultobj;
6787 }
6788
6789 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
6790 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
6791 PyObject * _resultobj;
6792 wxDC * _arg0;
6793 long _arg1;
6794 long _arg2;
6795 PyObject * _argo0 = 0;
6796 char *_kwnames[] = { "self","x","y", NULL };
6797
6798 self = self;
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
6800 return NULL;
6801 if (_argo0) {
6802 if (_argo0 == Py_None) { _arg0 = NULL; }
6803 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6804 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
6805 return NULL;
6806 }
6807 }
6808 {
6809 wxPy_BEGIN_ALLOW_THREADS;
6810 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
6811
6812 wxPy_END_ALLOW_THREADS;
6813 if (PyErr_Occurred()) return NULL;
6814 } Py_INCREF(Py_None);
6815 _resultobj = Py_None;
6816 return _resultobj;
6817 }
6818
6819 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
6820 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
6821 PyObject * _resultobj;
6822 wxDC * _arg0;
6823 wxBrush * _arg1;
6824 PyObject * _argo0 = 0;
6825 PyObject * _argo1 = 0;
6826 char *_kwnames[] = { "self","brush", NULL };
6827
6828 self = self;
6829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
6830 return NULL;
6831 if (_argo0) {
6832 if (_argo0 == Py_None) { _arg0 = NULL; }
6833 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6834 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
6835 return NULL;
6836 }
6837 }
6838 if (_argo1) {
6839 if (_argo1 == Py_None) { _arg1 = NULL; }
6840 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6841 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
6842 return NULL;
6843 }
6844 }
6845 {
6846 wxPy_BEGIN_ALLOW_THREADS;
6847 wxDC_SetBackground(_arg0,*_arg1);
6848
6849 wxPy_END_ALLOW_THREADS;
6850 if (PyErr_Occurred()) return NULL;
6851 } Py_INCREF(Py_None);
6852 _resultobj = Py_None;
6853 return _resultobj;
6854 }
6855
6856 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
6857 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
6858 PyObject * _resultobj;
6859 wxDC * _arg0;
6860 int _arg1;
6861 PyObject * _argo0 = 0;
6862 char *_kwnames[] = { "self","mode", NULL };
6863
6864 self = self;
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
6866 return NULL;
6867 if (_argo0) {
6868 if (_argo0 == Py_None) { _arg0 = NULL; }
6869 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6870 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
6871 return NULL;
6872 }
6873 }
6874 {
6875 wxPy_BEGIN_ALLOW_THREADS;
6876 wxDC_SetBackgroundMode(_arg0,_arg1);
6877
6878 wxPy_END_ALLOW_THREADS;
6879 if (PyErr_Occurred()) return NULL;
6880 } Py_INCREF(Py_None);
6881 _resultobj = Py_None;
6882 return _resultobj;
6883 }
6884
6885 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6886 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6887 PyObject * _resultobj;
6888 wxDC * _arg0;
6889 long _arg1;
6890 long _arg2;
6891 long _arg3;
6892 long _arg4;
6893 PyObject * _argo0 = 0;
6894 char *_kwnames[] = { "self","x","y","width","height", NULL };
6895
6896 self = self;
6897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6898 return NULL;
6899 if (_argo0) {
6900 if (_argo0 == Py_None) { _arg0 = NULL; }
6901 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6902 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
6903 return NULL;
6904 }
6905 }
6906 {
6907 wxPy_BEGIN_ALLOW_THREADS;
6908 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
6909
6910 wxPy_END_ALLOW_THREADS;
6911 if (PyErr_Occurred()) return NULL;
6912 } Py_INCREF(Py_None);
6913 _resultobj = Py_None;
6914 return _resultobj;
6915 }
6916
6917 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
6918 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject * _resultobj;
6920 wxDC * _arg0;
6921 wxPalette * _arg1;
6922 PyObject * _argo0 = 0;
6923 PyObject * _argo1 = 0;
6924 char *_kwnames[] = { "self","colourMap", NULL };
6925
6926 self = self;
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
6928 return NULL;
6929 if (_argo0) {
6930 if (_argo0 == Py_None) { _arg0 = NULL; }
6931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
6933 return NULL;
6934 }
6935 }
6936 if (_argo1) {
6937 if (_argo1 == Py_None) { _arg1 = NULL; }
6938 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
6939 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
6940 return NULL;
6941 }
6942 }
6943 {
6944 wxPy_BEGIN_ALLOW_THREADS;
6945 wxDC_SetPalette(_arg0,*_arg1);
6946
6947 wxPy_END_ALLOW_THREADS;
6948 if (PyErr_Occurred()) return NULL;
6949 } Py_INCREF(Py_None);
6950 _resultobj = Py_None;
6951 return _resultobj;
6952 }
6953
6954 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
6955 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6956 PyObject * _resultobj;
6957 wxDC * _arg0;
6958 wxBrush * _arg1;
6959 PyObject * _argo0 = 0;
6960 PyObject * _argo1 = 0;
6961 char *_kwnames[] = { "self","brush", NULL };
6962
6963 self = self;
6964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
6965 return NULL;
6966 if (_argo0) {
6967 if (_argo0 == Py_None) { _arg0 = NULL; }
6968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
6970 return NULL;
6971 }
6972 }
6973 if (_argo1) {
6974 if (_argo1 == Py_None) { _arg1 = NULL; }
6975 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6976 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
6977 return NULL;
6978 }
6979 }
6980 {
6981 wxPy_BEGIN_ALLOW_THREADS;
6982 wxDC_SetBrush(_arg0,*_arg1);
6983
6984 wxPy_END_ALLOW_THREADS;
6985 if (PyErr_Occurred()) return NULL;
6986 } Py_INCREF(Py_None);
6987 _resultobj = Py_None;
6988 return _resultobj;
6989 }
6990
6991 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
6992 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6993 PyObject * _resultobj;
6994 wxDC * _arg0;
6995 wxFont * _arg1;
6996 PyObject * _argo0 = 0;
6997 PyObject * _argo1 = 0;
6998 char *_kwnames[] = { "self","font", NULL };
6999
7000 self = self;
7001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
7002 return NULL;
7003 if (_argo0) {
7004 if (_argo0 == Py_None) { _arg0 = NULL; }
7005 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7006 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
7007 return NULL;
7008 }
7009 }
7010 if (_argo1) {
7011 if (_argo1 == Py_None) { _arg1 = NULL; }
7012 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
7013 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
7014 return NULL;
7015 }
7016 }
7017 {
7018 wxPy_BEGIN_ALLOW_THREADS;
7019 wxDC_SetFont(_arg0,*_arg1);
7020
7021 wxPy_END_ALLOW_THREADS;
7022 if (PyErr_Occurred()) return NULL;
7023 } Py_INCREF(Py_None);
7024 _resultobj = Py_None;
7025 return _resultobj;
7026 }
7027
7028 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
7029 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
7030 PyObject * _resultobj;
7031 wxDC * _arg0;
7032 int _arg1;
7033 PyObject * _argo0 = 0;
7034 char *_kwnames[] = { "self","function", NULL };
7035
7036 self = self;
7037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
7038 return NULL;
7039 if (_argo0) {
7040 if (_argo0 == Py_None) { _arg0 = NULL; }
7041 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7042 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
7043 return NULL;
7044 }
7045 }
7046 {
7047 wxPy_BEGIN_ALLOW_THREADS;
7048 wxDC_SetLogicalFunction(_arg0,_arg1);
7049
7050 wxPy_END_ALLOW_THREADS;
7051 if (PyErr_Occurred()) return NULL;
7052 } Py_INCREF(Py_None);
7053 _resultobj = Py_None;
7054 return _resultobj;
7055 }
7056
7057 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
7058 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7059 PyObject * _resultobj;
7060 wxDC * _arg0;
7061 double _arg1;
7062 double _arg2;
7063 PyObject * _argo0 = 0;
7064 char *_kwnames[] = { "self","x","y", NULL };
7065
7066 self = self;
7067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
7068 return NULL;
7069 if (_argo0) {
7070 if (_argo0 == Py_None) { _arg0 = NULL; }
7071 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7072 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
7073 return NULL;
7074 }
7075 }
7076 {
7077 wxPy_BEGIN_ALLOW_THREADS;
7078 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
7079
7080 wxPy_END_ALLOW_THREADS;
7081 if (PyErr_Occurred()) return NULL;
7082 } Py_INCREF(Py_None);
7083 _resultobj = Py_None;
7084 return _resultobj;
7085 }
7086
7087 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
7088 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7089 PyObject * _resultobj;
7090 wxDC * _arg0;
7091 int _arg1;
7092 PyObject * _argo0 = 0;
7093 char *_kwnames[] = { "self","mode", NULL };
7094
7095 self = self;
7096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
7097 return NULL;
7098 if (_argo0) {
7099 if (_argo0 == Py_None) { _arg0 = NULL; }
7100 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7101 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
7102 return NULL;
7103 }
7104 }
7105 {
7106 wxPy_BEGIN_ALLOW_THREADS;
7107 wxDC_SetMapMode(_arg0,_arg1);
7108
7109 wxPy_END_ALLOW_THREADS;
7110 if (PyErr_Occurred()) return NULL;
7111 } Py_INCREF(Py_None);
7112 _resultobj = Py_None;
7113 return _resultobj;
7114 }
7115
7116 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
7117 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7118 PyObject * _resultobj;
7119 wxDC * _arg0;
7120 bool _arg1;
7121 PyObject * _argo0 = 0;
7122 int tempbool1;
7123 char *_kwnames[] = { "self","optimize", NULL };
7124
7125 self = self;
7126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
7127 return NULL;
7128 if (_argo0) {
7129 if (_argo0 == Py_None) { _arg0 = NULL; }
7130 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7131 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
7132 return NULL;
7133 }
7134 }
7135 _arg1 = (bool ) tempbool1;
7136 {
7137 wxPy_BEGIN_ALLOW_THREADS;
7138 wxDC_SetOptimization(_arg0,_arg1);
7139
7140 wxPy_END_ALLOW_THREADS;
7141 if (PyErr_Occurred()) return NULL;
7142 } Py_INCREF(Py_None);
7143 _resultobj = Py_None;
7144 return _resultobj;
7145 }
7146
7147 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
7148 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7149 PyObject * _resultobj;
7150 wxDC * _arg0;
7151 wxPen * _arg1;
7152 PyObject * _argo0 = 0;
7153 PyObject * _argo1 = 0;
7154 char *_kwnames[] = { "self","pen", NULL };
7155
7156 self = self;
7157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
7158 return NULL;
7159 if (_argo0) {
7160 if (_argo0 == Py_None) { _arg0 = NULL; }
7161 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7162 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
7163 return NULL;
7164 }
7165 }
7166 if (_argo1) {
7167 if (_argo1 == Py_None) { _arg1 = NULL; }
7168 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
7169 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
7170 return NULL;
7171 }
7172 }
7173 {
7174 wxPy_BEGIN_ALLOW_THREADS;
7175 wxDC_SetPen(_arg0,*_arg1);
7176
7177 wxPy_END_ALLOW_THREADS;
7178 if (PyErr_Occurred()) return NULL;
7179 } Py_INCREF(Py_None);
7180 _resultobj = Py_None;
7181 return _resultobj;
7182 }
7183
7184 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
7185 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7186 PyObject * _resultobj;
7187 wxDC * _arg0;
7188 wxColour * _arg1;
7189 PyObject * _argo0 = 0;
7190 wxColour temp;
7191 PyObject * _obj1 = 0;
7192 char *_kwnames[] = { "self","colour", NULL };
7193
7194 self = self;
7195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
7196 return NULL;
7197 if (_argo0) {
7198 if (_argo0 == Py_None) { _arg0 = NULL; }
7199 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7200 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
7201 return NULL;
7202 }
7203 }
7204 {
7205 _arg1 = &temp;
7206 if (! wxColour_helper(_obj1, &_arg1))
7207 return NULL;
7208 }
7209 {
7210 wxPy_BEGIN_ALLOW_THREADS;
7211 wxDC_SetTextBackground(_arg0,*_arg1);
7212
7213 wxPy_END_ALLOW_THREADS;
7214 if (PyErr_Occurred()) return NULL;
7215 } Py_INCREF(Py_None);
7216 _resultobj = Py_None;
7217 return _resultobj;
7218 }
7219
7220 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
7221 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
7222 PyObject * _resultobj;
7223 wxDC * _arg0;
7224 wxColour * _arg1;
7225 PyObject * _argo0 = 0;
7226 wxColour temp;
7227 PyObject * _obj1 = 0;
7228 char *_kwnames[] = { "self","colour", NULL };
7229
7230 self = self;
7231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
7232 return NULL;
7233 if (_argo0) {
7234 if (_argo0 == Py_None) { _arg0 = NULL; }
7235 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7236 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
7237 return NULL;
7238 }
7239 }
7240 {
7241 _arg1 = &temp;
7242 if (! wxColour_helper(_obj1, &_arg1))
7243 return NULL;
7244 }
7245 {
7246 wxPy_BEGIN_ALLOW_THREADS;
7247 wxDC_SetTextForeground(_arg0,*_arg1);
7248
7249 wxPy_END_ALLOW_THREADS;
7250 if (PyErr_Occurred()) return NULL;
7251 } Py_INCREF(Py_None);
7252 _resultobj = Py_None;
7253 return _resultobj;
7254 }
7255
7256 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
7257 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7258 PyObject * _resultobj;
7259 wxDC * _arg0;
7260 double _arg1;
7261 double _arg2;
7262 PyObject * _argo0 = 0;
7263 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
7264
7265 self = self;
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
7267 return NULL;
7268 if (_argo0) {
7269 if (_argo0 == Py_None) { _arg0 = NULL; }
7270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
7272 return NULL;
7273 }
7274 }
7275 {
7276 wxPy_BEGIN_ALLOW_THREADS;
7277 wxDC_SetUserScale(_arg0,_arg1,_arg2);
7278
7279 wxPy_END_ALLOW_THREADS;
7280 if (PyErr_Occurred()) return NULL;
7281 } Py_INCREF(Py_None);
7282 _resultobj = Py_None;
7283 return _resultobj;
7284 }
7285
7286 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
7287 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7288 PyObject * _resultobj;
7289 bool _result;
7290 wxDC * _arg0;
7291 wxString * _arg1;
7292 PyObject * _argo0 = 0;
7293 PyObject * _obj1 = 0;
7294 char *_kwnames[] = { "self","message", NULL };
7295
7296 self = self;
7297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
7298 return NULL;
7299 if (_argo0) {
7300 if (_argo0 == Py_None) { _arg0 = NULL; }
7301 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7302 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
7303 return NULL;
7304 }
7305 }
7306 {
7307 #if PYTHON_API_VERSION >= 1009
7308 char* tmpPtr; int tmpSize;
7309 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7310 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7311 return NULL;
7312 }
7313 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7314 return NULL;
7315 _arg1 = new wxString(tmpPtr, tmpSize);
7316 #else
7317 if (!PyString_Check(_obj1)) {
7318 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7319 return NULL;
7320 }
7321 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7322 #endif
7323 }
7324 {
7325 wxPy_BEGIN_ALLOW_THREADS;
7326 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
7327
7328 wxPy_END_ALLOW_THREADS;
7329 if (PyErr_Occurred()) return NULL;
7330 } _resultobj = Py_BuildValue("i",_result);
7331 {
7332 if (_obj1)
7333 delete _arg1;
7334 }
7335 return _resultobj;
7336 }
7337
7338 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
7339 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7340 PyObject * _resultobj;
7341 wxDC * _arg0;
7342 PyObject * _argo0 = 0;
7343 char *_kwnames[] = { "self", NULL };
7344
7345 self = self;
7346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
7347 return NULL;
7348 if (_argo0) {
7349 if (_argo0 == Py_None) { _arg0 = NULL; }
7350 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7351 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
7352 return NULL;
7353 }
7354 }
7355 {
7356 wxPy_BEGIN_ALLOW_THREADS;
7357 wxDC_StartPage(_arg0);
7358
7359 wxPy_END_ALLOW_THREADS;
7360 if (PyErr_Occurred()) return NULL;
7361 } Py_INCREF(Py_None);
7362 _resultobj = Py_None;
7363 return _resultobj;
7364 }
7365
7366 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7367 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7368 PyObject * _resultobj;
7369 wxDC * _arg0;
7370 wxBitmap * _arg1;
7371 long _arg2;
7372 long _arg3;
7373 int _arg4 = (int ) FALSE;
7374 PyObject * _argo0 = 0;
7375 PyObject * _argo1 = 0;
7376 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
7377
7378 self = self;
7379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
7380 return NULL;
7381 if (_argo0) {
7382 if (_argo0 == Py_None) { _arg0 = NULL; }
7383 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7384 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
7385 return NULL;
7386 }
7387 }
7388 if (_argo1) {
7389 if (_argo1 == Py_None) { _arg1 = NULL; }
7390 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7391 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
7392 return NULL;
7393 }
7394 }
7395 {
7396 wxPy_BEGIN_ALLOW_THREADS;
7397 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
7398
7399 wxPy_END_ALLOW_THREADS;
7400 if (PyErr_Occurred()) return NULL;
7401 } Py_INCREF(Py_None);
7402 _resultobj = Py_None;
7403 return _resultobj;
7404 }
7405
7406 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
7407 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
7408 PyObject * _resultobj;
7409 bool _result;
7410 wxDC * _arg0;
7411 PyObject * _argo0 = 0;
7412 char *_kwnames[] = { "self", NULL };
7413
7414 self = self;
7415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
7416 return NULL;
7417 if (_argo0) {
7418 if (_argo0 == Py_None) { _arg0 = NULL; }
7419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
7421 return NULL;
7422 }
7423 }
7424 {
7425 wxPy_BEGIN_ALLOW_THREADS;
7426 _result = (bool )wxDC_CanDrawBitmap(_arg0);
7427
7428 wxPy_END_ALLOW_THREADS;
7429 if (PyErr_Occurred()) return NULL;
7430 } _resultobj = Py_BuildValue("i",_result);
7431 return _resultobj;
7432 }
7433
7434 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
7435 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7436 PyObject * _resultobj;
7437 bool _result;
7438 wxDC * _arg0;
7439 PyObject * _argo0 = 0;
7440 char *_kwnames[] = { "self", NULL };
7441
7442 self = self;
7443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
7444 return NULL;
7445 if (_argo0) {
7446 if (_argo0 == Py_None) { _arg0 = NULL; }
7447 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7448 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
7449 return NULL;
7450 }
7451 }
7452 {
7453 wxPy_BEGIN_ALLOW_THREADS;
7454 _result = (bool )wxDC_CanGetTextExtent(_arg0);
7455
7456 wxPy_END_ALLOW_THREADS;
7457 if (PyErr_Occurred()) return NULL;
7458 } _resultobj = Py_BuildValue("i",_result);
7459 return _resultobj;
7460 }
7461
7462 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
7463 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
7464 PyObject * _resultobj;
7465 int _result;
7466 wxDC * _arg0;
7467 PyObject * _argo0 = 0;
7468 char *_kwnames[] = { "self", NULL };
7469
7470 self = self;
7471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
7472 return NULL;
7473 if (_argo0) {
7474 if (_argo0 == Py_None) { _arg0 = NULL; }
7475 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7476 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
7477 return NULL;
7478 }
7479 }
7480 {
7481 wxPy_BEGIN_ALLOW_THREADS;
7482 _result = (int )wxDC_GetDepth(_arg0);
7483
7484 wxPy_END_ALLOW_THREADS;
7485 if (PyErr_Occurred()) return NULL;
7486 } _resultobj = Py_BuildValue("i",_result);
7487 return _resultobj;
7488 }
7489
7490 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
7491 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
7492 PyObject * _resultobj;
7493 wxSize * _result;
7494 wxDC * _arg0;
7495 PyObject * _argo0 = 0;
7496 char *_kwnames[] = { "self", NULL };
7497 char _ptemp[128];
7498
7499 self = self;
7500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
7501 return NULL;
7502 if (_argo0) {
7503 if (_argo0 == Py_None) { _arg0 = NULL; }
7504 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7505 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
7506 return NULL;
7507 }
7508 }
7509 {
7510 wxPy_BEGIN_ALLOW_THREADS;
7511 _result = new wxSize (wxDC_GetPPI(_arg0));
7512
7513 wxPy_END_ALLOW_THREADS;
7514 if (PyErr_Occurred()) return NULL;
7515 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7516 _resultobj = Py_BuildValue("s",_ptemp);
7517 return _resultobj;
7518 }
7519
7520 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
7521 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7522 PyObject * _resultobj;
7523 wxDC * _arg0;
7524 int * _arg1;
7525 int temp;
7526 int * _arg2;
7527 int temp0;
7528 PyObject * _argo0 = 0;
7529 char *_kwnames[] = { "self", NULL };
7530
7531 self = self;
7532 {
7533 _arg1 = &temp;
7534 }
7535 {
7536 _arg2 = &temp0;
7537 }
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
7539 return NULL;
7540 if (_argo0) {
7541 if (_argo0 == Py_None) { _arg0 = NULL; }
7542 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7543 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
7544 return NULL;
7545 }
7546 }
7547 {
7548 wxPy_BEGIN_ALLOW_THREADS;
7549 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
7550
7551 wxPy_END_ALLOW_THREADS;
7552 if (PyErr_Occurred()) return NULL;
7553 } Py_INCREF(Py_None);
7554 _resultobj = Py_None;
7555 {
7556 PyObject *o;
7557 o = PyInt_FromLong((long) (*_arg1));
7558 _resultobj = t_output_helper(_resultobj, o);
7559 }
7560 {
7561 PyObject *o;
7562 o = PyInt_FromLong((long) (*_arg2));
7563 _resultobj = t_output_helper(_resultobj, o);
7564 }
7565 return _resultobj;
7566 }
7567
7568 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
7569 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7570 PyObject * _resultobj;
7571 wxDC * _arg0;
7572 int _arg1;
7573 int _arg2;
7574 PyObject * _argo0 = 0;
7575 char *_kwnames[] = { "self","x","y", NULL };
7576
7577 self = self;
7578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
7579 return NULL;
7580 if (_argo0) {
7581 if (_argo0 == Py_None) { _arg0 = NULL; }
7582 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7583 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
7584 return NULL;
7585 }
7586 }
7587 {
7588 wxPy_BEGIN_ALLOW_THREADS;
7589 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
7590
7591 wxPy_END_ALLOW_THREADS;
7592 if (PyErr_Occurred()) return NULL;
7593 } Py_INCREF(Py_None);
7594 _resultobj = Py_None;
7595 return _resultobj;
7596 }
7597
7598 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
7599 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
7600 PyObject * _resultobj;
7601 wxDC * _arg0;
7602 int * _arg1;
7603 int temp;
7604 int * _arg2;
7605 int temp0;
7606 PyObject * _argo0 = 0;
7607 char *_kwnames[] = { "self", NULL };
7608
7609 self = self;
7610 {
7611 _arg1 = &temp;
7612 }
7613 {
7614 _arg2 = &temp0;
7615 }
7616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
7617 return NULL;
7618 if (_argo0) {
7619 if (_argo0 == Py_None) { _arg0 = NULL; }
7620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
7622 return NULL;
7623 }
7624 }
7625 {
7626 wxPy_BEGIN_ALLOW_THREADS;
7627 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
7628
7629 wxPy_END_ALLOW_THREADS;
7630 if (PyErr_Occurred()) return NULL;
7631 } Py_INCREF(Py_None);
7632 _resultobj = Py_None;
7633 {
7634 PyObject *o;
7635 o = PyInt_FromLong((long) (*_arg1));
7636 _resultobj = t_output_helper(_resultobj, o);
7637 }
7638 {
7639 PyObject *o;
7640 o = PyInt_FromLong((long) (*_arg2));
7641 _resultobj = t_output_helper(_resultobj, o);
7642 }
7643 return _resultobj;
7644 }
7645
7646 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
7647 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
7648 PyObject * _resultobj;
7649 wxDC * _arg0;
7650 bool _arg1;
7651 bool _arg2;
7652 PyObject * _argo0 = 0;
7653 int tempbool1;
7654 int tempbool2;
7655 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
7656
7657 self = self;
7658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
7659 return NULL;
7660 if (_argo0) {
7661 if (_argo0 == Py_None) { _arg0 = NULL; }
7662 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7663 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
7664 return NULL;
7665 }
7666 }
7667 _arg1 = (bool ) tempbool1;
7668 _arg2 = (bool ) tempbool2;
7669 {
7670 wxPy_BEGIN_ALLOW_THREADS;
7671 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
7672
7673 wxPy_END_ALLOW_THREADS;
7674 if (PyErr_Occurred()) return NULL;
7675 } Py_INCREF(Py_None);
7676 _resultobj = Py_None;
7677 return _resultobj;
7678 }
7679
7680 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
7681 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7682 PyObject * _resultobj;
7683 wxDC * _arg0;
7684 int _arg1;
7685 int _arg2;
7686 PyObject * _argo0 = 0;
7687 char *_kwnames[] = { "self","x","y", NULL };
7688
7689 self = self;
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
7691 return NULL;
7692 if (_argo0) {
7693 if (_argo0 == Py_None) { _arg0 = NULL; }
7694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
7696 return NULL;
7697 }
7698 }
7699 {
7700 wxPy_BEGIN_ALLOW_THREADS;
7701 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
7702
7703 wxPy_END_ALLOW_THREADS;
7704 if (PyErr_Occurred()) return NULL;
7705 } Py_INCREF(Py_None);
7706 _resultobj = Py_None;
7707 return _resultobj;
7708 }
7709
7710 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
7711 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7712 PyObject * _resultobj;
7713 wxDC * _arg0;
7714 PyObject * _argo0 = 0;
7715 char *_kwnames[] = { "self", NULL };
7716
7717 self = self;
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
7719 return NULL;
7720 if (_argo0) {
7721 if (_argo0 == Py_None) { _arg0 = NULL; }
7722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
7724 return NULL;
7725 }
7726 }
7727 {
7728 wxPy_BEGIN_ALLOW_THREADS;
7729 wxDC_ResetBoundingBox(_arg0);
7730
7731 wxPy_END_ALLOW_THREADS;
7732 if (PyErr_Occurred()) return NULL;
7733 } Py_INCREF(Py_None);
7734 _resultobj = Py_None;
7735 return _resultobj;
7736 }
7737
7738 static void *SwigwxMemoryDCTowxDC(void *ptr) {
7739 wxMemoryDC *src;
7740 wxDC *dest;
7741 src = (wxMemoryDC *) ptr;
7742 dest = (wxDC *) src;
7743 return (void *) dest;
7744 }
7745
7746 static void *SwigwxMemoryDCTowxObject(void *ptr) {
7747 wxMemoryDC *src;
7748 wxObject *dest;
7749 src = (wxMemoryDC *) ptr;
7750 dest = (wxObject *) src;
7751 return (void *) dest;
7752 }
7753
7754 #define new_wxMemoryDC() (new wxMemoryDC())
7755 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7756 PyObject * _resultobj;
7757 wxMemoryDC * _result;
7758 char *_kwnames[] = { NULL };
7759 char _ptemp[128];
7760
7761 self = self;
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
7763 return NULL;
7764 {
7765 wxPy_BEGIN_ALLOW_THREADS;
7766 _result = (wxMemoryDC *)new_wxMemoryDC();
7767
7768 wxPy_END_ALLOW_THREADS;
7769 if (PyErr_Occurred()) return NULL;
7770 } if (_result) {
7771 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
7772 _resultobj = Py_BuildValue("s",_ptemp);
7773 } else {
7774 Py_INCREF(Py_None);
7775 _resultobj = Py_None;
7776 }
7777 return _resultobj;
7778 }
7779
7780 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
7781 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject * _resultobj;
7783 wxMemoryDC * _arg0;
7784 wxBitmap * _arg1;
7785 PyObject * _argo0 = 0;
7786 PyObject * _argo1 = 0;
7787 char *_kwnames[] = { "self","bitmap", NULL };
7788
7789 self = self;
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
7791 return NULL;
7792 if (_argo0) {
7793 if (_argo0 == Py_None) { _arg0 = NULL; }
7794 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
7795 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
7796 return NULL;
7797 }
7798 }
7799 if (_argo1) {
7800 if (_argo1 == Py_None) { _arg1 = NULL; }
7801 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
7802 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
7803 return NULL;
7804 }
7805 }
7806 {
7807 wxPy_BEGIN_ALLOW_THREADS;
7808 wxMemoryDC_SelectObject(_arg0,*_arg1);
7809
7810 wxPy_END_ALLOW_THREADS;
7811 if (PyErr_Occurred()) return NULL;
7812 } Py_INCREF(Py_None);
7813 _resultobj = Py_None;
7814 return _resultobj;
7815 }
7816
7817 static void *SwigwxScreenDCTowxDC(void *ptr) {
7818 wxScreenDC *src;
7819 wxDC *dest;
7820 src = (wxScreenDC *) ptr;
7821 dest = (wxDC *) src;
7822 return (void *) dest;
7823 }
7824
7825 static void *SwigwxScreenDCTowxObject(void *ptr) {
7826 wxScreenDC *src;
7827 wxObject *dest;
7828 src = (wxScreenDC *) ptr;
7829 dest = (wxObject *) src;
7830 return (void *) dest;
7831 }
7832
7833 #define new_wxScreenDC() (new wxScreenDC())
7834 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7835 PyObject * _resultobj;
7836 wxScreenDC * _result;
7837 char *_kwnames[] = { NULL };
7838 char _ptemp[128];
7839
7840 self = self;
7841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
7842 return NULL;
7843 {
7844 wxPy_BEGIN_ALLOW_THREADS;
7845 _result = (wxScreenDC *)new_wxScreenDC();
7846
7847 wxPy_END_ALLOW_THREADS;
7848 if (PyErr_Occurred()) return NULL;
7849 } if (_result) {
7850 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
7851 _resultobj = Py_BuildValue("s",_ptemp);
7852 } else {
7853 Py_INCREF(Py_None);
7854 _resultobj = Py_None;
7855 }
7856 return _resultobj;
7857 }
7858
7859 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7860 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
7861 PyObject * _resultobj;
7862 bool _result;
7863 wxScreenDC * _arg0;
7864 wxWindow * _arg1;
7865 PyObject * _argo0 = 0;
7866 PyObject * _argo1 = 0;
7867 char *_kwnames[] = { "self","window", NULL };
7868
7869 self = self;
7870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
7871 return NULL;
7872 if (_argo0) {
7873 if (_argo0 == Py_None) { _arg0 = NULL; }
7874 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
7875 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
7876 return NULL;
7877 }
7878 }
7879 if (_argo1) {
7880 if (_argo1 == Py_None) { _arg1 = NULL; }
7881 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
7882 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
7883 return NULL;
7884 }
7885 }
7886 {
7887 wxPy_BEGIN_ALLOW_THREADS;
7888 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
7889
7890 wxPy_END_ALLOW_THREADS;
7891 if (PyErr_Occurred()) return NULL;
7892 } _resultobj = Py_BuildValue("i",_result);
7893 return _resultobj;
7894 }
7895
7896 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
7897 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
7898 PyObject * _resultobj;
7899 bool _result;
7900 wxScreenDC * _arg0;
7901 wxRect * _arg1 = (wxRect *) NULL;
7902 PyObject * _argo0 = 0;
7903 wxRect temp;
7904 PyObject * _obj1 = 0;
7905 char *_kwnames[] = { "self","rect", NULL };
7906
7907 self = self;
7908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
7909 return NULL;
7910 if (_argo0) {
7911 if (_argo0 == Py_None) { _arg0 = NULL; }
7912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
7913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
7914 return NULL;
7915 }
7916 }
7917 if (_obj1)
7918 {
7919 _arg1 = &temp;
7920 if (! wxRect_helper(_obj1, &_arg1))
7921 return NULL;
7922 }
7923 {
7924 wxPy_BEGIN_ALLOW_THREADS;
7925 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
7926
7927 wxPy_END_ALLOW_THREADS;
7928 if (PyErr_Occurred()) return NULL;
7929 } _resultobj = Py_BuildValue("i",_result);
7930 return _resultobj;
7931 }
7932
7933 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
7934 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
7935 PyObject * _resultobj;
7936 bool _result;
7937 wxScreenDC * _arg0;
7938 PyObject * _argo0 = 0;
7939 char *_kwnames[] = { "self", NULL };
7940
7941 self = self;
7942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
7943 return NULL;
7944 if (_argo0) {
7945 if (_argo0 == Py_None) { _arg0 = NULL; }
7946 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
7947 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
7948 return NULL;
7949 }
7950 }
7951 {
7952 wxPy_BEGIN_ALLOW_THREADS;
7953 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
7954
7955 wxPy_END_ALLOW_THREADS;
7956 if (PyErr_Occurred()) return NULL;
7957 } _resultobj = Py_BuildValue("i",_result);
7958 return _resultobj;
7959 }
7960
7961 static void *SwigwxClientDCTowxDC(void *ptr) {
7962 wxClientDC *src;
7963 wxDC *dest;
7964 src = (wxClientDC *) ptr;
7965 dest = (wxDC *) src;
7966 return (void *) dest;
7967 }
7968
7969 static void *SwigwxClientDCTowxObject(void *ptr) {
7970 wxClientDC *src;
7971 wxObject *dest;
7972 src = (wxClientDC *) ptr;
7973 dest = (wxObject *) src;
7974 return (void *) dest;
7975 }
7976
7977 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
7978 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
7979 PyObject * _resultobj;
7980 wxClientDC * _result;
7981 wxWindow * _arg0;
7982 PyObject * _argo0 = 0;
7983 char *_kwnames[] = { "win", NULL };
7984 char _ptemp[128];
7985
7986 self = self;
7987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
7988 return NULL;
7989 if (_argo0) {
7990 if (_argo0 == Py_None) { _arg0 = NULL; }
7991 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
7992 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
7993 return NULL;
7994 }
7995 }
7996 {
7997 wxPy_BEGIN_ALLOW_THREADS;
7998 _result = (wxClientDC *)new_wxClientDC(_arg0);
7999
8000 wxPy_END_ALLOW_THREADS;
8001 if (PyErr_Occurred()) return NULL;
8002 } if (_result) {
8003 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
8004 _resultobj = Py_BuildValue("s",_ptemp);
8005 } else {
8006 Py_INCREF(Py_None);
8007 _resultobj = Py_None;
8008 }
8009 return _resultobj;
8010 }
8011
8012 static void *SwigwxPaintDCTowxDC(void *ptr) {
8013 wxPaintDC *src;
8014 wxDC *dest;
8015 src = (wxPaintDC *) ptr;
8016 dest = (wxDC *) src;
8017 return (void *) dest;
8018 }
8019
8020 static void *SwigwxPaintDCTowxObject(void *ptr) {
8021 wxPaintDC *src;
8022 wxObject *dest;
8023 src = (wxPaintDC *) ptr;
8024 dest = (wxObject *) src;
8025 return (void *) dest;
8026 }
8027
8028 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
8029 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8030 PyObject * _resultobj;
8031 wxPaintDC * _result;
8032 wxWindow * _arg0;
8033 PyObject * _argo0 = 0;
8034 char *_kwnames[] = { "win", NULL };
8035 char _ptemp[128];
8036
8037 self = self;
8038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
8039 return NULL;
8040 if (_argo0) {
8041 if (_argo0 == Py_None) { _arg0 = NULL; }
8042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
8044 return NULL;
8045 }
8046 }
8047 {
8048 wxPy_BEGIN_ALLOW_THREADS;
8049 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
8050
8051 wxPy_END_ALLOW_THREADS;
8052 if (PyErr_Occurred()) return NULL;
8053 } if (_result) {
8054 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
8055 _resultobj = Py_BuildValue("s",_ptemp);
8056 } else {
8057 Py_INCREF(Py_None);
8058 _resultobj = Py_None;
8059 }
8060 return _resultobj;
8061 }
8062
8063 static void *SwigwxWindowDCTowxDC(void *ptr) {
8064 wxWindowDC *src;
8065 wxDC *dest;
8066 src = (wxWindowDC *) ptr;
8067 dest = (wxDC *) src;
8068 return (void *) dest;
8069 }
8070
8071 static void *SwigwxWindowDCTowxObject(void *ptr) {
8072 wxWindowDC *src;
8073 wxObject *dest;
8074 src = (wxWindowDC *) ptr;
8075 dest = (wxObject *) src;
8076 return (void *) dest;
8077 }
8078
8079 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
8080 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8081 PyObject * _resultobj;
8082 wxWindowDC * _result;
8083 wxWindow * _arg0;
8084 PyObject * _argo0 = 0;
8085 char *_kwnames[] = { "win", NULL };
8086 char _ptemp[128];
8087
8088 self = self;
8089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
8090 return NULL;
8091 if (_argo0) {
8092 if (_argo0 == Py_None) { _arg0 = NULL; }
8093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
8094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
8095 return NULL;
8096 }
8097 }
8098 {
8099 wxPy_BEGIN_ALLOW_THREADS;
8100 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
8101
8102 wxPy_END_ALLOW_THREADS;
8103 if (PyErr_Occurred()) return NULL;
8104 } if (_result) {
8105 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
8106 _resultobj = Py_BuildValue("s",_ptemp);
8107 } else {
8108 Py_INCREF(Py_None);
8109 _resultobj = Py_None;
8110 }
8111 return _resultobj;
8112 }
8113
8114 static void *SwigwxPostScriptDCTowxDC(void *ptr) {
8115 wxPostScriptDC *src;
8116 wxDC *dest;
8117 src = (wxPostScriptDC *) ptr;
8118 dest = (wxDC *) src;
8119 return (void *) dest;
8120 }
8121
8122 static void *SwigwxPostScriptDCTowxObject(void *ptr) {
8123 wxPostScriptDC *src;
8124 wxObject *dest;
8125 src = (wxPostScriptDC *) ptr;
8126 dest = (wxObject *) src;
8127 return (void *) dest;
8128 }
8129
8130 #define new_wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2) (new wxPostScriptDC(_swigarg0,_swigarg1,_swigarg2))
8131 static PyObject *_wrap_new_wxPostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
8132 PyObject * _resultobj;
8133 wxPostScriptDC * _result;
8134 wxString * _arg0;
8135 bool _arg1 = (bool ) TRUE;
8136 wxWindow * _arg2 = (wxWindow *) NULL;
8137 PyObject * _obj0 = 0;
8138 int tempbool1 = (int) TRUE;
8139 PyObject * _argo2 = 0;
8140 char *_kwnames[] = { "output","interactive","win", NULL };
8141 char _ptemp[128];
8142
8143 self = self;
8144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|iO:new_wxPostScriptDC",_kwnames,&_obj0,&tempbool1,&_argo2))
8145 return NULL;
8146 {
8147 #if PYTHON_API_VERSION >= 1009
8148 char* tmpPtr; int tmpSize;
8149 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
8150 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8151 return NULL;
8152 }
8153 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
8154 return NULL;
8155 _arg0 = new wxString(tmpPtr, tmpSize);
8156 #else
8157 if (!PyString_Check(_obj0)) {
8158 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8159 return NULL;
8160 }
8161 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
8162 #endif
8163 }
8164 _arg1 = (bool ) tempbool1;
8165 if (_argo2) {
8166 if (_argo2 == Py_None) { _arg2 = NULL; }
8167 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxWindow_p")) {
8168 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of new_wxPostScriptDC. Expected _wxWindow_p.");
8169 return NULL;
8170 }
8171 }
8172 {
8173 wxPy_BEGIN_ALLOW_THREADS;
8174 _result = (wxPostScriptDC *)new_wxPostScriptDC(*_arg0,_arg1,_arg2);
8175
8176 wxPy_END_ALLOW_THREADS;
8177 if (PyErr_Occurred()) return NULL;
8178 } if (_result) {
8179 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPostScriptDC_p");
8180 _resultobj = Py_BuildValue("s",_ptemp);
8181 } else {
8182 Py_INCREF(Py_None);
8183 _resultobj = Py_None;
8184 }
8185 {
8186 if (_obj0)
8187 delete _arg0;
8188 }
8189 return _resultobj;
8190 }
8191
8192 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
8193 wxPalette *src;
8194 wxGDIObject *dest;
8195 src = (wxPalette *) ptr;
8196 dest = (wxGDIObject *) src;
8197 return (void *) dest;
8198 }
8199
8200 static void *SwigwxPaletteTowxObject(void *ptr) {
8201 wxPalette *src;
8202 wxObject *dest;
8203 src = (wxPalette *) ptr;
8204 dest = (wxObject *) src;
8205 return (void *) dest;
8206 }
8207
8208 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8209 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8210 PyObject * _resultobj;
8211 wxPalette * _result;
8212 int _arg0;
8213 byte * _arg1;
8214 byte * _arg2;
8215 byte * _arg3;
8216 PyObject * _obj1 = 0;
8217 PyObject * _obj2 = 0;
8218 PyObject * _obj3 = 0;
8219 char *_kwnames[] = { "choices","choices","choices", NULL };
8220 char _ptemp[128];
8221
8222 self = self;
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
8224 return NULL;
8225 {
8226 _arg1 = byte_LIST_helper(_obj1);
8227 if (_arg1 == NULL) {
8228 return NULL;
8229 }
8230 }
8231 {
8232 _arg2 = byte_LIST_helper(_obj2);
8233 if (_arg2 == NULL) {
8234 return NULL;
8235 }
8236 }
8237 if (_obj3)
8238 {
8239 _arg3 = byte_LIST_helper(_obj3);
8240 if (_arg3 == NULL) {
8241 return NULL;
8242 }
8243 }
8244 {
8245 if (_obj1) {
8246 _arg0 = PyList_Size(_obj1);
8247 }
8248 else {
8249 _arg0 = 0;
8250 }
8251 }
8252 {
8253 wxPy_BEGIN_ALLOW_THREADS;
8254 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
8255
8256 wxPy_END_ALLOW_THREADS;
8257 if (PyErr_Occurred()) return NULL;
8258 } if (_result) {
8259 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
8260 _resultobj = Py_BuildValue("s",_ptemp);
8261 } else {
8262 Py_INCREF(Py_None);
8263 _resultobj = Py_None;
8264 }
8265 {
8266 delete [] _arg1;
8267 }
8268 {
8269 delete [] _arg2;
8270 }
8271 {
8272 delete [] _arg3;
8273 }
8274 return _resultobj;
8275 }
8276
8277 #define delete_wxPalette(_swigobj) (delete _swigobj)
8278 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8279 PyObject * _resultobj;
8280 wxPalette * _arg0;
8281 PyObject * _argo0 = 0;
8282 char *_kwnames[] = { "self", NULL };
8283
8284 self = self;
8285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
8286 return NULL;
8287 if (_argo0) {
8288 if (_argo0 == Py_None) { _arg0 = NULL; }
8289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
8291 return NULL;
8292 }
8293 }
8294 {
8295 wxPy_BEGIN_ALLOW_THREADS;
8296 delete_wxPalette(_arg0);
8297
8298 wxPy_END_ALLOW_THREADS;
8299 if (PyErr_Occurred()) return NULL;
8300 } Py_INCREF(Py_None);
8301 _resultobj = Py_None;
8302 return _resultobj;
8303 }
8304
8305 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
8306 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
8307 PyObject * _resultobj;
8308 int _result;
8309 wxPalette * _arg0;
8310 byte _arg1;
8311 byte _arg2;
8312 byte _arg3;
8313 PyObject * _argo0 = 0;
8314 char *_kwnames[] = { "self","red","green","blue", NULL };
8315
8316 self = self;
8317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
8318 return NULL;
8319 if (_argo0) {
8320 if (_argo0 == Py_None) { _arg0 = NULL; }
8321 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8322 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
8323 return NULL;
8324 }
8325 }
8326 {
8327 wxPy_BEGIN_ALLOW_THREADS;
8328 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
8329
8330 wxPy_END_ALLOW_THREADS;
8331 if (PyErr_Occurred()) return NULL;
8332 } _resultobj = Py_BuildValue("i",_result);
8333 return _resultobj;
8334 }
8335
8336 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8337 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject * _resultobj;
8339 bool _result;
8340 wxPalette * _arg0;
8341 int _arg1;
8342 byte * _arg2;
8343 byte * _arg3;
8344 byte * _arg4;
8345 PyObject * _argo0 = 0;
8346 PyObject * _argo2 = 0;
8347 PyObject * _argo3 = 0;
8348 PyObject * _argo4 = 0;
8349 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
8350
8351 self = self;
8352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
8353 return NULL;
8354 if (_argo0) {
8355 if (_argo0 == Py_None) { _arg0 = NULL; }
8356 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8357 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
8358 return NULL;
8359 }
8360 }
8361 if (_argo2) {
8362 if (_argo2 == Py_None) { _arg2 = NULL; }
8363 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
8364 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
8365 return NULL;
8366 }
8367 }
8368 if (_argo3) {
8369 if (_argo3 == Py_None) { _arg3 = NULL; }
8370 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
8371 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
8372 return NULL;
8373 }
8374 }
8375 if (_argo4) {
8376 if (_argo4 == Py_None) { _arg4 = NULL; }
8377 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
8378 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
8379 return NULL;
8380 }
8381 }
8382 {
8383 wxPy_BEGIN_ALLOW_THREADS;
8384 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
8385
8386 wxPy_END_ALLOW_THREADS;
8387 if (PyErr_Occurred()) return NULL;
8388 } _resultobj = Py_BuildValue("i",_result);
8389 return _resultobj;
8390 }
8391
8392 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
8393 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8394 PyObject * _resultobj;
8395 bool _result;
8396 wxPalette * _arg0;
8397 PyObject * _argo0 = 0;
8398 char *_kwnames[] = { "self", NULL };
8399
8400 self = self;
8401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
8402 return NULL;
8403 if (_argo0) {
8404 if (_argo0 == Py_None) { _arg0 = NULL; }
8405 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
8406 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
8407 return NULL;
8408 }
8409 }
8410 {
8411 wxPy_BEGIN_ALLOW_THREADS;
8412 _result = (bool )wxPalette_Ok(_arg0);
8413
8414 wxPy_END_ALLOW_THREADS;
8415 if (PyErr_Occurred()) return NULL;
8416 } _resultobj = Py_BuildValue("i",_result);
8417 return _resultobj;
8418 }
8419
8420 static void *SwigwxImageListTowxObject(void *ptr) {
8421 wxImageList *src;
8422 wxObject *dest;
8423 src = (wxImageList *) ptr;
8424 dest = (wxObject *) src;
8425 return (void *) dest;
8426 }
8427
8428 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8429 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8430 PyObject * _resultobj;
8431 wxImageList * _result;
8432 int _arg0;
8433 int _arg1;
8434 int _arg2 = (int ) TRUE;
8435 int _arg3 = (int ) 1;
8436 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
8437 char _ptemp[128];
8438
8439 self = self;
8440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
8441 return NULL;
8442 {
8443 wxPy_BEGIN_ALLOW_THREADS;
8444 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
8445
8446 wxPy_END_ALLOW_THREADS;
8447 if (PyErr_Occurred()) return NULL;
8448 } if (_result) {
8449 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
8450 _resultobj = Py_BuildValue("s",_ptemp);
8451 } else {
8452 Py_INCREF(Py_None);
8453 _resultobj = Py_None;
8454 }
8455 return _resultobj;
8456 }
8457
8458 #define delete_wxImageList(_swigobj) (delete _swigobj)
8459 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
8460 PyObject * _resultobj;
8461 wxImageList * _arg0;
8462 PyObject * _argo0 = 0;
8463 char *_kwnames[] = { "self", NULL };
8464
8465 self = self;
8466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
8467 return NULL;
8468 if (_argo0) {
8469 if (_argo0 == Py_None) { _arg0 = NULL; }
8470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
8472 return NULL;
8473 }
8474 }
8475 {
8476 wxPy_BEGIN_ALLOW_THREADS;
8477 delete_wxImageList(_arg0);
8478
8479 wxPy_END_ALLOW_THREADS;
8480 if (PyErr_Occurred()) return NULL;
8481 } Py_INCREF(Py_None);
8482 _resultobj = Py_None;
8483 return _resultobj;
8484 }
8485
8486 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8487 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
8488 PyObject * _resultobj;
8489 int _result;
8490 wxImageList * _arg0;
8491 wxBitmap * _arg1;
8492 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
8493 PyObject * _argo0 = 0;
8494 PyObject * _argo1 = 0;
8495 PyObject * _argo2 = 0;
8496 char *_kwnames[] = { "self","bitmap","mask", NULL };
8497
8498 self = self;
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
8500 return NULL;
8501 if (_argo0) {
8502 if (_argo0 == Py_None) { _arg0 = NULL; }
8503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
8505 return NULL;
8506 }
8507 }
8508 if (_argo1) {
8509 if (_argo1 == Py_None) { _arg1 = NULL; }
8510 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8511 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
8512 return NULL;
8513 }
8514 }
8515 if (_argo2) {
8516 if (_argo2 == Py_None) { _arg2 = NULL; }
8517 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8518 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
8519 return NULL;
8520 }
8521 }
8522 {
8523 wxPy_BEGIN_ALLOW_THREADS;
8524 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
8525
8526 wxPy_END_ALLOW_THREADS;
8527 if (PyErr_Occurred()) return NULL;
8528 } _resultobj = Py_BuildValue("i",_result);
8529 return _resultobj;
8530 }
8531
8532 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
8533 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
8534 PyObject * _resultobj;
8535 int _result;
8536 wxImageList * _arg0;
8537 wxBitmap * _arg1;
8538 wxColour * _arg2;
8539 PyObject * _argo0 = 0;
8540 PyObject * _argo1 = 0;
8541 wxColour temp;
8542 PyObject * _obj2 = 0;
8543 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
8544
8545 self = self;
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
8547 return NULL;
8548 if (_argo0) {
8549 if (_argo0 == Py_None) { _arg0 = NULL; }
8550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
8552 return NULL;
8553 }
8554 }
8555 if (_argo1) {
8556 if (_argo1 == Py_None) { _arg1 = NULL; }
8557 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
8558 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
8559 return NULL;
8560 }
8561 }
8562 {
8563 _arg2 = &temp;
8564 if (! wxColour_helper(_obj2, &_arg2))
8565 return NULL;
8566 }
8567 {
8568 wxPy_BEGIN_ALLOW_THREADS;
8569 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
8570
8571 wxPy_END_ALLOW_THREADS;
8572 if (PyErr_Occurred()) return NULL;
8573 } _resultobj = Py_BuildValue("i",_result);
8574 return _resultobj;
8575 }
8576
8577 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
8578 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
8579 PyObject * _resultobj;
8580 int _result;
8581 wxImageList * _arg0;
8582 wxIcon * _arg1;
8583 PyObject * _argo0 = 0;
8584 PyObject * _argo1 = 0;
8585 char *_kwnames[] = { "self","icon", NULL };
8586
8587 self = self;
8588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
8589 return NULL;
8590 if (_argo0) {
8591 if (_argo0 == Py_None) { _arg0 = NULL; }
8592 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8593 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
8594 return NULL;
8595 }
8596 }
8597 if (_argo1) {
8598 if (_argo1 == Py_None) { _arg1 = NULL; }
8599 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
8600 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
8601 return NULL;
8602 }
8603 }
8604 {
8605 wxPy_BEGIN_ALLOW_THREADS;
8606 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
8607
8608 wxPy_END_ALLOW_THREADS;
8609 if (PyErr_Occurred()) return NULL;
8610 } _resultobj = Py_BuildValue("i",_result);
8611 return _resultobj;
8612 }
8613
8614 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1) (_swigobj->Replace(_swigarg0,_swigarg1))
8615 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
8616 PyObject * _resultobj;
8617 bool _result;
8618 wxImageList * _arg0;
8619 int _arg1;
8620 wxBitmap * _arg2;
8621 PyObject * _argo0 = 0;
8622 PyObject * _argo2 = 0;
8623 char *_kwnames[] = { "self","index","bitmap", NULL };
8624
8625 self = self;
8626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2))
8627 return NULL;
8628 if (_argo0) {
8629 if (_argo0 == Py_None) { _arg0 = NULL; }
8630 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8631 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
8632 return NULL;
8633 }
8634 }
8635 if (_argo2) {
8636 if (_argo2 == Py_None) { _arg2 = NULL; }
8637 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
8638 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
8639 return NULL;
8640 }
8641 }
8642 {
8643 wxPy_BEGIN_ALLOW_THREADS;
8644 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2);
8645
8646 wxPy_END_ALLOW_THREADS;
8647 if (PyErr_Occurred()) return NULL;
8648 } _resultobj = Py_BuildValue("i",_result);
8649 return _resultobj;
8650 }
8651
8652 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8653 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
8654 PyObject * _resultobj;
8655 bool _result;
8656 wxImageList * _arg0;
8657 int _arg1;
8658 wxDC * _arg2;
8659 int _arg3;
8660 int _arg4;
8661 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
8662 bool _arg6 = (bool ) FALSE;
8663 PyObject * _argo0 = 0;
8664 PyObject * _argo2 = 0;
8665 int tempbool6 = (int) FALSE;
8666 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
8667
8668 self = self;
8669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
8670 return NULL;
8671 if (_argo0) {
8672 if (_argo0 == Py_None) { _arg0 = NULL; }
8673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
8675 return NULL;
8676 }
8677 }
8678 if (_argo2) {
8679 if (_argo2 == Py_None) { _arg2 = NULL; }
8680 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
8681 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
8682 return NULL;
8683 }
8684 }
8685 _arg6 = (bool ) tempbool6;
8686 {
8687 wxPy_BEGIN_ALLOW_THREADS;
8688 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
8689
8690 wxPy_END_ALLOW_THREADS;
8691 if (PyErr_Occurred()) return NULL;
8692 } _resultobj = Py_BuildValue("i",_result);
8693 return _resultobj;
8694 }
8695
8696 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
8697 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
8698 PyObject * _resultobj;
8699 int _result;
8700 wxImageList * _arg0;
8701 PyObject * _argo0 = 0;
8702 char *_kwnames[] = { "self", NULL };
8703
8704 self = self;
8705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
8706 return NULL;
8707 if (_argo0) {
8708 if (_argo0 == Py_None) { _arg0 = NULL; }
8709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
8711 return NULL;
8712 }
8713 }
8714 {
8715 wxPy_BEGIN_ALLOW_THREADS;
8716 _result = (int )wxImageList_GetImageCount(_arg0);
8717
8718 wxPy_END_ALLOW_THREADS;
8719 if (PyErr_Occurred()) return NULL;
8720 } _resultobj = Py_BuildValue("i",_result);
8721 return _resultobj;
8722 }
8723
8724 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
8725 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
8726 PyObject * _resultobj;
8727 bool _result;
8728 wxImageList * _arg0;
8729 int _arg1;
8730 PyObject * _argo0 = 0;
8731 char *_kwnames[] = { "self","index", NULL };
8732
8733 self = self;
8734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
8735 return NULL;
8736 if (_argo0) {
8737 if (_argo0 == Py_None) { _arg0 = NULL; }
8738 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8739 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
8740 return NULL;
8741 }
8742 }
8743 {
8744 wxPy_BEGIN_ALLOW_THREADS;
8745 _result = (bool )wxImageList_Remove(_arg0,_arg1);
8746
8747 wxPy_END_ALLOW_THREADS;
8748 if (PyErr_Occurred()) return NULL;
8749 } _resultobj = Py_BuildValue("i",_result);
8750 return _resultobj;
8751 }
8752
8753 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
8754 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
8755 PyObject * _resultobj;
8756 bool _result;
8757 wxImageList * _arg0;
8758 PyObject * _argo0 = 0;
8759 char *_kwnames[] = { "self", NULL };
8760
8761 self = self;
8762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
8763 return NULL;
8764 if (_argo0) {
8765 if (_argo0 == Py_None) { _arg0 = NULL; }
8766 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8767 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
8768 return NULL;
8769 }
8770 }
8771 {
8772 wxPy_BEGIN_ALLOW_THREADS;
8773 _result = (bool )wxImageList_RemoveAll(_arg0);
8774
8775 wxPy_END_ALLOW_THREADS;
8776 if (PyErr_Occurred()) return NULL;
8777 } _resultobj = Py_BuildValue("i",_result);
8778 return _resultobj;
8779 }
8780
8781 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
8782 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject * _resultobj;
8784 wxImageList * _arg0;
8785 int _arg1;
8786 int * _arg2;
8787 int temp;
8788 int * _arg3;
8789 int temp0;
8790 PyObject * _argo0 = 0;
8791 char *_kwnames[] = { "self","index", NULL };
8792
8793 self = self;
8794 {
8795 _arg2 = &temp;
8796 }
8797 {
8798 _arg3 = &temp0;
8799 }
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
8801 return NULL;
8802 if (_argo0) {
8803 if (_argo0 == Py_None) { _arg0 = NULL; }
8804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
8805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
8806 return NULL;
8807 }
8808 }
8809 {
8810 wxPy_BEGIN_ALLOW_THREADS;
8811 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
8812
8813 wxPy_END_ALLOW_THREADS;
8814 if (PyErr_Occurred()) return NULL;
8815 } Py_INCREF(Py_None);
8816 _resultobj = Py_None;
8817 {
8818 PyObject *o;
8819 o = PyInt_FromLong((long) (*_arg2));
8820 _resultobj = t_output_helper(_resultobj, o);
8821 }
8822 {
8823 PyObject *o;
8824 o = PyInt_FromLong((long) (*_arg3));
8825 _resultobj = t_output_helper(_resultobj, o);
8826 }
8827 return _resultobj;
8828 }
8829
8830 static void *SwigwxRegionTowxGDIObject(void *ptr) {
8831 wxRegion *src;
8832 wxGDIObject *dest;
8833 src = (wxRegion *) ptr;
8834 dest = (wxGDIObject *) src;
8835 return (void *) dest;
8836 }
8837
8838 static void *SwigwxRegionTowxObject(void *ptr) {
8839 wxRegion *src;
8840 wxObject *dest;
8841 src = (wxRegion *) ptr;
8842 dest = (wxObject *) src;
8843 return (void *) dest;
8844 }
8845
8846 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8847 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8848 PyObject * _resultobj;
8849 wxRegion * _result;
8850 long _arg0 = (long ) 0;
8851 long _arg1 = (long ) 0;
8852 long _arg2 = (long ) 0;
8853 long _arg3 = (long ) 0;
8854 char *_kwnames[] = { "x","y","width","height", NULL };
8855 char _ptemp[128];
8856
8857 self = self;
8858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
8859 return NULL;
8860 {
8861 wxPy_BEGIN_ALLOW_THREADS;
8862 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
8863
8864 wxPy_END_ALLOW_THREADS;
8865 if (PyErr_Occurred()) return NULL;
8866 } if (_result) {
8867 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
8868 _resultobj = Py_BuildValue("s",_ptemp);
8869 } else {
8870 Py_INCREF(Py_None);
8871 _resultobj = Py_None;
8872 }
8873 return _resultobj;
8874 }
8875
8876 #define delete_wxRegion(_swigobj) (delete _swigobj)
8877 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8878 PyObject * _resultobj;
8879 wxRegion * _arg0;
8880 PyObject * _argo0 = 0;
8881 char *_kwnames[] = { "self", NULL };
8882
8883 self = self;
8884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
8885 return NULL;
8886 if (_argo0) {
8887 if (_argo0 == Py_None) { _arg0 = NULL; }
8888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
8889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
8890 return NULL;
8891 }
8892 }
8893 {
8894 wxPy_BEGIN_ALLOW_THREADS;
8895 delete_wxRegion(_arg0);
8896
8897 wxPy_END_ALLOW_THREADS;
8898 if (PyErr_Occurred()) return NULL;
8899 } Py_INCREF(Py_None);
8900 _resultobj = Py_None;
8901 return _resultobj;
8902 }
8903
8904 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
8905 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
8906 PyObject * _resultobj;
8907 wxRegion * _arg0;
8908 PyObject * _argo0 = 0;
8909 char *_kwnames[] = { "self", NULL };
8910
8911 self = self;
8912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
8913 return NULL;
8914 if (_argo0) {
8915 if (_argo0 == Py_None) { _arg0 = NULL; }
8916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
8917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
8918 return NULL;
8919 }
8920 }
8921 {
8922 wxPy_BEGIN_ALLOW_THREADS;
8923 wxRegion_Clear(_arg0);
8924
8925 wxPy_END_ALLOW_THREADS;
8926 if (PyErr_Occurred()) return NULL;
8927 } Py_INCREF(Py_None);
8928 _resultobj = Py_None;
8929 return _resultobj;
8930 }
8931
8932 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
8933 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
8934 PyObject * _resultobj;
8935 wxRegionContain _result;
8936 wxRegion * _arg0;
8937 long _arg1;
8938 long _arg2;
8939 PyObject * _argo0 = 0;
8940 char *_kwnames[] = { "self","x","y", NULL };
8941
8942 self = self;
8943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
8944 return NULL;
8945 if (_argo0) {
8946 if (_argo0 == Py_None) { _arg0 = NULL; }
8947 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
8948 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
8949 return NULL;
8950 }
8951 }
8952 {
8953 wxPy_BEGIN_ALLOW_THREADS;
8954 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
8955
8956 wxPy_END_ALLOW_THREADS;
8957 if (PyErr_Occurred()) return NULL;
8958 } _resultobj = Py_BuildValue("i",_result);
8959 return _resultobj;
8960 }
8961
8962 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
8963 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
8964 PyObject * _resultobj;
8965 wxRegionContain _result;
8966 wxRegion * _arg0;
8967 wxPoint * _arg1;
8968 PyObject * _argo0 = 0;
8969 wxPoint temp;
8970 PyObject * _obj1 = 0;
8971 char *_kwnames[] = { "self","pt", NULL };
8972
8973 self = self;
8974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
8975 return NULL;
8976 if (_argo0) {
8977 if (_argo0 == Py_None) { _arg0 = NULL; }
8978 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
8979 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
8980 return NULL;
8981 }
8982 }
8983 {
8984 _arg1 = &temp;
8985 if (! wxPoint_helper(_obj1, &_arg1))
8986 return NULL;
8987 }
8988 {
8989 wxPy_BEGIN_ALLOW_THREADS;
8990 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
8991
8992 wxPy_END_ALLOW_THREADS;
8993 if (PyErr_Occurred()) return NULL;
8994 } _resultobj = Py_BuildValue("i",_result);
8995 return _resultobj;
8996 }
8997
8998 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
8999 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9000 PyObject * _resultobj;
9001 wxRegionContain _result;
9002 wxRegion * _arg0;
9003 wxRect * _arg1;
9004 PyObject * _argo0 = 0;
9005 wxRect temp;
9006 PyObject * _obj1 = 0;
9007 char *_kwnames[] = { "self","rect", NULL };
9008
9009 self = self;
9010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
9011 return NULL;
9012 if (_argo0) {
9013 if (_argo0 == Py_None) { _arg0 = NULL; }
9014 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9015 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
9016 return NULL;
9017 }
9018 }
9019 {
9020 _arg1 = &temp;
9021 if (! wxRect_helper(_obj1, &_arg1))
9022 return NULL;
9023 }
9024 {
9025 wxPy_BEGIN_ALLOW_THREADS;
9026 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
9027
9028 wxPy_END_ALLOW_THREADS;
9029 if (PyErr_Occurred()) return NULL;
9030 } _resultobj = Py_BuildValue("i",_result);
9031 return _resultobj;
9032 }
9033
9034 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9035 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
9036 PyObject * _resultobj;
9037 wxRegionContain _result;
9038 wxRegion * _arg0;
9039 long _arg1;
9040 long _arg2;
9041 long _arg3;
9042 long _arg4;
9043 PyObject * _argo0 = 0;
9044 char *_kwnames[] = { "self","x","y","w","h", NULL };
9045
9046 self = self;
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9048 return NULL;
9049 if (_argo0) {
9050 if (_argo0 == Py_None) { _arg0 = NULL; }
9051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
9053 return NULL;
9054 }
9055 }
9056 {
9057 wxPy_BEGIN_ALLOW_THREADS;
9058 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
9059
9060 wxPy_END_ALLOW_THREADS;
9061 if (PyErr_Occurred()) return NULL;
9062 } _resultobj = Py_BuildValue("i",_result);
9063 return _resultobj;
9064 }
9065
9066 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
9067 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9068 PyObject * _resultobj;
9069 wxRect * _result;
9070 wxRegion * _arg0;
9071 PyObject * _argo0 = 0;
9072 char *_kwnames[] = { "self", NULL };
9073 char _ptemp[128];
9074
9075 self = self;
9076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
9077 return NULL;
9078 if (_argo0) {
9079 if (_argo0 == Py_None) { _arg0 = NULL; }
9080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
9082 return NULL;
9083 }
9084 }
9085 {
9086 wxPy_BEGIN_ALLOW_THREADS;
9087 _result = new wxRect (wxRegion_GetBox(_arg0));
9088
9089 wxPy_END_ALLOW_THREADS;
9090 if (PyErr_Occurred()) return NULL;
9091 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
9092 _resultobj = Py_BuildValue("s",_ptemp);
9093 return _resultobj;
9094 }
9095
9096 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9097 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
9098 PyObject * _resultobj;
9099 bool _result;
9100 wxRegion * _arg0;
9101 long _arg1;
9102 long _arg2;
9103 long _arg3;
9104 long _arg4;
9105 PyObject * _argo0 = 0;
9106 char *_kwnames[] = { "self","x","y","width","height", NULL };
9107
9108 self = self;
9109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9110 return NULL;
9111 if (_argo0) {
9112 if (_argo0 == Py_None) { _arg0 = NULL; }
9113 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9114 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
9115 return NULL;
9116 }
9117 }
9118 {
9119 wxPy_BEGIN_ALLOW_THREADS;
9120 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
9121
9122 wxPy_END_ALLOW_THREADS;
9123 if (PyErr_Occurred()) return NULL;
9124 } _resultobj = Py_BuildValue("i",_result);
9125 return _resultobj;
9126 }
9127
9128 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9129 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9130 PyObject * _resultobj;
9131 bool _result;
9132 wxRegion * _arg0;
9133 wxRect * _arg1;
9134 PyObject * _argo0 = 0;
9135 wxRect temp;
9136 PyObject * _obj1 = 0;
9137 char *_kwnames[] = { "self","rect", NULL };
9138
9139 self = self;
9140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
9141 return NULL;
9142 if (_argo0) {
9143 if (_argo0 == Py_None) { _arg0 = NULL; }
9144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
9146 return NULL;
9147 }
9148 }
9149 {
9150 _arg1 = &temp;
9151 if (! wxRect_helper(_obj1, &_arg1))
9152 return NULL;
9153 }
9154 {
9155 wxPy_BEGIN_ALLOW_THREADS;
9156 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
9157
9158 wxPy_END_ALLOW_THREADS;
9159 if (PyErr_Occurred()) return NULL;
9160 } _resultobj = Py_BuildValue("i",_result);
9161 return _resultobj;
9162 }
9163
9164 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
9165 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9166 PyObject * _resultobj;
9167 bool _result;
9168 wxRegion * _arg0;
9169 wxRegion * _arg1;
9170 PyObject * _argo0 = 0;
9171 PyObject * _argo1 = 0;
9172 char *_kwnames[] = { "self","region", NULL };
9173
9174 self = self;
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
9176 return NULL;
9177 if (_argo0) {
9178 if (_argo0 == Py_None) { _arg0 = NULL; }
9179 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9180 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9181 return NULL;
9182 }
9183 }
9184 if (_argo1) {
9185 if (_argo1 == Py_None) { _arg1 = NULL; }
9186 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9187 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
9188 return NULL;
9189 }
9190 }
9191 {
9192 wxPy_BEGIN_ALLOW_THREADS;
9193 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
9194
9195 wxPy_END_ALLOW_THREADS;
9196 if (PyErr_Occurred()) return NULL;
9197 } _resultobj = Py_BuildValue("i",_result);
9198 return _resultobj;
9199 }
9200
9201 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
9202 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
9203 PyObject * _resultobj;
9204 bool _result;
9205 wxRegion * _arg0;
9206 PyObject * _argo0 = 0;
9207 char *_kwnames[] = { "self", NULL };
9208
9209 self = self;
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
9211 return NULL;
9212 if (_argo0) {
9213 if (_argo0 == Py_None) { _arg0 = NULL; }
9214 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9215 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
9216 return NULL;
9217 }
9218 }
9219 {
9220 wxPy_BEGIN_ALLOW_THREADS;
9221 _result = (bool )wxRegion_IsEmpty(_arg0);
9222
9223 wxPy_END_ALLOW_THREADS;
9224 if (PyErr_Occurred()) return NULL;
9225 } _resultobj = Py_BuildValue("i",_result);
9226 return _resultobj;
9227 }
9228
9229 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9230 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
9231 PyObject * _resultobj;
9232 bool _result;
9233 wxRegion * _arg0;
9234 long _arg1;
9235 long _arg2;
9236 long _arg3;
9237 long _arg4;
9238 PyObject * _argo0 = 0;
9239 char *_kwnames[] = { "self","x","y","width","height", NULL };
9240
9241 self = self;
9242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9243 return NULL;
9244 if (_argo0) {
9245 if (_argo0 == Py_None) { _arg0 = NULL; }
9246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
9248 return NULL;
9249 }
9250 }
9251 {
9252 wxPy_BEGIN_ALLOW_THREADS;
9253 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
9254
9255 wxPy_END_ALLOW_THREADS;
9256 if (PyErr_Occurred()) return NULL;
9257 } _resultobj = Py_BuildValue("i",_result);
9258 return _resultobj;
9259 }
9260
9261 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9262 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9263 PyObject * _resultobj;
9264 bool _result;
9265 wxRegion * _arg0;
9266 wxRect * _arg1;
9267 PyObject * _argo0 = 0;
9268 wxRect temp;
9269 PyObject * _obj1 = 0;
9270 char *_kwnames[] = { "self","rect", NULL };
9271
9272 self = self;
9273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
9274 return NULL;
9275 if (_argo0) {
9276 if (_argo0 == Py_None) { _arg0 = NULL; }
9277 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9278 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
9279 return NULL;
9280 }
9281 }
9282 {
9283 _arg1 = &temp;
9284 if (! wxRect_helper(_obj1, &_arg1))
9285 return NULL;
9286 }
9287 {
9288 wxPy_BEGIN_ALLOW_THREADS;
9289 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
9290
9291 wxPy_END_ALLOW_THREADS;
9292 if (PyErr_Occurred()) return NULL;
9293 } _resultobj = Py_BuildValue("i",_result);
9294 return _resultobj;
9295 }
9296
9297 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
9298 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9299 PyObject * _resultobj;
9300 bool _result;
9301 wxRegion * _arg0;
9302 wxRegion * _arg1;
9303 PyObject * _argo0 = 0;
9304 PyObject * _argo1 = 0;
9305 char *_kwnames[] = { "self","region", NULL };
9306
9307 self = self;
9308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
9309 return NULL;
9310 if (_argo0) {
9311 if (_argo0 == Py_None) { _arg0 = NULL; }
9312 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9313 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9314 return NULL;
9315 }
9316 }
9317 if (_argo1) {
9318 if (_argo1 == Py_None) { _arg1 = NULL; }
9319 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9320 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
9321 return NULL;
9322 }
9323 }
9324 {
9325 wxPy_BEGIN_ALLOW_THREADS;
9326 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
9327
9328 wxPy_END_ALLOW_THREADS;
9329 if (PyErr_Occurred()) return NULL;
9330 } _resultobj = Py_BuildValue("i",_result);
9331 return _resultobj;
9332 }
9333
9334 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9335 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
9336 PyObject * _resultobj;
9337 bool _result;
9338 wxRegion * _arg0;
9339 long _arg1;
9340 long _arg2;
9341 long _arg3;
9342 long _arg4;
9343 PyObject * _argo0 = 0;
9344 char *_kwnames[] = { "self","x","y","width","height", NULL };
9345
9346 self = self;
9347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9348 return NULL;
9349 if (_argo0) {
9350 if (_argo0 == Py_None) { _arg0 = NULL; }
9351 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9352 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
9353 return NULL;
9354 }
9355 }
9356 {
9357 wxPy_BEGIN_ALLOW_THREADS;
9358 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
9359
9360 wxPy_END_ALLOW_THREADS;
9361 if (PyErr_Occurred()) return NULL;
9362 } _resultobj = Py_BuildValue("i",_result);
9363 return _resultobj;
9364 }
9365
9366 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9367 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9368 PyObject * _resultobj;
9369 bool _result;
9370 wxRegion * _arg0;
9371 wxRect * _arg1;
9372 PyObject * _argo0 = 0;
9373 wxRect temp;
9374 PyObject * _obj1 = 0;
9375 char *_kwnames[] = { "self","rect", NULL };
9376
9377 self = self;
9378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
9379 return NULL;
9380 if (_argo0) {
9381 if (_argo0 == Py_None) { _arg0 = NULL; }
9382 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9383 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
9384 return NULL;
9385 }
9386 }
9387 {
9388 _arg1 = &temp;
9389 if (! wxRect_helper(_obj1, &_arg1))
9390 return NULL;
9391 }
9392 {
9393 wxPy_BEGIN_ALLOW_THREADS;
9394 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
9395
9396 wxPy_END_ALLOW_THREADS;
9397 if (PyErr_Occurred()) return NULL;
9398 } _resultobj = Py_BuildValue("i",_result);
9399 return _resultobj;
9400 }
9401
9402 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
9403 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9404 PyObject * _resultobj;
9405 bool _result;
9406 wxRegion * _arg0;
9407 wxRegion * _arg1;
9408 PyObject * _argo0 = 0;
9409 PyObject * _argo1 = 0;
9410 char *_kwnames[] = { "self","region", NULL };
9411
9412 self = self;
9413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
9414 return NULL;
9415 if (_argo0) {
9416 if (_argo0 == Py_None) { _arg0 = NULL; }
9417 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9418 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9419 return NULL;
9420 }
9421 }
9422 if (_argo1) {
9423 if (_argo1 == Py_None) { _arg1 = NULL; }
9424 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9425 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
9426 return NULL;
9427 }
9428 }
9429 {
9430 wxPy_BEGIN_ALLOW_THREADS;
9431 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
9432
9433 wxPy_END_ALLOW_THREADS;
9434 if (PyErr_Occurred()) return NULL;
9435 } _resultobj = Py_BuildValue("i",_result);
9436 return _resultobj;
9437 }
9438
9439 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9440 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
9441 PyObject * _resultobj;
9442 bool _result;
9443 wxRegion * _arg0;
9444 long _arg1;
9445 long _arg2;
9446 long _arg3;
9447 long _arg4;
9448 PyObject * _argo0 = 0;
9449 char *_kwnames[] = { "self","x","y","width","height", NULL };
9450
9451 self = self;
9452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
9453 return NULL;
9454 if (_argo0) {
9455 if (_argo0 == Py_None) { _arg0 = NULL; }
9456 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9457 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
9458 return NULL;
9459 }
9460 }
9461 {
9462 wxPy_BEGIN_ALLOW_THREADS;
9463 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
9464
9465 wxPy_END_ALLOW_THREADS;
9466 if (PyErr_Occurred()) return NULL;
9467 } _resultobj = Py_BuildValue("i",_result);
9468 return _resultobj;
9469 }
9470
9471 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9472 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9473 PyObject * _resultobj;
9474 bool _result;
9475 wxRegion * _arg0;
9476 wxRect * _arg1;
9477 PyObject * _argo0 = 0;
9478 wxRect temp;
9479 PyObject * _obj1 = 0;
9480 char *_kwnames[] = { "self","rect", NULL };
9481
9482 self = self;
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
9484 return NULL;
9485 if (_argo0) {
9486 if (_argo0 == Py_None) { _arg0 = NULL; }
9487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
9489 return NULL;
9490 }
9491 }
9492 {
9493 _arg1 = &temp;
9494 if (! wxRect_helper(_obj1, &_arg1))
9495 return NULL;
9496 }
9497 {
9498 wxPy_BEGIN_ALLOW_THREADS;
9499 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
9500
9501 wxPy_END_ALLOW_THREADS;
9502 if (PyErr_Occurred()) return NULL;
9503 } _resultobj = Py_BuildValue("i",_result);
9504 return _resultobj;
9505 }
9506
9507 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
9508 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
9509 PyObject * _resultobj;
9510 bool _result;
9511 wxRegion * _arg0;
9512 wxRegion * _arg1;
9513 PyObject * _argo0 = 0;
9514 PyObject * _argo1 = 0;
9515 char *_kwnames[] = { "self","region", NULL };
9516
9517 self = self;
9518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
9519 return NULL;
9520 if (_argo0) {
9521 if (_argo0 == Py_None) { _arg0 = NULL; }
9522 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9523 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
9524 return NULL;
9525 }
9526 }
9527 if (_argo1) {
9528 if (_argo1 == Py_None) { _arg1 = NULL; }
9529 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
9530 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
9531 return NULL;
9532 }
9533 }
9534 {
9535 wxPy_BEGIN_ALLOW_THREADS;
9536 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
9537
9538 wxPy_END_ALLOW_THREADS;
9539 if (PyErr_Occurred()) return NULL;
9540 } _resultobj = Py_BuildValue("i",_result);
9541 return _resultobj;
9542 }
9543
9544 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
9545 wxRegionIterator *src;
9546 wxObject *dest;
9547 src = (wxRegionIterator *) ptr;
9548 dest = (wxObject *) src;
9549 return (void *) dest;
9550 }
9551
9552 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
9553 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
9554 PyObject * _resultobj;
9555 wxRegionIterator * _result;
9556 wxRegion * _arg0;
9557 PyObject * _argo0 = 0;
9558 char *_kwnames[] = { "region", NULL };
9559 char _ptemp[128];
9560
9561 self = self;
9562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
9563 return NULL;
9564 if (_argo0) {
9565 if (_argo0 == Py_None) { _arg0 = NULL; }
9566 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
9567 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
9568 return NULL;
9569 }
9570 }
9571 {
9572 wxPy_BEGIN_ALLOW_THREADS;
9573 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
9574
9575 wxPy_END_ALLOW_THREADS;
9576 if (PyErr_Occurred()) return NULL;
9577 } if (_result) {
9578 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
9579 _resultobj = Py_BuildValue("s",_ptemp);
9580 } else {
9581 Py_INCREF(Py_None);
9582 _resultobj = Py_None;
9583 }
9584 return _resultobj;
9585 }
9586
9587 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
9588 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
9589 PyObject * _resultobj;
9590 wxRegionIterator * _arg0;
9591 PyObject * _argo0 = 0;
9592 char *_kwnames[] = { "self", NULL };
9593
9594 self = self;
9595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
9596 return NULL;
9597 if (_argo0) {
9598 if (_argo0 == Py_None) { _arg0 = NULL; }
9599 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9600 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
9601 return NULL;
9602 }
9603 }
9604 {
9605 wxPy_BEGIN_ALLOW_THREADS;
9606 delete_wxRegionIterator(_arg0);
9607
9608 wxPy_END_ALLOW_THREADS;
9609 if (PyErr_Occurred()) return NULL;
9610 } Py_INCREF(Py_None);
9611 _resultobj = Py_None;
9612 return _resultobj;
9613 }
9614
9615 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
9616 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
9617 PyObject * _resultobj;
9618 long _result;
9619 wxRegionIterator * _arg0;
9620 PyObject * _argo0 = 0;
9621 char *_kwnames[] = { "self", NULL };
9622
9623 self = self;
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
9625 return NULL;
9626 if (_argo0) {
9627 if (_argo0 == Py_None) { _arg0 = NULL; }
9628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
9630 return NULL;
9631 }
9632 }
9633 {
9634 wxPy_BEGIN_ALLOW_THREADS;
9635 _result = (long )wxRegionIterator_GetX(_arg0);
9636
9637 wxPy_END_ALLOW_THREADS;
9638 if (PyErr_Occurred()) return NULL;
9639 } _resultobj = Py_BuildValue("l",_result);
9640 return _resultobj;
9641 }
9642
9643 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
9644 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
9645 PyObject * _resultobj;
9646 long _result;
9647 wxRegionIterator * _arg0;
9648 PyObject * _argo0 = 0;
9649 char *_kwnames[] = { "self", NULL };
9650
9651 self = self;
9652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
9653 return NULL;
9654 if (_argo0) {
9655 if (_argo0 == Py_None) { _arg0 = NULL; }
9656 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9657 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
9658 return NULL;
9659 }
9660 }
9661 {
9662 wxPy_BEGIN_ALLOW_THREADS;
9663 _result = (long )wxRegionIterator_GetY(_arg0);
9664
9665 wxPy_END_ALLOW_THREADS;
9666 if (PyErr_Occurred()) return NULL;
9667 } _resultobj = Py_BuildValue("l",_result);
9668 return _resultobj;
9669 }
9670
9671 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
9672 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
9673 PyObject * _resultobj;
9674 long _result;
9675 wxRegionIterator * _arg0;
9676 PyObject * _argo0 = 0;
9677 char *_kwnames[] = { "self", NULL };
9678
9679 self = self;
9680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
9681 return NULL;
9682 if (_argo0) {
9683 if (_argo0 == Py_None) { _arg0 = NULL; }
9684 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9685 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
9686 return NULL;
9687 }
9688 }
9689 {
9690 wxPy_BEGIN_ALLOW_THREADS;
9691 _result = (long )wxRegionIterator_GetW(_arg0);
9692
9693 wxPy_END_ALLOW_THREADS;
9694 if (PyErr_Occurred()) return NULL;
9695 } _resultobj = Py_BuildValue("l",_result);
9696 return _resultobj;
9697 }
9698
9699 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
9700 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
9701 PyObject * _resultobj;
9702 long _result;
9703 wxRegionIterator * _arg0;
9704 PyObject * _argo0 = 0;
9705 char *_kwnames[] = { "self", NULL };
9706
9707 self = self;
9708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
9709 return NULL;
9710 if (_argo0) {
9711 if (_argo0 == Py_None) { _arg0 = NULL; }
9712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
9714 return NULL;
9715 }
9716 }
9717 {
9718 wxPy_BEGIN_ALLOW_THREADS;
9719 _result = (long )wxRegionIterator_GetWidth(_arg0);
9720
9721 wxPy_END_ALLOW_THREADS;
9722 if (PyErr_Occurred()) return NULL;
9723 } _resultobj = Py_BuildValue("l",_result);
9724 return _resultobj;
9725 }
9726
9727 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
9728 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
9729 PyObject * _resultobj;
9730 long _result;
9731 wxRegionIterator * _arg0;
9732 PyObject * _argo0 = 0;
9733 char *_kwnames[] = { "self", NULL };
9734
9735 self = self;
9736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
9737 return NULL;
9738 if (_argo0) {
9739 if (_argo0 == Py_None) { _arg0 = NULL; }
9740 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9741 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
9742 return NULL;
9743 }
9744 }
9745 {
9746 wxPy_BEGIN_ALLOW_THREADS;
9747 _result = (long )wxRegionIterator_GetH(_arg0);
9748
9749 wxPy_END_ALLOW_THREADS;
9750 if (PyErr_Occurred()) return NULL;
9751 } _resultobj = Py_BuildValue("l",_result);
9752 return _resultobj;
9753 }
9754
9755 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
9756 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
9757 PyObject * _resultobj;
9758 long _result;
9759 wxRegionIterator * _arg0;
9760 PyObject * _argo0 = 0;
9761 char *_kwnames[] = { "self", NULL };
9762
9763 self = self;
9764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
9765 return NULL;
9766 if (_argo0) {
9767 if (_argo0 == Py_None) { _arg0 = NULL; }
9768 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9769 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
9770 return NULL;
9771 }
9772 }
9773 {
9774 wxPy_BEGIN_ALLOW_THREADS;
9775 _result = (long )wxRegionIterator_GetHeight(_arg0);
9776
9777 wxPy_END_ALLOW_THREADS;
9778 if (PyErr_Occurred()) return NULL;
9779 } _resultobj = Py_BuildValue("l",_result);
9780 return _resultobj;
9781 }
9782
9783 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
9784 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
9785 PyObject * _resultobj;
9786 wxRect * _result;
9787 wxRegionIterator * _arg0;
9788 PyObject * _argo0 = 0;
9789 char *_kwnames[] = { "self", NULL };
9790 char _ptemp[128];
9791
9792 self = self;
9793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
9794 return NULL;
9795 if (_argo0) {
9796 if (_argo0 == Py_None) { _arg0 = NULL; }
9797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
9799 return NULL;
9800 }
9801 }
9802 {
9803 wxPy_BEGIN_ALLOW_THREADS;
9804 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
9805
9806 wxPy_END_ALLOW_THREADS;
9807 if (PyErr_Occurred()) return NULL;
9808 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
9809 _resultobj = Py_BuildValue("s",_ptemp);
9810 return _resultobj;
9811 }
9812
9813 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
9814 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
9815 PyObject * _resultobj;
9816 bool _result;
9817 wxRegionIterator * _arg0;
9818 PyObject * _argo0 = 0;
9819 char *_kwnames[] = { "self", NULL };
9820
9821 self = self;
9822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
9823 return NULL;
9824 if (_argo0) {
9825 if (_argo0 == Py_None) { _arg0 = NULL; }
9826 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9827 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
9828 return NULL;
9829 }
9830 }
9831 {
9832 wxPy_BEGIN_ALLOW_THREADS;
9833 _result = (bool )wxRegionIterator_HaveRects(_arg0);
9834
9835 wxPy_END_ALLOW_THREADS;
9836 if (PyErr_Occurred()) return NULL;
9837 } _resultobj = Py_BuildValue("i",_result);
9838 return _resultobj;
9839 }
9840
9841 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
9842 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
9843 PyObject * _resultobj;
9844 wxRegionIterator * _arg0;
9845 PyObject * _argo0 = 0;
9846 char *_kwnames[] = { "self", NULL };
9847
9848 self = self;
9849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
9850 return NULL;
9851 if (_argo0) {
9852 if (_argo0 == Py_None) { _arg0 = NULL; }
9853 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9854 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
9855 return NULL;
9856 }
9857 }
9858 {
9859 wxPy_BEGIN_ALLOW_THREADS;
9860 wxRegionIterator_Reset(_arg0);
9861
9862 wxPy_END_ALLOW_THREADS;
9863 if (PyErr_Occurred()) return NULL;
9864 } Py_INCREF(Py_None);
9865 _resultobj = Py_None;
9866 return _resultobj;
9867 }
9868
9869 static void wxRegionIterator_Next(wxRegionIterator *self) {
9870 (*self) ++;
9871 }
9872 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
9873 PyObject * _resultobj;
9874 wxRegionIterator * _arg0;
9875 PyObject * _argo0 = 0;
9876 char *_kwnames[] = { "self", NULL };
9877
9878 self = self;
9879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
9880 return NULL;
9881 if (_argo0) {
9882 if (_argo0 == Py_None) { _arg0 = NULL; }
9883 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
9884 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
9885 return NULL;
9886 }
9887 }
9888 {
9889 wxPy_BEGIN_ALLOW_THREADS;
9890 wxRegionIterator_Next(_arg0);
9891
9892 wxPy_END_ALLOW_THREADS;
9893 if (PyErr_Occurred()) return NULL;
9894 } Py_INCREF(Py_None);
9895 _resultobj = Py_None;
9896 return _resultobj;
9897 }
9898
9899 static PyMethodDef gdicMethods[] = {
9900 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
9901 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
9902 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
9903 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
9904 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
9905 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
9906 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
9907 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
9908 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
9909 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
9910 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
9911 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
9912 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
9913 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
9914 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
9915 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
9916 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
9917 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
9918 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
9919 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
9920 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
9921 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
9922 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
9923 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
9924 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
9925 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
9926 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
9927 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
9928 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
9929 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
9930 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
9931 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
9932 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
9933 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
9934 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
9935 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
9936 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
9937 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
9938 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
9939 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
9940 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
9941 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
9942 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
9943 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
9944 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
9945 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
9946 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
9947 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
9948 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
9949 { "new_wxPostScriptDC", (PyCFunction) _wrap_new_wxPostScriptDC, METH_VARARGS | METH_KEYWORDS },
9950 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
9951 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
9952 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
9953 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
9954 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
9955 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
9956 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
9957 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
9958 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
9959 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
9960 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
9961 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
9962 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
9963 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
9964 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
9965 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
9966 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
9967 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
9968 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
9969 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
9970 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
9971 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
9972 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
9973 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
9974 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
9975 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
9976 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
9977 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
9978 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
9979 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
9980 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
9981 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
9982 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
9983 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
9984 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
9985 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
9986 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
9987 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
9988 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
9989 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
9990 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
9991 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
9992 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
9993 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
9994 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
9995 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
9996 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
9997 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
9998 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
9999 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
10000 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
10001 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
10002 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
10003 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
10004 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
10005 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
10006 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
10007 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
10008 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
10009 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
10010 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
10011 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
10012 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
10013 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
10014 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
10015 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
10016 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
10017 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
10018 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
10019 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
10020 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
10021 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
10022 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
10023 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
10024 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
10025 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
10026 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
10027 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
10028 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
10029 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
10030 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
10031 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
10032 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
10033 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
10034 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
10035 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
10036 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
10037 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
10038 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
10039 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
10040 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
10041 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
10042 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
10043 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
10044 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
10045 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
10046 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
10047 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
10048 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
10049 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
10050 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
10051 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
10052 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
10053 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
10054 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
10055 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
10056 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
10057 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
10058 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
10059 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
10060 { "wxPen_GetDashes", (PyCFunction) _wrap_wxPen_GetDashes, METH_VARARGS | METH_KEYWORDS },
10061 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
10062 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
10063 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
10064 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
10065 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
10066 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
10067 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
10068 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
10069 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
10070 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
10071 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
10072 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
10073 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
10074 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
10075 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
10076 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
10077 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
10078 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
10079 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
10080 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
10081 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
10082 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
10083 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
10084 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
10085 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
10086 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
10087 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
10088 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
10089 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
10090 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
10091 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
10092 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
10093 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
10094 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
10095 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
10096 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
10097 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
10098 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
10099 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
10100 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
10101 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
10102 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
10103 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
10104 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
10105 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
10106 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
10107 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
10108 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
10109 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
10110 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
10111 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
10112 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
10113 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
10114 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
10115 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
10116 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
10117 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
10118 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
10119 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
10120 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
10121 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
10122 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
10123 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
10124 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
10125 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
10126 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
10127 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
10128 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
10129 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
10130 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
10131 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
10132 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
10133 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
10134 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
10135 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
10136 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
10137 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
10138 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
10139 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
10140 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
10141 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
10142 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
10143 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
10144 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
10145 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
10146 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
10147 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
10148 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
10149 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
10150 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
10151 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
10152 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
10153 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
10154 { NULL, NULL }
10155 };
10156 #ifdef __cplusplus
10157 }
10158 #endif
10159 /*
10160 * This table is used by the pointer type-checker
10161 */
10162 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
10163 { "_signed_long","_long",0},
10164 { "_wxPrintQuality","_wxCoord",0},
10165 { "_wxPrintQuality","_int",0},
10166 { "_wxPrintQuality","_signed_int",0},
10167 { "_wxPrintQuality","_unsigned_int",0},
10168 { "_wxPrintQuality","_wxWindowID",0},
10169 { "_wxPrintQuality","_uint",0},
10170 { "_wxPrintQuality","_EBool",0},
10171 { "_wxPrintQuality","_size_t",0},
10172 { "_wxPrintQuality","_time_t",0},
10173 { "_byte","_unsigned_char",0},
10174 { "_long","_unsigned_long",0},
10175 { "_long","_signed_long",0},
10176 { "_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
10177 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
10178 { "_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
10179 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
10180 { "_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
10181 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
10182 { "_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
10183 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
10184 { "_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
10185 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
10186 { "_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
10187 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
10188 { "_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
10189 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
10190 { "_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
10191 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
10192 { "_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
10193 { "_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
10194 { "_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
10195 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
10196 { "_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
10197 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
10198 { "_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
10199 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
10200 { "_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
10201 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
10202 { "_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
10203 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
10204 { "_class_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10205 { "_class_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10206 { "_class_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
10207 { "_class_wxObject","_wxRegion",SwigwxRegionTowxObject},
10208 { "_class_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
10209 { "_class_wxObject","_wxImageList",SwigwxImageListTowxObject},
10210 { "_class_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
10211 { "_class_wxObject","_wxPalette",SwigwxPaletteTowxObject},
10212 { "_class_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
10213 { "_class_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
10214 { "_class_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
10215 { "_class_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
10216 { "_class_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
10217 { "_class_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
10218 { "_class_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
10219 { "_class_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
10220 { "_class_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
10221 { "_class_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
10222 { "_class_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
10223 { "_class_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
10224 { "_class_wxObject","_class_wxDC",SwigwxDCTowxObject},
10225 { "_class_wxObject","_wxDC",SwigwxDCTowxObject},
10226 { "_class_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
10227 { "_class_wxObject","_wxBrush",SwigwxBrushTowxObject},
10228 { "_class_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
10229 { "_class_wxObject","_wxPenList",SwigwxPenListTowxObject},
10230 { "_class_wxObject","_class_wxPen",SwigwxPenTowxObject},
10231 { "_class_wxObject","_wxPen",SwigwxPenTowxObject},
10232 { "_class_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10233 { "_class_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10234 { "_class_wxObject","_class_wxColour",SwigwxColourTowxObject},
10235 { "_class_wxObject","_wxColour",SwigwxColourTowxObject},
10236 { "_class_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
10237 { "_class_wxObject","_wxFontList",SwigwxFontListTowxObject},
10238 { "_class_wxObject","_class_wxFont",SwigwxFontTowxObject},
10239 { "_class_wxObject","_wxFont",SwigwxFontTowxObject},
10240 { "_class_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
10241 { "_class_wxObject","_wxCursor",SwigwxCursorTowxObject},
10242 { "_class_wxObject","_class_wxIcon",SwigwxIconTowxObject},
10243 { "_class_wxObject","_wxIcon",SwigwxIconTowxObject},
10244 { "_class_wxObject","_class_wxMask",SwigwxMaskTowxObject},
10245 { "_class_wxObject","_wxMask",SwigwxMaskTowxObject},
10246 { "_class_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
10247 { "_class_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
10248 { "_class_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
10249 { "_class_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
10250 { "_size_t","_wxCoord",0},
10251 { "_size_t","_wxPrintQuality",0},
10252 { "_size_t","_time_t",0},
10253 { "_size_t","_unsigned_int",0},
10254 { "_size_t","_int",0},
10255 { "_size_t","_wxWindowID",0},
10256 { "_size_t","_uint",0},
10257 { "_uint","_wxCoord",0},
10258 { "_uint","_wxPrintQuality",0},
10259 { "_uint","_time_t",0},
10260 { "_uint","_size_t",0},
10261 { "_uint","_unsigned_int",0},
10262 { "_uint","_int",0},
10263 { "_uint","_wxWindowID",0},
10264 { "_wxChar","_char",0},
10265 { "_char","_wxChar",0},
10266 { "_EBool","_wxCoord",0},
10267 { "_EBool","_wxPrintQuality",0},
10268 { "_EBool","_signed_int",0},
10269 { "_EBool","_int",0},
10270 { "_EBool","_wxWindowID",0},
10271 { "_unsigned_long","_long",0},
10272 { "_class_wxDC","_class_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
10273 { "_class_wxDC","_wxPostScriptDC",SwigwxPostScriptDCTowxDC},
10274 { "_class_wxDC","_class_wxWindowDC",SwigwxWindowDCTowxDC},
10275 { "_class_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
10276 { "_class_wxDC","_class_wxPaintDC",SwigwxPaintDCTowxDC},
10277 { "_class_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
10278 { "_class_wxDC","_class_wxClientDC",SwigwxClientDCTowxDC},
10279 { "_class_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
10280 { "_class_wxDC","_class_wxScreenDC",SwigwxScreenDCTowxDC},
10281 { "_class_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
10282 { "_class_wxDC","_class_wxMemoryDC",SwigwxMemoryDCTowxDC},
10283 { "_class_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
10284 { "_signed_int","_wxCoord",0},
10285 { "_signed_int","_wxPrintQuality",0},
10286 { "_signed_int","_EBool",0},
10287 { "_signed_int","_wxWindowID",0},
10288 { "_signed_int","_int",0},
10289 { "_WXTYPE","_short",0},
10290 { "_WXTYPE","_signed_short",0},
10291 { "_WXTYPE","_unsigned_short",0},
10292 { "_unsigned_short","_WXTYPE",0},
10293 { "_unsigned_short","_short",0},
10294 { "_wxObject","_class_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10295 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
10296 { "_wxObject","_class_wxRegion",SwigwxRegionTowxObject},
10297 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
10298 { "_wxObject","_class_wxImageList",SwigwxImageListTowxObject},
10299 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
10300 { "_wxObject","_class_wxPalette",SwigwxPaletteTowxObject},
10301 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
10302 { "_wxObject","_class_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
10303 { "_wxObject","_wxPostScriptDC",SwigwxPostScriptDCTowxObject},
10304 { "_wxObject","_class_wxWindowDC",SwigwxWindowDCTowxObject},
10305 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
10306 { "_wxObject","_class_wxPaintDC",SwigwxPaintDCTowxObject},
10307 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
10308 { "_wxObject","_class_wxClientDC",SwigwxClientDCTowxObject},
10309 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
10310 { "_wxObject","_class_wxScreenDC",SwigwxScreenDCTowxObject},
10311 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
10312 { "_wxObject","_class_wxMemoryDC",SwigwxMemoryDCTowxObject},
10313 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
10314 { "_wxObject","_class_wxDC",SwigwxDCTowxObject},
10315 { "_wxObject","_wxDC",SwigwxDCTowxObject},
10316 { "_wxObject","_class_wxBrush",SwigwxBrushTowxObject},
10317 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
10318 { "_wxObject","_class_wxPenList",SwigwxPenListTowxObject},
10319 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
10320 { "_wxObject","_class_wxPen",SwigwxPenTowxObject},
10321 { "_wxObject","_wxPen",SwigwxPenTowxObject},
10322 { "_wxObject","_class_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10323 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
10324 { "_wxObject","_class_wxColour",SwigwxColourTowxObject},
10325 { "_wxObject","_wxColour",SwigwxColourTowxObject},
10326 { "_wxObject","_class_wxFontList",SwigwxFontListTowxObject},
10327 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
10328 { "_wxObject","_class_wxFont",SwigwxFontTowxObject},
10329 { "_wxObject","_wxFont",SwigwxFontTowxObject},
10330 { "_wxObject","_class_wxCursor",SwigwxCursorTowxObject},
10331 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
10332 { "_wxObject","_class_wxIcon",SwigwxIconTowxObject},
10333 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
10334 { "_wxObject","_class_wxMask",SwigwxMaskTowxObject},
10335 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
10336 { "_wxObject","_class_wxBitmap",SwigwxBitmapTowxObject},
10337 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
10338 { "_wxObject","_class_wxGDIObject",SwigwxGDIObjectTowxObject},
10339 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
10340 { "_signed_short","_WXTYPE",0},
10341 { "_signed_short","_short",0},
10342 { "_unsigned_char","_byte",0},
10343 { "_unsigned_int","_wxCoord",0},
10344 { "_unsigned_int","_wxPrintQuality",0},
10345 { "_unsigned_int","_time_t",0},
10346 { "_unsigned_int","_size_t",0},
10347 { "_unsigned_int","_uint",0},
10348 { "_unsigned_int","_wxWindowID",0},
10349 { "_unsigned_int","_int",0},
10350 { "_short","_WXTYPE",0},
10351 { "_short","_unsigned_short",0},
10352 { "_short","_signed_short",0},
10353 { "_wxWindowID","_wxCoord",0},
10354 { "_wxWindowID","_wxPrintQuality",0},
10355 { "_wxWindowID","_time_t",0},
10356 { "_wxWindowID","_size_t",0},
10357 { "_wxWindowID","_EBool",0},
10358 { "_wxWindowID","_uint",0},
10359 { "_wxWindowID","_int",0},
10360 { "_wxWindowID","_signed_int",0},
10361 { "_wxWindowID","_unsigned_int",0},
10362 { "_class_wxGDIObject","_class_wxRegion",SwigwxRegionTowxGDIObject},
10363 { "_class_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
10364 { "_class_wxGDIObject","_class_wxPalette",SwigwxPaletteTowxGDIObject},
10365 { "_class_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
10366 { "_class_wxGDIObject","_class_wxBrush",SwigwxBrushTowxGDIObject},
10367 { "_class_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
10368 { "_class_wxGDIObject","_class_wxPen",SwigwxPenTowxGDIObject},
10369 { "_class_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
10370 { "_class_wxGDIObject","_class_wxFont",SwigwxFontTowxGDIObject},
10371 { "_class_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
10372 { "_class_wxGDIObject","_class_wxCursor",SwigwxCursorTowxGDIObject},
10373 { "_class_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
10374 { "_class_wxGDIObject","_class_wxIcon",SwigwxIconTowxGDIObject},
10375 { "_class_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
10376 { "_class_wxGDIObject","_class_wxBitmap",SwigwxBitmapTowxGDIObject},
10377 { "_class_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
10378 { "_int","_wxCoord",0},
10379 { "_int","_wxPrintQuality",0},
10380 { "_int","_time_t",0},
10381 { "_int","_size_t",0},
10382 { "_int","_EBool",0},
10383 { "_int","_uint",0},
10384 { "_int","_wxWindowID",0},
10385 { "_int","_unsigned_int",0},
10386 { "_int","_signed_int",0},
10387 { "_time_t","_wxCoord",0},
10388 { "_time_t","_wxPrintQuality",0},
10389 { "_time_t","_unsigned_int",0},
10390 { "_time_t","_int",0},
10391 { "_time_t","_wxWindowID",0},
10392 { "_time_t","_uint",0},
10393 { "_time_t","_size_t",0},
10394 { "_wxCoord","_int",0},
10395 { "_wxCoord","_signed_int",0},
10396 { "_wxCoord","_unsigned_int",0},
10397 { "_wxCoord","_wxWindowID",0},
10398 { "_wxCoord","_uint",0},
10399 { "_wxCoord","_EBool",0},
10400 { "_wxCoord","_size_t",0},
10401 { "_wxCoord","_time_t",0},
10402 { "_wxCoord","_wxPrintQuality",0},
10403 {0,0,0}};
10404
10405 static PyObject *SWIG_globals;
10406 #ifdef __cplusplus
10407 extern "C"
10408 #endif
10409 SWIGEXPORT(void) initgdic() {
10410 PyObject *m, *d;
10411 SWIG_globals = SWIG_newvarlink();
10412 m = Py_InitModule("gdic", gdicMethods);
10413 d = PyModule_GetDict(m);
10414 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
10415 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
10416 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
10417 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
10418 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
10419 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
10420 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
10421 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
10422 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
10423 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
10424 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
10425 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
10426 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
10427 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
10428 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
10429 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
10430 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
10431 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
10432 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
10433 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
10434 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
10435 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
10436 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
10437 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
10438 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
10439 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
10440 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
10441 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
10442 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
10443 PyDict_SetItemString(d,"cvar", SWIG_globals);
10444 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
10445 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
10446 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
10447 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
10448 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
10449 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
10450 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
10451 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
10452 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
10453 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
10454 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
10455 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
10456 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
10457 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
10458 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
10459 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
10460 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
10461 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
10462 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
10463 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
10464 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
10465 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
10466 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
10467 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
10468 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
10469 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
10470 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
10471 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
10472 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
10473 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
10474 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
10475 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
10476 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
10477 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
10478 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
10479 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
10480 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
10481 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
10482 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
10483 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
10484 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
10485 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
10486 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
10487 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
10488 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
10489 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
10490 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
10491 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
10492 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
10493 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
10494 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
10495 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
10496 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
10497 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
10498 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
10499 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
10500 {
10501 int i;
10502 for (i = 0; _swig_mapping[i].n1; i++)
10503 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
10504 }
10505 }