]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
Changes needed to solve wxPython's OOR problem for the wxOGL shapes.
[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/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
64
65
66 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 PyObject* o3;
69
70 if (!target) {
71 target = o;
72 } else if (target == Py_None) {
73 Py_DECREF(Py_None);
74 target = o;
75 } else {
76 if (!PyTuple_Check(target)) {
77 o2 = target;
78 target = PyTuple_New(1);
79 PyTuple_SetItem(target, 0, o2);
80 }
81 o3 = PyTuple_New(1);
82 PyTuple_SetItem(o3, 0, o);
83
84 o2 = target;
85 target = PySequence_Concat(o2, o3);
86 Py_DECREF(o2);
87 Py_DECREF(o3);
88 }
89 return target;
90 }
91
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg = "String or Unicode type required";
94 #else
95 static char* wxStringErrorMsg = "String type required";
96 #endif
97
98 static wxString wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
100
101 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
102 return new wxBitmap(width, height, depth);
103 }
104
105 static char** ConvertListOfStrings(PyObject* listOfStrings) {
106 char** cArray = NULL;
107 int count;
108
109 if (!PyList_Check(listOfStrings)) {
110 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
111 return NULL;
112 }
113 count = PyList_Size(listOfStrings);
114 cArray = new char*[count];
115
116 for(int x=0; x<count; x++) {
117 // TODO: Need some validation and error checking here
118 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
119 }
120 return cArray;
121 }
122
123
124 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
125 char** cArray = NULL;
126 wxBitmap* bmp;
127
128 cArray = ConvertListOfStrings(listOfStrings);
129 if (! cArray)
130 return NULL;
131 bmp = new wxBitmap(cArray);
132 delete [] cArray;
133 return bmp;
134 }
135
136
137 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
138 return new wxBitmap(icon);
139 }
140
141
142 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
143 return new wxBitmap(bits, width, height, depth);
144 }
145
146
147 // #ifdef __WXMSW__
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return NULL;
153 // }
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155 // }
156 // #endif
157
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
176 }
177 // Alternate 'constructor'
178 wxCursor* wxPyStockCursor(int id) {
179 return new wxCursor(id);
180 }
181 // Alternate 'constructor'
182 wxColour* wxNamedColour(const wxString& colorName) {
183 return new wxColour(colorName);
184 }
185
186 class wxPyPen : public wxPen {
187 public:
188 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
189 : wxPen(colour, width, style)
190 { m_dash = NULL; }
191 ~wxPyPen() {
192 if (m_dash)
193 delete [] m_dash;
194 }
195
196 void SetDashes(int nb_dashes, const wxDash *dash) {
197 if (m_dash)
198 delete [] m_dash;
199 m_dash = new wxDash[nb_dashes];
200 for (int i=0; i<nb_dashes; i++) {
201 m_dash[i] = dash[i];
202 }
203 wxPen::SetDashes(nb_dashes, m_dash);
204 }
205
206 private:
207 wxDash* m_dash;
208 };
209
210 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
211 *x1 = dc->MinX();
212 *y1 = dc->MinY();
213 *x2 = dc->MaxX();
214 *y2 = dc->MaxY();
215 }
216 // Alternate 'constructor'
217 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
218 return new wxMemoryDC(oldDC);
219 }
220
221 #include <wx/metafile.h>
222
223 #if 0
224 extern wxFont * wxNORMAL_FONT;
225 extern wxFont * wxSMALL_FONT;
226 extern wxFont * wxITALIC_FONT;
227 extern wxFont * wxSWISS_FONT;
228 extern wxPen * wxRED_PEN;
229 extern wxPen * wxCYAN_PEN;
230 extern wxPen * wxGREEN_PEN;
231 extern wxPen * wxBLACK_PEN;
232 extern wxPen * wxWHITE_PEN;
233 extern wxPen * wxTRANSPARENT_PEN;
234 extern wxPen * wxBLACK_DASHED_PEN;
235 extern wxPen * wxGREY_PEN;
236 extern wxPen * wxMEDIUM_GREY_PEN;
237 extern wxPen * wxLIGHT_GREY_PEN;
238 extern wxBrush * wxBLUE_BRUSH;
239 extern wxBrush * wxGREEN_BRUSH;
240 extern wxBrush * wxWHITE_BRUSH;
241 extern wxBrush * wxBLACK_BRUSH;
242 extern wxBrush * wxTRANSPARENT_BRUSH;
243 extern wxBrush * wxCYAN_BRUSH;
244 extern wxBrush * wxRED_BRUSH;
245 extern wxBrush * wxGREY_BRUSH;
246 extern wxBrush * wxMEDIUM_GREY_BRUSH;
247 extern wxBrush * wxLIGHT_GREY_BRUSH;
248 extern wxColour * wxBLACK;
249 extern wxColour * wxWHITE;
250 extern wxColour * wxRED;
251 extern wxColour * wxBLUE;
252 extern wxColour * wxGREEN;
253 extern wxColour * wxCYAN;
254 extern wxColour * wxLIGHT_GREY;
255 extern wxCursor * wxSTANDARD_CURSOR;
256 extern wxCursor * wxHOURGLASS_CURSOR;
257 extern wxCursor * wxCROSS_CURSOR;
258 extern wxBitmap wxNullBitmap;
259 extern wxIcon wxNullIcon;
260 extern wxCursor wxNullCursor;
261 extern wxPen wxNullPen;
262 extern wxBrush wxNullBrush;
263 extern wxPalette wxNullPalette;
264 extern wxFont wxNullFont;
265 extern wxColour wxNullColour;
266 extern wxFontList * wxTheFontList;
267 extern wxPenList * wxThePenList;
268 extern wxBrushList * wxTheBrushList;
269 extern wxColourDatabase * wxTheColourDatabase;
270
271 #endif
272 #ifdef __cplusplus
273 extern "C" {
274 #endif
275 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
276 PyObject * _resultobj;
277 wxBitmap * _result;
278 int _arg0;
279 int _arg1;
280 int _arg2 = (int ) -1;
281 char *_kwnames[] = { "width","height","depth", NULL };
282 char _ptemp[128];
283
284 self = self;
285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
286 return NULL;
287 {
288 wxPy_BEGIN_ALLOW_THREADS;
289 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
290
291 wxPy_END_ALLOW_THREADS;
292 if (PyErr_Occurred()) return NULL;
293 } if (_result) {
294 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
295 _resultobj = Py_BuildValue("s",_ptemp);
296 } else {
297 Py_INCREF(Py_None);
298 _resultobj = Py_None;
299 }
300 return _resultobj;
301 }
302
303 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
304 PyObject * _resultobj;
305 wxBitmap * _result;
306 PyObject * _arg0;
307 PyObject * _obj0 = 0;
308 char *_kwnames[] = { "listOfStrings", NULL };
309 char _ptemp[128];
310
311 self = self;
312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
313 return NULL;
314 {
315 _arg0 = _obj0;
316 }
317 {
318 wxPy_BEGIN_ALLOW_THREADS;
319 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
320
321 wxPy_END_ALLOW_THREADS;
322 if (PyErr_Occurred()) return NULL;
323 } if (_result) {
324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
325 _resultobj = Py_BuildValue("s",_ptemp);
326 } else {
327 Py_INCREF(Py_None);
328 _resultobj = Py_None;
329 }
330 return _resultobj;
331 }
332
333 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
334 PyObject * _resultobj;
335 wxBitmap * _result;
336 wxIcon * _arg0;
337 PyObject * _argo0 = 0;
338 char *_kwnames[] = { "icon", NULL };
339 char _ptemp[128];
340
341 self = self;
342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
343 return NULL;
344 if (_argo0) {
345 if (_argo0 == Py_None) { _arg0 = NULL; }
346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
348 return NULL;
349 }
350 }
351 {
352 wxPy_BEGIN_ALLOW_THREADS;
353 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
354
355 wxPy_END_ALLOW_THREADS;
356 if (PyErr_Occurred()) return NULL;
357 } if (_result) {
358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
359 _resultobj = Py_BuildValue("s",_ptemp);
360 } else {
361 Py_INCREF(Py_None);
362 _resultobj = Py_None;
363 }
364 return _resultobj;
365 }
366
367 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
368 PyObject * _resultobj;
369 wxBitmap * _result;
370 char * _arg0;
371 int _arg1;
372 int _arg2;
373 int _arg3 = (int ) 1;
374 char *_kwnames[] = { "bits","width","height","depth", NULL };
375 char _ptemp[128];
376
377 self = self;
378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
379 return NULL;
380 {
381 wxPy_BEGIN_ALLOW_THREADS;
382 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
383
384 wxPy_END_ALLOW_THREADS;
385 if (PyErr_Occurred()) return NULL;
386 } if (_result) {
387 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
388 _resultobj = Py_BuildValue("s",_ptemp);
389 } else {
390 Py_INCREF(Py_None);
391 _resultobj = Py_None;
392 }
393 return _resultobj;
394 }
395
396 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
397 PyObject * _resultobj;
398 wxMask * _result;
399 wxBitmap * _arg0;
400 wxColour * _arg1;
401 PyObject * _argo0 = 0;
402 wxColour temp;
403 PyObject * _obj1 = 0;
404 char *_kwnames[] = { "bitmap","colour", NULL };
405 char _ptemp[128];
406
407 self = self;
408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
409 return NULL;
410 if (_argo0) {
411 if (_argo0 == Py_None) { _arg0 = NULL; }
412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
414 return NULL;
415 }
416 }
417 {
418 _arg1 = &temp;
419 if (! wxColour_helper(_obj1, &_arg1))
420 return NULL;
421 }
422 {
423 wxPy_BEGIN_ALLOW_THREADS;
424 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
425
426 wxPy_END_ALLOW_THREADS;
427 if (PyErr_Occurred()) return NULL;
428 } if (_result) {
429 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
430 _resultobj = Py_BuildValue("s",_ptemp);
431 } else {
432 Py_INCREF(Py_None);
433 _resultobj = Py_None;
434 }
435 return _resultobj;
436 }
437
438 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
439 PyObject * _resultobj;
440 wxIcon * _result;
441 char *_kwnames[] = { NULL };
442 char _ptemp[128];
443
444 self = self;
445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
446 return NULL;
447 {
448 wxPy_BEGIN_ALLOW_THREADS;
449 _result = (wxIcon *)wxEmptyIcon();
450
451 wxPy_END_ALLOW_THREADS;
452 if (PyErr_Occurred()) return NULL;
453 } if (_result) {
454 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
455 _resultobj = Py_BuildValue("s",_ptemp);
456 } else {
457 Py_INCREF(Py_None);
458 _resultobj = Py_None;
459 }
460 return _resultobj;
461 }
462
463 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
464 PyObject * _resultobj;
465 wxIcon * _result;
466 PyObject * _arg0;
467 PyObject * _obj0 = 0;
468 char *_kwnames[] = { "listOfStrings", NULL };
469 char _ptemp[128];
470
471 self = self;
472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
473 return NULL;
474 {
475 _arg0 = _obj0;
476 }
477 {
478 wxPy_BEGIN_ALLOW_THREADS;
479 _result = (wxIcon *)wxIconFromXPMData(_arg0);
480
481 wxPy_END_ALLOW_THREADS;
482 if (PyErr_Occurred()) return NULL;
483 } if (_result) {
484 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
485 _resultobj = Py_BuildValue("s",_ptemp);
486 } else {
487 Py_INCREF(Py_None);
488 _resultobj = Py_None;
489 }
490 return _resultobj;
491 }
492
493 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
494 PyObject * _resultobj;
495 wxCursor * _result;
496 int _arg0;
497 char *_kwnames[] = { "id", NULL };
498 char _ptemp[128];
499
500 self = self;
501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
502 return NULL;
503 {
504 wxPy_BEGIN_ALLOW_THREADS;
505 _result = (wxCursor *)wxPyStockCursor(_arg0);
506
507 wxPy_END_ALLOW_THREADS;
508 if (PyErr_Occurred()) return NULL;
509 } if (_result) {
510 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
511 _resultobj = Py_BuildValue("s",_ptemp);
512 } else {
513 Py_INCREF(Py_None);
514 _resultobj = Py_None;
515 }
516 return _resultobj;
517 }
518
519 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
520 PyObject * _resultobj;
521 wxColour * _result;
522 wxString * _arg0;
523 PyObject * _obj0 = 0;
524 char *_kwnames[] = { "colorName", NULL };
525 char _ptemp[128];
526
527 self = self;
528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
529 return NULL;
530 {
531 #if PYTHON_API_VERSION >= 1009
532 char* tmpPtr; int tmpSize;
533 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
534 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
535 return NULL;
536 }
537 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
538 return NULL;
539 _arg0 = new wxString(tmpPtr, tmpSize);
540 #else
541 if (!PyString_Check(_obj0)) {
542 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
543 return NULL;
544 }
545 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
546 #endif
547 }
548 {
549 wxPy_BEGIN_ALLOW_THREADS;
550 _result = (wxColour *)wxNamedColour(*_arg0);
551
552 wxPy_END_ALLOW_THREADS;
553 if (PyErr_Occurred()) return NULL;
554 } if (_result) {
555 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
556 _resultobj = Py_BuildValue("s",_ptemp);
557 } else {
558 Py_INCREF(Py_None);
559 _resultobj = Py_None;
560 }
561 {
562 if (_obj0)
563 delete _arg0;
564 }
565 return _resultobj;
566 }
567
568 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
569 PyObject * _resultobj;
570 wxMemoryDC * _result;
571 wxDC * _arg0;
572 PyObject * _argo0 = 0;
573 char *_kwnames[] = { "oldDC", NULL };
574 char _ptemp[128];
575
576 self = self;
577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
578 return NULL;
579 if (_argo0) {
580 if (_argo0 == Py_None) { _arg0 = NULL; }
581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
583 return NULL;
584 }
585 }
586 {
587 wxPy_BEGIN_ALLOW_THREADS;
588 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
589
590 wxPy_END_ALLOW_THREADS;
591 if (PyErr_Occurred()) return NULL;
592 } if (_result) {
593 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
594 _resultobj = Py_BuildValue("s",_ptemp);
595 } else {
596 Py_INCREF(Py_None);
597 _resultobj = Py_None;
598 }
599 return _resultobj;
600 }
601
602 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
603
604 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
605 return 1;
606 }
607
608 static PyObject *_wrap_wxNORMAL_FONT_get() {
609 PyObject * pyobj;
610 char ptemp[128];
611
612 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
613 pyobj = PyString_FromString(ptemp);
614 return pyobj;
615 }
616
617 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
618
619 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
620 return 1;
621 }
622
623 static PyObject *_wrap_wxSMALL_FONT_get() {
624 PyObject * pyobj;
625 char ptemp[128];
626
627 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
628 pyobj = PyString_FromString(ptemp);
629 return pyobj;
630 }
631
632 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
633
634 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
635 return 1;
636 }
637
638 static PyObject *_wrap_wxITALIC_FONT_get() {
639 PyObject * pyobj;
640 char ptemp[128];
641
642 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
643 pyobj = PyString_FromString(ptemp);
644 return pyobj;
645 }
646
647 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
648
649 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
650 return 1;
651 }
652
653 static PyObject *_wrap_wxSWISS_FONT_get() {
654 PyObject * pyobj;
655 char ptemp[128];
656
657 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
658 pyobj = PyString_FromString(ptemp);
659 return pyobj;
660 }
661
662 static int _wrap_wxRED_PEN_set(PyObject *val) {
663
664 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
665 return 1;
666 }
667
668 static PyObject *_wrap_wxRED_PEN_get() {
669 PyObject * pyobj;
670 char ptemp[128];
671
672 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
673 pyobj = PyString_FromString(ptemp);
674 return pyobj;
675 }
676
677 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
678
679 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
680 return 1;
681 }
682
683 static PyObject *_wrap_wxCYAN_PEN_get() {
684 PyObject * pyobj;
685 char ptemp[128];
686
687 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
688 pyobj = PyString_FromString(ptemp);
689 return pyobj;
690 }
691
692 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
693
694 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
695 return 1;
696 }
697
698 static PyObject *_wrap_wxGREEN_PEN_get() {
699 PyObject * pyobj;
700 char ptemp[128];
701
702 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
703 pyobj = PyString_FromString(ptemp);
704 return pyobj;
705 }
706
707 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
708
709 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
710 return 1;
711 }
712
713 static PyObject *_wrap_wxBLACK_PEN_get() {
714 PyObject * pyobj;
715 char ptemp[128];
716
717 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
718 pyobj = PyString_FromString(ptemp);
719 return pyobj;
720 }
721
722 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
723
724 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
725 return 1;
726 }
727
728 static PyObject *_wrap_wxWHITE_PEN_get() {
729 PyObject * pyobj;
730 char ptemp[128];
731
732 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
733 pyobj = PyString_FromString(ptemp);
734 return pyobj;
735 }
736
737 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
738
739 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
740 return 1;
741 }
742
743 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
744 PyObject * pyobj;
745 char ptemp[128];
746
747 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
748 pyobj = PyString_FromString(ptemp);
749 return pyobj;
750 }
751
752 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
753
754 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
755 return 1;
756 }
757
758 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
759 PyObject * pyobj;
760 char ptemp[128];
761
762 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
763 pyobj = PyString_FromString(ptemp);
764 return pyobj;
765 }
766
767 static int _wrap_wxGREY_PEN_set(PyObject *val) {
768
769 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
770 return 1;
771 }
772
773 static PyObject *_wrap_wxGREY_PEN_get() {
774 PyObject * pyobj;
775 char ptemp[128];
776
777 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
778 pyobj = PyString_FromString(ptemp);
779 return pyobj;
780 }
781
782 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
783
784 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
785 return 1;
786 }
787
788 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
789 PyObject * pyobj;
790 char ptemp[128];
791
792 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
793 pyobj = PyString_FromString(ptemp);
794 return pyobj;
795 }
796
797 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
798
799 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
800 return 1;
801 }
802
803 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
804 PyObject * pyobj;
805 char ptemp[128];
806
807 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
808 pyobj = PyString_FromString(ptemp);
809 return pyobj;
810 }
811
812 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
813
814 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
815 return 1;
816 }
817
818 static PyObject *_wrap_wxBLUE_BRUSH_get() {
819 PyObject * pyobj;
820 char ptemp[128];
821
822 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
823 pyobj = PyString_FromString(ptemp);
824 return pyobj;
825 }
826
827 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
828
829 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
830 return 1;
831 }
832
833 static PyObject *_wrap_wxGREEN_BRUSH_get() {
834 PyObject * pyobj;
835 char ptemp[128];
836
837 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
838 pyobj = PyString_FromString(ptemp);
839 return pyobj;
840 }
841
842 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
843
844 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
845 return 1;
846 }
847
848 static PyObject *_wrap_wxWHITE_BRUSH_get() {
849 PyObject * pyobj;
850 char ptemp[128];
851
852 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
853 pyobj = PyString_FromString(ptemp);
854 return pyobj;
855 }
856
857 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
858
859 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
860 return 1;
861 }
862
863 static PyObject *_wrap_wxBLACK_BRUSH_get() {
864 PyObject * pyobj;
865 char ptemp[128];
866
867 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
868 pyobj = PyString_FromString(ptemp);
869 return pyobj;
870 }
871
872 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
873
874 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
875 return 1;
876 }
877
878 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
879 PyObject * pyobj;
880 char ptemp[128];
881
882 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
883 pyobj = PyString_FromString(ptemp);
884 return pyobj;
885 }
886
887 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
888
889 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
890 return 1;
891 }
892
893 static PyObject *_wrap_wxCYAN_BRUSH_get() {
894 PyObject * pyobj;
895 char ptemp[128];
896
897 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
898 pyobj = PyString_FromString(ptemp);
899 return pyobj;
900 }
901
902 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
903
904 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
905 return 1;
906 }
907
908 static PyObject *_wrap_wxRED_BRUSH_get() {
909 PyObject * pyobj;
910 char ptemp[128];
911
912 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
913 pyobj = PyString_FromString(ptemp);
914 return pyobj;
915 }
916
917 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
918
919 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
920 return 1;
921 }
922
923 static PyObject *_wrap_wxGREY_BRUSH_get() {
924 PyObject * pyobj;
925 char ptemp[128];
926
927 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
928 pyobj = PyString_FromString(ptemp);
929 return pyobj;
930 }
931
932 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
933
934 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
935 return 1;
936 }
937
938 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
939 PyObject * pyobj;
940 char ptemp[128];
941
942 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
943 pyobj = PyString_FromString(ptemp);
944 return pyobj;
945 }
946
947 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
948
949 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
950 return 1;
951 }
952
953 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
954 PyObject * pyobj;
955 char ptemp[128];
956
957 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
958 pyobj = PyString_FromString(ptemp);
959 return pyobj;
960 }
961
962 static int _wrap_wxBLACK_set(PyObject *val) {
963
964 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
965 return 1;
966 }
967
968 static PyObject *_wrap_wxBLACK_get() {
969 PyObject * pyobj;
970 char ptemp[128];
971
972 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
973 pyobj = PyString_FromString(ptemp);
974 return pyobj;
975 }
976
977 static int _wrap_wxWHITE_set(PyObject *val) {
978
979 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
980 return 1;
981 }
982
983 static PyObject *_wrap_wxWHITE_get() {
984 PyObject * pyobj;
985 char ptemp[128];
986
987 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
988 pyobj = PyString_FromString(ptemp);
989 return pyobj;
990 }
991
992 static int _wrap_wxRED_set(PyObject *val) {
993
994 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
995 return 1;
996 }
997
998 static PyObject *_wrap_wxRED_get() {
999 PyObject * pyobj;
1000 char ptemp[128];
1001
1002 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1003 pyobj = PyString_FromString(ptemp);
1004 return pyobj;
1005 }
1006
1007 static int _wrap_wxBLUE_set(PyObject *val) {
1008
1009 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1010 return 1;
1011 }
1012
1013 static PyObject *_wrap_wxBLUE_get() {
1014 PyObject * pyobj;
1015 char ptemp[128];
1016
1017 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1018 pyobj = PyString_FromString(ptemp);
1019 return pyobj;
1020 }
1021
1022 static int _wrap_wxGREEN_set(PyObject *val) {
1023
1024 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1025 return 1;
1026 }
1027
1028 static PyObject *_wrap_wxGREEN_get() {
1029 PyObject * pyobj;
1030 char ptemp[128];
1031
1032 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1033 pyobj = PyString_FromString(ptemp);
1034 return pyobj;
1035 }
1036
1037 static int _wrap_wxCYAN_set(PyObject *val) {
1038
1039 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1040 return 1;
1041 }
1042
1043 static PyObject *_wrap_wxCYAN_get() {
1044 PyObject * pyobj;
1045 char ptemp[128];
1046
1047 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1048 pyobj = PyString_FromString(ptemp);
1049 return pyobj;
1050 }
1051
1052 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1053
1054 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1055 return 1;
1056 }
1057
1058 static PyObject *_wrap_wxLIGHT_GREY_get() {
1059 PyObject * pyobj;
1060 char ptemp[128];
1061
1062 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1063 pyobj = PyString_FromString(ptemp);
1064 return pyobj;
1065 }
1066
1067 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1068
1069 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1070 return 1;
1071 }
1072
1073 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1074 PyObject * pyobj;
1075 char ptemp[128];
1076
1077 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1078 pyobj = PyString_FromString(ptemp);
1079 return pyobj;
1080 }
1081
1082 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1083
1084 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1085 return 1;
1086 }
1087
1088 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1089 PyObject * pyobj;
1090 char ptemp[128];
1091
1092 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1093 pyobj = PyString_FromString(ptemp);
1094 return pyobj;
1095 }
1096
1097 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1098
1099 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1100 return 1;
1101 }
1102
1103 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1104 PyObject * pyobj;
1105 char ptemp[128];
1106
1107 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1108 pyobj = PyString_FromString(ptemp);
1109 return pyobj;
1110 }
1111
1112 static int _wrap_wxNullBitmap_set(PyObject *val) {
1113
1114 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1115 return 1;
1116 }
1117
1118 static PyObject *_wrap_wxNullBitmap_get() {
1119 PyObject * pyobj;
1120 char ptemp[128];
1121
1122 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1123 pyobj = PyString_FromString(ptemp);
1124 return pyobj;
1125 }
1126
1127 static int _wrap_wxNullIcon_set(PyObject *val) {
1128
1129 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1130 return 1;
1131 }
1132
1133 static PyObject *_wrap_wxNullIcon_get() {
1134 PyObject * pyobj;
1135 char ptemp[128];
1136
1137 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1138 pyobj = PyString_FromString(ptemp);
1139 return pyobj;
1140 }
1141
1142 static int _wrap_wxNullCursor_set(PyObject *val) {
1143
1144 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1145 return 1;
1146 }
1147
1148 static PyObject *_wrap_wxNullCursor_get() {
1149 PyObject * pyobj;
1150 char ptemp[128];
1151
1152 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1153 pyobj = PyString_FromString(ptemp);
1154 return pyobj;
1155 }
1156
1157 static int _wrap_wxNullPen_set(PyObject *val) {
1158
1159 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1160 return 1;
1161 }
1162
1163 static PyObject *_wrap_wxNullPen_get() {
1164 PyObject * pyobj;
1165 char ptemp[128];
1166
1167 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1168 pyobj = PyString_FromString(ptemp);
1169 return pyobj;
1170 }
1171
1172 static int _wrap_wxNullBrush_set(PyObject *val) {
1173
1174 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1175 return 1;
1176 }
1177
1178 static PyObject *_wrap_wxNullBrush_get() {
1179 PyObject * pyobj;
1180 char ptemp[128];
1181
1182 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1183 pyobj = PyString_FromString(ptemp);
1184 return pyobj;
1185 }
1186
1187 static int _wrap_wxNullPalette_set(PyObject *val) {
1188
1189 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1190 return 1;
1191 }
1192
1193 static PyObject *_wrap_wxNullPalette_get() {
1194 PyObject * pyobj;
1195 char ptemp[128];
1196
1197 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1198 pyobj = PyString_FromString(ptemp);
1199 return pyobj;
1200 }
1201
1202 static int _wrap_wxNullFont_set(PyObject *val) {
1203
1204 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1205 return 1;
1206 }
1207
1208 static PyObject *_wrap_wxNullFont_get() {
1209 PyObject * pyobj;
1210 char ptemp[128];
1211
1212 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1213 pyobj = PyString_FromString(ptemp);
1214 return pyobj;
1215 }
1216
1217 static int _wrap_wxNullColour_set(PyObject *val) {
1218
1219 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1220 return 1;
1221 }
1222
1223 static PyObject *_wrap_wxNullColour_get() {
1224 PyObject * pyobj;
1225 char ptemp[128];
1226
1227 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1228 pyobj = PyString_FromString(ptemp);
1229 return pyobj;
1230 }
1231
1232 static int _wrap_wxTheFontList_set(PyObject *val) {
1233
1234 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1235 return 1;
1236 }
1237
1238 static PyObject *_wrap_wxTheFontList_get() {
1239 PyObject * pyobj;
1240 char ptemp[128];
1241
1242 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1243 pyobj = PyString_FromString(ptemp);
1244 return pyobj;
1245 }
1246
1247 static int _wrap_wxThePenList_set(PyObject *val) {
1248
1249 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1250 return 1;
1251 }
1252
1253 static PyObject *_wrap_wxThePenList_get() {
1254 PyObject * pyobj;
1255 char ptemp[128];
1256
1257 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1258 pyobj = PyString_FromString(ptemp);
1259 return pyobj;
1260 }
1261
1262 static int _wrap_wxTheBrushList_set(PyObject *val) {
1263
1264 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1265 return 1;
1266 }
1267
1268 static PyObject *_wrap_wxTheBrushList_get() {
1269 PyObject * pyobj;
1270 char ptemp[128];
1271
1272 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1273 pyobj = PyString_FromString(ptemp);
1274 return pyobj;
1275 }
1276
1277 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1278
1279 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1280 return 1;
1281 }
1282
1283 static PyObject *_wrap_wxTheColourDatabase_get() {
1284 PyObject * pyobj;
1285 char ptemp[128];
1286
1287 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1288 pyobj = PyString_FromString(ptemp);
1289 return pyobj;
1290 }
1291
1292 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1293 wxGDIObject *src;
1294 wxObject *dest;
1295 src = (wxGDIObject *) ptr;
1296 dest = (wxObject *) src;
1297 return (void *) dest;
1298 }
1299
1300 #define new_wxGDIObject() (new wxGDIObject())
1301 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1302 PyObject * _resultobj;
1303 wxGDIObject * _result;
1304 char *_kwnames[] = { NULL };
1305 char _ptemp[128];
1306
1307 self = self;
1308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1309 return NULL;
1310 {
1311 wxPy_BEGIN_ALLOW_THREADS;
1312 _result = (wxGDIObject *)new_wxGDIObject();
1313
1314 wxPy_END_ALLOW_THREADS;
1315 if (PyErr_Occurred()) return NULL;
1316 } if (_result) {
1317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1318 _resultobj = Py_BuildValue("s",_ptemp);
1319 } else {
1320 Py_INCREF(Py_None);
1321 _resultobj = Py_None;
1322 }
1323 return _resultobj;
1324 }
1325
1326 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1327 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1328 PyObject * _resultobj;
1329 wxGDIObject * _arg0;
1330 PyObject * _argo0 = 0;
1331 char *_kwnames[] = { "self", NULL };
1332
1333 self = self;
1334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1335 return NULL;
1336 if (_argo0) {
1337 if (_argo0 == Py_None) { _arg0 = NULL; }
1338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1340 return NULL;
1341 }
1342 }
1343 {
1344 wxPy_BEGIN_ALLOW_THREADS;
1345 delete_wxGDIObject(_arg0);
1346
1347 wxPy_END_ALLOW_THREADS;
1348 if (PyErr_Occurred()) return NULL;
1349 } Py_INCREF(Py_None);
1350 _resultobj = Py_None;
1351 return _resultobj;
1352 }
1353
1354 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1355 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1356 PyObject * _resultobj;
1357 bool _result;
1358 wxGDIObject * _arg0;
1359 PyObject * _argo0 = 0;
1360 char *_kwnames[] = { "self", NULL };
1361
1362 self = self;
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1364 return NULL;
1365 if (_argo0) {
1366 if (_argo0 == Py_None) { _arg0 = NULL; }
1367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1369 return NULL;
1370 }
1371 }
1372 {
1373 wxPy_BEGIN_ALLOW_THREADS;
1374 _result = (bool )wxGDIObject_GetVisible(_arg0);
1375
1376 wxPy_END_ALLOW_THREADS;
1377 if (PyErr_Occurred()) return NULL;
1378 } _resultobj = Py_BuildValue("i",_result);
1379 return _resultobj;
1380 }
1381
1382 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1383 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1384 PyObject * _resultobj;
1385 wxGDIObject * _arg0;
1386 bool _arg1;
1387 PyObject * _argo0 = 0;
1388 int tempbool1;
1389 char *_kwnames[] = { "self","visible", NULL };
1390
1391 self = self;
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1393 return NULL;
1394 if (_argo0) {
1395 if (_argo0 == Py_None) { _arg0 = NULL; }
1396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1398 return NULL;
1399 }
1400 }
1401 _arg1 = (bool ) tempbool1;
1402 {
1403 wxPy_BEGIN_ALLOW_THREADS;
1404 wxGDIObject_SetVisible(_arg0,_arg1);
1405
1406 wxPy_END_ALLOW_THREADS;
1407 if (PyErr_Occurred()) return NULL;
1408 } Py_INCREF(Py_None);
1409 _resultobj = Py_None;
1410 return _resultobj;
1411 }
1412
1413 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1414 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject * _resultobj;
1416 bool _result;
1417 wxGDIObject * _arg0;
1418 PyObject * _argo0 = 0;
1419 char *_kwnames[] = { "self", NULL };
1420
1421 self = self;
1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1423 return NULL;
1424 if (_argo0) {
1425 if (_argo0 == Py_None) { _arg0 = NULL; }
1426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1428 return NULL;
1429 }
1430 }
1431 {
1432 wxPy_BEGIN_ALLOW_THREADS;
1433 _result = (bool )wxGDIObject_IsNull(_arg0);
1434
1435 wxPy_END_ALLOW_THREADS;
1436 if (PyErr_Occurred()) return NULL;
1437 } _resultobj = Py_BuildValue("i",_result);
1438 return _resultobj;
1439 }
1440
1441 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1442 wxBitmap *src;
1443 wxGDIObject *dest;
1444 src = (wxBitmap *) ptr;
1445 dest = (wxGDIObject *) src;
1446 return (void *) dest;
1447 }
1448
1449 static void *SwigwxBitmapTowxObject(void *ptr) {
1450 wxBitmap *src;
1451 wxObject *dest;
1452 src = (wxBitmap *) ptr;
1453 dest = (wxObject *) src;
1454 return (void *) dest;
1455 }
1456
1457 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1458 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1459 PyObject * _resultobj;
1460 wxBitmap * _result;
1461 wxString * _arg0;
1462 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1463 PyObject * _obj0 = 0;
1464 char *_kwnames[] = { "name","type", NULL };
1465 char _ptemp[128];
1466
1467 self = self;
1468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1469 return NULL;
1470 {
1471 #if PYTHON_API_VERSION >= 1009
1472 char* tmpPtr; int tmpSize;
1473 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1474 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1475 return NULL;
1476 }
1477 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1478 return NULL;
1479 _arg0 = new wxString(tmpPtr, tmpSize);
1480 #else
1481 if (!PyString_Check(_obj0)) {
1482 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1483 return NULL;
1484 }
1485 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1486 #endif
1487 }
1488 {
1489 wxPy_BEGIN_ALLOW_THREADS;
1490 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1491
1492 wxPy_END_ALLOW_THREADS;
1493 if (PyErr_Occurred()) return NULL;
1494 } if (_result) {
1495 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1496 _resultobj = Py_BuildValue("s",_ptemp);
1497 } else {
1498 Py_INCREF(Py_None);
1499 _resultobj = Py_None;
1500 }
1501 {
1502 if (_obj0)
1503 delete _arg0;
1504 }
1505 return _resultobj;
1506 }
1507
1508 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1509 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1510 PyObject * _resultobj;
1511 wxBitmap * _arg0;
1512 PyObject * _argo0 = 0;
1513 char *_kwnames[] = { "self", NULL };
1514
1515 self = self;
1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1517 return NULL;
1518 if (_argo0) {
1519 if (_argo0 == Py_None) { _arg0 = NULL; }
1520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1522 return NULL;
1523 }
1524 }
1525 {
1526 wxPy_BEGIN_ALLOW_THREADS;
1527 delete_wxBitmap(_arg0);
1528
1529 wxPy_END_ALLOW_THREADS;
1530 if (PyErr_Occurred()) return NULL;
1531 } Py_INCREF(Py_None);
1532 _resultobj = Py_None;
1533 return _resultobj;
1534 }
1535
1536 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1537 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject * _resultobj;
1539 wxPalette * _result;
1540 wxBitmap * _arg0;
1541 PyObject * _argo0 = 0;
1542 char *_kwnames[] = { "self", NULL };
1543 char _ptemp[128];
1544
1545 self = self;
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1547 return NULL;
1548 if (_argo0) {
1549 if (_argo0 == Py_None) { _arg0 = NULL; }
1550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1552 return NULL;
1553 }
1554 }
1555 {
1556 wxPy_BEGIN_ALLOW_THREADS;
1557 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1558
1559 wxPy_END_ALLOW_THREADS;
1560 if (PyErr_Occurred()) return NULL;
1561 } if (_result) {
1562 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1563 _resultobj = Py_BuildValue("s",_ptemp);
1564 } else {
1565 Py_INCREF(Py_None);
1566 _resultobj = Py_None;
1567 }
1568 return _resultobj;
1569 }
1570
1571 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1572 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject * _resultobj;
1574 wxMask * _result;
1575 wxBitmap * _arg0;
1576 PyObject * _argo0 = 0;
1577 char *_kwnames[] = { "self", NULL };
1578 char _ptemp[128];
1579
1580 self = self;
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1582 return NULL;
1583 if (_argo0) {
1584 if (_argo0 == Py_None) { _arg0 = NULL; }
1585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1587 return NULL;
1588 }
1589 }
1590 {
1591 wxPy_BEGIN_ALLOW_THREADS;
1592 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1593
1594 wxPy_END_ALLOW_THREADS;
1595 if (PyErr_Occurred()) return NULL;
1596 } if (_result) {
1597 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1598 _resultobj = Py_BuildValue("s",_ptemp);
1599 } else {
1600 Py_INCREF(Py_None);
1601 _resultobj = Py_None;
1602 }
1603 return _resultobj;
1604 }
1605
1606 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1607 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject * _resultobj;
1609 bool _result;
1610 wxBitmap * _arg0;
1611 wxString * _arg1;
1612 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1613 PyObject * _argo0 = 0;
1614 PyObject * _obj1 = 0;
1615 char *_kwnames[] = { "self","name","type", NULL };
1616
1617 self = self;
1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1619 return NULL;
1620 if (_argo0) {
1621 if (_argo0 == Py_None) { _arg0 = NULL; }
1622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1624 return NULL;
1625 }
1626 }
1627 {
1628 #if PYTHON_API_VERSION >= 1009
1629 char* tmpPtr; int tmpSize;
1630 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1631 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1632 return NULL;
1633 }
1634 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1635 return NULL;
1636 _arg1 = new wxString(tmpPtr, tmpSize);
1637 #else
1638 if (!PyString_Check(_obj1)) {
1639 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1640 return NULL;
1641 }
1642 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1643 #endif
1644 }
1645 {
1646 wxPy_BEGIN_ALLOW_THREADS;
1647 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1648
1649 wxPy_END_ALLOW_THREADS;
1650 if (PyErr_Occurred()) return NULL;
1651 } _resultobj = Py_BuildValue("i",_result);
1652 {
1653 if (_obj1)
1654 delete _arg1;
1655 }
1656 return _resultobj;
1657 }
1658
1659 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1660 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1661 PyObject * _resultobj;
1662 bool _result;
1663 wxBitmap * _arg0;
1664 wxString * _arg1;
1665 wxBitmapType _arg2;
1666 wxPalette * _arg3 = (wxPalette *) NULL;
1667 PyObject * _argo0 = 0;
1668 PyObject * _obj1 = 0;
1669 PyObject * _argo3 = 0;
1670 char *_kwnames[] = { "self","name","type","palette", NULL };
1671
1672 self = self;
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1674 return NULL;
1675 if (_argo0) {
1676 if (_argo0 == Py_None) { _arg0 = NULL; }
1677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1679 return NULL;
1680 }
1681 }
1682 {
1683 #if PYTHON_API_VERSION >= 1009
1684 char* tmpPtr; int tmpSize;
1685 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1686 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1687 return NULL;
1688 }
1689 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1690 return NULL;
1691 _arg1 = new wxString(tmpPtr, tmpSize);
1692 #else
1693 if (!PyString_Check(_obj1)) {
1694 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1695 return NULL;
1696 }
1697 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1698 #endif
1699 }
1700 if (_argo3) {
1701 if (_argo3 == Py_None) { _arg3 = NULL; }
1702 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1703 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1704 return NULL;
1705 }
1706 }
1707 {
1708 wxPy_BEGIN_ALLOW_THREADS;
1709 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1710
1711 wxPy_END_ALLOW_THREADS;
1712 if (PyErr_Occurred()) return NULL;
1713 } _resultobj = Py_BuildValue("i",_result);
1714 {
1715 if (_obj1)
1716 delete _arg1;
1717 }
1718 return _resultobj;
1719 }
1720
1721 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1722 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1723 PyObject * _resultobj;
1724 wxBitmap * _arg0;
1725 wxMask * _arg1;
1726 PyObject * _argo0 = 0;
1727 PyObject * _argo1 = 0;
1728 char *_kwnames[] = { "self","mask", NULL };
1729
1730 self = self;
1731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1732 return NULL;
1733 if (_argo0) {
1734 if (_argo0 == Py_None) { _arg0 = NULL; }
1735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1737 return NULL;
1738 }
1739 }
1740 if (_argo1) {
1741 if (_argo1 == Py_None) { _arg1 = NULL; }
1742 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1743 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1744 return NULL;
1745 }
1746 }
1747 {
1748 wxPy_BEGIN_ALLOW_THREADS;
1749 wxBitmap_SetMask(_arg0,_arg1);
1750
1751 wxPy_END_ALLOW_THREADS;
1752 if (PyErr_Occurred()) return NULL;
1753 } Py_INCREF(Py_None);
1754 _resultobj = Py_None;
1755 return _resultobj;
1756 }
1757
1758 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1759 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject * _resultobj;
1761 wxBitmap * _arg0;
1762 wxPalette * _arg1;
1763 PyObject * _argo0 = 0;
1764 PyObject * _argo1 = 0;
1765 char *_kwnames[] = { "self","palette", NULL };
1766
1767 self = self;
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1769 return NULL;
1770 if (_argo0) {
1771 if (_argo0 == Py_None) { _arg0 = NULL; }
1772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1774 return NULL;
1775 }
1776 }
1777 if (_argo1) {
1778 if (_argo1 == Py_None) { _arg1 = NULL; }
1779 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1780 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1781 return NULL;
1782 }
1783 }
1784 {
1785 wxPy_BEGIN_ALLOW_THREADS;
1786 wxBitmap_SetPalette(_arg0,*_arg1);
1787
1788 wxPy_END_ALLOW_THREADS;
1789 if (PyErr_Occurred()) return NULL;
1790 } Py_INCREF(Py_None);
1791 _resultobj = Py_None;
1792 return _resultobj;
1793 }
1794
1795 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1796 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1797 PyObject * _resultobj;
1798 long _result;
1799 wxBitmap * _arg0;
1800 PyObject * _argo0 = 0;
1801 char *_kwnames[] = { "self", NULL };
1802
1803 self = self;
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1805 return NULL;
1806 if (_argo0) {
1807 if (_argo0 == Py_None) { _arg0 = NULL; }
1808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1810 return NULL;
1811 }
1812 }
1813 {
1814 wxPy_BEGIN_ALLOW_THREADS;
1815 _result = (long )wxBitmap_GetHandle(_arg0);
1816
1817 wxPy_END_ALLOW_THREADS;
1818 if (PyErr_Occurred()) return NULL;
1819 } _resultobj = Py_BuildValue("l",_result);
1820 return _resultobj;
1821 }
1822
1823 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1824 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1825 PyObject * _resultobj;
1826 wxBitmap * _arg0;
1827 long _arg1;
1828 PyObject * _argo0 = 0;
1829 char *_kwnames[] = { "self","handle", NULL };
1830
1831 self = self;
1832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1833 return NULL;
1834 if (_argo0) {
1835 if (_argo0 == Py_None) { _arg0 = NULL; }
1836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1838 return NULL;
1839 }
1840 }
1841 {
1842 wxPy_BEGIN_ALLOW_THREADS;
1843 wxBitmap_SetHandle(_arg0,_arg1);
1844
1845 wxPy_END_ALLOW_THREADS;
1846 if (PyErr_Occurred()) return NULL;
1847 } Py_INCREF(Py_None);
1848 _resultobj = Py_None;
1849 return _resultobj;
1850 }
1851
1852 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1853 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1854 PyObject * _resultobj;
1855 bool _result;
1856 wxBitmap * _arg0;
1857 PyObject * _argo0 = 0;
1858 char *_kwnames[] = { "self", NULL };
1859
1860 self = self;
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1862 return NULL;
1863 if (_argo0) {
1864 if (_argo0 == Py_None) { _arg0 = NULL; }
1865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1867 return NULL;
1868 }
1869 }
1870 {
1871 wxPy_BEGIN_ALLOW_THREADS;
1872 _result = (bool )wxBitmap_Ok(_arg0);
1873
1874 wxPy_END_ALLOW_THREADS;
1875 if (PyErr_Occurred()) return NULL;
1876 } _resultobj = Py_BuildValue("i",_result);
1877 return _resultobj;
1878 }
1879
1880 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1881 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1882 PyObject * _resultobj;
1883 int _result;
1884 wxBitmap * _arg0;
1885 PyObject * _argo0 = 0;
1886 char *_kwnames[] = { "self", NULL };
1887
1888 self = self;
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1890 return NULL;
1891 if (_argo0) {
1892 if (_argo0 == Py_None) { _arg0 = NULL; }
1893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1895 return NULL;
1896 }
1897 }
1898 {
1899 wxPy_BEGIN_ALLOW_THREADS;
1900 _result = (int )wxBitmap_GetWidth(_arg0);
1901
1902 wxPy_END_ALLOW_THREADS;
1903 if (PyErr_Occurred()) return NULL;
1904 } _resultobj = Py_BuildValue("i",_result);
1905 return _resultobj;
1906 }
1907
1908 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1909 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1910 PyObject * _resultobj;
1911 int _result;
1912 wxBitmap * _arg0;
1913 PyObject * _argo0 = 0;
1914 char *_kwnames[] = { "self", NULL };
1915
1916 self = self;
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1918 return NULL;
1919 if (_argo0) {
1920 if (_argo0 == Py_None) { _arg0 = NULL; }
1921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1923 return NULL;
1924 }
1925 }
1926 {
1927 wxPy_BEGIN_ALLOW_THREADS;
1928 _result = (int )wxBitmap_GetHeight(_arg0);
1929
1930 wxPy_END_ALLOW_THREADS;
1931 if (PyErr_Occurred()) return NULL;
1932 } _resultobj = Py_BuildValue("i",_result);
1933 return _resultobj;
1934 }
1935
1936 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1937 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1938 PyObject * _resultobj;
1939 int _result;
1940 wxBitmap * _arg0;
1941 PyObject * _argo0 = 0;
1942 char *_kwnames[] = { "self", NULL };
1943
1944 self = self;
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1946 return NULL;
1947 if (_argo0) {
1948 if (_argo0 == Py_None) { _arg0 = NULL; }
1949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1951 return NULL;
1952 }
1953 }
1954 {
1955 wxPy_BEGIN_ALLOW_THREADS;
1956 _result = (int )wxBitmap_GetDepth(_arg0);
1957
1958 wxPy_END_ALLOW_THREADS;
1959 if (PyErr_Occurred()) return NULL;
1960 } _resultobj = Py_BuildValue("i",_result);
1961 return _resultobj;
1962 }
1963
1964 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1965 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject * _resultobj;
1967 wxBitmap * _arg0;
1968 int _arg1;
1969 PyObject * _argo0 = 0;
1970 char *_kwnames[] = { "self","w", NULL };
1971
1972 self = self;
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1974 return NULL;
1975 if (_argo0) {
1976 if (_argo0 == Py_None) { _arg0 = NULL; }
1977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1979 return NULL;
1980 }
1981 }
1982 {
1983 wxPy_BEGIN_ALLOW_THREADS;
1984 wxBitmap_SetWidth(_arg0,_arg1);
1985
1986 wxPy_END_ALLOW_THREADS;
1987 if (PyErr_Occurred()) return NULL;
1988 } Py_INCREF(Py_None);
1989 _resultobj = Py_None;
1990 return _resultobj;
1991 }
1992
1993 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1994 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 wxBitmap * _arg0;
1997 int _arg1;
1998 PyObject * _argo0 = 0;
1999 char *_kwnames[] = { "self","h", NULL };
2000
2001 self = self;
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
2003 return NULL;
2004 if (_argo0) {
2005 if (_argo0 == Py_None) { _arg0 = NULL; }
2006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2008 return NULL;
2009 }
2010 }
2011 {
2012 wxPy_BEGIN_ALLOW_THREADS;
2013 wxBitmap_SetHeight(_arg0,_arg1);
2014
2015 wxPy_END_ALLOW_THREADS;
2016 if (PyErr_Occurred()) return NULL;
2017 } Py_INCREF(Py_None);
2018 _resultobj = Py_None;
2019 return _resultobj;
2020 }
2021
2022 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2023 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2024 PyObject * _resultobj;
2025 wxBitmap * _arg0;
2026 int _arg1;
2027 PyObject * _argo0 = 0;
2028 char *_kwnames[] = { "self","d", NULL };
2029
2030 self = self;
2031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2032 return NULL;
2033 if (_argo0) {
2034 if (_argo0 == Py_None) { _arg0 = NULL; }
2035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2037 return NULL;
2038 }
2039 }
2040 {
2041 wxPy_BEGIN_ALLOW_THREADS;
2042 wxBitmap_SetDepth(_arg0,_arg1);
2043
2044 wxPy_END_ALLOW_THREADS;
2045 if (PyErr_Occurred()) return NULL;
2046 } Py_INCREF(Py_None);
2047 _resultobj = Py_None;
2048 return _resultobj;
2049 }
2050
2051 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2052 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2053 PyObject * _resultobj;
2054 wxBitmap * _arg0;
2055 wxSize * _arg1;
2056 PyObject * _argo0 = 0;
2057 wxSize temp;
2058 PyObject * _obj1 = 0;
2059 char *_kwnames[] = { "self","size", NULL };
2060
2061 self = self;
2062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2063 return NULL;
2064 if (_argo0) {
2065 if (_argo0 == Py_None) { _arg0 = NULL; }
2066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2068 return NULL;
2069 }
2070 }
2071 {
2072 _arg1 = &temp;
2073 if (! wxSize_helper(_obj1, &_arg1))
2074 return NULL;
2075 }
2076 {
2077 wxPy_BEGIN_ALLOW_THREADS;
2078 wxBitmap_SetSize(_arg0,*_arg1);
2079
2080 wxPy_END_ALLOW_THREADS;
2081 if (PyErr_Occurred()) return NULL;
2082 } Py_INCREF(Py_None);
2083 _resultobj = Py_None;
2084 return _resultobj;
2085 }
2086
2087 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2088 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2089 PyObject * _resultobj;
2090 wxBitmap * _result;
2091 wxBitmap * _arg0;
2092 wxRect * _arg1;
2093 PyObject * _argo0 = 0;
2094 wxRect temp;
2095 PyObject * _obj1 = 0;
2096 char *_kwnames[] = { "self","rect", NULL };
2097 char _ptemp[128];
2098
2099 self = self;
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2101 return NULL;
2102 if (_argo0) {
2103 if (_argo0 == Py_None) { _arg0 = NULL; }
2104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2106 return NULL;
2107 }
2108 }
2109 {
2110 _arg1 = &temp;
2111 if (! wxRect_helper(_obj1, &_arg1))
2112 return NULL;
2113 }
2114 {
2115 wxPy_BEGIN_ALLOW_THREADS;
2116 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2117
2118 wxPy_END_ALLOW_THREADS;
2119 if (PyErr_Occurred()) return NULL;
2120 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2121 _resultobj = Py_BuildValue("s",_ptemp);
2122 return _resultobj;
2123 }
2124
2125 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2126 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject * _resultobj;
2128 bool _result;
2129 wxBitmap * _arg0;
2130 wxIcon * _arg1;
2131 PyObject * _argo0 = 0;
2132 PyObject * _argo1 = 0;
2133 char *_kwnames[] = { "self","icon", NULL };
2134
2135 self = self;
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2137 return NULL;
2138 if (_argo0) {
2139 if (_argo0 == Py_None) { _arg0 = NULL; }
2140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2142 return NULL;
2143 }
2144 }
2145 if (_argo1) {
2146 if (_argo1 == Py_None) { _arg1 = NULL; }
2147 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2148 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2149 return NULL;
2150 }
2151 }
2152 {
2153 wxPy_BEGIN_ALLOW_THREADS;
2154 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2155
2156 wxPy_END_ALLOW_THREADS;
2157 if (PyErr_Occurred()) return NULL;
2158 } _resultobj = Py_BuildValue("i",_result);
2159 return _resultobj;
2160 }
2161
2162 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2163 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2164 PyObject * _resultobj;
2165 bool _result;
2166 wxBitmap * _arg0;
2167 wxCursor * _arg1;
2168 PyObject * _argo0 = 0;
2169 PyObject * _argo1 = 0;
2170 char *_kwnames[] = { "self","cursor", NULL };
2171
2172 self = self;
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2174 return NULL;
2175 if (_argo0) {
2176 if (_argo0 == Py_None) { _arg0 = NULL; }
2177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2179 return NULL;
2180 }
2181 }
2182 if (_argo1) {
2183 if (_argo1 == Py_None) { _arg1 = NULL; }
2184 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2185 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2186 return NULL;
2187 }
2188 }
2189 {
2190 wxPy_BEGIN_ALLOW_THREADS;
2191 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2192
2193 wxPy_END_ALLOW_THREADS;
2194 if (PyErr_Occurred()) return NULL;
2195 } _resultobj = Py_BuildValue("i",_result);
2196 return _resultobj;
2197 }
2198
2199 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2200 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject * _resultobj;
2202 int _result;
2203 wxBitmap * _arg0;
2204 PyObject * _argo0 = 0;
2205 char *_kwnames[] = { "self", NULL };
2206
2207 self = self;
2208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2209 return NULL;
2210 if (_argo0) {
2211 if (_argo0 == Py_None) { _arg0 = NULL; }
2212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2214 return NULL;
2215 }
2216 }
2217 {
2218 wxPy_BEGIN_ALLOW_THREADS;
2219 _result = (int )wxBitmap_GetQuality(_arg0);
2220
2221 wxPy_END_ALLOW_THREADS;
2222 if (PyErr_Occurred()) return NULL;
2223 } _resultobj = Py_BuildValue("i",_result);
2224 return _resultobj;
2225 }
2226
2227 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2228 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2229 PyObject * _resultobj;
2230 wxBitmap * _arg0;
2231 int _arg1;
2232 PyObject * _argo0 = 0;
2233 char *_kwnames[] = { "self","q", NULL };
2234
2235 self = self;
2236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2237 return NULL;
2238 if (_argo0) {
2239 if (_argo0 == Py_None) { _arg0 = NULL; }
2240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2242 return NULL;
2243 }
2244 }
2245 {
2246 wxPy_BEGIN_ALLOW_THREADS;
2247 wxBitmap_SetQuality(_arg0,_arg1);
2248
2249 wxPy_END_ALLOW_THREADS;
2250 if (PyErr_Occurred()) return NULL;
2251 } Py_INCREF(Py_None);
2252 _resultobj = Py_None;
2253 return _resultobj;
2254 }
2255
2256 static void *SwigwxMaskTowxObject(void *ptr) {
2257 wxMask *src;
2258 wxObject *dest;
2259 src = (wxMask *) ptr;
2260 dest = (wxObject *) src;
2261 return (void *) dest;
2262 }
2263
2264 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2265 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject * _resultobj;
2267 wxMask * _result;
2268 wxBitmap * _arg0;
2269 PyObject * _argo0 = 0;
2270 char *_kwnames[] = { "bitmap", NULL };
2271 char _ptemp[128];
2272
2273 self = self;
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2275 return NULL;
2276 if (_argo0) {
2277 if (_argo0 == Py_None) { _arg0 = NULL; }
2278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2280 return NULL;
2281 }
2282 }
2283 {
2284 wxPy_BEGIN_ALLOW_THREADS;
2285 _result = (wxMask *)new_wxMask(*_arg0);
2286
2287 wxPy_END_ALLOW_THREADS;
2288 if (PyErr_Occurred()) return NULL;
2289 } if (_result) {
2290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2291 _resultobj = Py_BuildValue("s",_ptemp);
2292 } else {
2293 Py_INCREF(Py_None);
2294 _resultobj = Py_None;
2295 }
2296 return _resultobj;
2297 }
2298
2299 static void wxMask_Destroy(wxMask *self) { delete self; }
2300 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2301 PyObject * _resultobj;
2302 wxMask * _arg0;
2303 PyObject * _argo0 = 0;
2304 char *_kwnames[] = { "self", NULL };
2305
2306 self = self;
2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2308 return NULL;
2309 if (_argo0) {
2310 if (_argo0 == Py_None) { _arg0 = NULL; }
2311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2313 return NULL;
2314 }
2315 }
2316 {
2317 wxPy_BEGIN_ALLOW_THREADS;
2318 wxMask_Destroy(_arg0);
2319
2320 wxPy_END_ALLOW_THREADS;
2321 if (PyErr_Occurred()) return NULL;
2322 } Py_INCREF(Py_None);
2323 _resultobj = Py_None;
2324 return _resultobj;
2325 }
2326
2327 static void *SwigwxIconTowxGDIObject(void *ptr) {
2328 wxIcon *src;
2329 wxGDIObject *dest;
2330 src = (wxIcon *) ptr;
2331 dest = (wxGDIObject *) src;
2332 return (void *) dest;
2333 }
2334
2335 static void *SwigwxIconTowxObject(void *ptr) {
2336 wxIcon *src;
2337 wxObject *dest;
2338 src = (wxIcon *) ptr;
2339 dest = (wxObject *) src;
2340 return (void *) dest;
2341 }
2342
2343 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2344 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2345 PyObject * _resultobj;
2346 wxIcon * _result;
2347 wxString * _arg0;
2348 long _arg1;
2349 int _arg2 = (int ) -1;
2350 int _arg3 = (int ) -1;
2351 PyObject * _obj0 = 0;
2352 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2353 char _ptemp[128];
2354
2355 self = self;
2356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2357 return NULL;
2358 {
2359 #if PYTHON_API_VERSION >= 1009
2360 char* tmpPtr; int tmpSize;
2361 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2362 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2363 return NULL;
2364 }
2365 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2366 return NULL;
2367 _arg0 = new wxString(tmpPtr, tmpSize);
2368 #else
2369 if (!PyString_Check(_obj0)) {
2370 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2371 return NULL;
2372 }
2373 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2374 #endif
2375 }
2376 {
2377 wxPy_BEGIN_ALLOW_THREADS;
2378 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2379
2380 wxPy_END_ALLOW_THREADS;
2381 if (PyErr_Occurred()) return NULL;
2382 } if (_result) {
2383 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2384 _resultobj = Py_BuildValue("s",_ptemp);
2385 } else {
2386 Py_INCREF(Py_None);
2387 _resultobj = Py_None;
2388 }
2389 {
2390 if (_obj0)
2391 delete _arg0;
2392 }
2393 return _resultobj;
2394 }
2395
2396 #define delete_wxIcon(_swigobj) (delete _swigobj)
2397 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2398 PyObject * _resultobj;
2399 wxIcon * _arg0;
2400 PyObject * _argo0 = 0;
2401 char *_kwnames[] = { "self", NULL };
2402
2403 self = self;
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2405 return NULL;
2406 if (_argo0) {
2407 if (_argo0 == Py_None) { _arg0 = NULL; }
2408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2410 return NULL;
2411 }
2412 }
2413 {
2414 wxPy_BEGIN_ALLOW_THREADS;
2415 delete_wxIcon(_arg0);
2416
2417 wxPy_END_ALLOW_THREADS;
2418 if (PyErr_Occurred()) return NULL;
2419 } Py_INCREF(Py_None);
2420 _resultobj = Py_None;
2421 return _resultobj;
2422 }
2423
2424 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2425 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2426 PyObject * _resultobj;
2427 bool _result;
2428 wxIcon * _arg0;
2429 wxString * _arg1;
2430 long _arg2;
2431 PyObject * _argo0 = 0;
2432 PyObject * _obj1 = 0;
2433 char *_kwnames[] = { "self","name","flags", NULL };
2434
2435 self = self;
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2437 return NULL;
2438 if (_argo0) {
2439 if (_argo0 == Py_None) { _arg0 = NULL; }
2440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2442 return NULL;
2443 }
2444 }
2445 {
2446 #if PYTHON_API_VERSION >= 1009
2447 char* tmpPtr; int tmpSize;
2448 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2449 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2450 return NULL;
2451 }
2452 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2453 return NULL;
2454 _arg1 = new wxString(tmpPtr, tmpSize);
2455 #else
2456 if (!PyString_Check(_obj1)) {
2457 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2458 return NULL;
2459 }
2460 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2461 #endif
2462 }
2463 {
2464 wxPy_BEGIN_ALLOW_THREADS;
2465 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2466
2467 wxPy_END_ALLOW_THREADS;
2468 if (PyErr_Occurred()) return NULL;
2469 } _resultobj = Py_BuildValue("i",_result);
2470 {
2471 if (_obj1)
2472 delete _arg1;
2473 }
2474 return _resultobj;
2475 }
2476
2477 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2478 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject * _resultobj;
2480 long _result;
2481 wxIcon * _arg0;
2482 PyObject * _argo0 = 0;
2483 char *_kwnames[] = { "self", NULL };
2484
2485 self = self;
2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2487 return NULL;
2488 if (_argo0) {
2489 if (_argo0 == Py_None) { _arg0 = NULL; }
2490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2492 return NULL;
2493 }
2494 }
2495 {
2496 wxPy_BEGIN_ALLOW_THREADS;
2497 _result = (long )wxIcon_GetHandle(_arg0);
2498
2499 wxPy_END_ALLOW_THREADS;
2500 if (PyErr_Occurred()) return NULL;
2501 } _resultobj = Py_BuildValue("l",_result);
2502 return _resultobj;
2503 }
2504
2505 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2506 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject * _resultobj;
2508 wxIcon * _arg0;
2509 long _arg1;
2510 PyObject * _argo0 = 0;
2511 char *_kwnames[] = { "self","handle", NULL };
2512
2513 self = self;
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2515 return NULL;
2516 if (_argo0) {
2517 if (_argo0 == Py_None) { _arg0 = NULL; }
2518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2520 return NULL;
2521 }
2522 }
2523 {
2524 wxPy_BEGIN_ALLOW_THREADS;
2525 wxIcon_SetHandle(_arg0,_arg1);
2526
2527 wxPy_END_ALLOW_THREADS;
2528 if (PyErr_Occurred()) return NULL;
2529 } Py_INCREF(Py_None);
2530 _resultobj = Py_None;
2531 return _resultobj;
2532 }
2533
2534 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2535 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject * _resultobj;
2537 bool _result;
2538 wxIcon * _arg0;
2539 PyObject * _argo0 = 0;
2540 char *_kwnames[] = { "self", NULL };
2541
2542 self = self;
2543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2544 return NULL;
2545 if (_argo0) {
2546 if (_argo0 == Py_None) { _arg0 = NULL; }
2547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2549 return NULL;
2550 }
2551 }
2552 {
2553 wxPy_BEGIN_ALLOW_THREADS;
2554 _result = (bool )wxIcon_Ok(_arg0);
2555
2556 wxPy_END_ALLOW_THREADS;
2557 if (PyErr_Occurred()) return NULL;
2558 } _resultobj = Py_BuildValue("i",_result);
2559 return _resultobj;
2560 }
2561
2562 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2563 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject * _resultobj;
2565 int _result;
2566 wxIcon * _arg0;
2567 PyObject * _argo0 = 0;
2568 char *_kwnames[] = { "self", NULL };
2569
2570 self = self;
2571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2572 return NULL;
2573 if (_argo0) {
2574 if (_argo0 == Py_None) { _arg0 = NULL; }
2575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2577 return NULL;
2578 }
2579 }
2580 {
2581 wxPy_BEGIN_ALLOW_THREADS;
2582 _result = (int )wxIcon_GetWidth(_arg0);
2583
2584 wxPy_END_ALLOW_THREADS;
2585 if (PyErr_Occurred()) return NULL;
2586 } _resultobj = Py_BuildValue("i",_result);
2587 return _resultobj;
2588 }
2589
2590 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2591 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject * _resultobj;
2593 int _result;
2594 wxIcon * _arg0;
2595 PyObject * _argo0 = 0;
2596 char *_kwnames[] = { "self", NULL };
2597
2598 self = self;
2599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2600 return NULL;
2601 if (_argo0) {
2602 if (_argo0 == Py_None) { _arg0 = NULL; }
2603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2605 return NULL;
2606 }
2607 }
2608 {
2609 wxPy_BEGIN_ALLOW_THREADS;
2610 _result = (int )wxIcon_GetHeight(_arg0);
2611
2612 wxPy_END_ALLOW_THREADS;
2613 if (PyErr_Occurred()) return NULL;
2614 } _resultobj = Py_BuildValue("i",_result);
2615 return _resultobj;
2616 }
2617
2618 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2619 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2620 PyObject * _resultobj;
2621 int _result;
2622 wxIcon * _arg0;
2623 PyObject * _argo0 = 0;
2624 char *_kwnames[] = { "self", NULL };
2625
2626 self = self;
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2628 return NULL;
2629 if (_argo0) {
2630 if (_argo0 == Py_None) { _arg0 = NULL; }
2631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2633 return NULL;
2634 }
2635 }
2636 {
2637 wxPy_BEGIN_ALLOW_THREADS;
2638 _result = (int )wxIcon_GetDepth(_arg0);
2639
2640 wxPy_END_ALLOW_THREADS;
2641 if (PyErr_Occurred()) return NULL;
2642 } _resultobj = Py_BuildValue("i",_result);
2643 return _resultobj;
2644 }
2645
2646 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2647 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2648 PyObject * _resultobj;
2649 wxIcon * _arg0;
2650 int _arg1;
2651 PyObject * _argo0 = 0;
2652 char *_kwnames[] = { "self","w", NULL };
2653
2654 self = self;
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2656 return NULL;
2657 if (_argo0) {
2658 if (_argo0 == Py_None) { _arg0 = NULL; }
2659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2661 return NULL;
2662 }
2663 }
2664 {
2665 wxPy_BEGIN_ALLOW_THREADS;
2666 wxIcon_SetWidth(_arg0,_arg1);
2667
2668 wxPy_END_ALLOW_THREADS;
2669 if (PyErr_Occurred()) return NULL;
2670 } Py_INCREF(Py_None);
2671 _resultobj = Py_None;
2672 return _resultobj;
2673 }
2674
2675 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2676 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject * _resultobj;
2678 wxIcon * _arg0;
2679 int _arg1;
2680 PyObject * _argo0 = 0;
2681 char *_kwnames[] = { "self","h", NULL };
2682
2683 self = self;
2684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2685 return NULL;
2686 if (_argo0) {
2687 if (_argo0 == Py_None) { _arg0 = NULL; }
2688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2690 return NULL;
2691 }
2692 }
2693 {
2694 wxPy_BEGIN_ALLOW_THREADS;
2695 wxIcon_SetHeight(_arg0,_arg1);
2696
2697 wxPy_END_ALLOW_THREADS;
2698 if (PyErr_Occurred()) return NULL;
2699 } Py_INCREF(Py_None);
2700 _resultobj = Py_None;
2701 return _resultobj;
2702 }
2703
2704 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2705 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2706 PyObject * _resultobj;
2707 wxIcon * _arg0;
2708 int _arg1;
2709 PyObject * _argo0 = 0;
2710 char *_kwnames[] = { "self","d", NULL };
2711
2712 self = self;
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2714 return NULL;
2715 if (_argo0) {
2716 if (_argo0 == Py_None) { _arg0 = NULL; }
2717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2719 return NULL;
2720 }
2721 }
2722 {
2723 wxPy_BEGIN_ALLOW_THREADS;
2724 wxIcon_SetDepth(_arg0,_arg1);
2725
2726 wxPy_END_ALLOW_THREADS;
2727 if (PyErr_Occurred()) return NULL;
2728 } Py_INCREF(Py_None);
2729 _resultobj = Py_None;
2730 return _resultobj;
2731 }
2732
2733 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2734 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject * _resultobj;
2736 wxIcon * _arg0;
2737 wxSize * _arg1;
2738 PyObject * _argo0 = 0;
2739 wxSize temp;
2740 PyObject * _obj1 = 0;
2741 char *_kwnames[] = { "self","size", NULL };
2742
2743 self = self;
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2745 return NULL;
2746 if (_argo0) {
2747 if (_argo0 == Py_None) { _arg0 = NULL; }
2748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2750 return NULL;
2751 }
2752 }
2753 {
2754 _arg1 = &temp;
2755 if (! wxSize_helper(_obj1, &_arg1))
2756 return NULL;
2757 }
2758 {
2759 wxPy_BEGIN_ALLOW_THREADS;
2760 wxIcon_SetSize(_arg0,*_arg1);
2761
2762 wxPy_END_ALLOW_THREADS;
2763 if (PyErr_Occurred()) return NULL;
2764 } Py_INCREF(Py_None);
2765 _resultobj = Py_None;
2766 return _resultobj;
2767 }
2768
2769 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2770 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2771 PyObject * _resultobj;
2772 wxIcon * _arg0;
2773 wxBitmap * _arg1;
2774 PyObject * _argo0 = 0;
2775 PyObject * _argo1 = 0;
2776 char *_kwnames[] = { "self","bmp", NULL };
2777
2778 self = self;
2779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2780 return NULL;
2781 if (_argo0) {
2782 if (_argo0 == Py_None) { _arg0 = NULL; }
2783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2785 return NULL;
2786 }
2787 }
2788 if (_argo1) {
2789 if (_argo1 == Py_None) { _arg1 = NULL; }
2790 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2791 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2792 return NULL;
2793 }
2794 }
2795 {
2796 wxPy_BEGIN_ALLOW_THREADS;
2797 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2798
2799 wxPy_END_ALLOW_THREADS;
2800 if (PyErr_Occurred()) return NULL;
2801 } Py_INCREF(Py_None);
2802 _resultobj = Py_None;
2803 return _resultobj;
2804 }
2805
2806 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2807 wxCursor *src;
2808 wxGDIObject *dest;
2809 src = (wxCursor *) ptr;
2810 dest = (wxGDIObject *) src;
2811 return (void *) dest;
2812 }
2813
2814 static void *SwigwxCursorTowxObject(void *ptr) {
2815 wxCursor *src;
2816 wxObject *dest;
2817 src = (wxCursor *) ptr;
2818 dest = (wxObject *) src;
2819 return (void *) dest;
2820 }
2821
2822 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2823 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2824 PyObject * _resultobj;
2825 wxCursor * _result;
2826 wxString * _arg0;
2827 long _arg1;
2828 int _arg2 = (int ) 0;
2829 int _arg3 = (int ) 0;
2830 PyObject * _obj0 = 0;
2831 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
2832 char _ptemp[128];
2833
2834 self = self;
2835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2836 return NULL;
2837 {
2838 #if PYTHON_API_VERSION >= 1009
2839 char* tmpPtr; int tmpSize;
2840 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2841 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2842 return NULL;
2843 }
2844 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2845 return NULL;
2846 _arg0 = new wxString(tmpPtr, tmpSize);
2847 #else
2848 if (!PyString_Check(_obj0)) {
2849 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2850 return NULL;
2851 }
2852 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2853 #endif
2854 }
2855 {
2856 wxPy_BEGIN_ALLOW_THREADS;
2857 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
2858
2859 wxPy_END_ALLOW_THREADS;
2860 if (PyErr_Occurred()) return NULL;
2861 } if (_result) {
2862 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
2863 _resultobj = Py_BuildValue("s",_ptemp);
2864 } else {
2865 Py_INCREF(Py_None);
2866 _resultobj = Py_None;
2867 }
2868 {
2869 if (_obj0)
2870 delete _arg0;
2871 }
2872 return _resultobj;
2873 }
2874
2875 #define delete_wxCursor(_swigobj) (delete _swigobj)
2876 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2877 PyObject * _resultobj;
2878 wxCursor * _arg0;
2879 PyObject * _argo0 = 0;
2880 char *_kwnames[] = { "self", NULL };
2881
2882 self = self;
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2884 return NULL;
2885 if (_argo0) {
2886 if (_argo0 == Py_None) { _arg0 = NULL; }
2887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2889 return NULL;
2890 }
2891 }
2892 {
2893 wxPy_BEGIN_ALLOW_THREADS;
2894 delete_wxCursor(_arg0);
2895
2896 wxPy_END_ALLOW_THREADS;
2897 if (PyErr_Occurred()) return NULL;
2898 } Py_INCREF(Py_None);
2899 _resultobj = Py_None;
2900 return _resultobj;
2901 }
2902
2903 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2904 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2905 PyObject * _resultobj;
2906 long _result;
2907 wxCursor * _arg0;
2908 PyObject * _argo0 = 0;
2909 char *_kwnames[] = { "self", NULL };
2910
2911 self = self;
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
2913 return NULL;
2914 if (_argo0) {
2915 if (_argo0 == Py_None) { _arg0 = NULL; }
2916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2918 return NULL;
2919 }
2920 }
2921 {
2922 wxPy_BEGIN_ALLOW_THREADS;
2923 _result = (long )wxCursor_GetHandle(_arg0);
2924
2925 wxPy_END_ALLOW_THREADS;
2926 if (PyErr_Occurred()) return NULL;
2927 } _resultobj = Py_BuildValue("l",_result);
2928 return _resultobj;
2929 }
2930
2931 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2932 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2933 PyObject * _resultobj;
2934 wxCursor * _arg0;
2935 long _arg1;
2936 PyObject * _argo0 = 0;
2937 char *_kwnames[] = { "self","handle", NULL };
2938
2939 self = self;
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
2941 return NULL;
2942 if (_argo0) {
2943 if (_argo0 == Py_None) { _arg0 = NULL; }
2944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2946 return NULL;
2947 }
2948 }
2949 {
2950 wxPy_BEGIN_ALLOW_THREADS;
2951 wxCursor_SetHandle(_arg0,_arg1);
2952
2953 wxPy_END_ALLOW_THREADS;
2954 if (PyErr_Occurred()) return NULL;
2955 } Py_INCREF(Py_None);
2956 _resultobj = Py_None;
2957 return _resultobj;
2958 }
2959
2960 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2961 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2962 PyObject * _resultobj;
2963 bool _result;
2964 wxCursor * _arg0;
2965 PyObject * _argo0 = 0;
2966 char *_kwnames[] = { "self", NULL };
2967
2968 self = self;
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2970 return NULL;
2971 if (_argo0) {
2972 if (_argo0 == Py_None) { _arg0 = NULL; }
2973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2975 return NULL;
2976 }
2977 }
2978 {
2979 wxPy_BEGIN_ALLOW_THREADS;
2980 _result = (bool )wxCursor_Ok(_arg0);
2981
2982 wxPy_END_ALLOW_THREADS;
2983 if (PyErr_Occurred()) return NULL;
2984 } _resultobj = Py_BuildValue("i",_result);
2985 return _resultobj;
2986 }
2987
2988 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2989 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject * _resultobj;
2991 int _result;
2992 wxCursor * _arg0;
2993 PyObject * _argo0 = 0;
2994 char *_kwnames[] = { "self", NULL };
2995
2996 self = self;
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
2998 return NULL;
2999 if (_argo0) {
3000 if (_argo0 == Py_None) { _arg0 = NULL; }
3001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3003 return NULL;
3004 }
3005 }
3006 {
3007 wxPy_BEGIN_ALLOW_THREADS;
3008 _result = (int )wxCursor_GetWidth(_arg0);
3009
3010 wxPy_END_ALLOW_THREADS;
3011 if (PyErr_Occurred()) return NULL;
3012 } _resultobj = Py_BuildValue("i",_result);
3013 return _resultobj;
3014 }
3015
3016 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3017 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3018 PyObject * _resultobj;
3019 int _result;
3020 wxCursor * _arg0;
3021 PyObject * _argo0 = 0;
3022 char *_kwnames[] = { "self", NULL };
3023
3024 self = self;
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
3026 return NULL;
3027 if (_argo0) {
3028 if (_argo0 == Py_None) { _arg0 = NULL; }
3029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3031 return NULL;
3032 }
3033 }
3034 {
3035 wxPy_BEGIN_ALLOW_THREADS;
3036 _result = (int )wxCursor_GetHeight(_arg0);
3037
3038 wxPy_END_ALLOW_THREADS;
3039 if (PyErr_Occurred()) return NULL;
3040 } _resultobj = Py_BuildValue("i",_result);
3041 return _resultobj;
3042 }
3043
3044 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3045 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3046 PyObject * _resultobj;
3047 int _result;
3048 wxCursor * _arg0;
3049 PyObject * _argo0 = 0;
3050 char *_kwnames[] = { "self", NULL };
3051
3052 self = self;
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3054 return NULL;
3055 if (_argo0) {
3056 if (_argo0 == Py_None) { _arg0 = NULL; }
3057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3059 return NULL;
3060 }
3061 }
3062 {
3063 wxPy_BEGIN_ALLOW_THREADS;
3064 _result = (int )wxCursor_GetDepth(_arg0);
3065
3066 wxPy_END_ALLOW_THREADS;
3067 if (PyErr_Occurred()) return NULL;
3068 } _resultobj = Py_BuildValue("i",_result);
3069 return _resultobj;
3070 }
3071
3072 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3073 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3074 PyObject * _resultobj;
3075 wxCursor * _arg0;
3076 int _arg1;
3077 PyObject * _argo0 = 0;
3078 char *_kwnames[] = { "self","w", NULL };
3079
3080 self = self;
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3082 return NULL;
3083 if (_argo0) {
3084 if (_argo0 == Py_None) { _arg0 = NULL; }
3085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3087 return NULL;
3088 }
3089 }
3090 {
3091 wxPy_BEGIN_ALLOW_THREADS;
3092 wxCursor_SetWidth(_arg0,_arg1);
3093
3094 wxPy_END_ALLOW_THREADS;
3095 if (PyErr_Occurred()) return NULL;
3096 } Py_INCREF(Py_None);
3097 _resultobj = Py_None;
3098 return _resultobj;
3099 }
3100
3101 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3102 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject * _resultobj;
3104 wxCursor * _arg0;
3105 int _arg1;
3106 PyObject * _argo0 = 0;
3107 char *_kwnames[] = { "self","h", NULL };
3108
3109 self = self;
3110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3111 return NULL;
3112 if (_argo0) {
3113 if (_argo0 == Py_None) { _arg0 = NULL; }
3114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3116 return NULL;
3117 }
3118 }
3119 {
3120 wxPy_BEGIN_ALLOW_THREADS;
3121 wxCursor_SetHeight(_arg0,_arg1);
3122
3123 wxPy_END_ALLOW_THREADS;
3124 if (PyErr_Occurred()) return NULL;
3125 } Py_INCREF(Py_None);
3126 _resultobj = Py_None;
3127 return _resultobj;
3128 }
3129
3130 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3131 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3132 PyObject * _resultobj;
3133 wxCursor * _arg0;
3134 int _arg1;
3135 PyObject * _argo0 = 0;
3136 char *_kwnames[] = { "self","d", NULL };
3137
3138 self = self;
3139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3140 return NULL;
3141 if (_argo0) {
3142 if (_argo0 == Py_None) { _arg0 = NULL; }
3143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3145 return NULL;
3146 }
3147 }
3148 {
3149 wxPy_BEGIN_ALLOW_THREADS;
3150 wxCursor_SetDepth(_arg0,_arg1);
3151
3152 wxPy_END_ALLOW_THREADS;
3153 if (PyErr_Occurred()) return NULL;
3154 } Py_INCREF(Py_None);
3155 _resultobj = Py_None;
3156 return _resultobj;
3157 }
3158
3159 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3160 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3161 PyObject * _resultobj;
3162 wxCursor * _arg0;
3163 wxSize * _arg1;
3164 PyObject * _argo0 = 0;
3165 wxSize temp;
3166 PyObject * _obj1 = 0;
3167 char *_kwnames[] = { "self","size", NULL };
3168
3169 self = self;
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3171 return NULL;
3172 if (_argo0) {
3173 if (_argo0 == Py_None) { _arg0 = NULL; }
3174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3176 return NULL;
3177 }
3178 }
3179 {
3180 _arg1 = &temp;
3181 if (! wxSize_helper(_obj1, &_arg1))
3182 return NULL;
3183 }
3184 {
3185 wxPy_BEGIN_ALLOW_THREADS;
3186 wxCursor_SetSize(_arg0,*_arg1);
3187
3188 wxPy_END_ALLOW_THREADS;
3189 if (PyErr_Occurred()) return NULL;
3190 } Py_INCREF(Py_None);
3191 _resultobj = Py_None;
3192 return _resultobj;
3193 }
3194
3195 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3196 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
3197 PyObject * _resultobj;
3198 bool _result;
3199 wxNativeFontInfo * _arg0;
3200 wxString * _arg1;
3201 PyObject * _argo0 = 0;
3202 PyObject * _obj1 = 0;
3203 char *_kwnames[] = { "self","s", NULL };
3204
3205 self = self;
3206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
3207 return NULL;
3208 if (_argo0) {
3209 if (_argo0 == Py_None) { _arg0 = NULL; }
3210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3212 return NULL;
3213 }
3214 }
3215 {
3216 #if PYTHON_API_VERSION >= 1009
3217 char* tmpPtr; int tmpSize;
3218 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3219 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3220 return NULL;
3221 }
3222 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3223 return NULL;
3224 _arg1 = new wxString(tmpPtr, tmpSize);
3225 #else
3226 if (!PyString_Check(_obj1)) {
3227 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3228 return NULL;
3229 }
3230 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3231 #endif
3232 }
3233 {
3234 wxPy_BEGIN_ALLOW_THREADS;
3235 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3236
3237 wxPy_END_ALLOW_THREADS;
3238 if (PyErr_Occurred()) return NULL;
3239 } _resultobj = Py_BuildValue("i",_result);
3240 {
3241 if (_obj1)
3242 delete _arg1;
3243 }
3244 return _resultobj;
3245 }
3246
3247 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3248 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3249 PyObject * _resultobj;
3250 wxString * _result;
3251 wxNativeFontInfo * _arg0;
3252 PyObject * _argo0 = 0;
3253 char *_kwnames[] = { "self", NULL };
3254
3255 self = self;
3256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3257 return NULL;
3258 if (_argo0) {
3259 if (_argo0 == Py_None) { _arg0 = NULL; }
3260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3262 return NULL;
3263 }
3264 }
3265 {
3266 wxPy_BEGIN_ALLOW_THREADS;
3267 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3268
3269 wxPy_END_ALLOW_THREADS;
3270 if (PyErr_Occurred()) return NULL;
3271 }{
3272 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3273 }
3274 {
3275 delete _result;
3276 }
3277 return _resultobj;
3278 }
3279
3280 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3281 return self->ToString();
3282 }
3283 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3284 PyObject * _resultobj;
3285 wxString * _result;
3286 wxNativeFontInfo * _arg0;
3287 PyObject * _argo0 = 0;
3288 char *_kwnames[] = { "self", NULL };
3289
3290 self = self;
3291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3292 return NULL;
3293 if (_argo0) {
3294 if (_argo0 == Py_None) { _arg0 = NULL; }
3295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3297 return NULL;
3298 }
3299 }
3300 {
3301 wxPy_BEGIN_ALLOW_THREADS;
3302 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3303
3304 wxPy_END_ALLOW_THREADS;
3305 if (PyErr_Occurred()) return NULL;
3306 }{
3307 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3308 }
3309 {
3310 delete _result;
3311 }
3312 return _resultobj;
3313 }
3314
3315 #define new_wxFontMapper() (new wxFontMapper())
3316 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject * _resultobj;
3318 wxFontMapper * _result;
3319 char *_kwnames[] = { NULL };
3320 char _ptemp[128];
3321
3322 self = self;
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3324 return NULL;
3325 {
3326 wxPy_BEGIN_ALLOW_THREADS;
3327 _result = (wxFontMapper *)new_wxFontMapper();
3328
3329 wxPy_END_ALLOW_THREADS;
3330 if (PyErr_Occurred()) return NULL;
3331 } if (_result) {
3332 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3333 _resultobj = Py_BuildValue("s",_ptemp);
3334 } else {
3335 Py_INCREF(Py_None);
3336 _resultobj = Py_None;
3337 }
3338 return _resultobj;
3339 }
3340
3341 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3342 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3343 PyObject * _resultobj;
3344 wxFontMapper * _arg0;
3345 PyObject * _argo0 = 0;
3346 char *_kwnames[] = { "self", NULL };
3347
3348 self = self;
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3350 return NULL;
3351 if (_argo0) {
3352 if (_argo0 == Py_None) { _arg0 = NULL; }
3353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3355 return NULL;
3356 }
3357 }
3358 {
3359 wxPy_BEGIN_ALLOW_THREADS;
3360 delete_wxFontMapper(_arg0);
3361
3362 wxPy_END_ALLOW_THREADS;
3363 if (PyErr_Occurred()) return NULL;
3364 } Py_INCREF(Py_None);
3365 _resultobj = Py_None;
3366 return _resultobj;
3367 }
3368
3369 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3370 wxFontEncoding alt_enc;
3371 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3372 return PyInt_FromLong(alt_enc);
3373 else {
3374 Py_INCREF(Py_None);
3375 return Py_None;
3376 }
3377 }
3378 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3379 PyObject * _resultobj;
3380 PyObject * _result;
3381 wxFontMapper * _arg0;
3382 wxFontEncoding _arg1;
3383 wxString * _arg2 = (wxString *) &wxEmptyString;
3384 bool _arg3 = (bool ) TRUE;
3385 PyObject * _argo0 = 0;
3386 PyObject * _obj2 = 0;
3387 int tempbool3 = (int) TRUE;
3388 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3389
3390 self = self;
3391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3392 return NULL;
3393 if (_argo0) {
3394 if (_argo0 == Py_None) { _arg0 = NULL; }
3395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3397 return NULL;
3398 }
3399 }
3400 if (_obj2)
3401 {
3402 #if PYTHON_API_VERSION >= 1009
3403 char* tmpPtr; int tmpSize;
3404 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3405 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3406 return NULL;
3407 }
3408 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3409 return NULL;
3410 _arg2 = new wxString(tmpPtr, tmpSize);
3411 #else
3412 if (!PyString_Check(_obj2)) {
3413 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3414 return NULL;
3415 }
3416 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3417 #endif
3418 }
3419 _arg3 = (bool ) tempbool3;
3420 {
3421 wxPy_BEGIN_ALLOW_THREADS;
3422 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
3423
3424 wxPy_END_ALLOW_THREADS;
3425 if (PyErr_Occurred()) return NULL;
3426 }{
3427 _resultobj = _result;
3428 }
3429 {
3430 if (_obj2)
3431 delete _arg2;
3432 }
3433 return _resultobj;
3434 }
3435
3436 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3437 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
3438 PyObject * _resultobj;
3439 bool _result;
3440 wxFontMapper * _arg0;
3441 wxFontEncoding _arg1;
3442 wxString * _arg2 = (wxString *) &wxEmptyString;
3443 PyObject * _argo0 = 0;
3444 PyObject * _obj2 = 0;
3445 char *_kwnames[] = { "self","encoding","facename", NULL };
3446
3447 self = self;
3448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
3449 return NULL;
3450 if (_argo0) {
3451 if (_argo0 == Py_None) { _arg0 = NULL; }
3452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3454 return NULL;
3455 }
3456 }
3457 if (_obj2)
3458 {
3459 #if PYTHON_API_VERSION >= 1009
3460 char* tmpPtr; int tmpSize;
3461 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3462 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3463 return NULL;
3464 }
3465 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3466 return NULL;
3467 _arg2 = new wxString(tmpPtr, tmpSize);
3468 #else
3469 if (!PyString_Check(_obj2)) {
3470 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3471 return NULL;
3472 }
3473 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3474 #endif
3475 }
3476 {
3477 wxPy_BEGIN_ALLOW_THREADS;
3478 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
3479
3480 wxPy_END_ALLOW_THREADS;
3481 if (PyErr_Occurred()) return NULL;
3482 } _resultobj = Py_BuildValue("i",_result);
3483 {
3484 if (_obj2)
3485 delete _arg2;
3486 }
3487 return _resultobj;
3488 }
3489
3490 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3491 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3492 PyObject * _resultobj;
3493 wxFontEncoding _result;
3494 wxFontMapper * _arg0;
3495 wxString * _arg1;
3496 bool _arg2 = (bool ) TRUE;
3497 PyObject * _argo0 = 0;
3498 PyObject * _obj1 = 0;
3499 int tempbool2 = (int) TRUE;
3500 char *_kwnames[] = { "self","charset","interactive", NULL };
3501
3502 self = self;
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
3504 return NULL;
3505 if (_argo0) {
3506 if (_argo0 == Py_None) { _arg0 = NULL; }
3507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3509 return NULL;
3510 }
3511 }
3512 {
3513 #if PYTHON_API_VERSION >= 1009
3514 char* tmpPtr; int tmpSize;
3515 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3516 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3517 return NULL;
3518 }
3519 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3520 return NULL;
3521 _arg1 = new wxString(tmpPtr, tmpSize);
3522 #else
3523 if (!PyString_Check(_obj1)) {
3524 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3525 return NULL;
3526 }
3527 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3528 #endif
3529 }
3530 _arg2 = (bool ) tempbool2;
3531 {
3532 wxPy_BEGIN_ALLOW_THREADS;
3533 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
3534
3535 wxPy_END_ALLOW_THREADS;
3536 if (PyErr_Occurred()) return NULL;
3537 } _resultobj = Py_BuildValue("i",_result);
3538 {
3539 if (_obj1)
3540 delete _arg1;
3541 }
3542 return _resultobj;
3543 }
3544
3545 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3546 PyObject * _resultobj;
3547 wxString * _result;
3548 wxFontEncoding _arg0;
3549 char *_kwnames[] = { "encoding", NULL };
3550
3551 self = self;
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
3553 return NULL;
3554 {
3555 wxPy_BEGIN_ALLOW_THREADS;
3556 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
3557
3558 wxPy_END_ALLOW_THREADS;
3559 if (PyErr_Occurred()) return NULL;
3560 }{
3561 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3562 }
3563 {
3564 delete _result;
3565 }
3566 return _resultobj;
3567 }
3568
3569 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject * _resultobj;
3571 wxString * _result;
3572 wxFontEncoding _arg0;
3573 char *_kwnames[] = { "encoding", NULL };
3574
3575 self = self;
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
3577 return NULL;
3578 {
3579 wxPy_BEGIN_ALLOW_THREADS;
3580 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
3581
3582 wxPy_END_ALLOW_THREADS;
3583 if (PyErr_Occurred()) return NULL;
3584 }{
3585 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3586 }
3587 {
3588 delete _result;
3589 }
3590 return _resultobj;
3591 }
3592
3593 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3594 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3595 PyObject * _resultobj;
3596 wxFontMapper * _arg0;
3597 wxWindow * _arg1;
3598 PyObject * _argo0 = 0;
3599 PyObject * _argo1 = 0;
3600 char *_kwnames[] = { "self","parent", NULL };
3601
3602 self = self;
3603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
3604 return NULL;
3605 if (_argo0) {
3606 if (_argo0 == Py_None) { _arg0 = NULL; }
3607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3609 return NULL;
3610 }
3611 }
3612 if (_argo1) {
3613 if (_argo1 == Py_None) { _arg1 = NULL; }
3614 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3615 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3616 return NULL;
3617 }
3618 }
3619 {
3620 wxPy_BEGIN_ALLOW_THREADS;
3621 wxFontMapper_SetDialogParent(_arg0,_arg1);
3622
3623 wxPy_END_ALLOW_THREADS;
3624 if (PyErr_Occurred()) return NULL;
3625 } Py_INCREF(Py_None);
3626 _resultobj = Py_None;
3627 return _resultobj;
3628 }
3629
3630 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3631 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3632 PyObject * _resultobj;
3633 wxFontMapper * _arg0;
3634 wxString * _arg1;
3635 PyObject * _argo0 = 0;
3636 PyObject * _obj1 = 0;
3637 char *_kwnames[] = { "self","title", NULL };
3638
3639 self = self;
3640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
3641 return NULL;
3642 if (_argo0) {
3643 if (_argo0 == Py_None) { _arg0 = NULL; }
3644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3646 return NULL;
3647 }
3648 }
3649 {
3650 #if PYTHON_API_VERSION >= 1009
3651 char* tmpPtr; int tmpSize;
3652 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3653 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3654 return NULL;
3655 }
3656 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3657 return NULL;
3658 _arg1 = new wxString(tmpPtr, tmpSize);
3659 #else
3660 if (!PyString_Check(_obj1)) {
3661 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3662 return NULL;
3663 }
3664 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3665 #endif
3666 }
3667 {
3668 wxPy_BEGIN_ALLOW_THREADS;
3669 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
3670
3671 wxPy_END_ALLOW_THREADS;
3672 if (PyErr_Occurred()) return NULL;
3673 } Py_INCREF(Py_None);
3674 _resultobj = Py_None;
3675 {
3676 if (_obj1)
3677 delete _arg1;
3678 }
3679 return _resultobj;
3680 }
3681
3682 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3683 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject * _resultobj;
3685 wxFontMapper * _arg0;
3686 wxConfigBase * _arg1;
3687 PyObject * _argo0 = 0;
3688 PyObject * _argo1 = 0;
3689 char *_kwnames[] = { "self","config", NULL };
3690
3691 self = self;
3692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
3693 return NULL;
3694 if (_argo0) {
3695 if (_argo0 == Py_None) { _arg0 = NULL; }
3696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3698 return NULL;
3699 }
3700 }
3701 if (_argo1) {
3702 if (_argo1 == Py_None) { _arg1 = NULL; }
3703 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
3704 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3705 return NULL;
3706 }
3707 }
3708 {
3709 wxPy_BEGIN_ALLOW_THREADS;
3710 wxFontMapper_SetConfig(_arg0,_arg1);
3711
3712 wxPy_END_ALLOW_THREADS;
3713 if (PyErr_Occurred()) return NULL;
3714 } Py_INCREF(Py_None);
3715 _resultobj = Py_None;
3716 return _resultobj;
3717 }
3718
3719 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3720 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3721 PyObject * _resultobj;
3722 wxFontMapper * _arg0;
3723 wxString * _arg1;
3724 PyObject * _argo0 = 0;
3725 PyObject * _obj1 = 0;
3726 char *_kwnames[] = { "self","prefix", NULL };
3727
3728 self = self;
3729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
3730 return NULL;
3731 if (_argo0) {
3732 if (_argo0 == Py_None) { _arg0 = NULL; }
3733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3735 return NULL;
3736 }
3737 }
3738 {
3739 #if PYTHON_API_VERSION >= 1009
3740 char* tmpPtr; int tmpSize;
3741 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3742 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3743 return NULL;
3744 }
3745 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3746 return NULL;
3747 _arg1 = new wxString(tmpPtr, tmpSize);
3748 #else
3749 if (!PyString_Check(_obj1)) {
3750 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3751 return NULL;
3752 }
3753 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3754 #endif
3755 }
3756 {
3757 wxPy_BEGIN_ALLOW_THREADS;
3758 wxFontMapper_SetConfigPath(_arg0,*_arg1);
3759
3760 wxPy_END_ALLOW_THREADS;
3761 if (PyErr_Occurred()) return NULL;
3762 } Py_INCREF(Py_None);
3763 _resultobj = Py_None;
3764 {
3765 if (_obj1)
3766 delete _arg1;
3767 }
3768 return _resultobj;
3769 }
3770
3771 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3772 PyObject * _resultobj;
3773 wxChar * _result;
3774 char *_kwnames[] = { NULL };
3775
3776 self = self;
3777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
3778 return NULL;
3779 {
3780 wxPy_BEGIN_ALLOW_THREADS;
3781 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
3782
3783 wxPy_END_ALLOW_THREADS;
3784 if (PyErr_Occurred()) return NULL;
3785 } _resultobj = Py_BuildValue("s", _result);
3786 return _resultobj;
3787 }
3788
3789 static void *SwigwxFontTowxGDIObject(void *ptr) {
3790 wxFont *src;
3791 wxGDIObject *dest;
3792 src = (wxFont *) ptr;
3793 dest = (wxGDIObject *) src;
3794 return (void *) dest;
3795 }
3796
3797 static void *SwigwxFontTowxObject(void *ptr) {
3798 wxFont *src;
3799 wxObject *dest;
3800 src = (wxFont *) ptr;
3801 dest = (wxObject *) src;
3802 return (void *) dest;
3803 }
3804
3805 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3806 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject * _resultobj;
3808 wxFont * _result;
3809 int _arg0;
3810 int _arg1;
3811 int _arg2;
3812 int _arg3;
3813 int _arg4 = (int ) FALSE;
3814 char * _arg5 = (char *) "";
3815 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3816 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3817 char _ptemp[128];
3818
3819 self = self;
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3821 return NULL;
3822 {
3823 wxPy_BEGIN_ALLOW_THREADS;
3824 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3825
3826 wxPy_END_ALLOW_THREADS;
3827 if (PyErr_Occurred()) return NULL;
3828 } if (_result) {
3829 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3830 _resultobj = Py_BuildValue("s",_ptemp);
3831 } else {
3832 Py_INCREF(Py_None);
3833 _resultobj = Py_None;
3834 }
3835 return _resultobj;
3836 }
3837
3838 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3839 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3840 PyObject * _resultobj;
3841 wxFont * _result;
3842 wxNativeFontInfo * _arg0;
3843 PyObject * _argo0 = 0;
3844 char *_kwnames[] = { "info", NULL };
3845 char _ptemp[128];
3846
3847 self = self;
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
3849 return NULL;
3850 if (_argo0) {
3851 if (_argo0 == Py_None) { _arg0 = NULL; }
3852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3854 return NULL;
3855 }
3856 }
3857 {
3858 wxPy_BEGIN_ALLOW_THREADS;
3859 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
3860
3861 wxPy_END_ALLOW_THREADS;
3862 if (PyErr_Occurred()) return NULL;
3863 } if (_result) {
3864 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3865 _resultobj = Py_BuildValue("s",_ptemp);
3866 } else {
3867 Py_INCREF(Py_None);
3868 _resultobj = Py_None;
3869 }
3870 return _resultobj;
3871 }
3872
3873 #define delete_wxFont(_swigobj) (delete _swigobj)
3874 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject * _resultobj;
3876 wxFont * _arg0;
3877 PyObject * _argo0 = 0;
3878 char *_kwnames[] = { "self", NULL };
3879
3880 self = self;
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3882 return NULL;
3883 if (_argo0) {
3884 if (_argo0 == Py_None) { _arg0 = NULL; }
3885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3887 return NULL;
3888 }
3889 }
3890 {
3891 wxPy_BEGIN_ALLOW_THREADS;
3892 delete_wxFont(_arg0);
3893
3894 wxPy_END_ALLOW_THREADS;
3895 if (PyErr_Occurred()) return NULL;
3896 } Py_INCREF(Py_None);
3897 _resultobj = Py_None;
3898 return _resultobj;
3899 }
3900
3901 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3902 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3903 PyObject * _resultobj;
3904 bool _result;
3905 wxFont * _arg0;
3906 PyObject * _argo0 = 0;
3907 char *_kwnames[] = { "self", NULL };
3908
3909 self = self;
3910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
3911 return NULL;
3912 if (_argo0) {
3913 if (_argo0 == Py_None) { _arg0 = NULL; }
3914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3916 return NULL;
3917 }
3918 }
3919 {
3920 wxPy_BEGIN_ALLOW_THREADS;
3921 _result = (bool )wxFont_Ok(_arg0);
3922
3923 wxPy_END_ALLOW_THREADS;
3924 if (PyErr_Occurred()) return NULL;
3925 } _resultobj = Py_BuildValue("i",_result);
3926 return _resultobj;
3927 }
3928
3929 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3930 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3931 PyObject * _resultobj;
3932 int _result;
3933 wxFont * _arg0;
3934 PyObject * _argo0 = 0;
3935 char *_kwnames[] = { "self", NULL };
3936
3937 self = self;
3938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3939 return NULL;
3940 if (_argo0) {
3941 if (_argo0 == Py_None) { _arg0 = NULL; }
3942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3944 return NULL;
3945 }
3946 }
3947 {
3948 wxPy_BEGIN_ALLOW_THREADS;
3949 _result = (int )wxFont_GetPointSize(_arg0);
3950
3951 wxPy_END_ALLOW_THREADS;
3952 if (PyErr_Occurred()) return NULL;
3953 } _resultobj = Py_BuildValue("i",_result);
3954 return _resultobj;
3955 }
3956
3957 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3958 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3959 PyObject * _resultobj;
3960 int _result;
3961 wxFont * _arg0;
3962 PyObject * _argo0 = 0;
3963 char *_kwnames[] = { "self", NULL };
3964
3965 self = self;
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3967 return NULL;
3968 if (_argo0) {
3969 if (_argo0 == Py_None) { _arg0 = NULL; }
3970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3972 return NULL;
3973 }
3974 }
3975 {
3976 wxPy_BEGIN_ALLOW_THREADS;
3977 _result = (int )wxFont_GetFamily(_arg0);
3978
3979 wxPy_END_ALLOW_THREADS;
3980 if (PyErr_Occurred()) return NULL;
3981 } _resultobj = Py_BuildValue("i",_result);
3982 return _resultobj;
3983 }
3984
3985 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3986 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3987 PyObject * _resultobj;
3988 int _result;
3989 wxFont * _arg0;
3990 PyObject * _argo0 = 0;
3991 char *_kwnames[] = { "self", NULL };
3992
3993 self = self;
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3995 return NULL;
3996 if (_argo0) {
3997 if (_argo0 == Py_None) { _arg0 = NULL; }
3998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4000 return NULL;
4001 }
4002 }
4003 {
4004 wxPy_BEGIN_ALLOW_THREADS;
4005 _result = (int )wxFont_GetStyle(_arg0);
4006
4007 wxPy_END_ALLOW_THREADS;
4008 if (PyErr_Occurred()) return NULL;
4009 } _resultobj = Py_BuildValue("i",_result);
4010 return _resultobj;
4011 }
4012
4013 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4014 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4015 PyObject * _resultobj;
4016 int _result;
4017 wxFont * _arg0;
4018 PyObject * _argo0 = 0;
4019 char *_kwnames[] = { "self", NULL };
4020
4021 self = self;
4022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
4023 return NULL;
4024 if (_argo0) {
4025 if (_argo0 == Py_None) { _arg0 = NULL; }
4026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4028 return NULL;
4029 }
4030 }
4031 {
4032 wxPy_BEGIN_ALLOW_THREADS;
4033 _result = (int )wxFont_GetWeight(_arg0);
4034
4035 wxPy_END_ALLOW_THREADS;
4036 if (PyErr_Occurred()) return NULL;
4037 } _resultobj = Py_BuildValue("i",_result);
4038 return _resultobj;
4039 }
4040
4041 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4042 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4043 PyObject * _resultobj;
4044 bool _result;
4045 wxFont * _arg0;
4046 PyObject * _argo0 = 0;
4047 char *_kwnames[] = { "self", NULL };
4048
4049 self = self;
4050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
4051 return NULL;
4052 if (_argo0) {
4053 if (_argo0 == Py_None) { _arg0 = NULL; }
4054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4056 return NULL;
4057 }
4058 }
4059 {
4060 wxPy_BEGIN_ALLOW_THREADS;
4061 _result = (bool )wxFont_GetUnderlined(_arg0);
4062
4063 wxPy_END_ALLOW_THREADS;
4064 if (PyErr_Occurred()) return NULL;
4065 } _resultobj = Py_BuildValue("i",_result);
4066 return _resultobj;
4067 }
4068
4069 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4070 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4071 PyObject * _resultobj;
4072 wxString * _result;
4073 wxFont * _arg0;
4074 PyObject * _argo0 = 0;
4075 char *_kwnames[] = { "self", NULL };
4076
4077 self = self;
4078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
4079 return NULL;
4080 if (_argo0) {
4081 if (_argo0 == Py_None) { _arg0 = NULL; }
4082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4084 return NULL;
4085 }
4086 }
4087 {
4088 wxPy_BEGIN_ALLOW_THREADS;
4089 _result = new wxString (wxFont_GetFaceName(_arg0));
4090
4091 wxPy_END_ALLOW_THREADS;
4092 if (PyErr_Occurred()) return NULL;
4093 }{
4094 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4095 }
4096 {
4097 delete _result;
4098 }
4099 return _resultobj;
4100 }
4101
4102 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4103 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject * _resultobj;
4105 wxFontEncoding _result;
4106 wxFont * _arg0;
4107 PyObject * _argo0 = 0;
4108 char *_kwnames[] = { "self", NULL };
4109
4110 self = self;
4111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
4112 return NULL;
4113 if (_argo0) {
4114 if (_argo0 == Py_None) { _arg0 = NULL; }
4115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4117 return NULL;
4118 }
4119 }
4120 {
4121 wxPy_BEGIN_ALLOW_THREADS;
4122 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4123
4124 wxPy_END_ALLOW_THREADS;
4125 if (PyErr_Occurred()) return NULL;
4126 } _resultobj = Py_BuildValue("i",_result);
4127 return _resultobj;
4128 }
4129
4130 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4131 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4132 PyObject * _resultobj;
4133 wxNativeFontInfo * _result;
4134 wxFont * _arg0;
4135 PyObject * _argo0 = 0;
4136 char *_kwnames[] = { "self", NULL };
4137 char _ptemp[128];
4138
4139 self = self;
4140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4141 return NULL;
4142 if (_argo0) {
4143 if (_argo0 == Py_None) { _arg0 = NULL; }
4144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4146 return NULL;
4147 }
4148 }
4149 {
4150 wxPy_BEGIN_ALLOW_THREADS;
4151 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4152
4153 wxPy_END_ALLOW_THREADS;
4154 if (PyErr_Occurred()) return NULL;
4155 } if (_result) {
4156 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
4157 _resultobj = Py_BuildValue("s",_ptemp);
4158 } else {
4159 Py_INCREF(Py_None);
4160 _resultobj = Py_None;
4161 }
4162 return _resultobj;
4163 }
4164
4165 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4166 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4167 PyObject * _resultobj;
4168 wxFont * _arg0;
4169 int _arg1;
4170 PyObject * _argo0 = 0;
4171 char *_kwnames[] = { "self","pointSize", NULL };
4172
4173 self = self;
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4175 return NULL;
4176 if (_argo0) {
4177 if (_argo0 == Py_None) { _arg0 = NULL; }
4178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4180 return NULL;
4181 }
4182 }
4183 {
4184 wxPy_BEGIN_ALLOW_THREADS;
4185 wxFont_SetPointSize(_arg0,_arg1);
4186
4187 wxPy_END_ALLOW_THREADS;
4188 if (PyErr_Occurred()) return NULL;
4189 } Py_INCREF(Py_None);
4190 _resultobj = Py_None;
4191 return _resultobj;
4192 }
4193
4194 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4195 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4196 PyObject * _resultobj;
4197 wxFont * _arg0;
4198 int _arg1;
4199 PyObject * _argo0 = 0;
4200 char *_kwnames[] = { "self","family", NULL };
4201
4202 self = self;
4203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4204 return NULL;
4205 if (_argo0) {
4206 if (_argo0 == Py_None) { _arg0 = NULL; }
4207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4209 return NULL;
4210 }
4211 }
4212 {
4213 wxPy_BEGIN_ALLOW_THREADS;
4214 wxFont_SetFamily(_arg0,_arg1);
4215
4216 wxPy_END_ALLOW_THREADS;
4217 if (PyErr_Occurred()) return NULL;
4218 } Py_INCREF(Py_None);
4219 _resultobj = Py_None;
4220 return _resultobj;
4221 }
4222
4223 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4224 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4225 PyObject * _resultobj;
4226 wxFont * _arg0;
4227 int _arg1;
4228 PyObject * _argo0 = 0;
4229 char *_kwnames[] = { "self","style", NULL };
4230
4231 self = self;
4232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4233 return NULL;
4234 if (_argo0) {
4235 if (_argo0 == Py_None) { _arg0 = NULL; }
4236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4238 return NULL;
4239 }
4240 }
4241 {
4242 wxPy_BEGIN_ALLOW_THREADS;
4243 wxFont_SetStyle(_arg0,_arg1);
4244
4245 wxPy_END_ALLOW_THREADS;
4246 if (PyErr_Occurred()) return NULL;
4247 } Py_INCREF(Py_None);
4248 _resultobj = Py_None;
4249 return _resultobj;
4250 }
4251
4252 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4253 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject * _resultobj;
4255 wxFont * _arg0;
4256 int _arg1;
4257 PyObject * _argo0 = 0;
4258 char *_kwnames[] = { "self","weight", NULL };
4259
4260 self = self;
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4262 return NULL;
4263 if (_argo0) {
4264 if (_argo0 == Py_None) { _arg0 = NULL; }
4265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4267 return NULL;
4268 }
4269 }
4270 {
4271 wxPy_BEGIN_ALLOW_THREADS;
4272 wxFont_SetWeight(_arg0,_arg1);
4273
4274 wxPy_END_ALLOW_THREADS;
4275 if (PyErr_Occurred()) return NULL;
4276 } Py_INCREF(Py_None);
4277 _resultobj = Py_None;
4278 return _resultobj;
4279 }
4280
4281 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4282 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4283 PyObject * _resultobj;
4284 wxFont * _arg0;
4285 wxString * _arg1;
4286 PyObject * _argo0 = 0;
4287 PyObject * _obj1 = 0;
4288 char *_kwnames[] = { "self","faceName", NULL };
4289
4290 self = self;
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4292 return NULL;
4293 if (_argo0) {
4294 if (_argo0 == Py_None) { _arg0 = NULL; }
4295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4297 return NULL;
4298 }
4299 }
4300 {
4301 #if PYTHON_API_VERSION >= 1009
4302 char* tmpPtr; int tmpSize;
4303 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4304 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4305 return NULL;
4306 }
4307 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4308 return NULL;
4309 _arg1 = new wxString(tmpPtr, tmpSize);
4310 #else
4311 if (!PyString_Check(_obj1)) {
4312 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4313 return NULL;
4314 }
4315 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4316 #endif
4317 }
4318 {
4319 wxPy_BEGIN_ALLOW_THREADS;
4320 wxFont_SetFaceName(_arg0,*_arg1);
4321
4322 wxPy_END_ALLOW_THREADS;
4323 if (PyErr_Occurred()) return NULL;
4324 } Py_INCREF(Py_None);
4325 _resultobj = Py_None;
4326 {
4327 if (_obj1)
4328 delete _arg1;
4329 }
4330 return _resultobj;
4331 }
4332
4333 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4334 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4335 PyObject * _resultobj;
4336 wxFont * _arg0;
4337 bool _arg1;
4338 PyObject * _argo0 = 0;
4339 int tempbool1;
4340 char *_kwnames[] = { "self","underlined", NULL };
4341
4342 self = self;
4343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
4344 return NULL;
4345 if (_argo0) {
4346 if (_argo0 == Py_None) { _arg0 = NULL; }
4347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4349 return NULL;
4350 }
4351 }
4352 _arg1 = (bool ) tempbool1;
4353 {
4354 wxPy_BEGIN_ALLOW_THREADS;
4355 wxFont_SetUnderlined(_arg0,_arg1);
4356
4357 wxPy_END_ALLOW_THREADS;
4358 if (PyErr_Occurred()) return NULL;
4359 } Py_INCREF(Py_None);
4360 _resultobj = Py_None;
4361 return _resultobj;
4362 }
4363
4364 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4365 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4366 PyObject * _resultobj;
4367 wxFont * _arg0;
4368 wxFontEncoding _arg1;
4369 PyObject * _argo0 = 0;
4370 char *_kwnames[] = { "self","encoding", NULL };
4371
4372 self = self;
4373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
4374 return NULL;
4375 if (_argo0) {
4376 if (_argo0 == Py_None) { _arg0 = NULL; }
4377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4379 return NULL;
4380 }
4381 }
4382 {
4383 wxPy_BEGIN_ALLOW_THREADS;
4384 wxFont_SetEncoding(_arg0,_arg1);
4385
4386 wxPy_END_ALLOW_THREADS;
4387 if (PyErr_Occurred()) return NULL;
4388 } Py_INCREF(Py_None);
4389 _resultobj = Py_None;
4390 return _resultobj;
4391 }
4392
4393 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4394 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4395 PyObject * _resultobj;
4396 wxFont * _arg0;
4397 wxNativeFontInfo * _arg1;
4398 PyObject * _argo0 = 0;
4399 PyObject * _argo1 = 0;
4400 char *_kwnames[] = { "self","info", NULL };
4401
4402 self = self;
4403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
4404 return NULL;
4405 if (_argo0) {
4406 if (_argo0 == Py_None) { _arg0 = NULL; }
4407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4409 return NULL;
4410 }
4411 }
4412 if (_argo1) {
4413 if (_argo1 == Py_None) { _arg1 = NULL; }
4414 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4415 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4416 return NULL;
4417 }
4418 }
4419 {
4420 wxPy_BEGIN_ALLOW_THREADS;
4421 wxFont_SetNativeFontInfo(_arg0,*_arg1);
4422
4423 wxPy_END_ALLOW_THREADS;
4424 if (PyErr_Occurred()) return NULL;
4425 } Py_INCREF(Py_None);
4426 _resultobj = Py_None;
4427 return _resultobj;
4428 }
4429
4430 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4431 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
4432 PyObject * _resultobj;
4433 wxString * _result;
4434 wxFont * _arg0;
4435 PyObject * _argo0 = 0;
4436 char *_kwnames[] = { "self", NULL };
4437
4438 self = self;
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
4440 return NULL;
4441 if (_argo0) {
4442 if (_argo0 == Py_None) { _arg0 = NULL; }
4443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4445 return NULL;
4446 }
4447 }
4448 {
4449 wxPy_BEGIN_ALLOW_THREADS;
4450 _result = new wxString (wxFont_GetFamilyString(_arg0));
4451
4452 wxPy_END_ALLOW_THREADS;
4453 if (PyErr_Occurred()) return NULL;
4454 }{
4455 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4456 }
4457 {
4458 delete _result;
4459 }
4460 return _resultobj;
4461 }
4462
4463 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4464 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject * _resultobj;
4466 wxString * _result;
4467 wxFont * _arg0;
4468 PyObject * _argo0 = 0;
4469 char *_kwnames[] = { "self", NULL };
4470
4471 self = self;
4472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
4473 return NULL;
4474 if (_argo0) {
4475 if (_argo0 == Py_None) { _arg0 = NULL; }
4476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4478 return NULL;
4479 }
4480 }
4481 {
4482 wxPy_BEGIN_ALLOW_THREADS;
4483 _result = new wxString (wxFont_GetStyleString(_arg0));
4484
4485 wxPy_END_ALLOW_THREADS;
4486 if (PyErr_Occurred()) return NULL;
4487 }{
4488 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4489 }
4490 {
4491 delete _result;
4492 }
4493 return _resultobj;
4494 }
4495
4496 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4497 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject * _resultobj;
4499 wxString * _result;
4500 wxFont * _arg0;
4501 PyObject * _argo0 = 0;
4502 char *_kwnames[] = { "self", NULL };
4503
4504 self = self;
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
4506 return NULL;
4507 if (_argo0) {
4508 if (_argo0 == Py_None) { _arg0 = NULL; }
4509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4511 return NULL;
4512 }
4513 }
4514 {
4515 wxPy_BEGIN_ALLOW_THREADS;
4516 _result = new wxString (wxFont_GetWeightString(_arg0));
4517
4518 wxPy_END_ALLOW_THREADS;
4519 if (PyErr_Occurred()) return NULL;
4520 }{
4521 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4522 }
4523 {
4524 delete _result;
4525 }
4526 return _resultobj;
4527 }
4528
4529 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4530 PyObject * _resultobj;
4531 wxFontEncoding _result;
4532 char *_kwnames[] = { NULL };
4533
4534 self = self;
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
4536 return NULL;
4537 {
4538 wxPy_BEGIN_ALLOW_THREADS;
4539 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
4540
4541 wxPy_END_ALLOW_THREADS;
4542 if (PyErr_Occurred()) return NULL;
4543 } _resultobj = Py_BuildValue("i",_result);
4544 return _resultobj;
4545 }
4546
4547 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4548 PyObject * _resultobj;
4549 wxFontEncoding _arg0;
4550 char *_kwnames[] = { "encoding", NULL };
4551
4552 self = self;
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
4554 return NULL;
4555 {
4556 wxPy_BEGIN_ALLOW_THREADS;
4557 wxFont::SetDefaultEncoding(_arg0);
4558
4559 wxPy_END_ALLOW_THREADS;
4560 if (PyErr_Occurred()) return NULL;
4561 } Py_INCREF(Py_None);
4562 _resultobj = Py_None;
4563 return _resultobj;
4564 }
4565
4566 static void *SwigwxFontListTowxObject(void *ptr) {
4567 wxFontList *src;
4568 wxObject *dest;
4569 src = (wxFontList *) ptr;
4570 dest = (wxObject *) src;
4571 return (void *) dest;
4572 }
4573
4574 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4575 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4576 PyObject * _resultobj;
4577 wxFontList * _arg0;
4578 wxFont * _arg1;
4579 PyObject * _argo0 = 0;
4580 PyObject * _argo1 = 0;
4581 char *_kwnames[] = { "self","font", NULL };
4582
4583 self = self;
4584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
4585 return NULL;
4586 if (_argo0) {
4587 if (_argo0 == Py_None) { _arg0 = NULL; }
4588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4590 return NULL;
4591 }
4592 }
4593 if (_argo1) {
4594 if (_argo1 == Py_None) { _arg1 = NULL; }
4595 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4596 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4597 return NULL;
4598 }
4599 }
4600 {
4601 wxPy_BEGIN_ALLOW_THREADS;
4602 wxFontList_AddFont(_arg0,_arg1);
4603
4604 wxPy_END_ALLOW_THREADS;
4605 if (PyErr_Occurred()) return NULL;
4606 } Py_INCREF(Py_None);
4607 _resultobj = Py_None;
4608 return _resultobj;
4609 }
4610
4611 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4612 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4613 PyObject * _resultobj;
4614 wxFont * _result;
4615 wxFontList * _arg0;
4616 int _arg1;
4617 int _arg2;
4618 int _arg3;
4619 int _arg4;
4620 bool _arg5 = (bool ) FALSE;
4621 char * _arg6 = (char *) NULL;
4622 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4623 PyObject * _argo0 = 0;
4624 int tempbool5 = (int) FALSE;
4625 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
4626 char _ptemp[128];
4627
4628 self = self;
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
4630 return NULL;
4631 if (_argo0) {
4632 if (_argo0 == Py_None) { _arg0 = NULL; }
4633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4635 return NULL;
4636 }
4637 }
4638 _arg5 = (bool ) tempbool5;
4639 {
4640 wxPy_BEGIN_ALLOW_THREADS;
4641 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
4642
4643 wxPy_END_ALLOW_THREADS;
4644 if (PyErr_Occurred()) return NULL;
4645 } if (_result) {
4646 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4647 _resultobj = Py_BuildValue("s",_ptemp);
4648 } else {
4649 Py_INCREF(Py_None);
4650 _resultobj = Py_None;
4651 }
4652 return _resultobj;
4653 }
4654
4655 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4656 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4657 PyObject * _resultobj;
4658 wxFontList * _arg0;
4659 wxFont * _arg1;
4660 PyObject * _argo0 = 0;
4661 PyObject * _argo1 = 0;
4662 char *_kwnames[] = { "self","font", NULL };
4663
4664 self = self;
4665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
4666 return NULL;
4667 if (_argo0) {
4668 if (_argo0 == Py_None) { _arg0 = NULL; }
4669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4671 return NULL;
4672 }
4673 }
4674 if (_argo1) {
4675 if (_argo1 == Py_None) { _arg1 = NULL; }
4676 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4677 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4678 return NULL;
4679 }
4680 }
4681 {
4682 wxPy_BEGIN_ALLOW_THREADS;
4683 wxFontList_RemoveFont(_arg0,_arg1);
4684
4685 wxPy_END_ALLOW_THREADS;
4686 if (PyErr_Occurred()) return NULL;
4687 } Py_INCREF(Py_None);
4688 _resultobj = Py_None;
4689 return _resultobj;
4690 }
4691
4692 static void *SwigwxColourTowxObject(void *ptr) {
4693 wxColour *src;
4694 wxObject *dest;
4695 src = (wxColour *) ptr;
4696 dest = (wxObject *) src;
4697 return (void *) dest;
4698 }
4699
4700 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4701 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4702 PyObject * _resultobj;
4703 wxColour * _result;
4704 unsigned char _arg0 = (unsigned char ) 0;
4705 unsigned char _arg1 = (unsigned char ) 0;
4706 unsigned char _arg2 = (unsigned char ) 0;
4707 char *_kwnames[] = { "red","green","blue", NULL };
4708 char _ptemp[128];
4709
4710 self = self;
4711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
4712 return NULL;
4713 {
4714 wxPy_BEGIN_ALLOW_THREADS;
4715 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
4716
4717 wxPy_END_ALLOW_THREADS;
4718 if (PyErr_Occurred()) return NULL;
4719 } if (_result) {
4720 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4721 _resultobj = Py_BuildValue("s",_ptemp);
4722 } else {
4723 Py_INCREF(Py_None);
4724 _resultobj = Py_None;
4725 }
4726 return _resultobj;
4727 }
4728
4729 #define delete_wxColour(_swigobj) (delete _swigobj)
4730 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4731 PyObject * _resultobj;
4732 wxColour * _arg0;
4733 wxColour temp;
4734 PyObject * _obj0 = 0;
4735 char *_kwnames[] = { "self", NULL };
4736
4737 self = self;
4738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
4739 return NULL;
4740 {
4741 _arg0 = &temp;
4742 if (! wxColour_helper(_obj0, &_arg0))
4743 return NULL;
4744 }
4745 {
4746 wxPy_BEGIN_ALLOW_THREADS;
4747 delete_wxColour(_arg0);
4748
4749 wxPy_END_ALLOW_THREADS;
4750 if (PyErr_Occurred()) return NULL;
4751 } Py_INCREF(Py_None);
4752 _resultobj = Py_None;
4753 return _resultobj;
4754 }
4755
4756 #define wxColour_Red(_swigobj) (_swigobj->Red())
4757 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
4758 PyObject * _resultobj;
4759 unsigned char _result;
4760 wxColour * _arg0;
4761 wxColour temp;
4762 PyObject * _obj0 = 0;
4763 char *_kwnames[] = { "self", NULL };
4764
4765 self = self;
4766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
4767 return NULL;
4768 {
4769 _arg0 = &temp;
4770 if (! wxColour_helper(_obj0, &_arg0))
4771 return NULL;
4772 }
4773 {
4774 wxPy_BEGIN_ALLOW_THREADS;
4775 _result = (unsigned char )wxColour_Red(_arg0);
4776
4777 wxPy_END_ALLOW_THREADS;
4778 if (PyErr_Occurred()) return NULL;
4779 } _resultobj = Py_BuildValue("b",_result);
4780 return _resultobj;
4781 }
4782
4783 #define wxColour_Green(_swigobj) (_swigobj->Green())
4784 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
4785 PyObject * _resultobj;
4786 unsigned char _result;
4787 wxColour * _arg0;
4788 wxColour temp;
4789 PyObject * _obj0 = 0;
4790 char *_kwnames[] = { "self", NULL };
4791
4792 self = self;
4793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
4794 return NULL;
4795 {
4796 _arg0 = &temp;
4797 if (! wxColour_helper(_obj0, &_arg0))
4798 return NULL;
4799 }
4800 {
4801 wxPy_BEGIN_ALLOW_THREADS;
4802 _result = (unsigned char )wxColour_Green(_arg0);
4803
4804 wxPy_END_ALLOW_THREADS;
4805 if (PyErr_Occurred()) return NULL;
4806 } _resultobj = Py_BuildValue("b",_result);
4807 return _resultobj;
4808 }
4809
4810 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4811 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
4812 PyObject * _resultobj;
4813 unsigned char _result;
4814 wxColour * _arg0;
4815 wxColour temp;
4816 PyObject * _obj0 = 0;
4817 char *_kwnames[] = { "self", NULL };
4818
4819 self = self;
4820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
4821 return NULL;
4822 {
4823 _arg0 = &temp;
4824 if (! wxColour_helper(_obj0, &_arg0))
4825 return NULL;
4826 }
4827 {
4828 wxPy_BEGIN_ALLOW_THREADS;
4829 _result = (unsigned char )wxColour_Blue(_arg0);
4830
4831 wxPy_END_ALLOW_THREADS;
4832 if (PyErr_Occurred()) return NULL;
4833 } _resultobj = Py_BuildValue("b",_result);
4834 return _resultobj;
4835 }
4836
4837 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4838 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4839 PyObject * _resultobj;
4840 bool _result;
4841 wxColour * _arg0;
4842 wxColour temp;
4843 PyObject * _obj0 = 0;
4844 char *_kwnames[] = { "self", NULL };
4845
4846 self = self;
4847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
4848 return NULL;
4849 {
4850 _arg0 = &temp;
4851 if (! wxColour_helper(_obj0, &_arg0))
4852 return NULL;
4853 }
4854 {
4855 wxPy_BEGIN_ALLOW_THREADS;
4856 _result = (bool )wxColour_Ok(_arg0);
4857
4858 wxPy_END_ALLOW_THREADS;
4859 if (PyErr_Occurred()) return NULL;
4860 } _resultobj = Py_BuildValue("i",_result);
4861 return _resultobj;
4862 }
4863
4864 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4865 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4866 PyObject * _resultobj;
4867 wxColour * _arg0;
4868 unsigned char _arg1;
4869 unsigned char _arg2;
4870 unsigned char _arg3;
4871 wxColour temp;
4872 PyObject * _obj0 = 0;
4873 char *_kwnames[] = { "self","red","green","blue", NULL };
4874
4875 self = self;
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
4877 return NULL;
4878 {
4879 _arg0 = &temp;
4880 if (! wxColour_helper(_obj0, &_arg0))
4881 return NULL;
4882 }
4883 {
4884 wxPy_BEGIN_ALLOW_THREADS;
4885 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
4886
4887 wxPy_END_ALLOW_THREADS;
4888 if (PyErr_Occurred()) return NULL;
4889 } Py_INCREF(Py_None);
4890 _resultobj = Py_None;
4891 return _resultobj;
4892 }
4893
4894 static PyObject * wxColour_Get(wxColour *self) {
4895 PyObject* rv = PyTuple_New(3);
4896 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4897 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4898 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4899 return rv;
4900 }
4901 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4902 PyObject * _resultobj;
4903 PyObject * _result;
4904 wxColour * _arg0;
4905 wxColour temp;
4906 PyObject * _obj0 = 0;
4907 char *_kwnames[] = { "self", NULL };
4908
4909 self = self;
4910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
4911 return NULL;
4912 {
4913 _arg0 = &temp;
4914 if (! wxColour_helper(_obj0, &_arg0))
4915 return NULL;
4916 }
4917 {
4918 wxPy_BEGIN_ALLOW_THREADS;
4919 _result = (PyObject *)wxColour_Get(_arg0);
4920
4921 wxPy_END_ALLOW_THREADS;
4922 if (PyErr_Occurred()) return NULL;
4923 }{
4924 _resultobj = _result;
4925 }
4926 return _resultobj;
4927 }
4928
4929 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4930 wxColourDatabase *src;
4931 wxObject *dest;
4932 src = (wxColourDatabase *) ptr;
4933 dest = (wxObject *) src;
4934 return (void *) dest;
4935 }
4936
4937 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4938 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4939 PyObject * _resultobj;
4940 wxColour * _result;
4941 wxColourDatabase * _arg0;
4942 wxString * _arg1;
4943 PyObject * _argo0 = 0;
4944 PyObject * _obj1 = 0;
4945 char *_kwnames[] = { "self","colour", NULL };
4946 char _ptemp[128];
4947
4948 self = self;
4949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4950 return NULL;
4951 if (_argo0) {
4952 if (_argo0 == Py_None) { _arg0 = NULL; }
4953 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4954 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4955 return NULL;
4956 }
4957 }
4958 {
4959 #if PYTHON_API_VERSION >= 1009
4960 char* tmpPtr; int tmpSize;
4961 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4962 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4963 return NULL;
4964 }
4965 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4966 return NULL;
4967 _arg1 = new wxString(tmpPtr, tmpSize);
4968 #else
4969 if (!PyString_Check(_obj1)) {
4970 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4971 return NULL;
4972 }
4973 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4974 #endif
4975 }
4976 {
4977 wxPy_BEGIN_ALLOW_THREADS;
4978 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
4979
4980 wxPy_END_ALLOW_THREADS;
4981 if (PyErr_Occurred()) return NULL;
4982 } if (_result) {
4983 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4984 _resultobj = Py_BuildValue("s",_ptemp);
4985 } else {
4986 Py_INCREF(Py_None);
4987 _resultobj = Py_None;
4988 }
4989 {
4990 if (_obj1)
4991 delete _arg1;
4992 }
4993 return _resultobj;
4994 }
4995
4996 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
4997 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
4998 PyObject * _resultobj;
4999 wxString * _result;
5000 wxColourDatabase * _arg0;
5001 wxColour * _arg1;
5002 PyObject * _argo0 = 0;
5003 wxColour temp;
5004 PyObject * _obj1 = 0;
5005 char *_kwnames[] = { "self","colour", NULL };
5006
5007 self = self;
5008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5009 return NULL;
5010 if (_argo0) {
5011 if (_argo0 == Py_None) { _arg0 = NULL; }
5012 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5013 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5014 return NULL;
5015 }
5016 }
5017 {
5018 _arg1 = &temp;
5019 if (! wxColour_helper(_obj1, &_arg1))
5020 return NULL;
5021 }
5022 {
5023 wxPy_BEGIN_ALLOW_THREADS;
5024 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5025
5026 wxPy_END_ALLOW_THREADS;
5027 if (PyErr_Occurred()) return NULL;
5028 }{
5029 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5030 }
5031 {
5032 delete _result;
5033 }
5034 return _resultobj;
5035 }
5036
5037 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5038 self->Append(name.c_str(), new wxColour(red, green, blue));
5039 }
5040 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5041 PyObject * _resultobj;
5042 wxColourDatabase * _arg0;
5043 wxString * _arg1;
5044 int _arg2;
5045 int _arg3;
5046 int _arg4;
5047 PyObject * _argo0 = 0;
5048 PyObject * _obj1 = 0;
5049 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5050
5051 self = self;
5052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5053 return NULL;
5054 if (_argo0) {
5055 if (_argo0 == Py_None) { _arg0 = NULL; }
5056 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5057 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5058 return NULL;
5059 }
5060 }
5061 {
5062 #if PYTHON_API_VERSION >= 1009
5063 char* tmpPtr; int tmpSize;
5064 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5065 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5066 return NULL;
5067 }
5068 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5069 return NULL;
5070 _arg1 = new wxString(tmpPtr, tmpSize);
5071 #else
5072 if (!PyString_Check(_obj1)) {
5073 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5074 return NULL;
5075 }
5076 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5077 #endif
5078 }
5079 {
5080 wxPy_BEGIN_ALLOW_THREADS;
5081 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5082
5083 wxPy_END_ALLOW_THREADS;
5084 if (PyErr_Occurred()) return NULL;
5085 } Py_INCREF(Py_None);
5086 _resultobj = Py_None;
5087 {
5088 if (_obj1)
5089 delete _arg1;
5090 }
5091 return _resultobj;
5092 }
5093
5094 static void *SwigwxPenTowxGDIObject(void *ptr) {
5095 wxPen *src;
5096 wxGDIObject *dest;
5097 src = (wxPen *) ptr;
5098 dest = (wxGDIObject *) src;
5099 return (void *) dest;
5100 }
5101
5102 static void *SwigwxPenTowxObject(void *ptr) {
5103 wxPen *src;
5104 wxObject *dest;
5105 src = (wxPen *) ptr;
5106 dest = (wxObject *) src;
5107 return (void *) dest;
5108 }
5109
5110 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5111 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5112 PyObject * _resultobj;
5113 wxPen * _result;
5114 wxColour * _arg0;
5115 int _arg1 = (int ) 1;
5116 int _arg2 = (int ) wxSOLID;
5117 wxColour temp;
5118 PyObject * _obj0 = 0;
5119 char *_kwnames[] = { "colour","width","style", NULL };
5120 char _ptemp[128];
5121
5122 self = self;
5123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5124 return NULL;
5125 {
5126 _arg0 = &temp;
5127 if (! wxColour_helper(_obj0, &_arg0))
5128 return NULL;
5129 }
5130 {
5131 wxPy_BEGIN_ALLOW_THREADS;
5132 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5133
5134 wxPy_END_ALLOW_THREADS;
5135 if (PyErr_Occurred()) return NULL;
5136 } if (_result) {
5137 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5138 _resultobj = Py_BuildValue("s",_ptemp);
5139 } else {
5140 Py_INCREF(Py_None);
5141 _resultobj = Py_None;
5142 }
5143 return _resultobj;
5144 }
5145
5146 #define delete_wxPen(_swigobj) (delete _swigobj)
5147 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5148 PyObject * _resultobj;
5149 wxPen * _arg0;
5150 PyObject * _argo0 = 0;
5151 char *_kwnames[] = { "self", NULL };
5152
5153 self = self;
5154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_kwnames,&_argo0))
5155 return NULL;
5156 if (_argo0) {
5157 if (_argo0 == Py_None) { _arg0 = NULL; }
5158 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5159 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPen. Expected _wxPen_p.");
5160 return NULL;
5161 }
5162 }
5163 {
5164 wxPy_BEGIN_ALLOW_THREADS;
5165 delete_wxPen(_arg0);
5166
5167 wxPy_END_ALLOW_THREADS;
5168 if (PyErr_Occurred()) return NULL;
5169 } Py_INCREF(Py_None);
5170 _resultobj = Py_None;
5171 return _resultobj;
5172 }
5173
5174 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5175 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5176 PyObject * _resultobj;
5177 int _result;
5178 wxPen * _arg0;
5179 PyObject * _argo0 = 0;
5180 char *_kwnames[] = { "self", NULL };
5181
5182 self = self;
5183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_kwnames,&_argo0))
5184 return NULL;
5185 if (_argo0) {
5186 if (_argo0 == Py_None) { _arg0 = NULL; }
5187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetCap. Expected _wxPen_p.");
5189 return NULL;
5190 }
5191 }
5192 {
5193 wxPy_BEGIN_ALLOW_THREADS;
5194 _result = (int )wxPen_GetCap(_arg0);
5195
5196 wxPy_END_ALLOW_THREADS;
5197 if (PyErr_Occurred()) return NULL;
5198 } _resultobj = Py_BuildValue("i",_result);
5199 return _resultobj;
5200 }
5201
5202 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5203 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5204 PyObject * _resultobj;
5205 wxColour * _result;
5206 wxPen * _arg0;
5207 PyObject * _argo0 = 0;
5208 char *_kwnames[] = { "self", NULL };
5209 char _ptemp[128];
5210
5211 self = self;
5212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_kwnames,&_argo0))
5213 return NULL;
5214 if (_argo0) {
5215 if (_argo0 == Py_None) { _arg0 = NULL; }
5216 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5217 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetColour. Expected _wxPen_p.");
5218 return NULL;
5219 }
5220 }
5221 {
5222 wxPy_BEGIN_ALLOW_THREADS;
5223 _result = new wxColour (wxPen_GetColour(_arg0));
5224
5225 wxPy_END_ALLOW_THREADS;
5226 if (PyErr_Occurred()) return NULL;
5227 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5228 _resultobj = Py_BuildValue("s",_ptemp);
5229 return _resultobj;
5230 }
5231
5232 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5233 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5234 PyObject * _resultobj;
5235 int _result;
5236 wxPen * _arg0;
5237 PyObject * _argo0 = 0;
5238 char *_kwnames[] = { "self", NULL };
5239
5240 self = self;
5241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
5242 return NULL;
5243 if (_argo0) {
5244 if (_argo0 == Py_None) { _arg0 = NULL; }
5245 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5246 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5247 return NULL;
5248 }
5249 }
5250 {
5251 wxPy_BEGIN_ALLOW_THREADS;
5252 _result = (int )wxPen_GetJoin(_arg0);
5253
5254 wxPy_END_ALLOW_THREADS;
5255 if (PyErr_Occurred()) return NULL;
5256 } _resultobj = Py_BuildValue("i",_result);
5257 return _resultobj;
5258 }
5259
5260 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5261 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject * _resultobj;
5263 int _result;
5264 wxPen * _arg0;
5265 PyObject * _argo0 = 0;
5266 char *_kwnames[] = { "self", NULL };
5267
5268 self = self;
5269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
5270 return NULL;
5271 if (_argo0) {
5272 if (_argo0 == Py_None) { _arg0 = NULL; }
5273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5275 return NULL;
5276 }
5277 }
5278 {
5279 wxPy_BEGIN_ALLOW_THREADS;
5280 _result = (int )wxPen_GetStyle(_arg0);
5281
5282 wxPy_END_ALLOW_THREADS;
5283 if (PyErr_Occurred()) return NULL;
5284 } _resultobj = Py_BuildValue("i",_result);
5285 return _resultobj;
5286 }
5287
5288 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5289 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5290 PyObject * _resultobj;
5291 int _result;
5292 wxPen * _arg0;
5293 PyObject * _argo0 = 0;
5294 char *_kwnames[] = { "self", NULL };
5295
5296 self = self;
5297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
5298 return NULL;
5299 if (_argo0) {
5300 if (_argo0 == Py_None) { _arg0 = NULL; }
5301 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5302 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5303 return NULL;
5304 }
5305 }
5306 {
5307 wxPy_BEGIN_ALLOW_THREADS;
5308 _result = (int )wxPen_GetWidth(_arg0);
5309
5310 wxPy_END_ALLOW_THREADS;
5311 if (PyErr_Occurred()) return NULL;
5312 } _resultobj = Py_BuildValue("i",_result);
5313 return _resultobj;
5314 }
5315
5316 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5317 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5318 PyObject * _resultobj;
5319 bool _result;
5320 wxPen * _arg0;
5321 PyObject * _argo0 = 0;
5322 char *_kwnames[] = { "self", NULL };
5323
5324 self = self;
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
5326 return NULL;
5327 if (_argo0) {
5328 if (_argo0 == Py_None) { _arg0 = NULL; }
5329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5331 return NULL;
5332 }
5333 }
5334 {
5335 wxPy_BEGIN_ALLOW_THREADS;
5336 _result = (bool )wxPen_Ok(_arg0);
5337
5338 wxPy_END_ALLOW_THREADS;
5339 if (PyErr_Occurred()) return NULL;
5340 } _resultobj = Py_BuildValue("i",_result);
5341 return _resultobj;
5342 }
5343
5344 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5345 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5346 PyObject * _resultobj;
5347 wxPen * _arg0;
5348 int _arg1;
5349 PyObject * _argo0 = 0;
5350 char *_kwnames[] = { "self","cap_style", NULL };
5351
5352 self = self;
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
5354 return NULL;
5355 if (_argo0) {
5356 if (_argo0 == Py_None) { _arg0 = NULL; }
5357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5359 return NULL;
5360 }
5361 }
5362 {
5363 wxPy_BEGIN_ALLOW_THREADS;
5364 wxPen_SetCap(_arg0,_arg1);
5365
5366 wxPy_END_ALLOW_THREADS;
5367 if (PyErr_Occurred()) return NULL;
5368 } Py_INCREF(Py_None);
5369 _resultobj = Py_None;
5370 return _resultobj;
5371 }
5372
5373 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5374 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5375 PyObject * _resultobj;
5376 wxPen * _arg0;
5377 wxColour * _arg1;
5378 PyObject * _argo0 = 0;
5379 wxColour temp;
5380 PyObject * _obj1 = 0;
5381 char *_kwnames[] = { "self","colour", NULL };
5382
5383 self = self;
5384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
5385 return NULL;
5386 if (_argo0) {
5387 if (_argo0 == Py_None) { _arg0 = NULL; }
5388 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5389 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5390 return NULL;
5391 }
5392 }
5393 {
5394 _arg1 = &temp;
5395 if (! wxColour_helper(_obj1, &_arg1))
5396 return NULL;
5397 }
5398 {
5399 wxPy_BEGIN_ALLOW_THREADS;
5400 wxPen_SetColour(_arg0,*_arg1);
5401
5402 wxPy_END_ALLOW_THREADS;
5403 if (PyErr_Occurred()) return NULL;
5404 } Py_INCREF(Py_None);
5405 _resultobj = Py_None;
5406 return _resultobj;
5407 }
5408
5409 #define wxPen_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5410 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5411 PyObject * _resultobj;
5412 wxPen * _arg0;
5413 int _arg1;
5414 PyObject * _argo0 = 0;
5415 char *_kwnames[] = { "self","join_style", NULL };
5416
5417 self = self;
5418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_kwnames,&_argo0,&_arg1))
5419 return NULL;
5420 if (_argo0) {
5421 if (_argo0 == Py_None) { _arg0 = NULL; }
5422 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5423 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetJoin. Expected _wxPen_p.");
5424 return NULL;
5425 }
5426 }
5427 {
5428 wxPy_BEGIN_ALLOW_THREADS;
5429 wxPen_SetJoin(_arg0,_arg1);
5430
5431 wxPy_END_ALLOW_THREADS;
5432 if (PyErr_Occurred()) return NULL;
5433 } Py_INCREF(Py_None);
5434 _resultobj = Py_None;
5435 return _resultobj;
5436 }
5437
5438 #define wxPen_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5439 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5440 PyObject * _resultobj;
5441 wxPen * _arg0;
5442 int _arg1;
5443 PyObject * _argo0 = 0;
5444 char *_kwnames[] = { "self","style", NULL };
5445
5446 self = self;
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_kwnames,&_argo0,&_arg1))
5448 return NULL;
5449 if (_argo0) {
5450 if (_argo0 == Py_None) { _arg0 = NULL; }
5451 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5452 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStyle. Expected _wxPen_p.");
5453 return NULL;
5454 }
5455 }
5456 {
5457 wxPy_BEGIN_ALLOW_THREADS;
5458 wxPen_SetStyle(_arg0,_arg1);
5459
5460 wxPy_END_ALLOW_THREADS;
5461 if (PyErr_Occurred()) return NULL;
5462 } Py_INCREF(Py_None);
5463 _resultobj = Py_None;
5464 return _resultobj;
5465 }
5466
5467 #define wxPen_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5468 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5469 PyObject * _resultobj;
5470 wxPen * _arg0;
5471 int _arg1;
5472 PyObject * _argo0 = 0;
5473 char *_kwnames[] = { "self","width", NULL };
5474
5475 self = self;
5476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
5477 return NULL;
5478 if (_argo0) {
5479 if (_argo0 == Py_None) { _arg0 = NULL; }
5480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5482 return NULL;
5483 }
5484 }
5485 {
5486 wxPy_BEGIN_ALLOW_THREADS;
5487 wxPen_SetWidth(_arg0,_arg1);
5488
5489 wxPy_END_ALLOW_THREADS;
5490 if (PyErr_Occurred()) return NULL;
5491 } Py_INCREF(Py_None);
5492 _resultobj = Py_None;
5493 return _resultobj;
5494 }
5495
5496 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5497 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5498 PyObject * _resultobj;
5499 wxPen * _arg0;
5500 int _arg1;
5501 wxDash * _arg2;
5502 PyObject * _argo0 = 0;
5503 PyObject * _obj2 = 0;
5504 char *_kwnames[] = { "self","choices", NULL };
5505
5506 self = self;
5507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
5508 return NULL;
5509 if (_argo0) {
5510 if (_argo0 == Py_None) { _arg0 = NULL; }
5511 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5512 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5513 return NULL;
5514 }
5515 }
5516 if (_obj2)
5517 {
5518 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5519 if (_arg2 == NULL) {
5520 return NULL;
5521 }
5522 }
5523 {
5524 if (_obj2) {
5525 _arg1 = PyList_Size(_obj2);
5526 }
5527 else {
5528 _arg1 = 0;
5529 }
5530 }
5531 {
5532 wxPy_BEGIN_ALLOW_THREADS;
5533 wxPen_SetDashes(_arg0,_arg1,_arg2);
5534
5535 wxPy_END_ALLOW_THREADS;
5536 if (PyErr_Occurred()) return NULL;
5537 } Py_INCREF(Py_None);
5538 _resultobj = Py_None;
5539 {
5540 delete [] _arg2;
5541 }
5542 return _resultobj;
5543 }
5544
5545 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
5546 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5547 PyObject * _resultobj;
5548 wxBitmap * _result;
5549 wxPen * _arg0;
5550 PyObject * _argo0 = 0;
5551 char *_kwnames[] = { "self", NULL };
5552 char _ptemp[128];
5553
5554 self = self;
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
5556 return NULL;
5557 if (_argo0) {
5558 if (_argo0 == Py_None) { _arg0 = NULL; }
5559 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5560 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
5561 return NULL;
5562 }
5563 }
5564 {
5565 wxPy_BEGIN_ALLOW_THREADS;
5566 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
5567
5568 wxPy_END_ALLOW_THREADS;
5569 if (PyErr_Occurred()) return NULL;
5570 } if (_result) {
5571 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5572 _resultobj = Py_BuildValue("s",_ptemp);
5573 } else {
5574 Py_INCREF(Py_None);
5575 _resultobj = Py_None;
5576 }
5577 return _resultobj;
5578 }
5579
5580 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5581 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5582 PyObject * _resultobj;
5583 wxPen * _arg0;
5584 wxBitmap * _arg1;
5585 PyObject * _argo0 = 0;
5586 PyObject * _argo1 = 0;
5587 char *_kwnames[] = { "self","stipple", NULL };
5588
5589 self = self;
5590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
5591 return NULL;
5592 if (_argo0) {
5593 if (_argo0 == Py_None) { _arg0 = NULL; }
5594 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5595 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
5596 return NULL;
5597 }
5598 }
5599 if (_argo1) {
5600 if (_argo1 == Py_None) { _arg1 = NULL; }
5601 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5602 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
5603 return NULL;
5604 }
5605 }
5606 {
5607 wxPy_BEGIN_ALLOW_THREADS;
5608 wxPen_SetStipple(_arg0,*_arg1);
5609
5610 wxPy_END_ALLOW_THREADS;
5611 if (PyErr_Occurred()) return NULL;
5612 } Py_INCREF(Py_None);
5613 _resultobj = Py_None;
5614 return _resultobj;
5615 }
5616
5617 static void *SwigwxPyPenTowxPen(void *ptr) {
5618 wxPyPen *src;
5619 wxPen *dest;
5620 src = (wxPyPen *) ptr;
5621 dest = (wxPen *) src;
5622 return (void *) dest;
5623 }
5624
5625 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5626 wxPyPen *src;
5627 wxGDIObject *dest;
5628 src = (wxPyPen *) ptr;
5629 dest = (wxGDIObject *) src;
5630 return (void *) dest;
5631 }
5632
5633 static void *SwigwxPyPenTowxObject(void *ptr) {
5634 wxPyPen *src;
5635 wxObject *dest;
5636 src = (wxPyPen *) ptr;
5637 dest = (wxObject *) src;
5638 return (void *) dest;
5639 }
5640
5641 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5642 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5643 PyObject * _resultobj;
5644 wxPyPen * _result;
5645 wxColour * _arg0;
5646 int _arg1 = (int ) 1;
5647 int _arg2 = (int ) wxSOLID;
5648 wxColour temp;
5649 PyObject * _obj0 = 0;
5650 char *_kwnames[] = { "colour","width","style", NULL };
5651 char _ptemp[128];
5652
5653 self = self;
5654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5655 return NULL;
5656 {
5657 _arg0 = &temp;
5658 if (! wxColour_helper(_obj0, &_arg0))
5659 return NULL;
5660 }
5661 {
5662 wxPy_BEGIN_ALLOW_THREADS;
5663 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
5664
5665 wxPy_END_ALLOW_THREADS;
5666 if (PyErr_Occurred()) return NULL;
5667 } if (_result) {
5668 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5669 _resultobj = Py_BuildValue("s",_ptemp);
5670 } else {
5671 Py_INCREF(Py_None);
5672 _resultobj = Py_None;
5673 }
5674 return _resultobj;
5675 }
5676
5677 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5678 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject * _resultobj;
5680 wxPyPen * _arg0;
5681 PyObject * _argo0 = 0;
5682 char *_kwnames[] = { "self", NULL };
5683
5684 self = self;
5685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5686 return NULL;
5687 if (_argo0) {
5688 if (_argo0 == Py_None) { _arg0 = NULL; }
5689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5691 return NULL;
5692 }
5693 }
5694 {
5695 wxPy_BEGIN_ALLOW_THREADS;
5696 delete_wxPyPen(_arg0);
5697
5698 wxPy_END_ALLOW_THREADS;
5699 if (PyErr_Occurred()) return NULL;
5700 } Py_INCREF(Py_None);
5701 _resultobj = Py_None;
5702 return _resultobj;
5703 }
5704
5705 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5706 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject * _resultobj;
5708 wxPyPen * _arg0;
5709 int _arg1;
5710 wxDash * _arg2;
5711 PyObject * _argo0 = 0;
5712 PyObject * _obj2 = 0;
5713 char *_kwnames[] = { "self","choices", NULL };
5714
5715 self = self;
5716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
5717 return NULL;
5718 if (_argo0) {
5719 if (_argo0 == Py_None) { _arg0 = NULL; }
5720 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5721 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5722 return NULL;
5723 }
5724 }
5725 if (_obj2)
5726 {
5727 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5728 if (_arg2 == NULL) {
5729 return NULL;
5730 }
5731 }
5732 {
5733 if (_obj2) {
5734 _arg1 = PyList_Size(_obj2);
5735 }
5736 else {
5737 _arg1 = 0;
5738 }
5739 }
5740 {
5741 wxPy_BEGIN_ALLOW_THREADS;
5742 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
5743
5744 wxPy_END_ALLOW_THREADS;
5745 if (PyErr_Occurred()) return NULL;
5746 } Py_INCREF(Py_None);
5747 _resultobj = Py_None;
5748 {
5749 delete [] _arg2;
5750 }
5751 return _resultobj;
5752 }
5753
5754 static void *SwigwxPenListTowxObject(void *ptr) {
5755 wxPenList *src;
5756 wxObject *dest;
5757 src = (wxPenList *) ptr;
5758 dest = (wxObject *) src;
5759 return (void *) dest;
5760 }
5761
5762 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5763 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5764 PyObject * _resultobj;
5765 wxPenList * _arg0;
5766 wxPen * _arg1;
5767 PyObject * _argo0 = 0;
5768 PyObject * _argo1 = 0;
5769 char *_kwnames[] = { "self","pen", NULL };
5770
5771 self = self;
5772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5773 return NULL;
5774 if (_argo0) {
5775 if (_argo0 == Py_None) { _arg0 = NULL; }
5776 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5777 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5778 return NULL;
5779 }
5780 }
5781 if (_argo1) {
5782 if (_argo1 == Py_None) { _arg1 = NULL; }
5783 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5784 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5785 return NULL;
5786 }
5787 }
5788 {
5789 wxPy_BEGIN_ALLOW_THREADS;
5790 wxPenList_AddPen(_arg0,_arg1);
5791
5792 wxPy_END_ALLOW_THREADS;
5793 if (PyErr_Occurred()) return NULL;
5794 } Py_INCREF(Py_None);
5795 _resultobj = Py_None;
5796 return _resultobj;
5797 }
5798
5799 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5800 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5801 PyObject * _resultobj;
5802 wxPen * _result;
5803 wxPenList * _arg0;
5804 wxColour * _arg1;
5805 int _arg2;
5806 int _arg3;
5807 PyObject * _argo0 = 0;
5808 wxColour temp;
5809 PyObject * _obj1 = 0;
5810 char *_kwnames[] = { "self","colour","width","style", NULL };
5811 char _ptemp[128];
5812
5813 self = self;
5814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5815 return NULL;
5816 if (_argo0) {
5817 if (_argo0 == Py_None) { _arg0 = NULL; }
5818 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5819 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5820 return NULL;
5821 }
5822 }
5823 {
5824 _arg1 = &temp;
5825 if (! wxColour_helper(_obj1, &_arg1))
5826 return NULL;
5827 }
5828 {
5829 wxPy_BEGIN_ALLOW_THREADS;
5830 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5831
5832 wxPy_END_ALLOW_THREADS;
5833 if (PyErr_Occurred()) return NULL;
5834 } if (_result) {
5835 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5836 _resultobj = Py_BuildValue("s",_ptemp);
5837 } else {
5838 Py_INCREF(Py_None);
5839 _resultobj = Py_None;
5840 }
5841 return _resultobj;
5842 }
5843
5844 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5845 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5846 PyObject * _resultobj;
5847 wxPenList * _arg0;
5848 wxPen * _arg1;
5849 PyObject * _argo0 = 0;
5850 PyObject * _argo1 = 0;
5851 char *_kwnames[] = { "self","pen", NULL };
5852
5853 self = self;
5854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5855 return NULL;
5856 if (_argo0) {
5857 if (_argo0 == Py_None) { _arg0 = NULL; }
5858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5860 return NULL;
5861 }
5862 }
5863 if (_argo1) {
5864 if (_argo1 == Py_None) { _arg1 = NULL; }
5865 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5866 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5867 return NULL;
5868 }
5869 }
5870 {
5871 wxPy_BEGIN_ALLOW_THREADS;
5872 wxPenList_RemovePen(_arg0,_arg1);
5873
5874 wxPy_END_ALLOW_THREADS;
5875 if (PyErr_Occurred()) return NULL;
5876 } Py_INCREF(Py_None);
5877 _resultobj = Py_None;
5878 return _resultobj;
5879 }
5880
5881 static void *SwigwxBrushTowxGDIObject(void *ptr) {
5882 wxBrush *src;
5883 wxGDIObject *dest;
5884 src = (wxBrush *) ptr;
5885 dest = (wxGDIObject *) src;
5886 return (void *) dest;
5887 }
5888
5889 static void *SwigwxBrushTowxObject(void *ptr) {
5890 wxBrush *src;
5891 wxObject *dest;
5892 src = (wxBrush *) ptr;
5893 dest = (wxObject *) src;
5894 return (void *) dest;
5895 }
5896
5897 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5898 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5899 PyObject * _resultobj;
5900 wxBrush * _result;
5901 wxColour * _arg0;
5902 int _arg1 = (int ) wxSOLID;
5903 wxColour temp;
5904 PyObject * _obj0 = 0;
5905 char *_kwnames[] = { "colour","style", NULL };
5906 char _ptemp[128];
5907
5908 self = self;
5909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5910 return NULL;
5911 {
5912 _arg0 = &temp;
5913 if (! wxColour_helper(_obj0, &_arg0))
5914 return NULL;
5915 }
5916 {
5917 wxPy_BEGIN_ALLOW_THREADS;
5918 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5919
5920 wxPy_END_ALLOW_THREADS;
5921 if (PyErr_Occurred()) return NULL;
5922 } if (_result) {
5923 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5924 _resultobj = Py_BuildValue("s",_ptemp);
5925 } else {
5926 Py_INCREF(Py_None);
5927 _resultobj = Py_None;
5928 }
5929 return _resultobj;
5930 }
5931
5932 #define delete_wxBrush(_swigobj) (delete _swigobj)
5933 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5934 PyObject * _resultobj;
5935 wxBrush * _arg0;
5936 PyObject * _argo0 = 0;
5937 char *_kwnames[] = { "self", NULL };
5938
5939 self = self;
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5941 return NULL;
5942 if (_argo0) {
5943 if (_argo0 == Py_None) { _arg0 = NULL; }
5944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
5946 return NULL;
5947 }
5948 }
5949 {
5950 wxPy_BEGIN_ALLOW_THREADS;
5951 delete_wxBrush(_arg0);
5952
5953 wxPy_END_ALLOW_THREADS;
5954 if (PyErr_Occurred()) return NULL;
5955 } Py_INCREF(Py_None);
5956 _resultobj = Py_None;
5957 return _resultobj;
5958 }
5959
5960 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
5961 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5962 PyObject * _resultobj;
5963 wxColour * _result;
5964 wxBrush * _arg0;
5965 PyObject * _argo0 = 0;
5966 char *_kwnames[] = { "self", NULL };
5967 char _ptemp[128];
5968
5969 self = self;
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
5971 return NULL;
5972 if (_argo0) {
5973 if (_argo0 == Py_None) { _arg0 = NULL; }
5974 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
5975 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
5976 return NULL;
5977 }
5978 }
5979 {
5980 wxPy_BEGIN_ALLOW_THREADS;
5981 _result = new wxColour (wxBrush_GetColour(_arg0));
5982
5983 wxPy_END_ALLOW_THREADS;
5984 if (PyErr_Occurred()) return NULL;
5985 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5986 _resultobj = Py_BuildValue("s",_ptemp);
5987 return _resultobj;
5988 }
5989
5990 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
5991 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5992 PyObject * _resultobj;
5993 wxBitmap * _result;
5994 wxBrush * _arg0;
5995 PyObject * _argo0 = 0;
5996 char *_kwnames[] = { "self", NULL };
5997 char _ptemp[128];
5998
5999 self = self;
6000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6001 return NULL;
6002 if (_argo0) {
6003 if (_argo0 == Py_None) { _arg0 = NULL; }
6004 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6005 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6006 return NULL;
6007 }
6008 }
6009 {
6010 wxPy_BEGIN_ALLOW_THREADS;
6011 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6012
6013 wxPy_END_ALLOW_THREADS;
6014 if (PyErr_Occurred()) return NULL;
6015 } if (_result) {
6016 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6017 _resultobj = Py_BuildValue("s",_ptemp);
6018 } else {
6019 Py_INCREF(Py_None);
6020 _resultobj = Py_None;
6021 }
6022 return _resultobj;
6023 }
6024
6025 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6026 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6027 PyObject * _resultobj;
6028 int _result;
6029 wxBrush * _arg0;
6030 PyObject * _argo0 = 0;
6031 char *_kwnames[] = { "self", NULL };
6032
6033 self = self;
6034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6035 return NULL;
6036 if (_argo0) {
6037 if (_argo0 == Py_None) { _arg0 = NULL; }
6038 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6039 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6040 return NULL;
6041 }
6042 }
6043 {
6044 wxPy_BEGIN_ALLOW_THREADS;
6045 _result = (int )wxBrush_GetStyle(_arg0);
6046
6047 wxPy_END_ALLOW_THREADS;
6048 if (PyErr_Occurred()) return NULL;
6049 } _resultobj = Py_BuildValue("i",_result);
6050 return _resultobj;
6051 }
6052
6053 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6054 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6055 PyObject * _resultobj;
6056 bool _result;
6057 wxBrush * _arg0;
6058 PyObject * _argo0 = 0;
6059 char *_kwnames[] = { "self", NULL };
6060
6061 self = self;
6062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6063 return NULL;
6064 if (_argo0) {
6065 if (_argo0 == Py_None) { _arg0 = NULL; }
6066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6068 return NULL;
6069 }
6070 }
6071 {
6072 wxPy_BEGIN_ALLOW_THREADS;
6073 _result = (bool )wxBrush_Ok(_arg0);
6074
6075 wxPy_END_ALLOW_THREADS;
6076 if (PyErr_Occurred()) return NULL;
6077 } _resultobj = Py_BuildValue("i",_result);
6078 return _resultobj;
6079 }
6080
6081 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6082 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject * _resultobj;
6084 wxBrush * _arg0;
6085 wxColour * _arg1;
6086 PyObject * _argo0 = 0;
6087 wxColour temp;
6088 PyObject * _obj1 = 0;
6089 char *_kwnames[] = { "self","colour", NULL };
6090
6091 self = self;
6092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6093 return NULL;
6094 if (_argo0) {
6095 if (_argo0 == Py_None) { _arg0 = NULL; }
6096 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6097 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6098 return NULL;
6099 }
6100 }
6101 {
6102 _arg1 = &temp;
6103 if (! wxColour_helper(_obj1, &_arg1))
6104 return NULL;
6105 }
6106 {
6107 wxPy_BEGIN_ALLOW_THREADS;
6108 wxBrush_SetColour(_arg0,*_arg1);
6109
6110 wxPy_END_ALLOW_THREADS;
6111 if (PyErr_Occurred()) return NULL;
6112 } Py_INCREF(Py_None);
6113 _resultobj = Py_None;
6114 return _resultobj;
6115 }
6116
6117 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6118 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6119 PyObject * _resultobj;
6120 wxBrush * _arg0;
6121 wxBitmap * _arg1;
6122 PyObject * _argo0 = 0;
6123 PyObject * _argo1 = 0;
6124 char *_kwnames[] = { "self","bitmap", NULL };
6125
6126 self = self;
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6128 return NULL;
6129 if (_argo0) {
6130 if (_argo0 == Py_None) { _arg0 = NULL; }
6131 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6132 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6133 return NULL;
6134 }
6135 }
6136 if (_argo1) {
6137 if (_argo1 == Py_None) { _arg1 = NULL; }
6138 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6139 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6140 return NULL;
6141 }
6142 }
6143 {
6144 wxPy_BEGIN_ALLOW_THREADS;
6145 wxBrush_SetStipple(_arg0,*_arg1);
6146
6147 wxPy_END_ALLOW_THREADS;
6148 if (PyErr_Occurred()) return NULL;
6149 } Py_INCREF(Py_None);
6150 _resultobj = Py_None;
6151 return _resultobj;
6152 }
6153
6154 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6155 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6156 PyObject * _resultobj;
6157 wxBrush * _arg0;
6158 int _arg1;
6159 PyObject * _argo0 = 0;
6160 char *_kwnames[] = { "self","style", NULL };
6161
6162 self = self;
6163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6164 return NULL;
6165 if (_argo0) {
6166 if (_argo0 == Py_None) { _arg0 = NULL; }
6167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6169 return NULL;
6170 }
6171 }
6172 {
6173 wxPy_BEGIN_ALLOW_THREADS;
6174 wxBrush_SetStyle(_arg0,_arg1);
6175
6176 wxPy_END_ALLOW_THREADS;
6177 if (PyErr_Occurred()) return NULL;
6178 } Py_INCREF(Py_None);
6179 _resultobj = Py_None;
6180 return _resultobj;
6181 }
6182
6183 static void *SwigwxBrushListTowxObject(void *ptr) {
6184 wxBrushList *src;
6185 wxObject *dest;
6186 src = (wxBrushList *) ptr;
6187 dest = (wxObject *) src;
6188 return (void *) dest;
6189 }
6190
6191 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6192 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6193 PyObject * _resultobj;
6194 wxBrushList * _arg0;
6195 wxBrush * _arg1;
6196 PyObject * _argo0 = 0;
6197 PyObject * _argo1 = 0;
6198 char *_kwnames[] = { "self","brush", NULL };
6199
6200 self = self;
6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6202 return NULL;
6203 if (_argo0) {
6204 if (_argo0 == Py_None) { _arg0 = NULL; }
6205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6207 return NULL;
6208 }
6209 }
6210 if (_argo1) {
6211 if (_argo1 == Py_None) { _arg1 = NULL; }
6212 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6213 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6214 return NULL;
6215 }
6216 }
6217 {
6218 wxPy_BEGIN_ALLOW_THREADS;
6219 wxBrushList_AddBrush(_arg0,_arg1);
6220
6221 wxPy_END_ALLOW_THREADS;
6222 if (PyErr_Occurred()) return NULL;
6223 } Py_INCREF(Py_None);
6224 _resultobj = Py_None;
6225 return _resultobj;
6226 }
6227
6228 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6229 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6230 PyObject * _resultobj;
6231 wxBrush * _result;
6232 wxBrushList * _arg0;
6233 wxColour * _arg1;
6234 int _arg2;
6235 PyObject * _argo0 = 0;
6236 wxColour temp;
6237 PyObject * _obj1 = 0;
6238 char *_kwnames[] = { "self","colour","style", NULL };
6239 char _ptemp[128];
6240
6241 self = self;
6242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
6243 return NULL;
6244 if (_argo0) {
6245 if (_argo0 == Py_None) { _arg0 = NULL; }
6246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6248 return NULL;
6249 }
6250 }
6251 {
6252 _arg1 = &temp;
6253 if (! wxColour_helper(_obj1, &_arg1))
6254 return NULL;
6255 }
6256 {
6257 wxPy_BEGIN_ALLOW_THREADS;
6258 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
6259
6260 wxPy_END_ALLOW_THREADS;
6261 if (PyErr_Occurred()) return NULL;
6262 } if (_result) {
6263 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6264 _resultobj = Py_BuildValue("s",_ptemp);
6265 } else {
6266 Py_INCREF(Py_None);
6267 _resultobj = Py_None;
6268 }
6269 return _resultobj;
6270 }
6271
6272 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6273 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject * _resultobj;
6275 wxBrushList * _arg0;
6276 wxBrush * _arg1;
6277 PyObject * _argo0 = 0;
6278 PyObject * _argo1 = 0;
6279 char *_kwnames[] = { "self","brush", NULL };
6280
6281 self = self;
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
6283 return NULL;
6284 if (_argo0) {
6285 if (_argo0 == Py_None) { _arg0 = NULL; }
6286 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6287 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6288 return NULL;
6289 }
6290 }
6291 if (_argo1) {
6292 if (_argo1 == Py_None) { _arg1 = NULL; }
6293 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6294 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6295 return NULL;
6296 }
6297 }
6298 {
6299 wxPy_BEGIN_ALLOW_THREADS;
6300 wxBrushList_RemoveBrush(_arg0,_arg1);
6301
6302 wxPy_END_ALLOW_THREADS;
6303 if (PyErr_Occurred()) return NULL;
6304 } Py_INCREF(Py_None);
6305 _resultobj = Py_None;
6306 return _resultobj;
6307 }
6308
6309 static void *SwigwxDCTowxObject(void *ptr) {
6310 wxDC *src;
6311 wxObject *dest;
6312 src = (wxDC *) ptr;
6313 dest = (wxObject *) src;
6314 return (void *) dest;
6315 }
6316
6317 #define delete_wxDC(_swigobj) (delete _swigobj)
6318 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6319 PyObject * _resultobj;
6320 wxDC * _arg0;
6321 PyObject * _argo0 = 0;
6322 char *_kwnames[] = { "self", NULL };
6323
6324 self = self;
6325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
6326 return NULL;
6327 if (_argo0) {
6328 if (_argo0 == Py_None) { _arg0 = NULL; }
6329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6331 return NULL;
6332 }
6333 }
6334 {
6335 wxPy_BEGIN_ALLOW_THREADS;
6336 delete_wxDC(_arg0);
6337
6338 wxPy_END_ALLOW_THREADS;
6339 if (PyErr_Occurred()) return NULL;
6340 } Py_INCREF(Py_None);
6341 _resultobj = Py_None;
6342 return _resultobj;
6343 }
6344
6345 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6346 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6347 PyObject * _resultobj;
6348 wxDC * _arg0;
6349 PyObject * _argo0 = 0;
6350 char *_kwnames[] = { "self", NULL };
6351
6352 self = self;
6353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
6354 return NULL;
6355 if (_argo0) {
6356 if (_argo0 == Py_None) { _arg0 = NULL; }
6357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6359 return NULL;
6360 }
6361 }
6362 {
6363 wxPy_BEGIN_ALLOW_THREADS;
6364 wxDC_BeginDrawing(_arg0);
6365
6366 wxPy_END_ALLOW_THREADS;
6367 if (PyErr_Occurred()) return NULL;
6368 } Py_INCREF(Py_None);
6369 _resultobj = Py_None;
6370 return _resultobj;
6371 }
6372
6373 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6374 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
6375 PyObject * _resultobj;
6376 bool _result;
6377 wxDC * _arg0;
6378 long _arg1;
6379 long _arg2;
6380 long _arg3;
6381 long _arg4;
6382 wxDC * _arg5;
6383 long _arg6;
6384 long _arg7;
6385 int _arg8 = (int ) wxCOPY;
6386 int _arg9 = (int ) FALSE;
6387 PyObject * _argo0 = 0;
6388 PyObject * _argo5 = 0;
6389 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
6390
6391 self = self;
6392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
6393 return NULL;
6394 if (_argo0) {
6395 if (_argo0 == Py_None) { _arg0 = NULL; }
6396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6398 return NULL;
6399 }
6400 }
6401 if (_argo5) {
6402 if (_argo5 == Py_None) { _arg5 = NULL; }
6403 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
6404 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6405 return NULL;
6406 }
6407 }
6408 {
6409 wxPy_BEGIN_ALLOW_THREADS;
6410 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
6411
6412 wxPy_END_ALLOW_THREADS;
6413 if (PyErr_Occurred()) return NULL;
6414 } _resultobj = Py_BuildValue("i",_result);
6415 return _resultobj;
6416 }
6417
6418 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6419 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6420 PyObject * _resultobj;
6421 wxDC * _arg0;
6422 PyObject * _argo0 = 0;
6423 char *_kwnames[] = { "self", NULL };
6424
6425 self = self;
6426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
6427 return NULL;
6428 if (_argo0) {
6429 if (_argo0 == Py_None) { _arg0 = NULL; }
6430 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6431 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6432 return NULL;
6433 }
6434 }
6435 {
6436 wxPy_BEGIN_ALLOW_THREADS;
6437 wxDC_Clear(_arg0);
6438
6439 wxPy_END_ALLOW_THREADS;
6440 if (PyErr_Occurred()) return NULL;
6441 } Py_INCREF(Py_None);
6442 _resultobj = Py_None;
6443 return _resultobj;
6444 }
6445
6446 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6447 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
6448 PyObject * _resultobj;
6449 wxDC * _arg0;
6450 long _arg1;
6451 long _arg2;
6452 PyObject * _argo0 = 0;
6453 char *_kwnames[] = { "self","x","y", NULL };
6454
6455 self = self;
6456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
6457 return NULL;
6458 if (_argo0) {
6459 if (_argo0 == Py_None) { _arg0 = NULL; }
6460 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6461 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6462 return NULL;
6463 }
6464 }
6465 {
6466 wxPy_BEGIN_ALLOW_THREADS;
6467 wxDC_CrossHair(_arg0,_arg1,_arg2);
6468
6469 wxPy_END_ALLOW_THREADS;
6470 if (PyErr_Occurred()) return NULL;
6471 } Py_INCREF(Py_None);
6472 _resultobj = Py_None;
6473 return _resultobj;
6474 }
6475
6476 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6477 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject * _resultobj;
6479 wxDC * _arg0;
6480 PyObject * _argo0 = 0;
6481 char *_kwnames[] = { "self", NULL };
6482
6483 self = self;
6484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
6485 return NULL;
6486 if (_argo0) {
6487 if (_argo0 == Py_None) { _arg0 = NULL; }
6488 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6489 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6490 return NULL;
6491 }
6492 }
6493 {
6494 wxPy_BEGIN_ALLOW_THREADS;
6495 wxDC_DestroyClippingRegion(_arg0);
6496
6497 wxPy_END_ALLOW_THREADS;
6498 if (PyErr_Occurred()) return NULL;
6499 } Py_INCREF(Py_None);
6500 _resultobj = Py_None;
6501 return _resultobj;
6502 }
6503
6504 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6505 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
6506 PyObject * _resultobj;
6507 long _result;
6508 wxDC * _arg0;
6509 long _arg1;
6510 PyObject * _argo0 = 0;
6511 char *_kwnames[] = { "self","x", NULL };
6512
6513 self = self;
6514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
6515 return NULL;
6516 if (_argo0) {
6517 if (_argo0 == Py_None) { _arg0 = NULL; }
6518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6520 return NULL;
6521 }
6522 }
6523 {
6524 wxPy_BEGIN_ALLOW_THREADS;
6525 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
6526
6527 wxPy_END_ALLOW_THREADS;
6528 if (PyErr_Occurred()) return NULL;
6529 } _resultobj = Py_BuildValue("l",_result);
6530 return _resultobj;
6531 }
6532
6533 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6534 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6535 PyObject * _resultobj;
6536 long _result;
6537 wxDC * _arg0;
6538 long _arg1;
6539 PyObject * _argo0 = 0;
6540 char *_kwnames[] = { "self","x", NULL };
6541
6542 self = self;
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
6544 return NULL;
6545 if (_argo0) {
6546 if (_argo0 == Py_None) { _arg0 = NULL; }
6547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6549 return NULL;
6550 }
6551 }
6552 {
6553 wxPy_BEGIN_ALLOW_THREADS;
6554 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
6555
6556 wxPy_END_ALLOW_THREADS;
6557 if (PyErr_Occurred()) return NULL;
6558 } _resultobj = Py_BuildValue("l",_result);
6559 return _resultobj;
6560 }
6561
6562 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6563 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
6564 PyObject * _resultobj;
6565 long _result;
6566 wxDC * _arg0;
6567 long _arg1;
6568 PyObject * _argo0 = 0;
6569 char *_kwnames[] = { "self","y", NULL };
6570
6571 self = self;
6572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
6573 return NULL;
6574 if (_argo0) {
6575 if (_argo0 == Py_None) { _arg0 = NULL; }
6576 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6577 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6578 return NULL;
6579 }
6580 }
6581 {
6582 wxPy_BEGIN_ALLOW_THREADS;
6583 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
6584
6585 wxPy_END_ALLOW_THREADS;
6586 if (PyErr_Occurred()) return NULL;
6587 } _resultobj = Py_BuildValue("l",_result);
6588 return _resultobj;
6589 }
6590
6591 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6592 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6593 PyObject * _resultobj;
6594 long _result;
6595 wxDC * _arg0;
6596 long _arg1;
6597 PyObject * _argo0 = 0;
6598 char *_kwnames[] = { "self","y", NULL };
6599
6600 self = self;
6601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
6602 return NULL;
6603 if (_argo0) {
6604 if (_argo0 == Py_None) { _arg0 = NULL; }
6605 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6606 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6607 return NULL;
6608 }
6609 }
6610 {
6611 wxPy_BEGIN_ALLOW_THREADS;
6612 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
6613
6614 wxPy_END_ALLOW_THREADS;
6615 if (PyErr_Occurred()) return NULL;
6616 } _resultobj = Py_BuildValue("l",_result);
6617 return _resultobj;
6618 }
6619
6620 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6621 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6622 PyObject * _resultobj;
6623 wxDC * _arg0;
6624 long _arg1;
6625 long _arg2;
6626 long _arg3;
6627 long _arg4;
6628 long _arg5;
6629 long _arg6;
6630 PyObject * _argo0 = 0;
6631 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
6632
6633 self = self;
6634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6635 return NULL;
6636 if (_argo0) {
6637 if (_argo0 == Py_None) { _arg0 = NULL; }
6638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6640 return NULL;
6641 }
6642 }
6643 {
6644 wxPy_BEGIN_ALLOW_THREADS;
6645 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6646
6647 wxPy_END_ALLOW_THREADS;
6648 if (PyErr_Occurred()) return NULL;
6649 } Py_INCREF(Py_None);
6650 _resultobj = Py_None;
6651 return _resultobj;
6652 }
6653
6654 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6655 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
6656 PyObject * _resultobj;
6657 wxDC * _arg0;
6658 long _arg1;
6659 long _arg2;
6660 long _arg3;
6661 PyObject * _argo0 = 0;
6662 char *_kwnames[] = { "self","x","y","radius", NULL };
6663
6664 self = self;
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
6666 return NULL;
6667 if (_argo0) {
6668 if (_argo0 == Py_None) { _arg0 = NULL; }
6669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6671 return NULL;
6672 }
6673 }
6674 {
6675 wxPy_BEGIN_ALLOW_THREADS;
6676 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6677
6678 wxPy_END_ALLOW_THREADS;
6679 if (PyErr_Occurred()) return NULL;
6680 } Py_INCREF(Py_None);
6681 _resultobj = Py_None;
6682 return _resultobj;
6683 }
6684
6685 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6686 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
6687 PyObject * _resultobj;
6688 wxDC * _arg0;
6689 long _arg1;
6690 long _arg2;
6691 long _arg3;
6692 long _arg4;
6693 PyObject * _argo0 = 0;
6694 char *_kwnames[] = { "self","x","y","width","height", NULL };
6695
6696 self = self;
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6698 return NULL;
6699 if (_argo0) {
6700 if (_argo0 == Py_None) { _arg0 = NULL; }
6701 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6702 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6703 return NULL;
6704 }
6705 }
6706 {
6707 wxPy_BEGIN_ALLOW_THREADS;
6708 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6709
6710 wxPy_END_ALLOW_THREADS;
6711 if (PyErr_Occurred()) return NULL;
6712 } Py_INCREF(Py_None);
6713 _resultobj = Py_None;
6714 return _resultobj;
6715 }
6716
6717 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6718 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6719 PyObject * _resultobj;
6720 wxDC * _arg0;
6721 long _arg1;
6722 long _arg2;
6723 long _arg3;
6724 long _arg4;
6725 long _arg5;
6726 long _arg6;
6727 PyObject * _argo0 = 0;
6728 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
6729
6730 self = self;
6731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6732 return NULL;
6733 if (_argo0) {
6734 if (_argo0 == Py_None) { _arg0 = NULL; }
6735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6737 return NULL;
6738 }
6739 }
6740 {
6741 wxPy_BEGIN_ALLOW_THREADS;
6742 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6743
6744 wxPy_END_ALLOW_THREADS;
6745 if (PyErr_Occurred()) return NULL;
6746 } Py_INCREF(Py_None);
6747 _resultobj = Py_None;
6748 return _resultobj;
6749 }
6750
6751 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6752 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6753 PyObject * _resultobj;
6754 wxDC * _arg0;
6755 wxIcon * _arg1;
6756 long _arg2;
6757 long _arg3;
6758 PyObject * _argo0 = 0;
6759 PyObject * _argo1 = 0;
6760 char *_kwnames[] = { "self","icon","x","y", NULL };
6761
6762 self = self;
6763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6764 return NULL;
6765 if (_argo0) {
6766 if (_argo0 == Py_None) { _arg0 = NULL; }
6767 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6768 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6769 return NULL;
6770 }
6771 }
6772 if (_argo1) {
6773 if (_argo1 == Py_None) { _arg1 = NULL; }
6774 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6775 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6776 return NULL;
6777 }
6778 }
6779 {
6780 wxPy_BEGIN_ALLOW_THREADS;
6781 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6782
6783 wxPy_END_ALLOW_THREADS;
6784 if (PyErr_Occurred()) return NULL;
6785 } Py_INCREF(Py_None);
6786 _resultobj = Py_None;
6787 return _resultobj;
6788 }
6789
6790 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6791 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
6792 PyObject * _resultobj;
6793 wxDC * _arg0;
6794 long _arg1;
6795 long _arg2;
6796 long _arg3;
6797 long _arg4;
6798 PyObject * _argo0 = 0;
6799 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
6800
6801 self = self;
6802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6803 return NULL;
6804 if (_argo0) {
6805 if (_argo0 == Py_None) { _arg0 = NULL; }
6806 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6807 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6808 return NULL;
6809 }
6810 }
6811 {
6812 wxPy_BEGIN_ALLOW_THREADS;
6813 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
6814
6815 wxPy_END_ALLOW_THREADS;
6816 if (PyErr_Occurred()) return NULL;
6817 } Py_INCREF(Py_None);
6818 _resultobj = Py_None;
6819 return _resultobj;
6820 }
6821
6822 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6823 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6824 PyObject * _resultobj;
6825 wxDC * _arg0;
6826 int _arg1;
6827 wxPoint * _arg2;
6828 long _arg3 = (long ) 0;
6829 long _arg4 = (long ) 0;
6830 PyObject * _argo0 = 0;
6831 int NPOINTS;
6832 PyObject * _obj2 = 0;
6833 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
6834
6835 self = self;
6836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
6837 return NULL;
6838 if (_argo0) {
6839 if (_argo0 == Py_None) { _arg0 = NULL; }
6840 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6841 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6842 return NULL;
6843 }
6844 }
6845 if (_obj2)
6846 {
6847 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6848 if (_arg2 == NULL) {
6849 return NULL;
6850 }
6851 }
6852 {
6853 _arg1 = NPOINTS;
6854 }
6855 {
6856 wxPy_BEGIN_ALLOW_THREADS;
6857 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
6858
6859 wxPy_END_ALLOW_THREADS;
6860 if (PyErr_Occurred()) return NULL;
6861 } Py_INCREF(Py_None);
6862 _resultobj = Py_None;
6863 {
6864 delete [] _arg2;
6865 }
6866 return _resultobj;
6867 }
6868
6869 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6870 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
6871 PyObject * _resultobj;
6872 wxDC * _arg0;
6873 int _arg1;
6874 wxPoint * _arg2;
6875 long _arg3 = (long ) 0;
6876 long _arg4 = (long ) 0;
6877 int _arg5 = (int ) wxODDEVEN_RULE;
6878 PyObject * _argo0 = 0;
6879 int NPOINTS;
6880 PyObject * _obj2 = 0;
6881 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
6882
6883 self = self;
6884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
6885 return NULL;
6886 if (_argo0) {
6887 if (_argo0 == Py_None) { _arg0 = NULL; }
6888 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6889 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6890 return NULL;
6891 }
6892 }
6893 if (_obj2)
6894 {
6895 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6896 if (_arg2 == NULL) {
6897 return NULL;
6898 }
6899 }
6900 {
6901 _arg1 = NPOINTS;
6902 }
6903 {
6904 wxPy_BEGIN_ALLOW_THREADS;
6905 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6906
6907 wxPy_END_ALLOW_THREADS;
6908 if (PyErr_Occurred()) return NULL;
6909 } Py_INCREF(Py_None);
6910 _resultobj = Py_None;
6911 {
6912 delete [] _arg2;
6913 }
6914 return _resultobj;
6915 }
6916
6917 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
6918 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject * _resultobj;
6920 wxDC * _arg0;
6921 long _arg1;
6922 long _arg2;
6923 PyObject * _argo0 = 0;
6924 char *_kwnames[] = { "self","x","y", NULL };
6925
6926 self = self;
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
6928 return NULL;
6929 if (_argo0) {
6930 if (_argo0 == Py_None) { _arg0 = NULL; }
6931 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6932 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
6933 return NULL;
6934 }
6935 }
6936 {
6937 wxPy_BEGIN_ALLOW_THREADS;
6938 wxDC_DrawPoint(_arg0,_arg1,_arg2);
6939
6940 wxPy_END_ALLOW_THREADS;
6941 if (PyErr_Occurred()) return NULL;
6942 } Py_INCREF(Py_None);
6943 _resultobj = Py_None;
6944 return _resultobj;
6945 }
6946
6947 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6948 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
6949 PyObject * _resultobj;
6950 wxDC * _arg0;
6951 long _arg1;
6952 long _arg2;
6953 long _arg3;
6954 long _arg4;
6955 PyObject * _argo0 = 0;
6956 char *_kwnames[] = { "self","x","y","width","height", NULL };
6957
6958 self = self;
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6960 return NULL;
6961 if (_argo0) {
6962 if (_argo0 == Py_None) { _arg0 = NULL; }
6963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
6965 return NULL;
6966 }
6967 }
6968 {
6969 wxPy_BEGIN_ALLOW_THREADS;
6970 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
6971
6972 wxPy_END_ALLOW_THREADS;
6973 if (PyErr_Occurred()) return NULL;
6974 } Py_INCREF(Py_None);
6975 _resultobj = Py_None;
6976 return _resultobj;
6977 }
6978
6979 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6980 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
6981 PyObject * _resultobj;
6982 wxDC * _arg0;
6983 wxString * _arg1;
6984 wxCoord _arg2;
6985 wxCoord _arg3;
6986 double _arg4;
6987 PyObject * _argo0 = 0;
6988 PyObject * _obj1 = 0;
6989 char *_kwnames[] = { "self","text","x","y","angle", NULL };
6990
6991 self = self;
6992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
6993 return NULL;
6994 if (_argo0) {
6995 if (_argo0 == Py_None) { _arg0 = NULL; }
6996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
6998 return NULL;
6999 }
7000 }
7001 {
7002 #if PYTHON_API_VERSION >= 1009
7003 char* tmpPtr; int tmpSize;
7004 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7005 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7006 return NULL;
7007 }
7008 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7009 return NULL;
7010 _arg1 = new wxString(tmpPtr, tmpSize);
7011 #else
7012 if (!PyString_Check(_obj1)) {
7013 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7014 return NULL;
7015 }
7016 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7017 #endif
7018 }
7019 {
7020 wxPy_BEGIN_ALLOW_THREADS;
7021 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7022
7023 wxPy_END_ALLOW_THREADS;
7024 if (PyErr_Occurred()) return NULL;
7025 } Py_INCREF(Py_None);
7026 _resultobj = Py_None;
7027 {
7028 if (_obj1)
7029 delete _arg1;
7030 }
7031 return _resultobj;
7032 }
7033
7034 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7035 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7036 PyObject * _resultobj;
7037 wxDC * _arg0;
7038 long _arg1;
7039 long _arg2;
7040 long _arg3;
7041 long _arg4;
7042 long _arg5 = (long ) 20;
7043 PyObject * _argo0 = 0;
7044 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7045
7046 self = self;
7047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
7048 return NULL;
7049 if (_argo0) {
7050 if (_argo0 == Py_None) { _arg0 = NULL; }
7051 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7052 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7053 return NULL;
7054 }
7055 }
7056 {
7057 wxPy_BEGIN_ALLOW_THREADS;
7058 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7059
7060 wxPy_END_ALLOW_THREADS;
7061 if (PyErr_Occurred()) return NULL;
7062 } Py_INCREF(Py_None);
7063 _resultobj = Py_None;
7064 return _resultobj;
7065 }
7066
7067 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7068 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
7069 PyObject * _resultobj;
7070 wxDC * _arg0;
7071 int _arg1;
7072 wxPoint * _arg2;
7073 PyObject * _argo0 = 0;
7074 int NPOINTS;
7075 PyObject * _obj2 = 0;
7076 char *_kwnames[] = { "self","points", NULL };
7077
7078 self = self;
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
7080 return NULL;
7081 if (_argo0) {
7082 if (_argo0 == Py_None) { _arg0 = NULL; }
7083 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7084 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7085 return NULL;
7086 }
7087 }
7088 if (_obj2)
7089 {
7090 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7091 if (_arg2 == NULL) {
7092 return NULL;
7093 }
7094 }
7095 {
7096 _arg1 = NPOINTS;
7097 }
7098 {
7099 wxPy_BEGIN_ALLOW_THREADS;
7100 wxDC_DrawSpline(_arg0,_arg1,_arg2);
7101
7102 wxPy_END_ALLOW_THREADS;
7103 if (PyErr_Occurred()) return NULL;
7104 } Py_INCREF(Py_None);
7105 _resultobj = Py_None;
7106 {
7107 delete [] _arg2;
7108 }
7109 return _resultobj;
7110 }
7111
7112 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7113 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
7114 PyObject * _resultobj;
7115 wxDC * _arg0;
7116 wxString * _arg1;
7117 long _arg2;
7118 long _arg3;
7119 PyObject * _argo0 = 0;
7120 PyObject * _obj1 = 0;
7121 char *_kwnames[] = { "self","text","x","y", NULL };
7122
7123 self = self;
7124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
7125 return NULL;
7126 if (_argo0) {
7127 if (_argo0 == Py_None) { _arg0 = NULL; }
7128 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7129 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7130 return NULL;
7131 }
7132 }
7133 {
7134 #if PYTHON_API_VERSION >= 1009
7135 char* tmpPtr; int tmpSize;
7136 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7137 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7138 return NULL;
7139 }
7140 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7141 return NULL;
7142 _arg1 = new wxString(tmpPtr, tmpSize);
7143 #else
7144 if (!PyString_Check(_obj1)) {
7145 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7146 return NULL;
7147 }
7148 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7149 #endif
7150 }
7151 {
7152 wxPy_BEGIN_ALLOW_THREADS;
7153 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
7154
7155 wxPy_END_ALLOW_THREADS;
7156 if (PyErr_Occurred()) return NULL;
7157 } Py_INCREF(Py_None);
7158 _resultobj = Py_None;
7159 {
7160 if (_obj1)
7161 delete _arg1;
7162 }
7163 return _resultobj;
7164 }
7165
7166 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7167 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7168 PyObject * _resultobj;
7169 wxDC * _arg0;
7170 PyObject * _argo0 = 0;
7171 char *_kwnames[] = { "self", NULL };
7172
7173 self = self;
7174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
7175 return NULL;
7176 if (_argo0) {
7177 if (_argo0 == Py_None) { _arg0 = NULL; }
7178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7180 return NULL;
7181 }
7182 }
7183 {
7184 wxPy_BEGIN_ALLOW_THREADS;
7185 wxDC_EndDoc(_arg0);
7186
7187 wxPy_END_ALLOW_THREADS;
7188 if (PyErr_Occurred()) return NULL;
7189 } Py_INCREF(Py_None);
7190 _resultobj = Py_None;
7191 return _resultobj;
7192 }
7193
7194 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7195 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7196 PyObject * _resultobj;
7197 wxDC * _arg0;
7198 PyObject * _argo0 = 0;
7199 char *_kwnames[] = { "self", NULL };
7200
7201 self = self;
7202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
7203 return NULL;
7204 if (_argo0) {
7205 if (_argo0 == Py_None) { _arg0 = NULL; }
7206 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7207 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7208 return NULL;
7209 }
7210 }
7211 {
7212 wxPy_BEGIN_ALLOW_THREADS;
7213 wxDC_EndDrawing(_arg0);
7214
7215 wxPy_END_ALLOW_THREADS;
7216 if (PyErr_Occurred()) return NULL;
7217 } Py_INCREF(Py_None);
7218 _resultobj = Py_None;
7219 return _resultobj;
7220 }
7221
7222 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7223 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7224 PyObject * _resultobj;
7225 wxDC * _arg0;
7226 PyObject * _argo0 = 0;
7227 char *_kwnames[] = { "self", NULL };
7228
7229 self = self;
7230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
7231 return NULL;
7232 if (_argo0) {
7233 if (_argo0 == Py_None) { _arg0 = NULL; }
7234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7236 return NULL;
7237 }
7238 }
7239 {
7240 wxPy_BEGIN_ALLOW_THREADS;
7241 wxDC_EndPage(_arg0);
7242
7243 wxPy_END_ALLOW_THREADS;
7244 if (PyErr_Occurred()) return NULL;
7245 } Py_INCREF(Py_None);
7246 _resultobj = Py_None;
7247 return _resultobj;
7248 }
7249
7250 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7251 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
7252 PyObject * _resultobj;
7253 wxDC * _arg0;
7254 long _arg1;
7255 long _arg2;
7256 wxColour * _arg3;
7257 int _arg4 = (int ) wxFLOOD_SURFACE;
7258 PyObject * _argo0 = 0;
7259 wxColour temp;
7260 PyObject * _obj3 = 0;
7261 char *_kwnames[] = { "self","x","y","colour","style", NULL };
7262
7263 self = self;
7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
7265 return NULL;
7266 if (_argo0) {
7267 if (_argo0 == Py_None) { _arg0 = NULL; }
7268 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7269 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7270 return NULL;
7271 }
7272 }
7273 {
7274 _arg3 = &temp;
7275 if (! wxColour_helper(_obj3, &_arg3))
7276 return NULL;
7277 }
7278 {
7279 wxPy_BEGIN_ALLOW_THREADS;
7280 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
7281
7282 wxPy_END_ALLOW_THREADS;
7283 if (PyErr_Occurred()) return NULL;
7284 } Py_INCREF(Py_None);
7285 _resultobj = Py_None;
7286 return _resultobj;
7287 }
7288
7289 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7290 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7291 PyObject * _resultobj;
7292 wxBrush * _result;
7293 wxDC * _arg0;
7294 PyObject * _argo0 = 0;
7295 char *_kwnames[] = { "self", NULL };
7296 char _ptemp[128];
7297
7298 self = self;
7299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
7300 return NULL;
7301 if (_argo0) {
7302 if (_argo0 == Py_None) { _arg0 = NULL; }
7303 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7304 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7305 return NULL;
7306 }
7307 }
7308 {
7309 wxPy_BEGIN_ALLOW_THREADS;
7310 wxBrush & _result_ref = wxDC_GetBackground(_arg0);
7311 _result = (wxBrush *) &_result_ref;
7312
7313 wxPy_END_ALLOW_THREADS;
7314 if (PyErr_Occurred()) return NULL;
7315 } if (_result) {
7316 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7317 _resultobj = Py_BuildValue("s",_ptemp);
7318 } else {
7319 Py_INCREF(Py_None);
7320 _resultobj = Py_None;
7321 }
7322 return _resultobj;
7323 }
7324
7325 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7326 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7327 PyObject * _resultobj;
7328 wxBrush * _result;
7329 wxDC * _arg0;
7330 PyObject * _argo0 = 0;
7331 char *_kwnames[] = { "self", NULL };
7332 char _ptemp[128];
7333
7334 self = self;
7335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
7336 return NULL;
7337 if (_argo0) {
7338 if (_argo0 == Py_None) { _arg0 = NULL; }
7339 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7340 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7341 return NULL;
7342 }
7343 }
7344 {
7345 wxPy_BEGIN_ALLOW_THREADS;
7346 wxBrush & _result_ref = wxDC_GetBrush(_arg0);
7347 _result = (wxBrush *) &_result_ref;
7348
7349 wxPy_END_ALLOW_THREADS;
7350 if (PyErr_Occurred()) return NULL;
7351 } if (_result) {
7352 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7353 _resultobj = Py_BuildValue("s",_ptemp);
7354 } else {
7355 Py_INCREF(Py_None);
7356 _resultobj = Py_None;
7357 }
7358 return _resultobj;
7359 }
7360
7361 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7362 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7363 PyObject * _resultobj;
7364 long _result;
7365 wxDC * _arg0;
7366 PyObject * _argo0 = 0;
7367 char *_kwnames[] = { "self", NULL };
7368
7369 self = self;
7370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
7371 return NULL;
7372 if (_argo0) {
7373 if (_argo0 == Py_None) { _arg0 = NULL; }
7374 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7375 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7376 return NULL;
7377 }
7378 }
7379 {
7380 wxPy_BEGIN_ALLOW_THREADS;
7381 _result = (long )wxDC_GetCharHeight(_arg0);
7382
7383 wxPy_END_ALLOW_THREADS;
7384 if (PyErr_Occurred()) return NULL;
7385 } _resultobj = Py_BuildValue("l",_result);
7386 return _resultobj;
7387 }
7388
7389 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7390 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7391 PyObject * _resultobj;
7392 long _result;
7393 wxDC * _arg0;
7394 PyObject * _argo0 = 0;
7395 char *_kwnames[] = { "self", NULL };
7396
7397 self = self;
7398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
7399 return NULL;
7400 if (_argo0) {
7401 if (_argo0 == Py_None) { _arg0 = NULL; }
7402 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7403 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7404 return NULL;
7405 }
7406 }
7407 {
7408 wxPy_BEGIN_ALLOW_THREADS;
7409 _result = (long )wxDC_GetCharWidth(_arg0);
7410
7411 wxPy_END_ALLOW_THREADS;
7412 if (PyErr_Occurred()) return NULL;
7413 } _resultobj = Py_BuildValue("l",_result);
7414 return _resultobj;
7415 }
7416
7417 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7418 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7419 PyObject * _resultobj;
7420 wxDC * _arg0;
7421 long * _arg1;
7422 long temp;
7423 long * _arg2;
7424 long temp0;
7425 long * _arg3;
7426 long temp1;
7427 long * _arg4;
7428 long temp2;
7429 PyObject * _argo0 = 0;
7430 char *_kwnames[] = { "self", NULL };
7431
7432 self = self;
7433 {
7434 _arg1 = &temp;
7435 }
7436 {
7437 _arg2 = &temp0;
7438 }
7439 {
7440 _arg3 = &temp1;
7441 }
7442 {
7443 _arg4 = &temp2;
7444 }
7445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_kwnames,&_argo0))
7446 return NULL;
7447 if (_argo0) {
7448 if (_argo0 == Py_None) { _arg0 = NULL; }
7449 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7450 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetClippingBox. Expected _wxDC_p.");
7451 return NULL;
7452 }
7453 }
7454 {
7455 wxPy_BEGIN_ALLOW_THREADS;
7456 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
7457
7458 wxPy_END_ALLOW_THREADS;
7459 if (PyErr_Occurred()) return NULL;
7460 } Py_INCREF(Py_None);
7461 _resultobj = Py_None;
7462 {
7463 PyObject *o;
7464 o = PyInt_FromLong((long) (*_arg1));
7465 _resultobj = t_output_helper(_resultobj, o);
7466 }
7467 {
7468 PyObject *o;
7469 o = PyInt_FromLong((long) (*_arg2));
7470 _resultobj = t_output_helper(_resultobj, o);
7471 }
7472 {
7473 PyObject *o;
7474 o = PyInt_FromLong((long) (*_arg3));
7475 _resultobj = t_output_helper(_resultobj, o);
7476 }
7477 {
7478 PyObject *o;
7479 o = PyInt_FromLong((long) (*_arg4));
7480 _resultobj = t_output_helper(_resultobj, o);
7481 }
7482 return _resultobj;
7483 }
7484
7485 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7486 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7487 PyObject * _resultobj;
7488 wxFont * _result;
7489 wxDC * _arg0;
7490 PyObject * _argo0 = 0;
7491 char *_kwnames[] = { "self", NULL };
7492 char _ptemp[128];
7493
7494 self = self;
7495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
7496 return NULL;
7497 if (_argo0) {
7498 if (_argo0 == Py_None) { _arg0 = NULL; }
7499 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7500 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7501 return NULL;
7502 }
7503 }
7504 {
7505 wxPy_BEGIN_ALLOW_THREADS;
7506 wxFont & _result_ref = wxDC_GetFont(_arg0);
7507 _result = (wxFont *) &_result_ref;
7508
7509 wxPy_END_ALLOW_THREADS;
7510 if (PyErr_Occurred()) return NULL;
7511 } if (_result) {
7512 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
7513 _resultobj = Py_BuildValue("s",_ptemp);
7514 } else {
7515 Py_INCREF(Py_None);
7516 _resultobj = Py_None;
7517 }
7518 return _resultobj;
7519 }
7520
7521 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7522 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject * _resultobj;
7524 int _result;
7525 wxDC * _arg0;
7526 PyObject * _argo0 = 0;
7527 char *_kwnames[] = { "self", NULL };
7528
7529 self = self;
7530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
7531 return NULL;
7532 if (_argo0) {
7533 if (_argo0 == Py_None) { _arg0 = NULL; }
7534 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7535 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7536 return NULL;
7537 }
7538 }
7539 {
7540 wxPy_BEGIN_ALLOW_THREADS;
7541 _result = (int )wxDC_GetLogicalFunction(_arg0);
7542
7543 wxPy_END_ALLOW_THREADS;
7544 if (PyErr_Occurred()) return NULL;
7545 } _resultobj = Py_BuildValue("i",_result);
7546 return _resultobj;
7547 }
7548
7549 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7550 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7551 PyObject * _resultobj;
7552 wxDC * _arg0;
7553 double * _arg1;
7554 double temp;
7555 double * _arg2;
7556 double temp0;
7557 PyObject * _argo0 = 0;
7558 char *_kwnames[] = { "self", NULL };
7559
7560 self = self;
7561 {
7562 _arg1 = &temp;
7563 }
7564 {
7565 _arg2 = &temp0;
7566 }
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7568 return NULL;
7569 if (_argo0) {
7570 if (_argo0 == Py_None) { _arg0 = NULL; }
7571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7573 return NULL;
7574 }
7575 }
7576 {
7577 wxPy_BEGIN_ALLOW_THREADS;
7578 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7579
7580 wxPy_END_ALLOW_THREADS;
7581 if (PyErr_Occurred()) return NULL;
7582 } Py_INCREF(Py_None);
7583 _resultobj = Py_None;
7584 {
7585 PyObject *o;
7586 o = PyFloat_FromDouble((double) (*_arg1));
7587 _resultobj = t_output_helper(_resultobj, o);
7588 }
7589 {
7590 PyObject *o;
7591 o = PyFloat_FromDouble((double) (*_arg2));
7592 _resultobj = t_output_helper(_resultobj, o);
7593 }
7594 return _resultobj;
7595 }
7596
7597 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7598 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7599 PyObject * _resultobj;
7600 int _result;
7601 wxDC * _arg0;
7602 PyObject * _argo0 = 0;
7603 char *_kwnames[] = { "self", NULL };
7604
7605 self = self;
7606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
7607 return NULL;
7608 if (_argo0) {
7609 if (_argo0 == Py_None) { _arg0 = NULL; }
7610 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7611 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7612 return NULL;
7613 }
7614 }
7615 {
7616 wxPy_BEGIN_ALLOW_THREADS;
7617 _result = (int )wxDC_GetMapMode(_arg0);
7618
7619 wxPy_END_ALLOW_THREADS;
7620 if (PyErr_Occurred()) return NULL;
7621 } _resultobj = Py_BuildValue("i",_result);
7622 return _resultobj;
7623 }
7624
7625 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7626 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7627 PyObject * _resultobj;
7628 bool _result;
7629 wxDC * _arg0;
7630 PyObject * _argo0 = 0;
7631 char *_kwnames[] = { "self", NULL };
7632
7633 self = self;
7634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
7635 return NULL;
7636 if (_argo0) {
7637 if (_argo0 == Py_None) { _arg0 = NULL; }
7638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7640 return NULL;
7641 }
7642 }
7643 {
7644 wxPy_BEGIN_ALLOW_THREADS;
7645 _result = (bool )wxDC_GetOptimization(_arg0);
7646
7647 wxPy_END_ALLOW_THREADS;
7648 if (PyErr_Occurred()) return NULL;
7649 } _resultobj = Py_BuildValue("i",_result);
7650 return _resultobj;
7651 }
7652
7653 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7654 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7655 PyObject * _resultobj;
7656 wxPen * _result;
7657 wxDC * _arg0;
7658 PyObject * _argo0 = 0;
7659 char *_kwnames[] = { "self", NULL };
7660 char _ptemp[128];
7661
7662 self = self;
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_kwnames,&_argo0))
7664 return NULL;
7665 if (_argo0) {
7666 if (_argo0 == Py_None) { _arg0 = NULL; }
7667 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7668 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPen. Expected _wxDC_p.");
7669 return NULL;
7670 }
7671 }
7672 {
7673 wxPy_BEGIN_ALLOW_THREADS;
7674 wxPen & _result_ref = wxDC_GetPen(_arg0);
7675 _result = (wxPen *) &_result_ref;
7676
7677 wxPy_END_ALLOW_THREADS;
7678 if (PyErr_Occurred()) return NULL;
7679 } if (_result) {
7680 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
7681 _resultobj = Py_BuildValue("s",_ptemp);
7682 } else {
7683 Py_INCREF(Py_None);
7684 _resultobj = Py_None;
7685 }
7686 return _resultobj;
7687 }
7688
7689 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7690 wxColour* wc = new wxColour();
7691 self->GetPixel(x, y, wc);
7692 return wc;
7693 }
7694 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7695 PyObject * _resultobj;
7696 wxColour * _result;
7697 wxDC * _arg0;
7698 long _arg1;
7699 long _arg2;
7700 PyObject * _argo0 = 0;
7701 char *_kwnames[] = { "self","x","y", NULL };
7702 char _ptemp[128];
7703
7704 self = self;
7705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
7706 return NULL;
7707 if (_argo0) {
7708 if (_argo0 == Py_None) { _arg0 = NULL; }
7709 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7710 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7711 return NULL;
7712 }
7713 }
7714 {
7715 wxPy_BEGIN_ALLOW_THREADS;
7716 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7717
7718 wxPy_END_ALLOW_THREADS;
7719 if (PyErr_Occurred()) return NULL;
7720 } if (_result) {
7721 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7722 _resultobj = Py_BuildValue("s",_ptemp);
7723 } else {
7724 Py_INCREF(Py_None);
7725 _resultobj = Py_None;
7726 }
7727 return _resultobj;
7728 }
7729
7730 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7731 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7732 PyObject * _resultobj;
7733 wxDC * _arg0;
7734 int * _arg1;
7735 int temp;
7736 int * _arg2;
7737 int temp0;
7738 PyObject * _argo0 = 0;
7739 char *_kwnames[] = { "self", NULL };
7740
7741 self = self;
7742 {
7743 _arg1 = &temp;
7744 }
7745 {
7746 _arg2 = &temp0;
7747 }
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
7749 return NULL;
7750 if (_argo0) {
7751 if (_argo0 == Py_None) { _arg0 = NULL; }
7752 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7753 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7754 return NULL;
7755 }
7756 }
7757 {
7758 wxPy_BEGIN_ALLOW_THREADS;
7759 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
7760
7761 wxPy_END_ALLOW_THREADS;
7762 if (PyErr_Occurred()) return NULL;
7763 } Py_INCREF(Py_None);
7764 _resultobj = Py_None;
7765 {
7766 PyObject *o;
7767 o = PyInt_FromLong((long) (*_arg1));
7768 _resultobj = t_output_helper(_resultobj, o);
7769 }
7770 {
7771 PyObject *o;
7772 o = PyInt_FromLong((long) (*_arg2));
7773 _resultobj = t_output_helper(_resultobj, o);
7774 }
7775 return _resultobj;
7776 }
7777
7778 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7779 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7780 PyObject * _resultobj;
7781 wxSize * _result;
7782 wxDC * _arg0;
7783 PyObject * _argo0 = 0;
7784 char *_kwnames[] = { "self", NULL };
7785 char _ptemp[128];
7786
7787 self = self;
7788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
7789 return NULL;
7790 if (_argo0) {
7791 if (_argo0 == Py_None) { _arg0 = NULL; }
7792 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7793 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7794 return NULL;
7795 }
7796 }
7797 {
7798 wxPy_BEGIN_ALLOW_THREADS;
7799 _result = new wxSize (wxDC_GetSize(_arg0));
7800
7801 wxPy_END_ALLOW_THREADS;
7802 if (PyErr_Occurred()) return NULL;
7803 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7804 _resultobj = Py_BuildValue("s",_ptemp);
7805 return _resultobj;
7806 }
7807
7808 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7809 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7810 PyObject * _resultobj;
7811 wxSize * _result;
7812 wxDC * _arg0;
7813 PyObject * _argo0 = 0;
7814 char *_kwnames[] = { "self", NULL };
7815 char _ptemp[128];
7816
7817 self = self;
7818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7819 return NULL;
7820 if (_argo0) {
7821 if (_argo0 == Py_None) { _arg0 = NULL; }
7822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7824 return NULL;
7825 }
7826 }
7827 {
7828 wxPy_BEGIN_ALLOW_THREADS;
7829 _result = new wxSize (wxDC_GetSizeMM(_arg0));
7830
7831 wxPy_END_ALLOW_THREADS;
7832 if (PyErr_Occurred()) return NULL;
7833 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7834 _resultobj = Py_BuildValue("s",_ptemp);
7835 return _resultobj;
7836 }
7837
7838 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7839 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7840 PyObject * _resultobj;
7841 wxColour * _result;
7842 wxDC * _arg0;
7843 PyObject * _argo0 = 0;
7844 char *_kwnames[] = { "self", NULL };
7845 char _ptemp[128];
7846
7847 self = self;
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
7849 return NULL;
7850 if (_argo0) {
7851 if (_argo0 == Py_None) { _arg0 = NULL; }
7852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7854 return NULL;
7855 }
7856 }
7857 {
7858 wxPy_BEGIN_ALLOW_THREADS;
7859 _result = new wxColour (wxDC_GetTextBackground(_arg0));
7860
7861 wxPy_END_ALLOW_THREADS;
7862 if (PyErr_Occurred()) return NULL;
7863 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7864 _resultobj = Py_BuildValue("s",_ptemp);
7865 return _resultobj;
7866 }
7867
7868 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7869 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7870 PyObject * _resultobj;
7871 wxDC * _arg0;
7872 wxString * _arg1;
7873 long * _arg2;
7874 long temp;
7875 long * _arg3;
7876 long temp0;
7877 PyObject * _argo0 = 0;
7878 PyObject * _obj1 = 0;
7879 char *_kwnames[] = { "self","string", NULL };
7880
7881 self = self;
7882 {
7883 _arg2 = &temp;
7884 }
7885 {
7886 _arg3 = &temp0;
7887 }
7888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
7889 return NULL;
7890 if (_argo0) {
7891 if (_argo0 == Py_None) { _arg0 = NULL; }
7892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7894 return NULL;
7895 }
7896 }
7897 {
7898 #if PYTHON_API_VERSION >= 1009
7899 char* tmpPtr; int tmpSize;
7900 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7901 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7902 return NULL;
7903 }
7904 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7905 return NULL;
7906 _arg1 = new wxString(tmpPtr, tmpSize);
7907 #else
7908 if (!PyString_Check(_obj1)) {
7909 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7910 return NULL;
7911 }
7912 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7913 #endif
7914 }
7915 {
7916 wxPy_BEGIN_ALLOW_THREADS;
7917 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
7918
7919 wxPy_END_ALLOW_THREADS;
7920 if (PyErr_Occurred()) return NULL;
7921 } Py_INCREF(Py_None);
7922 _resultobj = Py_None;
7923 {
7924 PyObject *o;
7925 o = PyInt_FromLong((long) (*_arg2));
7926 _resultobj = t_output_helper(_resultobj, o);
7927 }
7928 {
7929 PyObject *o;
7930 o = PyInt_FromLong((long) (*_arg3));
7931 _resultobj = t_output_helper(_resultobj, o);
7932 }
7933 {
7934 if (_obj1)
7935 delete _arg1;
7936 }
7937 return _resultobj;
7938 }
7939
7940 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
7941 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7942 PyObject * _resultobj;
7943 wxDC * _arg0;
7944 wxString * _arg1;
7945 long * _arg2;
7946 long temp;
7947 long * _arg3;
7948 long temp0;
7949 long * _arg4;
7950 long temp1;
7951 long * _arg5;
7952 long temp2;
7953 wxFont * _arg6 = (wxFont *) NULL;
7954 PyObject * _argo0 = 0;
7955 PyObject * _obj1 = 0;
7956 PyObject * _argo6 = 0;
7957 char *_kwnames[] = { "self","string","font", NULL };
7958
7959 self = self;
7960 {
7961 _arg2 = &temp;
7962 }
7963 {
7964 _arg3 = &temp0;
7965 }
7966 {
7967 _arg4 = &temp1;
7968 }
7969 {
7970 _arg5 = &temp2;
7971 }
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
7973 return NULL;
7974 if (_argo0) {
7975 if (_argo0 == Py_None) { _arg0 = NULL; }
7976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
7978 return NULL;
7979 }
7980 }
7981 {
7982 #if PYTHON_API_VERSION >= 1009
7983 char* tmpPtr; int tmpSize;
7984 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7985 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7986 return NULL;
7987 }
7988 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7989 return NULL;
7990 _arg1 = new wxString(tmpPtr, tmpSize);
7991 #else
7992 if (!PyString_Check(_obj1)) {
7993 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7994 return NULL;
7995 }
7996 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7997 #endif
7998 }
7999 if (_argo6) {
8000 if (_argo6 == Py_None) { _arg6 = NULL; }
8001 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8002 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8003 return NULL;
8004 }
8005 }
8006 {
8007 wxPy_BEGIN_ALLOW_THREADS;
8008 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8009
8010 wxPy_END_ALLOW_THREADS;
8011 if (PyErr_Occurred()) return NULL;
8012 } Py_INCREF(Py_None);
8013 _resultobj = Py_None;
8014 {
8015 PyObject *o;
8016 o = PyInt_FromLong((long) (*_arg2));
8017 _resultobj = t_output_helper(_resultobj, o);
8018 }
8019 {
8020 PyObject *o;
8021 o = PyInt_FromLong((long) (*_arg3));
8022 _resultobj = t_output_helper(_resultobj, o);
8023 }
8024 {
8025 PyObject *o;
8026 o = PyInt_FromLong((long) (*_arg4));
8027 _resultobj = t_output_helper(_resultobj, o);
8028 }
8029 {
8030 PyObject *o;
8031 o = PyInt_FromLong((long) (*_arg5));
8032 _resultobj = t_output_helper(_resultobj, o);
8033 }
8034 {
8035 if (_obj1)
8036 delete _arg1;
8037 }
8038 return _resultobj;
8039 }
8040
8041 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8042 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8043 PyObject * _resultobj;
8044 wxColour * _result;
8045 wxDC * _arg0;
8046 PyObject * _argo0 = 0;
8047 char *_kwnames[] = { "self", NULL };
8048 char _ptemp[128];
8049
8050 self = self;
8051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8052 return NULL;
8053 if (_argo0) {
8054 if (_argo0 == Py_None) { _arg0 = NULL; }
8055 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8056 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8057 return NULL;
8058 }
8059 }
8060 {
8061 wxPy_BEGIN_ALLOW_THREADS;
8062 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8063
8064 wxPy_END_ALLOW_THREADS;
8065 if (PyErr_Occurred()) return NULL;
8066 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8067 _resultobj = Py_BuildValue("s",_ptemp);
8068 return _resultobj;
8069 }
8070
8071 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8072 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8073 PyObject * _resultobj;
8074 wxDC * _arg0;
8075 double * _arg1;
8076 double temp;
8077 double * _arg2;
8078 double temp0;
8079 PyObject * _argo0 = 0;
8080 char *_kwnames[] = { "self", NULL };
8081
8082 self = self;
8083 {
8084 _arg1 = &temp;
8085 }
8086 {
8087 _arg2 = &temp0;
8088 }
8089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
8090 return NULL;
8091 if (_argo0) {
8092 if (_argo0 == Py_None) { _arg0 = NULL; }
8093 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8094 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8095 return NULL;
8096 }
8097 }
8098 {
8099 wxPy_BEGIN_ALLOW_THREADS;
8100 wxDC_GetUserScale(_arg0,_arg1,_arg2);
8101
8102 wxPy_END_ALLOW_THREADS;
8103 if (PyErr_Occurred()) return NULL;
8104 } Py_INCREF(Py_None);
8105 _resultobj = Py_None;
8106 {
8107 PyObject *o;
8108 o = PyFloat_FromDouble((double) (*_arg1));
8109 _resultobj = t_output_helper(_resultobj, o);
8110 }
8111 {
8112 PyObject *o;
8113 o = PyFloat_FromDouble((double) (*_arg2));
8114 _resultobj = t_output_helper(_resultobj, o);
8115 }
8116 return _resultobj;
8117 }
8118
8119 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8120 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
8121 PyObject * _resultobj;
8122 long _result;
8123 wxDC * _arg0;
8124 long _arg1;
8125 PyObject * _argo0 = 0;
8126 char *_kwnames[] = { "self","x", NULL };
8127
8128 self = self;
8129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
8130 return NULL;
8131 if (_argo0) {
8132 if (_argo0 == Py_None) { _arg0 = NULL; }
8133 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8134 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8135 return NULL;
8136 }
8137 }
8138 {
8139 wxPy_BEGIN_ALLOW_THREADS;
8140 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
8141
8142 wxPy_END_ALLOW_THREADS;
8143 if (PyErr_Occurred()) return NULL;
8144 } _resultobj = Py_BuildValue("l",_result);
8145 return _resultobj;
8146 }
8147
8148 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8149 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8150 PyObject * _resultobj;
8151 long _result;
8152 wxDC * _arg0;
8153 long _arg1;
8154 PyObject * _argo0 = 0;
8155 char *_kwnames[] = { "self","x", NULL };
8156
8157 self = self;
8158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
8159 return NULL;
8160 if (_argo0) {
8161 if (_argo0 == Py_None) { _arg0 = NULL; }
8162 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8163 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8164 return NULL;
8165 }
8166 }
8167 {
8168 wxPy_BEGIN_ALLOW_THREADS;
8169 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
8170
8171 wxPy_END_ALLOW_THREADS;
8172 if (PyErr_Occurred()) return NULL;
8173 } _resultobj = Py_BuildValue("l",_result);
8174 return _resultobj;
8175 }
8176
8177 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8178 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
8179 PyObject * _resultobj;
8180 long _result;
8181 wxDC * _arg0;
8182 long _arg1;
8183 PyObject * _argo0 = 0;
8184 char *_kwnames[] = { "self","y", NULL };
8185
8186 self = self;
8187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
8188 return NULL;
8189 if (_argo0) {
8190 if (_argo0 == Py_None) { _arg0 = NULL; }
8191 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8192 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceY. Expected _wxDC_p.");
8193 return NULL;
8194 }
8195 }
8196 {
8197 wxPy_BEGIN_ALLOW_THREADS;
8198 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
8199
8200 wxPy_END_ALLOW_THREADS;
8201 if (PyErr_Occurred()) return NULL;
8202 } _resultobj = Py_BuildValue("l",_result);
8203 return _resultobj;
8204 }
8205
8206 #define wxDC_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8207 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8208 PyObject * _resultobj;
8209 long _result;
8210 wxDC * _arg0;
8211 long _arg1;
8212 PyObject * _argo0 = 0;
8213 char *_kwnames[] = { "self","y", NULL };
8214
8215 self = self;
8216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
8217 return NULL;
8218 if (_argo0) {
8219 if (_argo0 == Py_None) { _arg0 = NULL; }
8220 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8221 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8222 return NULL;
8223 }
8224 }
8225 {
8226 wxPy_BEGIN_ALLOW_THREADS;
8227 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
8228
8229 wxPy_END_ALLOW_THREADS;
8230 if (PyErr_Occurred()) return NULL;
8231 } _resultobj = Py_BuildValue("l",_result);
8232 return _resultobj;
8233 }
8234
8235 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8236 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
8237 PyObject * _resultobj;
8238 long _result;
8239 wxDC * _arg0;
8240 PyObject * _argo0 = 0;
8241 char *_kwnames[] = { "self", NULL };
8242
8243 self = self;
8244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
8245 return NULL;
8246 if (_argo0) {
8247 if (_argo0 == Py_None) { _arg0 = NULL; }
8248 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8249 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8250 return NULL;
8251 }
8252 }
8253 {
8254 wxPy_BEGIN_ALLOW_THREADS;
8255 _result = (long )wxDC_MaxX(_arg0);
8256
8257 wxPy_END_ALLOW_THREADS;
8258 if (PyErr_Occurred()) return NULL;
8259 } _resultobj = Py_BuildValue("l",_result);
8260 return _resultobj;
8261 }
8262
8263 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8264 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
8265 PyObject * _resultobj;
8266 long _result;
8267 wxDC * _arg0;
8268 PyObject * _argo0 = 0;
8269 char *_kwnames[] = { "self", NULL };
8270
8271 self = self;
8272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
8273 return NULL;
8274 if (_argo0) {
8275 if (_argo0 == Py_None) { _arg0 = NULL; }
8276 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8277 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8278 return NULL;
8279 }
8280 }
8281 {
8282 wxPy_BEGIN_ALLOW_THREADS;
8283 _result = (long )wxDC_MaxY(_arg0);
8284
8285 wxPy_END_ALLOW_THREADS;
8286 if (PyErr_Occurred()) return NULL;
8287 } _resultobj = Py_BuildValue("l",_result);
8288 return _resultobj;
8289 }
8290
8291 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8292 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
8293 PyObject * _resultobj;
8294 long _result;
8295 wxDC * _arg0;
8296 PyObject * _argo0 = 0;
8297 char *_kwnames[] = { "self", NULL };
8298
8299 self = self;
8300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
8301 return NULL;
8302 if (_argo0) {
8303 if (_argo0 == Py_None) { _arg0 = NULL; }
8304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinX. Expected _wxDC_p.");
8306 return NULL;
8307 }
8308 }
8309 {
8310 wxPy_BEGIN_ALLOW_THREADS;
8311 _result = (long )wxDC_MinX(_arg0);
8312
8313 wxPy_END_ALLOW_THREADS;
8314 if (PyErr_Occurred()) return NULL;
8315 } _resultobj = Py_BuildValue("l",_result);
8316 return _resultobj;
8317 }
8318
8319 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8320 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
8321 PyObject * _resultobj;
8322 long _result;
8323 wxDC * _arg0;
8324 PyObject * _argo0 = 0;
8325 char *_kwnames[] = { "self", NULL };
8326
8327 self = self;
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
8329 return NULL;
8330 if (_argo0) {
8331 if (_argo0 == Py_None) { _arg0 = NULL; }
8332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8334 return NULL;
8335 }
8336 }
8337 {
8338 wxPy_BEGIN_ALLOW_THREADS;
8339 _result = (long )wxDC_MinY(_arg0);
8340
8341 wxPy_END_ALLOW_THREADS;
8342 if (PyErr_Occurred()) return NULL;
8343 } _resultobj = Py_BuildValue("l",_result);
8344 return _resultobj;
8345 }
8346
8347 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8348 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8349 PyObject * _resultobj;
8350 bool _result;
8351 wxDC * _arg0;
8352 PyObject * _argo0 = 0;
8353 char *_kwnames[] = { "self", NULL };
8354
8355 self = self;
8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
8357 return NULL;
8358 if (_argo0) {
8359 if (_argo0 == Py_None) { _arg0 = NULL; }
8360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8362 return NULL;
8363 }
8364 }
8365 {
8366 wxPy_BEGIN_ALLOW_THREADS;
8367 _result = (bool )wxDC_Ok(_arg0);
8368
8369 wxPy_END_ALLOW_THREADS;
8370 if (PyErr_Occurred()) return NULL;
8371 } _resultobj = Py_BuildValue("i",_result);
8372 return _resultobj;
8373 }
8374
8375 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8376 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8377 PyObject * _resultobj;
8378 wxDC * _arg0;
8379 long _arg1;
8380 long _arg2;
8381 PyObject * _argo0 = 0;
8382 char *_kwnames[] = { "self","x","y", NULL };
8383
8384 self = self;
8385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8386 return NULL;
8387 if (_argo0) {
8388 if (_argo0 == Py_None) { _arg0 = NULL; }
8389 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8390 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8391 return NULL;
8392 }
8393 }
8394 {
8395 wxPy_BEGIN_ALLOW_THREADS;
8396 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
8397
8398 wxPy_END_ALLOW_THREADS;
8399 if (PyErr_Occurred()) return NULL;
8400 } Py_INCREF(Py_None);
8401 _resultobj = Py_None;
8402 return _resultobj;
8403 }
8404
8405 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8406 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8407 PyObject * _resultobj;
8408 wxDC * _arg0;
8409 wxBrush * _arg1;
8410 PyObject * _argo0 = 0;
8411 PyObject * _argo1 = 0;
8412 char *_kwnames[] = { "self","brush", NULL };
8413
8414 self = self;
8415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
8416 return NULL;
8417 if (_argo0) {
8418 if (_argo0 == Py_None) { _arg0 = NULL; }
8419 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8420 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8421 return NULL;
8422 }
8423 }
8424 if (_argo1) {
8425 if (_argo1 == Py_None) { _arg1 = NULL; }
8426 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8427 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8428 return NULL;
8429 }
8430 }
8431 {
8432 wxPy_BEGIN_ALLOW_THREADS;
8433 wxDC_SetBackground(_arg0,*_arg1);
8434
8435 wxPy_END_ALLOW_THREADS;
8436 if (PyErr_Occurred()) return NULL;
8437 } Py_INCREF(Py_None);
8438 _resultobj = Py_None;
8439 return _resultobj;
8440 }
8441
8442 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8443 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8444 PyObject * _resultobj;
8445 wxDC * _arg0;
8446 int _arg1;
8447 PyObject * _argo0 = 0;
8448 char *_kwnames[] = { "self","mode", NULL };
8449
8450 self = self;
8451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
8452 return NULL;
8453 if (_argo0) {
8454 if (_argo0 == Py_None) { _arg0 = NULL; }
8455 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8456 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8457 return NULL;
8458 }
8459 }
8460 {
8461 wxPy_BEGIN_ALLOW_THREADS;
8462 wxDC_SetBackgroundMode(_arg0,_arg1);
8463
8464 wxPy_END_ALLOW_THREADS;
8465 if (PyErr_Occurred()) return NULL;
8466 } Py_INCREF(Py_None);
8467 _resultobj = Py_None;
8468 return _resultobj;
8469 }
8470
8471 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8472 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8473 PyObject * _resultobj;
8474 wxDC * _arg0;
8475 long _arg1;
8476 long _arg2;
8477 long _arg3;
8478 long _arg4;
8479 PyObject * _argo0 = 0;
8480 char *_kwnames[] = { "self","x","y","width","height", NULL };
8481
8482 self = self;
8483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
8484 return NULL;
8485 if (_argo0) {
8486 if (_argo0 == Py_None) { _arg0 = NULL; }
8487 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8488 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8489 return NULL;
8490 }
8491 }
8492 {
8493 wxPy_BEGIN_ALLOW_THREADS;
8494 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
8495
8496 wxPy_END_ALLOW_THREADS;
8497 if (PyErr_Occurred()) return NULL;
8498 } Py_INCREF(Py_None);
8499 _resultobj = Py_None;
8500 return _resultobj;
8501 }
8502
8503 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8504 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8505 PyObject * _resultobj;
8506 wxDC * _arg0;
8507 wxRegion * _arg1;
8508 PyObject * _argo0 = 0;
8509 PyObject * _argo1 = 0;
8510 char *_kwnames[] = { "self","region", NULL };
8511
8512 self = self;
8513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8514 return NULL;
8515 if (_argo0) {
8516 if (_argo0 == Py_None) { _arg0 = NULL; }
8517 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8518 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8519 return NULL;
8520 }
8521 }
8522 if (_argo1) {
8523 if (_argo1 == Py_None) { _arg1 = NULL; }
8524 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8525 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8526 return NULL;
8527 }
8528 }
8529 {
8530 wxPy_BEGIN_ALLOW_THREADS;
8531 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8532
8533 wxPy_END_ALLOW_THREADS;
8534 if (PyErr_Occurred()) return NULL;
8535 } Py_INCREF(Py_None);
8536 _resultobj = Py_None;
8537 return _resultobj;
8538 }
8539
8540 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8541 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8542 PyObject * _resultobj;
8543 wxDC * _arg0;
8544 wxPalette * _arg1;
8545 PyObject * _argo0 = 0;
8546 PyObject * _argo1 = 0;
8547 char *_kwnames[] = { "self","colourMap", NULL };
8548
8549 self = self;
8550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
8551 return NULL;
8552 if (_argo0) {
8553 if (_argo0 == Py_None) { _arg0 = NULL; }
8554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8556 return NULL;
8557 }
8558 }
8559 if (_argo1) {
8560 if (_argo1 == Py_None) { _arg1 = NULL; }
8561 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
8562 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8563 return NULL;
8564 }
8565 }
8566 {
8567 wxPy_BEGIN_ALLOW_THREADS;
8568 wxDC_SetPalette(_arg0,*_arg1);
8569
8570 wxPy_END_ALLOW_THREADS;
8571 if (PyErr_Occurred()) return NULL;
8572 } Py_INCREF(Py_None);
8573 _resultobj = Py_None;
8574 return _resultobj;
8575 }
8576
8577 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8578 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8579 PyObject * _resultobj;
8580 wxDC * _arg0;
8581 wxBrush * _arg1;
8582 PyObject * _argo0 = 0;
8583 PyObject * _argo1 = 0;
8584 char *_kwnames[] = { "self","brush", NULL };
8585
8586 self = self;
8587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
8588 return NULL;
8589 if (_argo0) {
8590 if (_argo0 == Py_None) { _arg0 = NULL; }
8591 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8592 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8593 return NULL;
8594 }
8595 }
8596 if (_argo1) {
8597 if (_argo1 == Py_None) { _arg1 = NULL; }
8598 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8599 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8600 return NULL;
8601 }
8602 }
8603 {
8604 wxPy_BEGIN_ALLOW_THREADS;
8605 wxDC_SetBrush(_arg0,*_arg1);
8606
8607 wxPy_END_ALLOW_THREADS;
8608 if (PyErr_Occurred()) return NULL;
8609 } Py_INCREF(Py_None);
8610 _resultobj = Py_None;
8611 return _resultobj;
8612 }
8613
8614 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8615 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8616 PyObject * _resultobj;
8617 wxDC * _arg0;
8618 wxFont * _arg1;
8619 PyObject * _argo0 = 0;
8620 PyObject * _argo1 = 0;
8621 char *_kwnames[] = { "self","font", NULL };
8622
8623 self = self;
8624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
8625 return NULL;
8626 if (_argo0) {
8627 if (_argo0 == Py_None) { _arg0 = NULL; }
8628 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8629 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8630 return NULL;
8631 }
8632 }
8633 if (_argo1) {
8634 if (_argo1 == Py_None) { _arg1 = NULL; }
8635 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
8636 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8637 return NULL;
8638 }
8639 }
8640 {
8641 wxPy_BEGIN_ALLOW_THREADS;
8642 wxDC_SetFont(_arg0,*_arg1);
8643
8644 wxPy_END_ALLOW_THREADS;
8645 if (PyErr_Occurred()) return NULL;
8646 } Py_INCREF(Py_None);
8647 _resultobj = Py_None;
8648 return _resultobj;
8649 }
8650
8651 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8652 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8653 PyObject * _resultobj;
8654 wxDC * _arg0;
8655 int _arg1;
8656 PyObject * _argo0 = 0;
8657 char *_kwnames[] = { "self","function", NULL };
8658
8659 self = self;
8660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
8661 return NULL;
8662 if (_argo0) {
8663 if (_argo0 == Py_None) { _arg0 = NULL; }
8664 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8665 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8666 return NULL;
8667 }
8668 }
8669 {
8670 wxPy_BEGIN_ALLOW_THREADS;
8671 wxDC_SetLogicalFunction(_arg0,_arg1);
8672
8673 wxPy_END_ALLOW_THREADS;
8674 if (PyErr_Occurred()) return NULL;
8675 } Py_INCREF(Py_None);
8676 _resultobj = Py_None;
8677 return _resultobj;
8678 }
8679
8680 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8681 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8682 PyObject * _resultobj;
8683 wxDC * _arg0;
8684 double _arg1;
8685 double _arg2;
8686 PyObject * _argo0 = 0;
8687 char *_kwnames[] = { "self","x","y", NULL };
8688
8689 self = self;
8690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8691 return NULL;
8692 if (_argo0) {
8693 if (_argo0 == Py_None) { _arg0 = NULL; }
8694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8696 return NULL;
8697 }
8698 }
8699 {
8700 wxPy_BEGIN_ALLOW_THREADS;
8701 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8702
8703 wxPy_END_ALLOW_THREADS;
8704 if (PyErr_Occurred()) return NULL;
8705 } Py_INCREF(Py_None);
8706 _resultobj = Py_None;
8707 return _resultobj;
8708 }
8709
8710 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8711 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8712 PyObject * _resultobj;
8713 wxDC * _arg0;
8714 int _arg1;
8715 PyObject * _argo0 = 0;
8716 char *_kwnames[] = { "self","mode", NULL };
8717
8718 self = self;
8719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
8720 return NULL;
8721 if (_argo0) {
8722 if (_argo0 == Py_None) { _arg0 = NULL; }
8723 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8724 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8725 return NULL;
8726 }
8727 }
8728 {
8729 wxPy_BEGIN_ALLOW_THREADS;
8730 wxDC_SetMapMode(_arg0,_arg1);
8731
8732 wxPy_END_ALLOW_THREADS;
8733 if (PyErr_Occurred()) return NULL;
8734 } Py_INCREF(Py_None);
8735 _resultobj = Py_None;
8736 return _resultobj;
8737 }
8738
8739 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8740 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8741 PyObject * _resultobj;
8742 wxDC * _arg0;
8743 bool _arg1;
8744 PyObject * _argo0 = 0;
8745 int tempbool1;
8746 char *_kwnames[] = { "self","optimize", NULL };
8747
8748 self = self;
8749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
8750 return NULL;
8751 if (_argo0) {
8752 if (_argo0 == Py_None) { _arg0 = NULL; }
8753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8755 return NULL;
8756 }
8757 }
8758 _arg1 = (bool ) tempbool1;
8759 {
8760 wxPy_BEGIN_ALLOW_THREADS;
8761 wxDC_SetOptimization(_arg0,_arg1);
8762
8763 wxPy_END_ALLOW_THREADS;
8764 if (PyErr_Occurred()) return NULL;
8765 } Py_INCREF(Py_None);
8766 _resultobj = Py_None;
8767 return _resultobj;
8768 }
8769
8770 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8771 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8772 PyObject * _resultobj;
8773 wxDC * _arg0;
8774 wxPen * _arg1;
8775 PyObject * _argo0 = 0;
8776 PyObject * _argo1 = 0;
8777 char *_kwnames[] = { "self","pen", NULL };
8778
8779 self = self;
8780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
8781 return NULL;
8782 if (_argo0) {
8783 if (_argo0 == Py_None) { _arg0 = NULL; }
8784 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8785 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8786 return NULL;
8787 }
8788 }
8789 if (_argo1) {
8790 if (_argo1 == Py_None) { _arg1 = NULL; }
8791 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
8792 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8793 return NULL;
8794 }
8795 }
8796 {
8797 wxPy_BEGIN_ALLOW_THREADS;
8798 wxDC_SetPen(_arg0,*_arg1);
8799
8800 wxPy_END_ALLOW_THREADS;
8801 if (PyErr_Occurred()) return NULL;
8802 } Py_INCREF(Py_None);
8803 _resultobj = Py_None;
8804 return _resultobj;
8805 }
8806
8807 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8808 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8809 PyObject * _resultobj;
8810 wxDC * _arg0;
8811 wxColour * _arg1;
8812 PyObject * _argo0 = 0;
8813 wxColour temp;
8814 PyObject * _obj1 = 0;
8815 char *_kwnames[] = { "self","colour", NULL };
8816
8817 self = self;
8818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
8819 return NULL;
8820 if (_argo0) {
8821 if (_argo0 == Py_None) { _arg0 = NULL; }
8822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8824 return NULL;
8825 }
8826 }
8827 {
8828 _arg1 = &temp;
8829 if (! wxColour_helper(_obj1, &_arg1))
8830 return NULL;
8831 }
8832 {
8833 wxPy_BEGIN_ALLOW_THREADS;
8834 wxDC_SetTextBackground(_arg0,*_arg1);
8835
8836 wxPy_END_ALLOW_THREADS;
8837 if (PyErr_Occurred()) return NULL;
8838 } Py_INCREF(Py_None);
8839 _resultobj = Py_None;
8840 return _resultobj;
8841 }
8842
8843 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8844 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8845 PyObject * _resultobj;
8846 wxDC * _arg0;
8847 wxColour * _arg1;
8848 PyObject * _argo0 = 0;
8849 wxColour temp;
8850 PyObject * _obj1 = 0;
8851 char *_kwnames[] = { "self","colour", NULL };
8852
8853 self = self;
8854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
8855 return NULL;
8856 if (_argo0) {
8857 if (_argo0 == Py_None) { _arg0 = NULL; }
8858 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8859 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8860 return NULL;
8861 }
8862 }
8863 {
8864 _arg1 = &temp;
8865 if (! wxColour_helper(_obj1, &_arg1))
8866 return NULL;
8867 }
8868 {
8869 wxPy_BEGIN_ALLOW_THREADS;
8870 wxDC_SetTextForeground(_arg0,*_arg1);
8871
8872 wxPy_END_ALLOW_THREADS;
8873 if (PyErr_Occurred()) return NULL;
8874 } Py_INCREF(Py_None);
8875 _resultobj = Py_None;
8876 return _resultobj;
8877 }
8878
8879 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8880 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8881 PyObject * _resultobj;
8882 wxDC * _arg0;
8883 double _arg1;
8884 double _arg2;
8885 PyObject * _argo0 = 0;
8886 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
8887
8888 self = self;
8889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
8890 return NULL;
8891 if (_argo0) {
8892 if (_argo0 == Py_None) { _arg0 = NULL; }
8893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8895 return NULL;
8896 }
8897 }
8898 {
8899 wxPy_BEGIN_ALLOW_THREADS;
8900 wxDC_SetUserScale(_arg0,_arg1,_arg2);
8901
8902 wxPy_END_ALLOW_THREADS;
8903 if (PyErr_Occurred()) return NULL;
8904 } Py_INCREF(Py_None);
8905 _resultobj = Py_None;
8906 return _resultobj;
8907 }
8908
8909 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8910 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8911 PyObject * _resultobj;
8912 bool _result;
8913 wxDC * _arg0;
8914 wxString * _arg1;
8915 PyObject * _argo0 = 0;
8916 PyObject * _obj1 = 0;
8917 char *_kwnames[] = { "self","message", NULL };
8918
8919 self = self;
8920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
8921 return NULL;
8922 if (_argo0) {
8923 if (_argo0 == Py_None) { _arg0 = NULL; }
8924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
8926 return NULL;
8927 }
8928 }
8929 {
8930 #if PYTHON_API_VERSION >= 1009
8931 char* tmpPtr; int tmpSize;
8932 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8933 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8934 return NULL;
8935 }
8936 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8937 return NULL;
8938 _arg1 = new wxString(tmpPtr, tmpSize);
8939 #else
8940 if (!PyString_Check(_obj1)) {
8941 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8942 return NULL;
8943 }
8944 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8945 #endif
8946 }
8947 {
8948 wxPy_BEGIN_ALLOW_THREADS;
8949 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
8950
8951 wxPy_END_ALLOW_THREADS;
8952 if (PyErr_Occurred()) return NULL;
8953 } _resultobj = Py_BuildValue("i",_result);
8954 {
8955 if (_obj1)
8956 delete _arg1;
8957 }
8958 return _resultobj;
8959 }
8960
8961 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
8962 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
8963 PyObject * _resultobj;
8964 wxDC * _arg0;
8965 PyObject * _argo0 = 0;
8966 char *_kwnames[] = { "self", NULL };
8967
8968 self = self;
8969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
8970 return NULL;
8971 if (_argo0) {
8972 if (_argo0 == Py_None) { _arg0 = NULL; }
8973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
8975 return NULL;
8976 }
8977 }
8978 {
8979 wxPy_BEGIN_ALLOW_THREADS;
8980 wxDC_StartPage(_arg0);
8981
8982 wxPy_END_ALLOW_THREADS;
8983 if (PyErr_Occurred()) return NULL;
8984 } Py_INCREF(Py_None);
8985 _resultobj = Py_None;
8986 return _resultobj;
8987 }
8988
8989 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8990 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
8991 PyObject * _resultobj;
8992 wxDC * _arg0;
8993 wxBitmap * _arg1;
8994 long _arg2;
8995 long _arg3;
8996 int _arg4 = (int ) FALSE;
8997 PyObject * _argo0 = 0;
8998 PyObject * _argo1 = 0;
8999 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9000
9001 self = self;
9002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9003 return NULL;
9004 if (_argo0) {
9005 if (_argo0 == Py_None) { _arg0 = NULL; }
9006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9008 return NULL;
9009 }
9010 }
9011 if (_argo1) {
9012 if (_argo1 == Py_None) { _arg1 = NULL; }
9013 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9014 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9015 return NULL;
9016 }
9017 }
9018 {
9019 wxPy_BEGIN_ALLOW_THREADS;
9020 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9021
9022 wxPy_END_ALLOW_THREADS;
9023 if (PyErr_Occurred()) return NULL;
9024 } Py_INCREF(Py_None);
9025 _resultobj = Py_None;
9026 return _resultobj;
9027 }
9028
9029 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9030 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9031 PyObject * _resultobj;
9032 bool _result;
9033 wxDC * _arg0;
9034 PyObject * _argo0 = 0;
9035 char *_kwnames[] = { "self", NULL };
9036
9037 self = self;
9038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_kwnames,&_argo0))
9039 return NULL;
9040 if (_argo0) {
9041 if (_argo0 == Py_None) { _arg0 = NULL; }
9042 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9043 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanDrawBitmap. Expected _wxDC_p.");
9044 return NULL;
9045 }
9046 }
9047 {
9048 wxPy_BEGIN_ALLOW_THREADS;
9049 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9050
9051 wxPy_END_ALLOW_THREADS;
9052 if (PyErr_Occurred()) return NULL;
9053 } _resultobj = Py_BuildValue("i",_result);
9054 return _resultobj;
9055 }
9056
9057 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9058 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9059 PyObject * _resultobj;
9060 bool _result;
9061 wxDC * _arg0;
9062 PyObject * _argo0 = 0;
9063 char *_kwnames[] = { "self", NULL };
9064
9065 self = self;
9066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9067 return NULL;
9068 if (_argo0) {
9069 if (_argo0 == Py_None) { _arg0 = NULL; }
9070 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9071 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9072 return NULL;
9073 }
9074 }
9075 {
9076 wxPy_BEGIN_ALLOW_THREADS;
9077 _result = (bool )wxDC_CanGetTextExtent(_arg0);
9078
9079 wxPy_END_ALLOW_THREADS;
9080 if (PyErr_Occurred()) return NULL;
9081 } _resultobj = Py_BuildValue("i",_result);
9082 return _resultobj;
9083 }
9084
9085 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9086 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
9087 PyObject * _resultobj;
9088 int _result;
9089 wxDC * _arg0;
9090 PyObject * _argo0 = 0;
9091 char *_kwnames[] = { "self", NULL };
9092
9093 self = self;
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
9095 return NULL;
9096 if (_argo0) {
9097 if (_argo0 == Py_None) { _arg0 = NULL; }
9098 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9099 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9100 return NULL;
9101 }
9102 }
9103 {
9104 wxPy_BEGIN_ALLOW_THREADS;
9105 _result = (int )wxDC_GetDepth(_arg0);
9106
9107 wxPy_END_ALLOW_THREADS;
9108 if (PyErr_Occurred()) return NULL;
9109 } _resultobj = Py_BuildValue("i",_result);
9110 return _resultobj;
9111 }
9112
9113 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9114 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
9115 PyObject * _resultobj;
9116 wxSize * _result;
9117 wxDC * _arg0;
9118 PyObject * _argo0 = 0;
9119 char *_kwnames[] = { "self", NULL };
9120 char _ptemp[128];
9121
9122 self = self;
9123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
9124 return NULL;
9125 if (_argo0) {
9126 if (_argo0 == Py_None) { _arg0 = NULL; }
9127 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9128 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9129 return NULL;
9130 }
9131 }
9132 {
9133 wxPy_BEGIN_ALLOW_THREADS;
9134 _result = new wxSize (wxDC_GetPPI(_arg0));
9135
9136 wxPy_END_ALLOW_THREADS;
9137 if (PyErr_Occurred()) return NULL;
9138 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
9139 _resultobj = Py_BuildValue("s",_ptemp);
9140 return _resultobj;
9141 }
9142
9143 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9144 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9145 PyObject * _resultobj;
9146 wxDC * _arg0;
9147 int * _arg1;
9148 int temp;
9149 int * _arg2;
9150 int temp0;
9151 PyObject * _argo0 = 0;
9152 char *_kwnames[] = { "self", NULL };
9153
9154 self = self;
9155 {
9156 _arg1 = &temp;
9157 }
9158 {
9159 _arg2 = &temp0;
9160 }
9161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
9162 return NULL;
9163 if (_argo0) {
9164 if (_argo0 == Py_None) { _arg0 = NULL; }
9165 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9166 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9167 return NULL;
9168 }
9169 }
9170 {
9171 wxPy_BEGIN_ALLOW_THREADS;
9172 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
9173
9174 wxPy_END_ALLOW_THREADS;
9175 if (PyErr_Occurred()) return NULL;
9176 } Py_INCREF(Py_None);
9177 _resultobj = Py_None;
9178 {
9179 PyObject *o;
9180 o = PyInt_FromLong((long) (*_arg1));
9181 _resultobj = t_output_helper(_resultobj, o);
9182 }
9183 {
9184 PyObject *o;
9185 o = PyInt_FromLong((long) (*_arg2));
9186 _resultobj = t_output_helper(_resultobj, o);
9187 }
9188 return _resultobj;
9189 }
9190
9191 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9192 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9193 PyObject * _resultobj;
9194 wxDC * _arg0;
9195 int _arg1;
9196 int _arg2;
9197 PyObject * _argo0 = 0;
9198 char *_kwnames[] = { "self","x","y", NULL };
9199
9200 self = self;
9201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9202 return NULL;
9203 if (_argo0) {
9204 if (_argo0 == Py_None) { _arg0 = NULL; }
9205 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9206 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9207 return NULL;
9208 }
9209 }
9210 {
9211 wxPy_BEGIN_ALLOW_THREADS;
9212 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
9213
9214 wxPy_END_ALLOW_THREADS;
9215 if (PyErr_Occurred()) return NULL;
9216 } Py_INCREF(Py_None);
9217 _resultobj = Py_None;
9218 return _resultobj;
9219 }
9220
9221 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9222 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9223 PyObject * _resultobj;
9224 wxDC * _arg0;
9225 int * _arg1;
9226 int temp;
9227 int * _arg2;
9228 int temp0;
9229 PyObject * _argo0 = 0;
9230 char *_kwnames[] = { "self", NULL };
9231
9232 self = self;
9233 {
9234 _arg1 = &temp;
9235 }
9236 {
9237 _arg2 = &temp0;
9238 }
9239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
9240 return NULL;
9241 if (_argo0) {
9242 if (_argo0 == Py_None) { _arg0 = NULL; }
9243 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9244 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9245 return NULL;
9246 }
9247 }
9248 {
9249 wxPy_BEGIN_ALLOW_THREADS;
9250 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
9251
9252 wxPy_END_ALLOW_THREADS;
9253 if (PyErr_Occurred()) return NULL;
9254 } Py_INCREF(Py_None);
9255 _resultobj = Py_None;
9256 {
9257 PyObject *o;
9258 o = PyInt_FromLong((long) (*_arg1));
9259 _resultobj = t_output_helper(_resultobj, o);
9260 }
9261 {
9262 PyObject *o;
9263 o = PyInt_FromLong((long) (*_arg2));
9264 _resultobj = t_output_helper(_resultobj, o);
9265 }
9266 return _resultobj;
9267 }
9268
9269 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9270 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9271 PyObject * _resultobj;
9272 wxDC * _arg0;
9273 bool _arg1;
9274 bool _arg2;
9275 PyObject * _argo0 = 0;
9276 int tempbool1;
9277 int tempbool2;
9278 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9279
9280 self = self;
9281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
9282 return NULL;
9283 if (_argo0) {
9284 if (_argo0 == Py_None) { _arg0 = NULL; }
9285 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9286 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9287 return NULL;
9288 }
9289 }
9290 _arg1 = (bool ) tempbool1;
9291 _arg2 = (bool ) tempbool2;
9292 {
9293 wxPy_BEGIN_ALLOW_THREADS;
9294 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
9295
9296 wxPy_END_ALLOW_THREADS;
9297 if (PyErr_Occurred()) return NULL;
9298 } Py_INCREF(Py_None);
9299 _resultobj = Py_None;
9300 return _resultobj;
9301 }
9302
9303 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9304 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9305 PyObject * _resultobj;
9306 wxDC * _arg0;
9307 int _arg1;
9308 int _arg2;
9309 PyObject * _argo0 = 0;
9310 char *_kwnames[] = { "self","x","y", NULL };
9311
9312 self = self;
9313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9314 return NULL;
9315 if (_argo0) {
9316 if (_argo0 == Py_None) { _arg0 = NULL; }
9317 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9318 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9319 return NULL;
9320 }
9321 }
9322 {
9323 wxPy_BEGIN_ALLOW_THREADS;
9324 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
9325
9326 wxPy_END_ALLOW_THREADS;
9327 if (PyErr_Occurred()) return NULL;
9328 } Py_INCREF(Py_None);
9329 _resultobj = Py_None;
9330 return _resultobj;
9331 }
9332
9333 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9334 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9335 PyObject * _resultobj;
9336 wxDC * _arg0;
9337 PyObject * _argo0 = 0;
9338 char *_kwnames[] = { "self", NULL };
9339
9340 self = self;
9341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9342 return NULL;
9343 if (_argo0) {
9344 if (_argo0 == Py_None) { _arg0 = NULL; }
9345 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9346 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9347 return NULL;
9348 }
9349 }
9350 {
9351 wxPy_BEGIN_ALLOW_THREADS;
9352 wxDC_ResetBoundingBox(_arg0);
9353
9354 wxPy_END_ALLOW_THREADS;
9355 if (PyErr_Occurred()) return NULL;
9356 } Py_INCREF(Py_None);
9357 _resultobj = Py_None;
9358 return _resultobj;
9359 }
9360
9361 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9362 PyObject * _resultobj;
9363 wxDC * _arg0;
9364 int * _arg1;
9365 int temp;
9366 int * _arg2;
9367 int temp0;
9368 int * _arg3;
9369 int temp1;
9370 int * _arg4;
9371 int temp2;
9372 PyObject * _argo0 = 0;
9373 char *_kwnames[] = { "self", NULL };
9374
9375 self = self;
9376 {
9377 _arg1 = &temp;
9378 }
9379 {
9380 _arg2 = &temp0;
9381 }
9382 {
9383 _arg3 = &temp1;
9384 }
9385 {
9386 _arg4 = &temp2;
9387 }
9388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9389 return NULL;
9390 if (_argo0) {
9391 if (_argo0 == Py_None) { _arg0 = NULL; }
9392 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9393 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9394 return NULL;
9395 }
9396 }
9397 {
9398 wxPy_BEGIN_ALLOW_THREADS;
9399 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
9400
9401 wxPy_END_ALLOW_THREADS;
9402 if (PyErr_Occurred()) return NULL;
9403 } Py_INCREF(Py_None);
9404 _resultobj = Py_None;
9405 {
9406 PyObject *o;
9407 o = PyInt_FromLong((long) (*_arg1));
9408 _resultobj = t_output_helper(_resultobj, o);
9409 }
9410 {
9411 PyObject *o;
9412 o = PyInt_FromLong((long) (*_arg2));
9413 _resultobj = t_output_helper(_resultobj, o);
9414 }
9415 {
9416 PyObject *o;
9417 o = PyInt_FromLong((long) (*_arg3));
9418 _resultobj = t_output_helper(_resultobj, o);
9419 }
9420 {
9421 PyObject *o;
9422 o = PyInt_FromLong((long) (*_arg4));
9423 _resultobj = t_output_helper(_resultobj, o);
9424 }
9425 return _resultobj;
9426 }
9427
9428 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
9429 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9430 PyObject * _resultobj;
9431 long _result;
9432 wxDC * _arg0;
9433 PyObject * _argo0 = 0;
9434 char *_kwnames[] = { "self", NULL };
9435
9436 self = self;
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
9438 return NULL;
9439 if (_argo0) {
9440 if (_argo0 == Py_None) { _arg0 = NULL; }
9441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
9443 return NULL;
9444 }
9445 }
9446 {
9447 wxPy_BEGIN_ALLOW_THREADS;
9448 _result = (long )wxDC_GetHDC(_arg0);
9449
9450 wxPy_END_ALLOW_THREADS;
9451 if (PyErr_Occurred()) return NULL;
9452 } _resultobj = Py_BuildValue("l",_result);
9453 return _resultobj;
9454 }
9455
9456 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9457 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9458 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9459 int numObjs = 0;
9460 int numPens = 0;
9461 wxPen* pen;
9462 PyObject* obj;
9463 int x1, y1;
9464 int i = 0;
9465
9466 if (!PySequence_Check(pyPoints)) {
9467 goto err0;
9468 }
9469 if (!PySequence_Check(pyPens)) {
9470 goto err1;
9471 }
9472 numObjs = PySequence_Length(pyPoints);
9473 numPens = PySequence_Length(pyPens);
9474
9475 for (i = 0; i < numObjs; i++) {
9476 // Use a new pen?
9477 if (i < numPens) {
9478 if (isFastPens) {
9479 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9480 }
9481 else {
9482 obj = PySequence_GetItem(pyPens, i);
9483 }
9484 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9485 if (!isFastPens)
9486 Py_DECREF(obj);
9487 goto err1;
9488 }
9489
9490 self->SetPen(*pen);
9491 if (!isFastPens)
9492 Py_DECREF(obj);
9493 }
9494
9495 // Get the point coordinants
9496 if (isFastSeq) {
9497 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9498 }
9499 else {
9500 obj = PySequence_GetItem(pyPoints, i);
9501 }
9502 if (! _2int_seq_helper(obj, &x1, &y1)) {
9503 if (!isFastPens)
9504 Py_DECREF(obj);
9505 goto err0;
9506 }
9507
9508 // Now draw the point
9509 self->DrawPoint(x1, y1);
9510
9511 if (!isFastSeq)
9512 Py_DECREF(obj);
9513 }
9514
9515 Py_INCREF(Py_None);
9516 return Py_None;
9517
9518 err1:
9519 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9520 return NULL;
9521 err0:
9522 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9523 return NULL;
9524 }
9525 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9526 PyObject * _resultobj;
9527 PyObject * _result;
9528 wxDC * _arg0;
9529 PyObject * _arg1;
9530 PyObject * _arg2;
9531 PyObject * _argo0 = 0;
9532 PyObject * _obj1 = 0;
9533 PyObject * _obj2 = 0;
9534 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9535
9536 self = self;
9537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9538 return NULL;
9539 if (_argo0) {
9540 if (_argo0 == Py_None) { _arg0 = NULL; }
9541 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9542 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9543 return NULL;
9544 }
9545 }
9546 {
9547 _arg1 = _obj1;
9548 }
9549 {
9550 _arg2 = _obj2;
9551 }
9552 {
9553 wxPy_BEGIN_ALLOW_THREADS;
9554 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
9555
9556 wxPy_END_ALLOW_THREADS;
9557 if (PyErr_Occurred()) return NULL;
9558 }{
9559 _resultobj = _result;
9560 }
9561 return _resultobj;
9562 }
9563
9564 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9565 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9566 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9567 int numObjs = 0;
9568 int numPens = 0;
9569 wxPen* pen;
9570 PyObject* obj;
9571 int x1, y1, x2, y2;
9572 int i = 0;
9573
9574 if (!PySequence_Check(pyLines)) {
9575 goto err0;
9576 }
9577 if (!PySequence_Check(pyPens)) {
9578 goto err1;
9579 }
9580 numObjs = PySequence_Length(pyLines);
9581 numPens = PySequence_Length(pyPens);
9582
9583 for (i = 0; i < numObjs; i++) {
9584 // Use a new pen?
9585 if (i < numPens) {
9586 if (isFastPens) {
9587 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9588 }
9589 else {
9590 obj = PySequence_GetItem(pyPens, i);
9591 }
9592 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9593 if (!isFastPens)
9594 Py_DECREF(obj);
9595 goto err1;
9596 }
9597
9598 self->SetPen(*pen);
9599 if (!isFastPens)
9600 Py_DECREF(obj);
9601 }
9602
9603 // Get the line coordinants
9604 if (isFastSeq) {
9605 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9606 }
9607 else {
9608 obj = PySequence_GetItem(pyLines, i);
9609 }
9610 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9611 if (!isFastPens)
9612 Py_DECREF(obj);
9613 goto err0;
9614 }
9615
9616 // Now draw the line
9617 self->DrawLine(x1, y1, x2, y2);
9618
9619 if (!isFastSeq)
9620 Py_DECREF(obj);
9621 }
9622
9623 Py_INCREF(Py_None);
9624 return Py_None;
9625
9626 err1:
9627 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9628 return NULL;
9629 err0:
9630 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9631 return NULL;
9632 }
9633 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9634 PyObject * _resultobj;
9635 PyObject * _result;
9636 wxDC * _arg0;
9637 PyObject * _arg1;
9638 PyObject * _arg2;
9639 PyObject * _argo0 = 0;
9640 PyObject * _obj1 = 0;
9641 PyObject * _obj2 = 0;
9642 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9643
9644 self = self;
9645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9646 return NULL;
9647 if (_argo0) {
9648 if (_argo0 == Py_None) { _arg0 = NULL; }
9649 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9650 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9651 return NULL;
9652 }
9653 }
9654 {
9655 _arg1 = _obj1;
9656 }
9657 {
9658 _arg2 = _obj2;
9659 }
9660 {
9661 wxPy_BEGIN_ALLOW_THREADS;
9662 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
9663
9664 wxPy_END_ALLOW_THREADS;
9665 if (PyErr_Occurred()) return NULL;
9666 }{
9667 _resultobj = _result;
9668 }
9669 return _resultobj;
9670 }
9671
9672 static void *SwigwxMemoryDCTowxDC(void *ptr) {
9673 wxMemoryDC *src;
9674 wxDC *dest;
9675 src = (wxMemoryDC *) ptr;
9676 dest = (wxDC *) src;
9677 return (void *) dest;
9678 }
9679
9680 static void *SwigwxMemoryDCTowxObject(void *ptr) {
9681 wxMemoryDC *src;
9682 wxObject *dest;
9683 src = (wxMemoryDC *) ptr;
9684 dest = (wxObject *) src;
9685 return (void *) dest;
9686 }
9687
9688 #define new_wxMemoryDC() (new wxMemoryDC())
9689 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9690 PyObject * _resultobj;
9691 wxMemoryDC * _result;
9692 char *_kwnames[] = { NULL };
9693 char _ptemp[128];
9694
9695 self = self;
9696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
9697 return NULL;
9698 {
9699 wxPy_BEGIN_ALLOW_THREADS;
9700 _result = (wxMemoryDC *)new_wxMemoryDC();
9701
9702 wxPy_END_ALLOW_THREADS;
9703 if (PyErr_Occurred()) return NULL;
9704 } if (_result) {
9705 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9706 _resultobj = Py_BuildValue("s",_ptemp);
9707 } else {
9708 Py_INCREF(Py_None);
9709 _resultobj = Py_None;
9710 }
9711 return _resultobj;
9712 }
9713
9714 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9715 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
9716 PyObject * _resultobj;
9717 wxMemoryDC * _arg0;
9718 wxBitmap * _arg1;
9719 PyObject * _argo0 = 0;
9720 PyObject * _argo1 = 0;
9721 char *_kwnames[] = { "self","bitmap", NULL };
9722
9723 self = self;
9724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
9725 return NULL;
9726 if (_argo0) {
9727 if (_argo0 == Py_None) { _arg0 = NULL; }
9728 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
9729 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9730 return NULL;
9731 }
9732 }
9733 if (_argo1) {
9734 if (_argo1 == Py_None) { _arg1 = NULL; }
9735 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9736 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9737 return NULL;
9738 }
9739 }
9740 {
9741 wxPy_BEGIN_ALLOW_THREADS;
9742 wxMemoryDC_SelectObject(_arg0,*_arg1);
9743
9744 wxPy_END_ALLOW_THREADS;
9745 if (PyErr_Occurred()) return NULL;
9746 } Py_INCREF(Py_None);
9747 _resultobj = Py_None;
9748 return _resultobj;
9749 }
9750
9751 static void *SwigwxScreenDCTowxDC(void *ptr) {
9752 wxScreenDC *src;
9753 wxDC *dest;
9754 src = (wxScreenDC *) ptr;
9755 dest = (wxDC *) src;
9756 return (void *) dest;
9757 }
9758
9759 static void *SwigwxScreenDCTowxObject(void *ptr) {
9760 wxScreenDC *src;
9761 wxObject *dest;
9762 src = (wxScreenDC *) ptr;
9763 dest = (wxObject *) src;
9764 return (void *) dest;
9765 }
9766
9767 #define new_wxScreenDC() (new wxScreenDC())
9768 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9769 PyObject * _resultobj;
9770 wxScreenDC * _result;
9771 char *_kwnames[] = { NULL };
9772 char _ptemp[128];
9773
9774 self = self;
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
9776 return NULL;
9777 {
9778 wxPy_BEGIN_ALLOW_THREADS;
9779 _result = (wxScreenDC *)new_wxScreenDC();
9780
9781 wxPy_END_ALLOW_THREADS;
9782 if (PyErr_Occurred()) return NULL;
9783 } if (_result) {
9784 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9785 _resultobj = Py_BuildValue("s",_ptemp);
9786 } else {
9787 Py_INCREF(Py_None);
9788 _resultobj = Py_None;
9789 }
9790 return _resultobj;
9791 }
9792
9793 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9794 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
9795 PyObject * _resultobj;
9796 bool _result;
9797 wxScreenDC * _arg0;
9798 wxWindow * _arg1;
9799 PyObject * _argo0 = 0;
9800 PyObject * _argo1 = 0;
9801 char *_kwnames[] = { "self","window", NULL };
9802
9803 self = self;
9804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
9805 return NULL;
9806 if (_argo0) {
9807 if (_argo0 == Py_None) { _arg0 = NULL; }
9808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9810 return NULL;
9811 }
9812 }
9813 if (_argo1) {
9814 if (_argo1 == Py_None) { _arg1 = NULL; }
9815 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9816 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9817 return NULL;
9818 }
9819 }
9820 {
9821 wxPy_BEGIN_ALLOW_THREADS;
9822 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
9823
9824 wxPy_END_ALLOW_THREADS;
9825 if (PyErr_Occurred()) return NULL;
9826 } _resultobj = Py_BuildValue("i",_result);
9827 return _resultobj;
9828 }
9829
9830 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9831 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9832 PyObject * _resultobj;
9833 bool _result;
9834 wxScreenDC * _arg0;
9835 wxRect * _arg1 = (wxRect *) NULL;
9836 PyObject * _argo0 = 0;
9837 wxRect temp;
9838 PyObject * _obj1 = 0;
9839 char *_kwnames[] = { "self","rect", NULL };
9840
9841 self = self;
9842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
9843 return NULL;
9844 if (_argo0) {
9845 if (_argo0 == Py_None) { _arg0 = NULL; }
9846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9848 return NULL;
9849 }
9850 }
9851 if (_obj1)
9852 {
9853 _arg1 = &temp;
9854 if (! wxRect_helper(_obj1, &_arg1))
9855 return NULL;
9856 }
9857 {
9858 wxPy_BEGIN_ALLOW_THREADS;
9859 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
9860
9861 wxPy_END_ALLOW_THREADS;
9862 if (PyErr_Occurred()) return NULL;
9863 } _resultobj = Py_BuildValue("i",_result);
9864 return _resultobj;
9865 }
9866
9867 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9868 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9869 PyObject * _resultobj;
9870 bool _result;
9871 wxScreenDC * _arg0;
9872 PyObject * _argo0 = 0;
9873 char *_kwnames[] = { "self", NULL };
9874
9875 self = self;
9876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
9877 return NULL;
9878 if (_argo0) {
9879 if (_argo0 == Py_None) { _arg0 = NULL; }
9880 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9881 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9882 return NULL;
9883 }
9884 }
9885 {
9886 wxPy_BEGIN_ALLOW_THREADS;
9887 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
9888
9889 wxPy_END_ALLOW_THREADS;
9890 if (PyErr_Occurred()) return NULL;
9891 } _resultobj = Py_BuildValue("i",_result);
9892 return _resultobj;
9893 }
9894
9895 static void *SwigwxClientDCTowxDC(void *ptr) {
9896 wxClientDC *src;
9897 wxDC *dest;
9898 src = (wxClientDC *) ptr;
9899 dest = (wxDC *) src;
9900 return (void *) dest;
9901 }
9902
9903 static void *SwigwxClientDCTowxObject(void *ptr) {
9904 wxClientDC *src;
9905 wxObject *dest;
9906 src = (wxClientDC *) ptr;
9907 dest = (wxObject *) src;
9908 return (void *) dest;
9909 }
9910
9911 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9912 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9913 PyObject * _resultobj;
9914 wxClientDC * _result;
9915 wxWindow * _arg0;
9916 PyObject * _argo0 = 0;
9917 char *_kwnames[] = { "win", NULL };
9918 char _ptemp[128];
9919
9920 self = self;
9921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
9922 return NULL;
9923 if (_argo0) {
9924 if (_argo0 == Py_None) { _arg0 = NULL; }
9925 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9926 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
9927 return NULL;
9928 }
9929 }
9930 {
9931 wxPy_BEGIN_ALLOW_THREADS;
9932 _result = (wxClientDC *)new_wxClientDC(_arg0);
9933
9934 wxPy_END_ALLOW_THREADS;
9935 if (PyErr_Occurred()) return NULL;
9936 } if (_result) {
9937 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
9938 _resultobj = Py_BuildValue("s",_ptemp);
9939 } else {
9940 Py_INCREF(Py_None);
9941 _resultobj = Py_None;
9942 }
9943 return _resultobj;
9944 }
9945
9946 static void *SwigwxPaintDCTowxDC(void *ptr) {
9947 wxPaintDC *src;
9948 wxDC *dest;
9949 src = (wxPaintDC *) ptr;
9950 dest = (wxDC *) src;
9951 return (void *) dest;
9952 }
9953
9954 static void *SwigwxPaintDCTowxObject(void *ptr) {
9955 wxPaintDC *src;
9956 wxObject *dest;
9957 src = (wxPaintDC *) ptr;
9958 dest = (wxObject *) src;
9959 return (void *) dest;
9960 }
9961
9962 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
9963 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9964 PyObject * _resultobj;
9965 wxPaintDC * _result;
9966 wxWindow * _arg0;
9967 PyObject * _argo0 = 0;
9968 char *_kwnames[] = { "win", NULL };
9969 char _ptemp[128];
9970
9971 self = self;
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
9973 return NULL;
9974 if (_argo0) {
9975 if (_argo0 == Py_None) { _arg0 = NULL; }
9976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
9977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
9978 return NULL;
9979 }
9980 }
9981 {
9982 wxPy_BEGIN_ALLOW_THREADS;
9983 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
9984
9985 wxPy_END_ALLOW_THREADS;
9986 if (PyErr_Occurred()) return NULL;
9987 } if (_result) {
9988 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
9989 _resultobj = Py_BuildValue("s",_ptemp);
9990 } else {
9991 Py_INCREF(Py_None);
9992 _resultobj = Py_None;
9993 }
9994 return _resultobj;
9995 }
9996
9997 static void *SwigwxWindowDCTowxDC(void *ptr) {
9998 wxWindowDC *src;
9999 wxDC *dest;
10000 src = (wxWindowDC *) ptr;
10001 dest = (wxDC *) src;
10002 return (void *) dest;
10003 }
10004
10005 static void *SwigwxWindowDCTowxObject(void *ptr) {
10006 wxWindowDC *src;
10007 wxObject *dest;
10008 src = (wxWindowDC *) ptr;
10009 dest = (wxObject *) src;
10010 return (void *) dest;
10011 }
10012
10013 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10014 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10015 PyObject * _resultobj;
10016 wxWindowDC * _result;
10017 wxWindow * _arg0;
10018 PyObject * _argo0 = 0;
10019 char *_kwnames[] = { "win", NULL };
10020 char _ptemp[128];
10021
10022 self = self;
10023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10024 return NULL;
10025 if (_argo0) {
10026 if (_argo0 == Py_None) { _arg0 = NULL; }
10027 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10028 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10029 return NULL;
10030 }
10031 }
10032 {
10033 wxPy_BEGIN_ALLOW_THREADS;
10034 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10035
10036 wxPy_END_ALLOW_THREADS;
10037 if (PyErr_Occurred()) return NULL;
10038 } if (_result) {
10039 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10040 _resultobj = Py_BuildValue("s",_ptemp);
10041 } else {
10042 Py_INCREF(Py_None);
10043 _resultobj = Py_None;
10044 }
10045 return _resultobj;
10046 }
10047
10048 static void *SwigwxMetaFileTowxObject(void *ptr) {
10049 wxMetaFile *src;
10050 wxObject *dest;
10051 src = (wxMetaFile *) ptr;
10052 dest = (wxObject *) src;
10053 return (void *) dest;
10054 }
10055
10056 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10057 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject * _resultobj;
10059 wxMetaFile * _result;
10060 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
10061 PyObject * _obj0 = 0;
10062 char *_kwnames[] = { "filename", NULL };
10063 char _ptemp[128];
10064
10065 self = self;
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
10067 return NULL;
10068 if (_obj0)
10069 {
10070 #if PYTHON_API_VERSION >= 1009
10071 char* tmpPtr; int tmpSize;
10072 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10073 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10074 return NULL;
10075 }
10076 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10077 return NULL;
10078 _arg0 = new wxString(tmpPtr, tmpSize);
10079 #else
10080 if (!PyString_Check(_obj0)) {
10081 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10082 return NULL;
10083 }
10084 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10085 #endif
10086 }
10087 {
10088 wxPy_BEGIN_ALLOW_THREADS;
10089 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
10090
10091 wxPy_END_ALLOW_THREADS;
10092 if (PyErr_Occurred()) return NULL;
10093 } if (_result) {
10094 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10095 _resultobj = Py_BuildValue("s",_ptemp);
10096 } else {
10097 Py_INCREF(Py_None);
10098 _resultobj = Py_None;
10099 }
10100 {
10101 if (_obj0)
10102 delete _arg0;
10103 }
10104 return _resultobj;
10105 }
10106
10107 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10108 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject * _resultobj;
10110 wxMetaFile * _arg0;
10111 PyObject * _argo0 = 0;
10112 char *_kwnames[] = { "self", NULL };
10113
10114 self = self;
10115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
10116 return NULL;
10117 if (_argo0) {
10118 if (_argo0 == Py_None) { _arg0 = NULL; }
10119 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10120 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
10121 return NULL;
10122 }
10123 }
10124 {
10125 wxPy_BEGIN_ALLOW_THREADS;
10126 delete_wxMetaFile(_arg0);
10127
10128 wxPy_END_ALLOW_THREADS;
10129 if (PyErr_Occurred()) return NULL;
10130 } Py_INCREF(Py_None);
10131 _resultobj = Py_None;
10132 return _resultobj;
10133 }
10134
10135 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
10136 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10137 PyObject * _resultobj;
10138 bool _result;
10139 wxMetaFile * _arg0;
10140 PyObject * _argo0 = 0;
10141 char *_kwnames[] = { "self", NULL };
10142
10143 self = self;
10144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
10145 return NULL;
10146 if (_argo0) {
10147 if (_argo0 == Py_None) { _arg0 = NULL; }
10148 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10149 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
10150 return NULL;
10151 }
10152 }
10153 {
10154 wxPy_BEGIN_ALLOW_THREADS;
10155 _result = (bool )wxMetaFile_Ok(_arg0);
10156
10157 wxPy_END_ALLOW_THREADS;
10158 if (PyErr_Occurred()) return NULL;
10159 } _resultobj = Py_BuildValue("i",_result);
10160 return _resultobj;
10161 }
10162
10163 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
10164 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
10165 PyObject * _resultobj;
10166 bool _result;
10167 wxMetaFile * _arg0;
10168 int _arg1 = (int ) 0;
10169 int _arg2 = (int ) 0;
10170 PyObject * _argo0 = 0;
10171 char *_kwnames[] = { "self","width","height", NULL };
10172
10173 self = self;
10174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
10175 return NULL;
10176 if (_argo0) {
10177 if (_argo0 == Py_None) { _arg0 = NULL; }
10178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10180 return NULL;
10181 }
10182 }
10183 {
10184 wxPy_BEGIN_ALLOW_THREADS;
10185 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
10186
10187 wxPy_END_ALLOW_THREADS;
10188 if (PyErr_Occurred()) return NULL;
10189 } _resultobj = Py_BuildValue("i",_result);
10190 return _resultobj;
10191 }
10192
10193 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10194 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10195 PyObject * _resultobj;
10196 wxSize * _result;
10197 wxMetaFile * _arg0;
10198 PyObject * _argo0 = 0;
10199 char *_kwnames[] = { "self", NULL };
10200 char _ptemp[128];
10201
10202 self = self;
10203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
10204 return NULL;
10205 if (_argo0) {
10206 if (_argo0 == Py_None) { _arg0 = NULL; }
10207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10209 return NULL;
10210 }
10211 }
10212 {
10213 wxPy_BEGIN_ALLOW_THREADS;
10214 _result = new wxSize (wxMetaFile_GetSize(_arg0));
10215
10216 wxPy_END_ALLOW_THREADS;
10217 if (PyErr_Occurred()) return NULL;
10218 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10219 _resultobj = Py_BuildValue("s",_ptemp);
10220 return _resultobj;
10221 }
10222
10223 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10224 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10225 PyObject * _resultobj;
10226 int _result;
10227 wxMetaFile * _arg0;
10228 PyObject * _argo0 = 0;
10229 char *_kwnames[] = { "self", NULL };
10230
10231 self = self;
10232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
10233 return NULL;
10234 if (_argo0) {
10235 if (_argo0 == Py_None) { _arg0 = NULL; }
10236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10238 return NULL;
10239 }
10240 }
10241 {
10242 wxPy_BEGIN_ALLOW_THREADS;
10243 _result = (int )wxMetaFile_GetWidth(_arg0);
10244
10245 wxPy_END_ALLOW_THREADS;
10246 if (PyErr_Occurred()) return NULL;
10247 } _resultobj = Py_BuildValue("i",_result);
10248 return _resultobj;
10249 }
10250
10251 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10252 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10253 PyObject * _resultobj;
10254 int _result;
10255 wxMetaFile * _arg0;
10256 PyObject * _argo0 = 0;
10257 char *_kwnames[] = { "self", NULL };
10258
10259 self = self;
10260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
10261 return NULL;
10262 if (_argo0) {
10263 if (_argo0 == Py_None) { _arg0 = NULL; }
10264 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10265 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10266 return NULL;
10267 }
10268 }
10269 {
10270 wxPy_BEGIN_ALLOW_THREADS;
10271 _result = (int )wxMetaFile_GetHeight(_arg0);
10272
10273 wxPy_END_ALLOW_THREADS;
10274 if (PyErr_Occurred()) return NULL;
10275 } _resultobj = Py_BuildValue("i",_result);
10276 return _resultobj;
10277 }
10278
10279 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10280 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
10281 PyObject * _resultobj;
10282 wxString * _result;
10283 wxMetaFile * _arg0;
10284 PyObject * _argo0 = 0;
10285 char *_kwnames[] = { "self", NULL };
10286
10287 self = self;
10288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
10289 return NULL;
10290 if (_argo0) {
10291 if (_argo0 == Py_None) { _arg0 = NULL; }
10292 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10293 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10294 return NULL;
10295 }
10296 }
10297 {
10298 wxPy_BEGIN_ALLOW_THREADS;
10299 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
10300 _result = (wxString *) &_result_ref;
10301
10302 wxPy_END_ALLOW_THREADS;
10303 if (PyErr_Occurred()) return NULL;
10304 }{
10305 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10306 }
10307 return _resultobj;
10308 }
10309
10310 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
10311 wxMetaFileDC *src;
10312 wxDC *dest;
10313 src = (wxMetaFileDC *) ptr;
10314 dest = (wxDC *) src;
10315 return (void *) dest;
10316 }
10317
10318 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
10319 wxMetaFileDC *src;
10320 wxObject *dest;
10321 src = (wxMetaFileDC *) ptr;
10322 dest = (wxObject *) src;
10323 return (void *) dest;
10324 }
10325
10326 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10327 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10328 PyObject * _resultobj;
10329 wxMetaFileDC * _result;
10330 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
10331 int _arg1 = (int ) 0;
10332 int _arg2 = (int ) 0;
10333 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
10334 PyObject * _obj0 = 0;
10335 PyObject * _obj3 = 0;
10336 char *_kwnames[] = { "filename","width","height","description", NULL };
10337 char _ptemp[128];
10338
10339 self = self;
10340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
10341 return NULL;
10342 if (_obj0)
10343 {
10344 #if PYTHON_API_VERSION >= 1009
10345 char* tmpPtr; int tmpSize;
10346 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10347 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10348 return NULL;
10349 }
10350 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10351 return NULL;
10352 _arg0 = new wxString(tmpPtr, tmpSize);
10353 #else
10354 if (!PyString_Check(_obj0)) {
10355 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10356 return NULL;
10357 }
10358 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10359 #endif
10360 }
10361 if (_obj3)
10362 {
10363 #if PYTHON_API_VERSION >= 1009
10364 char* tmpPtr; int tmpSize;
10365 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
10366 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10367 return NULL;
10368 }
10369 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
10370 return NULL;
10371 _arg3 = new wxString(tmpPtr, tmpSize);
10372 #else
10373 if (!PyString_Check(_obj3)) {
10374 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10375 return NULL;
10376 }
10377 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
10378 #endif
10379 }
10380 {
10381 wxPy_BEGIN_ALLOW_THREADS;
10382 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
10383
10384 wxPy_END_ALLOW_THREADS;
10385 if (PyErr_Occurred()) return NULL;
10386 } if (_result) {
10387 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
10388 _resultobj = Py_BuildValue("s",_ptemp);
10389 } else {
10390 Py_INCREF(Py_None);
10391 _resultobj = Py_None;
10392 }
10393 {
10394 if (_obj0)
10395 delete _arg0;
10396 }
10397 {
10398 if (_obj3)
10399 delete _arg3;
10400 }
10401 return _resultobj;
10402 }
10403
10404 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10405 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
10406 PyObject * _resultobj;
10407 wxMetaFile * _result;
10408 wxMetaFileDC * _arg0;
10409 PyObject * _argo0 = 0;
10410 char *_kwnames[] = { "self", NULL };
10411 char _ptemp[128];
10412
10413 self = self;
10414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
10415 return NULL;
10416 if (_argo0) {
10417 if (_argo0 == Py_None) { _arg0 = NULL; }
10418 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
10419 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10420 return NULL;
10421 }
10422 }
10423 {
10424 wxPy_BEGIN_ALLOW_THREADS;
10425 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
10426
10427 wxPy_END_ALLOW_THREADS;
10428 if (PyErr_Occurred()) return NULL;
10429 } if (_result) {
10430 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10431 _resultobj = Py_BuildValue("s",_ptemp);
10432 } else {
10433 Py_INCREF(Py_None);
10434 _resultobj = Py_None;
10435 }
10436 return _resultobj;
10437 }
10438
10439 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
10440 wxPalette *src;
10441 wxGDIObject *dest;
10442 src = (wxPalette *) ptr;
10443 dest = (wxGDIObject *) src;
10444 return (void *) dest;
10445 }
10446
10447 static void *SwigwxPaletteTowxObject(void *ptr) {
10448 wxPalette *src;
10449 wxObject *dest;
10450 src = (wxPalette *) ptr;
10451 dest = (wxObject *) src;
10452 return (void *) dest;
10453 }
10454
10455 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10456 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10457 PyObject * _resultobj;
10458 wxPalette * _result;
10459 int _arg0;
10460 byte * _arg1;
10461 byte * _arg2;
10462 byte * _arg3;
10463 PyObject * _obj1 = 0;
10464 PyObject * _obj2 = 0;
10465 PyObject * _obj3 = 0;
10466 char *_kwnames[] = { "choices","choices","choices", NULL };
10467 char _ptemp[128];
10468
10469 self = self;
10470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
10471 return NULL;
10472 {
10473 _arg1 = byte_LIST_helper(_obj1);
10474 if (_arg1 == NULL) {
10475 return NULL;
10476 }
10477 }
10478 {
10479 _arg2 = byte_LIST_helper(_obj2);
10480 if (_arg2 == NULL) {
10481 return NULL;
10482 }
10483 }
10484 if (_obj3)
10485 {
10486 _arg3 = byte_LIST_helper(_obj3);
10487 if (_arg3 == NULL) {
10488 return NULL;
10489 }
10490 }
10491 {
10492 if (_obj1) {
10493 _arg0 = PyList_Size(_obj1);
10494 }
10495 else {
10496 _arg0 = 0;
10497 }
10498 }
10499 {
10500 wxPy_BEGIN_ALLOW_THREADS;
10501 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
10502
10503 wxPy_END_ALLOW_THREADS;
10504 if (PyErr_Occurred()) return NULL;
10505 } if (_result) {
10506 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10507 _resultobj = Py_BuildValue("s",_ptemp);
10508 } else {
10509 Py_INCREF(Py_None);
10510 _resultobj = Py_None;
10511 }
10512 {
10513 delete [] _arg1;
10514 }
10515 {
10516 delete [] _arg2;
10517 }
10518 {
10519 delete [] _arg3;
10520 }
10521 return _resultobj;
10522 }
10523
10524 #define delete_wxPalette(_swigobj) (delete _swigobj)
10525 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10526 PyObject * _resultobj;
10527 wxPalette * _arg0;
10528 PyObject * _argo0 = 0;
10529 char *_kwnames[] = { "self", NULL };
10530
10531 self = self;
10532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
10533 return NULL;
10534 if (_argo0) {
10535 if (_argo0 == Py_None) { _arg0 = NULL; }
10536 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10537 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10538 return NULL;
10539 }
10540 }
10541 {
10542 wxPy_BEGIN_ALLOW_THREADS;
10543 delete_wxPalette(_arg0);
10544
10545 wxPy_END_ALLOW_THREADS;
10546 if (PyErr_Occurred()) return NULL;
10547 } Py_INCREF(Py_None);
10548 _resultobj = Py_None;
10549 return _resultobj;
10550 }
10551
10552 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10553 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10554 PyObject * _resultobj;
10555 int _result;
10556 wxPalette * _arg0;
10557 byte _arg1;
10558 byte _arg2;
10559 byte _arg3;
10560 PyObject * _argo0 = 0;
10561 char *_kwnames[] = { "self","red","green","blue", NULL };
10562
10563 self = self;
10564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
10565 return NULL;
10566 if (_argo0) {
10567 if (_argo0 == Py_None) { _arg0 = NULL; }
10568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10570 return NULL;
10571 }
10572 }
10573 {
10574 wxPy_BEGIN_ALLOW_THREADS;
10575 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
10576
10577 wxPy_END_ALLOW_THREADS;
10578 if (PyErr_Occurred()) return NULL;
10579 } _resultobj = Py_BuildValue("i",_result);
10580 return _resultobj;
10581 }
10582
10583 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10584 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
10585 PyObject * _resultobj;
10586 bool _result;
10587 wxPalette * _arg0;
10588 int _arg1;
10589 byte * _arg2;
10590 byte * _arg3;
10591 byte * _arg4;
10592 PyObject * _argo0 = 0;
10593 PyObject * _argo2 = 0;
10594 PyObject * _argo3 = 0;
10595 PyObject * _argo4 = 0;
10596 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
10597
10598 self = self;
10599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
10600 return NULL;
10601 if (_argo0) {
10602 if (_argo0 == Py_None) { _arg0 = NULL; }
10603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10605 return NULL;
10606 }
10607 }
10608 if (_argo2) {
10609 if (_argo2 == Py_None) { _arg2 = NULL; }
10610 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
10611 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
10612 return NULL;
10613 }
10614 }
10615 if (_argo3) {
10616 if (_argo3 == Py_None) { _arg3 = NULL; }
10617 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
10618 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
10619 return NULL;
10620 }
10621 }
10622 if (_argo4) {
10623 if (_argo4 == Py_None) { _arg4 = NULL; }
10624 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
10625 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
10626 return NULL;
10627 }
10628 }
10629 {
10630 wxPy_BEGIN_ALLOW_THREADS;
10631 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
10632
10633 wxPy_END_ALLOW_THREADS;
10634 if (PyErr_Occurred()) return NULL;
10635 } _resultobj = Py_BuildValue("i",_result);
10636 return _resultobj;
10637 }
10638
10639 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10640 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10641 PyObject * _resultobj;
10642 bool _result;
10643 wxPalette * _arg0;
10644 PyObject * _argo0 = 0;
10645 char *_kwnames[] = { "self", NULL };
10646
10647 self = self;
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
10649 return NULL;
10650 if (_argo0) {
10651 if (_argo0 == Py_None) { _arg0 = NULL; }
10652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10654 return NULL;
10655 }
10656 }
10657 {
10658 wxPy_BEGIN_ALLOW_THREADS;
10659 _result = (bool )wxPalette_Ok(_arg0);
10660
10661 wxPy_END_ALLOW_THREADS;
10662 if (PyErr_Occurred()) return NULL;
10663 } _resultobj = Py_BuildValue("i",_result);
10664 return _resultobj;
10665 }
10666
10667 static void *SwigwxImageListTowxObject(void *ptr) {
10668 wxImageList *src;
10669 wxObject *dest;
10670 src = (wxImageList *) ptr;
10671 dest = (wxObject *) src;
10672 return (void *) dest;
10673 }
10674
10675 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10676 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10677 PyObject * _resultobj;
10678 wxImageList * _result;
10679 int _arg0;
10680 int _arg1;
10681 int _arg2 = (int ) TRUE;
10682 int _arg3 = (int ) 1;
10683 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
10684 char _ptemp[128];
10685
10686 self = self;
10687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10688 return NULL;
10689 {
10690 wxPy_BEGIN_ALLOW_THREADS;
10691 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
10692
10693 wxPy_END_ALLOW_THREADS;
10694 if (PyErr_Occurred()) return NULL;
10695 } if (_result) {
10696 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10697 _resultobj = Py_BuildValue("s",_ptemp);
10698 } else {
10699 Py_INCREF(Py_None);
10700 _resultobj = Py_None;
10701 }
10702 return _resultobj;
10703 }
10704
10705 #define delete_wxImageList(_swigobj) (delete _swigobj)
10706 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10707 PyObject * _resultobj;
10708 wxImageList * _arg0;
10709 PyObject * _argo0 = 0;
10710 char *_kwnames[] = { "self", NULL };
10711
10712 self = self;
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
10714 return NULL;
10715 if (_argo0) {
10716 if (_argo0 == Py_None) { _arg0 = NULL; }
10717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10719 return NULL;
10720 }
10721 }
10722 {
10723 wxPy_BEGIN_ALLOW_THREADS;
10724 delete_wxImageList(_arg0);
10725
10726 wxPy_END_ALLOW_THREADS;
10727 if (PyErr_Occurred()) return NULL;
10728 } Py_INCREF(Py_None);
10729 _resultobj = Py_None;
10730 return _resultobj;
10731 }
10732
10733 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10734 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
10735 PyObject * _resultobj;
10736 int _result;
10737 wxImageList * _arg0;
10738 wxBitmap * _arg1;
10739 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
10740 PyObject * _argo0 = 0;
10741 PyObject * _argo1 = 0;
10742 PyObject * _argo2 = 0;
10743 char *_kwnames[] = { "self","bitmap","mask", NULL };
10744
10745 self = self;
10746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
10747 return NULL;
10748 if (_argo0) {
10749 if (_argo0 == Py_None) { _arg0 = NULL; }
10750 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10751 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10752 return NULL;
10753 }
10754 }
10755 if (_argo1) {
10756 if (_argo1 == Py_None) { _arg1 = NULL; }
10757 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10758 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10759 return NULL;
10760 }
10761 }
10762 if (_argo2) {
10763 if (_argo2 == Py_None) { _arg2 = NULL; }
10764 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10765 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10766 return NULL;
10767 }
10768 }
10769 {
10770 wxPy_BEGIN_ALLOW_THREADS;
10771 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10772
10773 wxPy_END_ALLOW_THREADS;
10774 if (PyErr_Occurred()) return NULL;
10775 } _resultobj = Py_BuildValue("i",_result);
10776 return _resultobj;
10777 }
10778
10779 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10780 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10781 PyObject * _resultobj;
10782 int _result;
10783 wxImageList * _arg0;
10784 wxBitmap * _arg1;
10785 wxColour * _arg2;
10786 PyObject * _argo0 = 0;
10787 PyObject * _argo1 = 0;
10788 wxColour temp;
10789 PyObject * _obj2 = 0;
10790 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10791
10792 self = self;
10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10794 return NULL;
10795 if (_argo0) {
10796 if (_argo0 == Py_None) { _arg0 = NULL; }
10797 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10798 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10799 return NULL;
10800 }
10801 }
10802 if (_argo1) {
10803 if (_argo1 == Py_None) { _arg1 = NULL; }
10804 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10805 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10806 return NULL;
10807 }
10808 }
10809 {
10810 _arg2 = &temp;
10811 if (! wxColour_helper(_obj2, &_arg2))
10812 return NULL;
10813 }
10814 {
10815 wxPy_BEGIN_ALLOW_THREADS;
10816 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10817
10818 wxPy_END_ALLOW_THREADS;
10819 if (PyErr_Occurred()) return NULL;
10820 } _resultobj = Py_BuildValue("i",_result);
10821 return _resultobj;
10822 }
10823
10824 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10825 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10826 PyObject * _resultobj;
10827 int _result;
10828 wxImageList * _arg0;
10829 wxIcon * _arg1;
10830 PyObject * _argo0 = 0;
10831 PyObject * _argo1 = 0;
10832 char *_kwnames[] = { "self","icon", NULL };
10833
10834 self = self;
10835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10836 return NULL;
10837 if (_argo0) {
10838 if (_argo0 == Py_None) { _arg0 = NULL; }
10839 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10840 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10841 return NULL;
10842 }
10843 }
10844 if (_argo1) {
10845 if (_argo1 == Py_None) { _arg1 = NULL; }
10846 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10847 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10848 return NULL;
10849 }
10850 }
10851 {
10852 wxPy_BEGIN_ALLOW_THREADS;
10853 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
10854
10855 wxPy_END_ALLOW_THREADS;
10856 if (PyErr_Occurred()) return NULL;
10857 } _resultobj = Py_BuildValue("i",_result);
10858 return _resultobj;
10859 }
10860
10861 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10862 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10863 PyObject * _resultobj;
10864 bool _result;
10865 wxImageList * _arg0;
10866 int _arg1;
10867 wxBitmap * _arg2;
10868 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
10869 PyObject * _argo0 = 0;
10870 PyObject * _argo2 = 0;
10871 PyObject * _argo3 = 0;
10872 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
10873
10874 self = self;
10875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
10876 return NULL;
10877 if (_argo0) {
10878 if (_argo0 == Py_None) { _arg0 = NULL; }
10879 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10880 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10881 return NULL;
10882 }
10883 }
10884 if (_argo2) {
10885 if (_argo2 == Py_None) { _arg2 = NULL; }
10886 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10887 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10888 return NULL;
10889 }
10890 }
10891 if (_argo3) {
10892 if (_argo3 == Py_None) { _arg3 = NULL; }
10893 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
10894 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10895 return NULL;
10896 }
10897 }
10898 {
10899 wxPy_BEGIN_ALLOW_THREADS;
10900 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
10901
10902 wxPy_END_ALLOW_THREADS;
10903 if (PyErr_Occurred()) return NULL;
10904 } _resultobj = Py_BuildValue("i",_result);
10905 return _resultobj;
10906 }
10907
10908 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10909 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
10910 PyObject * _resultobj;
10911 bool _result;
10912 wxImageList * _arg0;
10913 int _arg1;
10914 wxDC * _arg2;
10915 int _arg3;
10916 int _arg4;
10917 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
10918 bool _arg6 = (bool ) FALSE;
10919 PyObject * _argo0 = 0;
10920 PyObject * _argo2 = 0;
10921 int tempbool6 = (int) FALSE;
10922 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
10923
10924 self = self;
10925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
10926 return NULL;
10927 if (_argo0) {
10928 if (_argo0 == Py_None) { _arg0 = NULL; }
10929 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10930 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
10931 return NULL;
10932 }
10933 }
10934 if (_argo2) {
10935 if (_argo2 == Py_None) { _arg2 = NULL; }
10936 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
10937 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
10938 return NULL;
10939 }
10940 }
10941 _arg6 = (bool ) tempbool6;
10942 {
10943 wxPy_BEGIN_ALLOW_THREADS;
10944 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
10945
10946 wxPy_END_ALLOW_THREADS;
10947 if (PyErr_Occurred()) return NULL;
10948 } _resultobj = Py_BuildValue("i",_result);
10949 return _resultobj;
10950 }
10951
10952 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
10953 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
10954 PyObject * _resultobj;
10955 int _result;
10956 wxImageList * _arg0;
10957 PyObject * _argo0 = 0;
10958 char *_kwnames[] = { "self", NULL };
10959
10960 self = self;
10961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
10962 return NULL;
10963 if (_argo0) {
10964 if (_argo0 == Py_None) { _arg0 = NULL; }
10965 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10966 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
10967 return NULL;
10968 }
10969 }
10970 {
10971 wxPy_BEGIN_ALLOW_THREADS;
10972 _result = (int )wxImageList_GetImageCount(_arg0);
10973
10974 wxPy_END_ALLOW_THREADS;
10975 if (PyErr_Occurred()) return NULL;
10976 } _resultobj = Py_BuildValue("i",_result);
10977 return _resultobj;
10978 }
10979
10980 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
10981 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
10982 PyObject * _resultobj;
10983 bool _result;
10984 wxImageList * _arg0;
10985 int _arg1;
10986 PyObject * _argo0 = 0;
10987 char *_kwnames[] = { "self","index", NULL };
10988
10989 self = self;
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
10991 return NULL;
10992 if (_argo0) {
10993 if (_argo0 == Py_None) { _arg0 = NULL; }
10994 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10995 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
10996 return NULL;
10997 }
10998 }
10999 {
11000 wxPy_BEGIN_ALLOW_THREADS;
11001 _result = (bool )wxImageList_Remove(_arg0,_arg1);
11002
11003 wxPy_END_ALLOW_THREADS;
11004 if (PyErr_Occurred()) return NULL;
11005 } _resultobj = Py_BuildValue("i",_result);
11006 return _resultobj;
11007 }
11008
11009 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11010 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11011 PyObject * _resultobj;
11012 bool _result;
11013 wxImageList * _arg0;
11014 PyObject * _argo0 = 0;
11015 char *_kwnames[] = { "self", NULL };
11016
11017 self = self;
11018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
11019 return NULL;
11020 if (_argo0) {
11021 if (_argo0 == Py_None) { _arg0 = NULL; }
11022 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11023 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11024 return NULL;
11025 }
11026 }
11027 {
11028 wxPy_BEGIN_ALLOW_THREADS;
11029 _result = (bool )wxImageList_RemoveAll(_arg0);
11030
11031 wxPy_END_ALLOW_THREADS;
11032 if (PyErr_Occurred()) return NULL;
11033 } _resultobj = Py_BuildValue("i",_result);
11034 return _resultobj;
11035 }
11036
11037 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11038 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11039 PyObject * _resultobj;
11040 wxImageList * _arg0;
11041 int _arg1;
11042 int * _arg2;
11043 int temp;
11044 int * _arg3;
11045 int temp0;
11046 PyObject * _argo0 = 0;
11047 char *_kwnames[] = { "self","index", NULL };
11048
11049 self = self;
11050 {
11051 _arg2 = &temp;
11052 }
11053 {
11054 _arg3 = &temp0;
11055 }
11056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
11057 return NULL;
11058 if (_argo0) {
11059 if (_argo0 == Py_None) { _arg0 = NULL; }
11060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11062 return NULL;
11063 }
11064 }
11065 {
11066 wxPy_BEGIN_ALLOW_THREADS;
11067 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
11068
11069 wxPy_END_ALLOW_THREADS;
11070 if (PyErr_Occurred()) return NULL;
11071 } Py_INCREF(Py_None);
11072 _resultobj = Py_None;
11073 {
11074 PyObject *o;
11075 o = PyInt_FromLong((long) (*_arg2));
11076 _resultobj = t_output_helper(_resultobj, o);
11077 }
11078 {
11079 PyObject *o;
11080 o = PyInt_FromLong((long) (*_arg3));
11081 _resultobj = t_output_helper(_resultobj, o);
11082 }
11083 return _resultobj;
11084 }
11085
11086 static void *SwigwxRegionTowxGDIObject(void *ptr) {
11087 wxRegion *src;
11088 wxGDIObject *dest;
11089 src = (wxRegion *) ptr;
11090 dest = (wxGDIObject *) src;
11091 return (void *) dest;
11092 }
11093
11094 static void *SwigwxRegionTowxObject(void *ptr) {
11095 wxRegion *src;
11096 wxObject *dest;
11097 src = (wxRegion *) ptr;
11098 dest = (wxObject *) src;
11099 return (void *) dest;
11100 }
11101
11102 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11103 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject * _resultobj;
11105 wxRegion * _result;
11106 long _arg0 = (long ) 0;
11107 long _arg1 = (long ) 0;
11108 long _arg2 = (long ) 0;
11109 long _arg3 = (long ) 0;
11110 char *_kwnames[] = { "x","y","width","height", NULL };
11111 char _ptemp[128];
11112
11113 self = self;
11114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11115 return NULL;
11116 {
11117 wxPy_BEGIN_ALLOW_THREADS;
11118 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
11119
11120 wxPy_END_ALLOW_THREADS;
11121 if (PyErr_Occurred()) return NULL;
11122 } if (_result) {
11123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
11124 _resultobj = Py_BuildValue("s",_ptemp);
11125 } else {
11126 Py_INCREF(Py_None);
11127 _resultobj = Py_None;
11128 }
11129 return _resultobj;
11130 }
11131
11132 #define delete_wxRegion(_swigobj) (delete _swigobj)
11133 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11134 PyObject * _resultobj;
11135 wxRegion * _arg0;
11136 PyObject * _argo0 = 0;
11137 char *_kwnames[] = { "self", NULL };
11138
11139 self = self;
11140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
11141 return NULL;
11142 if (_argo0) {
11143 if (_argo0 == Py_None) { _arg0 = NULL; }
11144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11146 return NULL;
11147 }
11148 }
11149 {
11150 wxPy_BEGIN_ALLOW_THREADS;
11151 delete_wxRegion(_arg0);
11152
11153 wxPy_END_ALLOW_THREADS;
11154 if (PyErr_Occurred()) return NULL;
11155 } Py_INCREF(Py_None);
11156 _resultobj = Py_None;
11157 return _resultobj;
11158 }
11159
11160 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11161 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11162 PyObject * _resultobj;
11163 wxRegion * _arg0;
11164 PyObject * _argo0 = 0;
11165 char *_kwnames[] = { "self", NULL };
11166
11167 self = self;
11168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
11169 return NULL;
11170 if (_argo0) {
11171 if (_argo0 == Py_None) { _arg0 = NULL; }
11172 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11173 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11174 return NULL;
11175 }
11176 }
11177 {
11178 wxPy_BEGIN_ALLOW_THREADS;
11179 wxRegion_Clear(_arg0);
11180
11181 wxPy_END_ALLOW_THREADS;
11182 if (PyErr_Occurred()) return NULL;
11183 } Py_INCREF(Py_None);
11184 _resultobj = Py_None;
11185 return _resultobj;
11186 }
11187
11188 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11189 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
11190 PyObject * _resultobj;
11191 wxRegionContain _result;
11192 wxRegion * _arg0;
11193 long _arg1;
11194 long _arg2;
11195 PyObject * _argo0 = 0;
11196 char *_kwnames[] = { "self","x","y", NULL };
11197
11198 self = self;
11199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
11200 return NULL;
11201 if (_argo0) {
11202 if (_argo0 == Py_None) { _arg0 = NULL; }
11203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11205 return NULL;
11206 }
11207 }
11208 {
11209 wxPy_BEGIN_ALLOW_THREADS;
11210 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
11211
11212 wxPy_END_ALLOW_THREADS;
11213 if (PyErr_Occurred()) return NULL;
11214 } _resultobj = Py_BuildValue("i",_result);
11215 return _resultobj;
11216 }
11217
11218 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11219 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11220 PyObject * _resultobj;
11221 wxRegionContain _result;
11222 wxRegion * _arg0;
11223 wxPoint * _arg1;
11224 PyObject * _argo0 = 0;
11225 wxPoint temp;
11226 PyObject * _obj1 = 0;
11227 char *_kwnames[] = { "self","pt", NULL };
11228
11229 self = self;
11230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
11231 return NULL;
11232 if (_argo0) {
11233 if (_argo0 == Py_None) { _arg0 = NULL; }
11234 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11235 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11236 return NULL;
11237 }
11238 }
11239 {
11240 _arg1 = &temp;
11241 if (! wxPoint_helper(_obj1, &_arg1))
11242 return NULL;
11243 }
11244 {
11245 wxPy_BEGIN_ALLOW_THREADS;
11246 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
11247
11248 wxPy_END_ALLOW_THREADS;
11249 if (PyErr_Occurred()) return NULL;
11250 } _resultobj = Py_BuildValue("i",_result);
11251 return _resultobj;
11252 }
11253
11254 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11255 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11256 PyObject * _resultobj;
11257 wxRegionContain _result;
11258 wxRegion * _arg0;
11259 wxRect * _arg1;
11260 PyObject * _argo0 = 0;
11261 wxRect temp;
11262 PyObject * _obj1 = 0;
11263 char *_kwnames[] = { "self","rect", NULL };
11264
11265 self = self;
11266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
11267 return NULL;
11268 if (_argo0) {
11269 if (_argo0 == Py_None) { _arg0 = NULL; }
11270 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11271 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11272 return NULL;
11273 }
11274 }
11275 {
11276 _arg1 = &temp;
11277 if (! wxRect_helper(_obj1, &_arg1))
11278 return NULL;
11279 }
11280 {
11281 wxPy_BEGIN_ALLOW_THREADS;
11282 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
11283
11284 wxPy_END_ALLOW_THREADS;
11285 if (PyErr_Occurred()) return NULL;
11286 } _resultobj = Py_BuildValue("i",_result);
11287 return _resultobj;
11288 }
11289
11290 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11291 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
11292 PyObject * _resultobj;
11293 wxRegionContain _result;
11294 wxRegion * _arg0;
11295 long _arg1;
11296 long _arg2;
11297 long _arg3;
11298 long _arg4;
11299 PyObject * _argo0 = 0;
11300 char *_kwnames[] = { "self","x","y","w","h", NULL };
11301
11302 self = self;
11303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11304 return NULL;
11305 if (_argo0) {
11306 if (_argo0 == Py_None) { _arg0 = NULL; }
11307 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11308 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11309 return NULL;
11310 }
11311 }
11312 {
11313 wxPy_BEGIN_ALLOW_THREADS;
11314 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
11315
11316 wxPy_END_ALLOW_THREADS;
11317 if (PyErr_Occurred()) return NULL;
11318 } _resultobj = Py_BuildValue("i",_result);
11319 return _resultobj;
11320 }
11321
11322 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11323 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11324 PyObject * _resultobj;
11325 wxRect * _result;
11326 wxRegion * _arg0;
11327 PyObject * _argo0 = 0;
11328 char *_kwnames[] = { "self", NULL };
11329 char _ptemp[128];
11330
11331 self = self;
11332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
11333 return NULL;
11334 if (_argo0) {
11335 if (_argo0 == Py_None) { _arg0 = NULL; }
11336 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11337 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11338 return NULL;
11339 }
11340 }
11341 {
11342 wxPy_BEGIN_ALLOW_THREADS;
11343 _result = new wxRect (wxRegion_GetBox(_arg0));
11344
11345 wxPy_END_ALLOW_THREADS;
11346 if (PyErr_Occurred()) return NULL;
11347 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11348 _resultobj = Py_BuildValue("s",_ptemp);
11349 return _resultobj;
11350 }
11351
11352 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11353 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
11354 PyObject * _resultobj;
11355 bool _result;
11356 wxRegion * _arg0;
11357 long _arg1;
11358 long _arg2;
11359 long _arg3;
11360 long _arg4;
11361 PyObject * _argo0 = 0;
11362 char *_kwnames[] = { "self","x","y","width","height", NULL };
11363
11364 self = self;
11365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11366 return NULL;
11367 if (_argo0) {
11368 if (_argo0 == Py_None) { _arg0 = NULL; }
11369 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11370 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Intersect. Expected _wxRegion_p.");
11371 return NULL;
11372 }
11373 }
11374 {
11375 wxPy_BEGIN_ALLOW_THREADS;
11376 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
11377
11378 wxPy_END_ALLOW_THREADS;
11379 if (PyErr_Occurred()) return NULL;
11380 } _resultobj = Py_BuildValue("i",_result);
11381 return _resultobj;
11382 }
11383
11384 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11385 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11386 PyObject * _resultobj;
11387 bool _result;
11388 wxRegion * _arg0;
11389 wxRect * _arg1;
11390 PyObject * _argo0 = 0;
11391 wxRect temp;
11392 PyObject * _obj1 = 0;
11393 char *_kwnames[] = { "self","rect", NULL };
11394
11395 self = self;
11396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
11397 return NULL;
11398 if (_argo0) {
11399 if (_argo0 == Py_None) { _arg0 = NULL; }
11400 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11401 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11402 return NULL;
11403 }
11404 }
11405 {
11406 _arg1 = &temp;
11407 if (! wxRect_helper(_obj1, &_arg1))
11408 return NULL;
11409 }
11410 {
11411 wxPy_BEGIN_ALLOW_THREADS;
11412 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
11413
11414 wxPy_END_ALLOW_THREADS;
11415 if (PyErr_Occurred()) return NULL;
11416 } _resultobj = Py_BuildValue("i",_result);
11417 return _resultobj;
11418 }
11419
11420 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11421 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11422 PyObject * _resultobj;
11423 bool _result;
11424 wxRegion * _arg0;
11425 wxRegion * _arg1;
11426 PyObject * _argo0 = 0;
11427 PyObject * _argo1 = 0;
11428 char *_kwnames[] = { "self","region", NULL };
11429
11430 self = self;
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
11432 return NULL;
11433 if (_argo0) {
11434 if (_argo0 == Py_None) { _arg0 = NULL; }
11435 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11436 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11437 return NULL;
11438 }
11439 }
11440 if (_argo1) {
11441 if (_argo1 == Py_None) { _arg1 = NULL; }
11442 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11443 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11444 return NULL;
11445 }
11446 }
11447 {
11448 wxPy_BEGIN_ALLOW_THREADS;
11449 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
11450
11451 wxPy_END_ALLOW_THREADS;
11452 if (PyErr_Occurred()) return NULL;
11453 } _resultobj = Py_BuildValue("i",_result);
11454 return _resultobj;
11455 }
11456
11457 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11458 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
11459 PyObject * _resultobj;
11460 bool _result;
11461 wxRegion * _arg0;
11462 PyObject * _argo0 = 0;
11463 char *_kwnames[] = { "self", NULL };
11464
11465 self = self;
11466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11467 return NULL;
11468 if (_argo0) {
11469 if (_argo0 == Py_None) { _arg0 = NULL; }
11470 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11471 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11472 return NULL;
11473 }
11474 }
11475 {
11476 wxPy_BEGIN_ALLOW_THREADS;
11477 _result = (bool )wxRegion_IsEmpty(_arg0);
11478
11479 wxPy_END_ALLOW_THREADS;
11480 if (PyErr_Occurred()) return NULL;
11481 } _resultobj = Py_BuildValue("i",_result);
11482 return _resultobj;
11483 }
11484
11485 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11486 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11487 PyObject * _resultobj;
11488 bool _result;
11489 wxRegion * _arg0;
11490 long _arg1;
11491 long _arg2;
11492 long _arg3;
11493 long _arg4;
11494 PyObject * _argo0 = 0;
11495 char *_kwnames[] = { "self","x","y","width","height", NULL };
11496
11497 self = self;
11498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11499 return NULL;
11500 if (_argo0) {
11501 if (_argo0 == Py_None) { _arg0 = NULL; }
11502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11504 return NULL;
11505 }
11506 }
11507 {
11508 wxPy_BEGIN_ALLOW_THREADS;
11509 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
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 wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11518 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11519 PyObject * _resultobj;
11520 bool _result;
11521 wxRegion * _arg0;
11522 wxRect * _arg1;
11523 PyObject * _argo0 = 0;
11524 wxRect temp;
11525 PyObject * _obj1 = 0;
11526 char *_kwnames[] = { "self","rect", NULL };
11527
11528 self = self;
11529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11530 return NULL;
11531 if (_argo0) {
11532 if (_argo0 == Py_None) { _arg0 = NULL; }
11533 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11534 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11535 return NULL;
11536 }
11537 }
11538 {
11539 _arg1 = &temp;
11540 if (! wxRect_helper(_obj1, &_arg1))
11541 return NULL;
11542 }
11543 {
11544 wxPy_BEGIN_ALLOW_THREADS;
11545 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
11546
11547 wxPy_END_ALLOW_THREADS;
11548 if (PyErr_Occurred()) return NULL;
11549 } _resultobj = Py_BuildValue("i",_result);
11550 return _resultobj;
11551 }
11552
11553 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11554 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11555 PyObject * _resultobj;
11556 bool _result;
11557 wxRegion * _arg0;
11558 wxRegion * _arg1;
11559 PyObject * _argo0 = 0;
11560 PyObject * _argo1 = 0;
11561 char *_kwnames[] = { "self","region", NULL };
11562
11563 self = self;
11564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11565 return NULL;
11566 if (_argo0) {
11567 if (_argo0 == Py_None) { _arg0 = NULL; }
11568 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11569 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11570 return NULL;
11571 }
11572 }
11573 if (_argo1) {
11574 if (_argo1 == Py_None) { _arg1 = NULL; }
11575 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11576 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11577 return NULL;
11578 }
11579 }
11580 {
11581 wxPy_BEGIN_ALLOW_THREADS;
11582 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
11583
11584 wxPy_END_ALLOW_THREADS;
11585 if (PyErr_Occurred()) return NULL;
11586 } _resultobj = Py_BuildValue("i",_result);
11587 return _resultobj;
11588 }
11589
11590 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11591 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11592 PyObject * _resultobj;
11593 bool _result;
11594 wxRegion * _arg0;
11595 long _arg1;
11596 long _arg2;
11597 long _arg3;
11598 long _arg4;
11599 PyObject * _argo0 = 0;
11600 char *_kwnames[] = { "self","x","y","width","height", NULL };
11601
11602 self = self;
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11604 return NULL;
11605 if (_argo0) {
11606 if (_argo0 == Py_None) { _arg0 = NULL; }
11607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11609 return NULL;
11610 }
11611 }
11612 {
11613 wxPy_BEGIN_ALLOW_THREADS;
11614 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
11615
11616 wxPy_END_ALLOW_THREADS;
11617 if (PyErr_Occurred()) return NULL;
11618 } _resultobj = Py_BuildValue("i",_result);
11619 return _resultobj;
11620 }
11621
11622 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11623 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11624 PyObject * _resultobj;
11625 bool _result;
11626 wxRegion * _arg0;
11627 wxRect * _arg1;
11628 PyObject * _argo0 = 0;
11629 wxRect temp;
11630 PyObject * _obj1 = 0;
11631 char *_kwnames[] = { "self","rect", NULL };
11632
11633 self = self;
11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11635 return NULL;
11636 if (_argo0) {
11637 if (_argo0 == Py_None) { _arg0 = NULL; }
11638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11640 return NULL;
11641 }
11642 }
11643 {
11644 _arg1 = &temp;
11645 if (! wxRect_helper(_obj1, &_arg1))
11646 return NULL;
11647 }
11648 {
11649 wxPy_BEGIN_ALLOW_THREADS;
11650 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
11651
11652 wxPy_END_ALLOW_THREADS;
11653 if (PyErr_Occurred()) return NULL;
11654 } _resultobj = Py_BuildValue("i",_result);
11655 return _resultobj;
11656 }
11657
11658 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11659 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11660 PyObject * _resultobj;
11661 bool _result;
11662 wxRegion * _arg0;
11663 wxRegion * _arg1;
11664 PyObject * _argo0 = 0;
11665 PyObject * _argo1 = 0;
11666 char *_kwnames[] = { "self","region", NULL };
11667
11668 self = self;
11669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11670 return NULL;
11671 if (_argo0) {
11672 if (_argo0 == Py_None) { _arg0 = NULL; }
11673 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11674 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11675 return NULL;
11676 }
11677 }
11678 if (_argo1) {
11679 if (_argo1 == Py_None) { _arg1 = NULL; }
11680 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11681 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11682 return NULL;
11683 }
11684 }
11685 {
11686 wxPy_BEGIN_ALLOW_THREADS;
11687 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
11688
11689 wxPy_END_ALLOW_THREADS;
11690 if (PyErr_Occurred()) return NULL;
11691 } _resultobj = Py_BuildValue("i",_result);
11692 return _resultobj;
11693 }
11694
11695 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11696 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11697 PyObject * _resultobj;
11698 bool _result;
11699 wxRegion * _arg0;
11700 long _arg1;
11701 long _arg2;
11702 long _arg3;
11703 long _arg4;
11704 PyObject * _argo0 = 0;
11705 char *_kwnames[] = { "self","x","y","width","height", NULL };
11706
11707 self = self;
11708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11709 return NULL;
11710 if (_argo0) {
11711 if (_argo0 == Py_None) { _arg0 = NULL; }
11712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11714 return NULL;
11715 }
11716 }
11717 {
11718 wxPy_BEGIN_ALLOW_THREADS;
11719 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11720
11721 wxPy_END_ALLOW_THREADS;
11722 if (PyErr_Occurred()) return NULL;
11723 } _resultobj = Py_BuildValue("i",_result);
11724 return _resultobj;
11725 }
11726
11727 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11728 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11729 PyObject * _resultobj;
11730 bool _result;
11731 wxRegion * _arg0;
11732 wxRect * _arg1;
11733 PyObject * _argo0 = 0;
11734 wxRect temp;
11735 PyObject * _obj1 = 0;
11736 char *_kwnames[] = { "self","rect", NULL };
11737
11738 self = self;
11739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11740 return NULL;
11741 if (_argo0) {
11742 if (_argo0 == Py_None) { _arg0 = NULL; }
11743 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11744 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11745 return NULL;
11746 }
11747 }
11748 {
11749 _arg1 = &temp;
11750 if (! wxRect_helper(_obj1, &_arg1))
11751 return NULL;
11752 }
11753 {
11754 wxPy_BEGIN_ALLOW_THREADS;
11755 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11756
11757 wxPy_END_ALLOW_THREADS;
11758 if (PyErr_Occurred()) return NULL;
11759 } _resultobj = Py_BuildValue("i",_result);
11760 return _resultobj;
11761 }
11762
11763 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11764 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11765 PyObject * _resultobj;
11766 bool _result;
11767 wxRegion * _arg0;
11768 wxRegion * _arg1;
11769 PyObject * _argo0 = 0;
11770 PyObject * _argo1 = 0;
11771 char *_kwnames[] = { "self","region", NULL };
11772
11773 self = self;
11774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11775 return NULL;
11776 if (_argo0) {
11777 if (_argo0 == Py_None) { _arg0 = NULL; }
11778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11780 return NULL;
11781 }
11782 }
11783 if (_argo1) {
11784 if (_argo1 == Py_None) { _arg1 = NULL; }
11785 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11786 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11787 return NULL;
11788 }
11789 }
11790 {
11791 wxPy_BEGIN_ALLOW_THREADS;
11792 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11793
11794 wxPy_END_ALLOW_THREADS;
11795 if (PyErr_Occurred()) return NULL;
11796 } _resultobj = Py_BuildValue("i",_result);
11797 return _resultobj;
11798 }
11799
11800 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11801 wxRegionIterator *src;
11802 wxObject *dest;
11803 src = (wxRegionIterator *) ptr;
11804 dest = (wxObject *) src;
11805 return (void *) dest;
11806 }
11807
11808 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11809 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11810 PyObject * _resultobj;
11811 wxRegionIterator * _result;
11812 wxRegion * _arg0;
11813 PyObject * _argo0 = 0;
11814 char *_kwnames[] = { "region", NULL };
11815 char _ptemp[128];
11816
11817 self = self;
11818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11819 return NULL;
11820 if (_argo0) {
11821 if (_argo0 == Py_None) { _arg0 = NULL; }
11822 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11823 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11824 return NULL;
11825 }
11826 }
11827 {
11828 wxPy_BEGIN_ALLOW_THREADS;
11829 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11830
11831 wxPy_END_ALLOW_THREADS;
11832 if (PyErr_Occurred()) return NULL;
11833 } if (_result) {
11834 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11835 _resultobj = Py_BuildValue("s",_ptemp);
11836 } else {
11837 Py_INCREF(Py_None);
11838 _resultobj = Py_None;
11839 }
11840 return _resultobj;
11841 }
11842
11843 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11844 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11845 PyObject * _resultobj;
11846 wxRegionIterator * _arg0;
11847 PyObject * _argo0 = 0;
11848 char *_kwnames[] = { "self", NULL };
11849
11850 self = self;
11851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11852 return NULL;
11853 if (_argo0) {
11854 if (_argo0 == Py_None) { _arg0 = NULL; }
11855 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11856 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11857 return NULL;
11858 }
11859 }
11860 {
11861 wxPy_BEGIN_ALLOW_THREADS;
11862 delete_wxRegionIterator(_arg0);
11863
11864 wxPy_END_ALLOW_THREADS;
11865 if (PyErr_Occurred()) return NULL;
11866 } Py_INCREF(Py_None);
11867 _resultobj = Py_None;
11868 return _resultobj;
11869 }
11870
11871 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11872 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11873 PyObject * _resultobj;
11874 long _result;
11875 wxRegionIterator * _arg0;
11876 PyObject * _argo0 = 0;
11877 char *_kwnames[] = { "self", NULL };
11878
11879 self = self;
11880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11881 return NULL;
11882 if (_argo0) {
11883 if (_argo0 == Py_None) { _arg0 = NULL; }
11884 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11885 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11886 return NULL;
11887 }
11888 }
11889 {
11890 wxPy_BEGIN_ALLOW_THREADS;
11891 _result = (long )wxRegionIterator_GetX(_arg0);
11892
11893 wxPy_END_ALLOW_THREADS;
11894 if (PyErr_Occurred()) return NULL;
11895 } _resultobj = Py_BuildValue("l",_result);
11896 return _resultobj;
11897 }
11898
11899 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11900 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11901 PyObject * _resultobj;
11902 long _result;
11903 wxRegionIterator * _arg0;
11904 PyObject * _argo0 = 0;
11905 char *_kwnames[] = { "self", NULL };
11906
11907 self = self;
11908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11909 return NULL;
11910 if (_argo0) {
11911 if (_argo0 == Py_None) { _arg0 = NULL; }
11912 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11913 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11914 return NULL;
11915 }
11916 }
11917 {
11918 wxPy_BEGIN_ALLOW_THREADS;
11919 _result = (long )wxRegionIterator_GetY(_arg0);
11920
11921 wxPy_END_ALLOW_THREADS;
11922 if (PyErr_Occurred()) return NULL;
11923 } _resultobj = Py_BuildValue("l",_result);
11924 return _resultobj;
11925 }
11926
11927 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
11928 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
11929 PyObject * _resultobj;
11930 long _result;
11931 wxRegionIterator * _arg0;
11932 PyObject * _argo0 = 0;
11933 char *_kwnames[] = { "self", NULL };
11934
11935 self = self;
11936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
11937 return NULL;
11938 if (_argo0) {
11939 if (_argo0 == Py_None) { _arg0 = NULL; }
11940 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11941 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
11942 return NULL;
11943 }
11944 }
11945 {
11946 wxPy_BEGIN_ALLOW_THREADS;
11947 _result = (long )wxRegionIterator_GetW(_arg0);
11948
11949 wxPy_END_ALLOW_THREADS;
11950 if (PyErr_Occurred()) return NULL;
11951 } _resultobj = Py_BuildValue("l",_result);
11952 return _resultobj;
11953 }
11954
11955 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
11956 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
11957 PyObject * _resultobj;
11958 long _result;
11959 wxRegionIterator * _arg0;
11960 PyObject * _argo0 = 0;
11961 char *_kwnames[] = { "self", NULL };
11962
11963 self = self;
11964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
11965 return NULL;
11966 if (_argo0) {
11967 if (_argo0 == Py_None) { _arg0 = NULL; }
11968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
11970 return NULL;
11971 }
11972 }
11973 {
11974 wxPy_BEGIN_ALLOW_THREADS;
11975 _result = (long )wxRegionIterator_GetWidth(_arg0);
11976
11977 wxPy_END_ALLOW_THREADS;
11978 if (PyErr_Occurred()) return NULL;
11979 } _resultobj = Py_BuildValue("l",_result);
11980 return _resultobj;
11981 }
11982
11983 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
11984 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
11985 PyObject * _resultobj;
11986 long _result;
11987 wxRegionIterator * _arg0;
11988 PyObject * _argo0 = 0;
11989 char *_kwnames[] = { "self", NULL };
11990
11991 self = self;
11992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
11993 return NULL;
11994 if (_argo0) {
11995 if (_argo0 == Py_None) { _arg0 = NULL; }
11996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
11998 return NULL;
11999 }
12000 }
12001 {
12002 wxPy_BEGIN_ALLOW_THREADS;
12003 _result = (long )wxRegionIterator_GetH(_arg0);
12004
12005 wxPy_END_ALLOW_THREADS;
12006 if (PyErr_Occurred()) return NULL;
12007 } _resultobj = Py_BuildValue("l",_result);
12008 return _resultobj;
12009 }
12010
12011 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12012 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12013 PyObject * _resultobj;
12014 long _result;
12015 wxRegionIterator * _arg0;
12016 PyObject * _argo0 = 0;
12017 char *_kwnames[] = { "self", NULL };
12018
12019 self = self;
12020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
12021 return NULL;
12022 if (_argo0) {
12023 if (_argo0 == Py_None) { _arg0 = NULL; }
12024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12026 return NULL;
12027 }
12028 }
12029 {
12030 wxPy_BEGIN_ALLOW_THREADS;
12031 _result = (long )wxRegionIterator_GetHeight(_arg0);
12032
12033 wxPy_END_ALLOW_THREADS;
12034 if (PyErr_Occurred()) return NULL;
12035 } _resultobj = Py_BuildValue("l",_result);
12036 return _resultobj;
12037 }
12038
12039 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12040 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12041 PyObject * _resultobj;
12042 wxRect * _result;
12043 wxRegionIterator * _arg0;
12044 PyObject * _argo0 = 0;
12045 char *_kwnames[] = { "self", NULL };
12046 char _ptemp[128];
12047
12048 self = self;
12049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
12050 return NULL;
12051 if (_argo0) {
12052 if (_argo0 == Py_None) { _arg0 = NULL; }
12053 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12054 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12055 return NULL;
12056 }
12057 }
12058 {
12059 wxPy_BEGIN_ALLOW_THREADS;
12060 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
12061
12062 wxPy_END_ALLOW_THREADS;
12063 if (PyErr_Occurred()) return NULL;
12064 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12065 _resultobj = Py_BuildValue("s",_ptemp);
12066 return _resultobj;
12067 }
12068
12069 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12070 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
12071 PyObject * _resultobj;
12072 bool _result;
12073 wxRegionIterator * _arg0;
12074 PyObject * _argo0 = 0;
12075 char *_kwnames[] = { "self", NULL };
12076
12077 self = self;
12078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
12079 return NULL;
12080 if (_argo0) {
12081 if (_argo0 == Py_None) { _arg0 = NULL; }
12082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12084 return NULL;
12085 }
12086 }
12087 {
12088 wxPy_BEGIN_ALLOW_THREADS;
12089 _result = (bool )wxRegionIterator_HaveRects(_arg0);
12090
12091 wxPy_END_ALLOW_THREADS;
12092 if (PyErr_Occurred()) return NULL;
12093 } _resultobj = Py_BuildValue("i",_result);
12094 return _resultobj;
12095 }
12096
12097 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12098 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
12099 PyObject * _resultobj;
12100 wxRegionIterator * _arg0;
12101 PyObject * _argo0 = 0;
12102 char *_kwnames[] = { "self", NULL };
12103
12104 self = self;
12105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
12106 return NULL;
12107 if (_argo0) {
12108 if (_argo0 == Py_None) { _arg0 = NULL; }
12109 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12110 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12111 return NULL;
12112 }
12113 }
12114 {
12115 wxPy_BEGIN_ALLOW_THREADS;
12116 wxRegionIterator_Reset(_arg0);
12117
12118 wxPy_END_ALLOW_THREADS;
12119 if (PyErr_Occurred()) return NULL;
12120 } Py_INCREF(Py_None);
12121 _resultobj = Py_None;
12122 return _resultobj;
12123 }
12124
12125 static void wxRegionIterator_Next(wxRegionIterator *self) {
12126 (*self) ++;
12127 }
12128 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
12129 PyObject * _resultobj;
12130 wxRegionIterator * _arg0;
12131 PyObject * _argo0 = 0;
12132 char *_kwnames[] = { "self", NULL };
12133
12134 self = self;
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
12136 return NULL;
12137 if (_argo0) {
12138 if (_argo0 == Py_None) { _arg0 = NULL; }
12139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12141 return NULL;
12142 }
12143 }
12144 {
12145 wxPy_BEGIN_ALLOW_THREADS;
12146 wxRegionIterator_Next(_arg0);
12147
12148 wxPy_END_ALLOW_THREADS;
12149 if (PyErr_Occurred()) return NULL;
12150 } Py_INCREF(Py_None);
12151 _resultobj = Py_None;
12152 return _resultobj;
12153 }
12154
12155 static PyMethodDef gdicMethods[] = {
12156 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
12157 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
12158 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
12159 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
12160 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
12161 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
12162 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
12163 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
12164 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
12165 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
12166 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12167 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12168 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
12169 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
12170 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
12171 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
12172 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
12173 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
12174 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
12175 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
12176 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
12177 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
12178 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
12179 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
12180 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
12181 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
12182 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
12183 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
12184 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
12185 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
12186 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
12187 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
12188 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
12189 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
12190 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
12191 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
12192 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
12193 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
12194 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
12195 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
12196 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
12197 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
12198 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
12199 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
12200 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
12201 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
12202 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
12203 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
12204 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
12205 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
12206 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
12207 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
12208 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
12209 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
12210 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
12211 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
12212 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
12213 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12214 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12215 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
12216 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
12217 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
12218 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12219 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12220 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
12221 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
12222 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
12223 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
12224 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
12225 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
12226 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
12227 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12228 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12229 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
12230 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
12231 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12232 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12233 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12234 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
12235 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
12236 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
12237 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
12238 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
12239 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
12240 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
12241 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
12242 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
12243 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
12244 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
12245 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
12246 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
12247 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12248 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12249 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
12250 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
12251 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
12252 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
12253 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
12254 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
12255 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
12256 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12257 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
12258 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
12259 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
12260 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
12261 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
12262 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
12263 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
12264 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
12265 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
12266 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
12267 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
12268 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
12269 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
12270 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
12271 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
12272 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
12273 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
12274 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
12275 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
12276 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
12277 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
12278 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12279 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12280 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
12281 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
12282 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
12283 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
12284 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
12285 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
12286 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
12287 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
12288 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
12289 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
12290 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
12291 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
12292 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
12293 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
12294 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
12295 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
12296 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
12297 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
12298 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
12299 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
12300 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
12301 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
12302 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
12303 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
12304 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
12305 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
12306 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
12307 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
12308 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
12309 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
12310 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
12311 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
12312 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
12313 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
12314 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
12315 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
12316 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
12317 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
12318 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
12319 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
12320 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
12321 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
12322 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
12323 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
12324 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
12325 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
12326 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
12327 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
12328 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
12329 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12330 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12331 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12332 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
12333 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
12334 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12335 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
12336 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
12337 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
12338 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
12339 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
12340 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
12341 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
12342 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
12343 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
12344 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
12345 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
12346 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
12347 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
12348 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
12349 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
12350 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
12351 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
12352 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
12353 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
12354 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
12355 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
12356 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
12357 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
12358 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
12359 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
12360 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
12361 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
12362 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
12363 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
12364 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
12365 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
12366 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
12367 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12368 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
12369 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
12370 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
12371 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
12372 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
12373 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
12374 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
12375 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12376 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
12377 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
12378 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
12379 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
12380 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
12381 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
12382 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
12383 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
12384 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
12385 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
12386 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
12387 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
12388 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
12389 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
12390 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
12391 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
12392 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
12393 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
12394 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
12395 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
12396 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
12397 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
12398 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
12399 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
12400 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
12401 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
12402 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
12403 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
12404 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
12405 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
12406 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
12407 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
12408 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
12409 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
12410 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
12411 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
12412 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
12413 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
12414 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
12415 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
12416 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
12417 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
12418 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
12419 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
12420 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
12421 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
12422 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
12423 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
12424 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
12425 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
12426 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
12427 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
12428 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
12429 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
12430 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
12431 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
12432 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
12433 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
12434 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
12435 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
12436 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
12437 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
12438 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
12439 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
12440 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
12441 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
12442 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
12443 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
12444 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
12445 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
12446 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
12447 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
12448 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
12449 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
12450 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
12451 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12452 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12453 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
12454 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
12455 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
12456 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12457 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12458 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
12459 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
12460 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
12461 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
12462 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
12463 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
12464 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
12465 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
12466 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
12467 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
12468 { NULL, NULL }
12469 };
12470 #ifdef __cplusplus
12471 }
12472 #endif
12473 /*
12474 * This table is used by the pointer type-checker
12475 */
12476 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12477 { "_signed_long","_long",0},
12478 { "_wxPrintQuality","_wxCoord",0},
12479 { "_wxPrintQuality","_int",0},
12480 { "_wxPrintQuality","_signed_int",0},
12481 { "_wxPrintQuality","_unsigned_int",0},
12482 { "_wxPrintQuality","_wxWindowID",0},
12483 { "_wxPrintQuality","_uint",0},
12484 { "_wxPrintQuality","_EBool",0},
12485 { "_wxPrintQuality","_size_t",0},
12486 { "_wxPrintQuality","_time_t",0},
12487 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
12488 { "_byte","_unsigned_char",0},
12489 { "_long","_unsigned_long",0},
12490 { "_long","_signed_long",0},
12491 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
12492 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
12493 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
12494 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
12495 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
12496 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
12497 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
12498 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
12499 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
12500 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
12501 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
12502 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
12503 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
12504 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
12505 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
12506 { "_size_t","_wxCoord",0},
12507 { "_size_t","_wxPrintQuality",0},
12508 { "_size_t","_time_t",0},
12509 { "_size_t","_unsigned_int",0},
12510 { "_size_t","_int",0},
12511 { "_size_t","_wxWindowID",0},
12512 { "_size_t","_uint",0},
12513 { "_uint","_wxCoord",0},
12514 { "_uint","_wxPrintQuality",0},
12515 { "_uint","_time_t",0},
12516 { "_uint","_size_t",0},
12517 { "_uint","_unsigned_int",0},
12518 { "_uint","_int",0},
12519 { "_uint","_wxWindowID",0},
12520 { "_wxChar","_char",0},
12521 { "_char","_wxChar",0},
12522 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12523 { "_EBool","_wxCoord",0},
12524 { "_EBool","_wxPrintQuality",0},
12525 { "_EBool","_signed_int",0},
12526 { "_EBool","_int",0},
12527 { "_EBool","_wxWindowID",0},
12528 { "_unsigned_long","_long",0},
12529 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12530 { "_signed_int","_wxCoord",0},
12531 { "_signed_int","_wxPrintQuality",0},
12532 { "_signed_int","_EBool",0},
12533 { "_signed_int","_wxWindowID",0},
12534 { "_signed_int","_int",0},
12535 { "_WXTYPE","_short",0},
12536 { "_WXTYPE","_signed_short",0},
12537 { "_WXTYPE","_unsigned_short",0},
12538 { "_unsigned_short","_WXTYPE",0},
12539 { "_unsigned_short","_short",0},
12540 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
12541 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
12542 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
12543 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
12544 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
12545 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
12546 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
12547 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
12548 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
12549 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
12550 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
12551 { "_wxObject","_wxDC",SwigwxDCTowxObject},
12552 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
12553 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
12554 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
12555 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
12556 { "_wxObject","_wxPen",SwigwxPenTowxObject},
12557 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
12558 { "_wxObject","_wxColour",SwigwxColourTowxObject},
12559 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
12560 { "_wxObject","_wxFont",SwigwxFontTowxObject},
12561 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
12562 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
12563 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
12564 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
12565 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
12566 { "_signed_short","_WXTYPE",0},
12567 { "_signed_short","_short",0},
12568 { "_unsigned_char","_byte",0},
12569 { "_unsigned_int","_wxCoord",0},
12570 { "_unsigned_int","_wxPrintQuality",0},
12571 { "_unsigned_int","_time_t",0},
12572 { "_unsigned_int","_size_t",0},
12573 { "_unsigned_int","_uint",0},
12574 { "_unsigned_int","_wxWindowID",0},
12575 { "_unsigned_int","_int",0},
12576 { "_short","_WXTYPE",0},
12577 { "_short","_unsigned_short",0},
12578 { "_short","_signed_short",0},
12579 { "_wxWindowID","_wxCoord",0},
12580 { "_wxWindowID","_wxPrintQuality",0},
12581 { "_wxWindowID","_time_t",0},
12582 { "_wxWindowID","_size_t",0},
12583 { "_wxWindowID","_EBool",0},
12584 { "_wxWindowID","_uint",0},
12585 { "_wxWindowID","_int",0},
12586 { "_wxWindowID","_signed_int",0},
12587 { "_wxWindowID","_unsigned_int",0},
12588 { "_int","_wxCoord",0},
12589 { "_int","_wxPrintQuality",0},
12590 { "_int","_time_t",0},
12591 { "_int","_size_t",0},
12592 { "_int","_EBool",0},
12593 { "_int","_uint",0},
12594 { "_int","_wxWindowID",0},
12595 { "_int","_unsigned_int",0},
12596 { "_int","_signed_int",0},
12597 { "_time_t","_wxCoord",0},
12598 { "_time_t","_wxPrintQuality",0},
12599 { "_time_t","_unsigned_int",0},
12600 { "_time_t","_int",0},
12601 { "_time_t","_wxWindowID",0},
12602 { "_time_t","_uint",0},
12603 { "_time_t","_size_t",0},
12604 { "_wxCoord","_int",0},
12605 { "_wxCoord","_signed_int",0},
12606 { "_wxCoord","_unsigned_int",0},
12607 { "_wxCoord","_wxWindowID",0},
12608 { "_wxCoord","_uint",0},
12609 { "_wxCoord","_EBool",0},
12610 { "_wxCoord","_size_t",0},
12611 { "_wxCoord","_time_t",0},
12612 { "_wxCoord","_wxPrintQuality",0},
12613 {0,0,0}};
12614
12615 static PyObject *SWIG_globals;
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 SWIGEXPORT(void) initgdic() {
12620 PyObject *m, *d;
12621 SWIG_globals = SWIG_newvarlink();
12622 m = Py_InitModule("gdic", gdicMethods);
12623 d = PyModule_GetDict(m);
12624 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
12625 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
12626 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
12627 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
12628 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
12629 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
12630 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
12631 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
12632 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
12633 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
12634 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
12635 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
12636 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
12637 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
12638 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
12639 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
12640 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
12641 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
12642 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
12643 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
12644 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
12645 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
12646 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
12647 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
12648 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
12649 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
12650 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
12651 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
12652 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
12653 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
12654 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
12655 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
12656 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
12657 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
12658 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
12659 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
12660 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
12661 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
12662 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
12663 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
12664 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
12665 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
12666 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
12667 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
12668 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
12669 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
12670 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
12671 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
12672 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
12673 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
12674 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
12675 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
12676 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
12677 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
12678 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
12679 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
12680 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
12681 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
12682 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
12683 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
12684 PyDict_SetItemString(d,"cvar", SWIG_globals);
12685 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12686 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12687 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12688 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12689 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12690 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12691 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12692 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12693 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12694 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12695 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12696 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12697 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12698 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12699 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12700 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12701 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12702 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12703 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12704 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12705 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12706 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12707 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12708 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12709 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12710 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12711 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12712 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12713 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12714 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12715 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12716 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12717 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12718 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12719 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12720 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12721 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12722 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12723 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12724 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12725 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12726 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
12727 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12728 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12729 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12730 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
12731 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12732 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12733 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12734 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12735 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12736 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12737 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12738 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12739 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12740 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
12741 {
12742 int i;
12743 for (i = 0; _swig_mapping[i].n1; i++)
12744 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12745 }
12746 }