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