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