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