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