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