]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi.cpp
Added wxChildFocusEvent
[wxWidgets.git] / wxPython / src / msw / gdi.cpp
1 /*
2 * FILE : src/msw/gdi.cpp
3 *
4 * This file was automatically generated by :
5 * Simplified Wrapper and Interface Generator (SWIG)
6 * Version 1.1 (Build 883)
7 *
8 * Portions Copyright (c) 1995-1998
9 * The University of Utah and The Regents of the University of California.
10 * Permission is granted to distribute this file in any manner provided
11 * this notice remains intact.
12 *
13 * Do not make changes to this file--changes will be lost!
14 *
15 */
16
17
18 #define SWIGCODE
19 /* Implementation : PYTHON */
20
21 #define SWIGPYTHON
22 #include <string.h>
23 #include <stdlib.h>
24 /* Definitions for Windows/Unix exporting */
25 #if defined(__WIN32__)
26 # if defined(_MSC_VER)
27 # define SWIGEXPORT(a) __declspec(dllexport) a
28 # else
29 # if defined(__BORLANDC__)
30 # define SWIGEXPORT(a) a _export
31 # else
32 # define SWIGEXPORT(a) a
33 # endif
34 # endif
35 #else
36 # define SWIGEXPORT(a) a
37 #endif
38
39 #include "Python.h"
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 extern void SWIG_MakePtr(char *, void *, char *);
46 extern void SWIG_RegisterMapping(char *, char *, void *(*)(void *));
47 extern char *SWIG_GetPtr(char *, void **, char *);
48 extern char *SWIG_GetPtrObj(PyObject *, void **, char *);
49 extern void SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
50 extern PyObject *SWIG_newvarlink(void);
51 #ifdef __cplusplus
52 }
53 #endif
54 #define SWIG_init initgdic
55
56 #define SWIG_name "gdic"
57
58 #include "helpers.h"
59 #include <wx/imaglist.h>
60 #include <wx/fontmap.h>
61 #include <wx/fontenc.h>
62 #include <wx/fontmap.h>
63 #include <wx/fontutil.h>
64
65
66 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
67 PyObject* o2;
68 PyObject* o3;
69
70 if (!target) {
71 target = o;
72 } else if (target == Py_None) {
73 Py_DECREF(Py_None);
74 target = o;
75 } else {
76 if (!PyTuple_Check(target)) {
77 o2 = target;
78 target = PyTuple_New(1);
79 PyTuple_SetItem(target, 0, o2);
80 }
81 o3 = PyTuple_New(1);
82 PyTuple_SetItem(o3, 0, o);
83
84 o2 = target;
85 target = PySequence_Concat(o2, o3);
86 Py_DECREF(o2);
87 Py_DECREF(o3);
88 }
89 return target;
90 }
91
92 #if PYTHON_API_VERSION >= 1009
93 static char* wxStringErrorMsg = "String or Unicode type required";
94 #else
95 static char* wxStringErrorMsg = "String type required";
96 #endif
97
98 static wxString wxPyEmptyStr("");
99 // Implementations of some alternate "constructors"
100
101 wxBitmap* wxEmptyBitmap(int width, int height, int depth=-1) {
102 return new wxBitmap(width, height, depth);
103 }
104
105 static char** ConvertListOfStrings(PyObject* listOfStrings) {
106 char** cArray = NULL;
107 int count;
108
109 if (!PyList_Check(listOfStrings)) {
110 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
111 return NULL;
112 }
113 count = PyList_Size(listOfStrings);
114 cArray = new char*[count];
115
116 for(int x=0; x<count; x++) {
117 // TODO: Need some validation and error checking here
118 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
119 }
120 return cArray;
121 }
122
123
124 wxBitmap* wxBitmapFromXPMData(PyObject* listOfStrings) {
125 char** cArray = NULL;
126 wxBitmap* bmp;
127
128 cArray = ConvertListOfStrings(listOfStrings);
129 if (! cArray)
130 return NULL;
131 bmp = new wxBitmap(cArray);
132 delete [] cArray;
133 return bmp;
134 }
135
136
137 wxBitmap* wxBitmapFromIcon(const wxIcon& icon) {
138 return new wxBitmap(icon);
139 }
140
141
142 wxBitmap* wxBitmapFromBits(char* bits, int width, int height, int depth = 1 ) {
143 return new wxBitmap(bits, width, height, depth);
144 }
145
146
147 // #ifdef __WXMSW__
148 // wxBitmap* wxBitmapFromData(PyObject* data, long type,
149 // int width, int height, int depth = 1) {
150 // if (! PyString_Check(data)) {
151 // PyErr_SetString(PyExc_TypeError, "Expected string object");
152 // return NULL;
153 // }
154 // return new wxBitmap((void*)PyString_AsString(data), type, width, height, depth);
155 // }
156 // #endif
157
158 wxMask* wxMaskColour(const wxBitmap& bitmap, const wxColour& colour) {
159 return new wxMask(bitmap, colour);
160 }
161 // Implementations of some alternate "constructors"
162 wxIcon* wxEmptyIcon() {
163 return new wxIcon();
164 }
165
166 wxIcon* wxIconFromXPMData(PyObject* listOfStrings) {
167 char** cArray = NULL;
168 wxIcon* icon;
169
170 cArray = ConvertListOfStrings(listOfStrings);
171 if (! cArray)
172 return NULL;
173 icon = new wxIcon(cArray);
174 delete [] cArray;
175 return icon;
176 }
177 // Alternate 'constructor'
178 wxCursor* wxPyStockCursor(int id) {
179 return new wxCursor(id);
180 }
181 // Alternate 'constructor'
182 wxColour* wxNamedColour(const wxString& colorName) {
183 return new wxColour(colorName);
184 }
185
186 class wxPyPen : public wxPen {
187 public:
188 wxPyPen(wxColour& colour, int width=1, int style=wxSOLID)
189 : wxPen(colour, width, style)
190 { m_dash = NULL; }
191 ~wxPyPen() {
192 if (m_dash)
193 delete [] m_dash;
194 }
195
196 void SetDashes(int nb_dashes, const wxDash *dash) {
197 if (m_dash)
198 delete [] m_dash;
199 m_dash = new wxDash[nb_dashes];
200 for (int i=0; i<nb_dashes; i++) {
201 m_dash[i] = dash[i];
202 }
203 wxPen::SetDashes(nb_dashes, m_dash);
204 }
205
206 private:
207 wxDash* m_dash;
208 };
209
210 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
211 *x1 = dc->MinX();
212 *y1 = dc->MinY();
213 *x2 = dc->MaxX();
214 *y2 = dc->MaxY();
215 }
216 // Alternate 'constructor'
217 wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
218 return new wxMemoryDC(oldDC);
219 }
220
221 #include <wx/metafile.h>
222
223 #if 0
224 extern wxFont * wxNORMAL_FONT;
225 extern wxFont * wxSMALL_FONT;
226 extern wxFont * wxITALIC_FONT;
227 extern wxFont * wxSWISS_FONT;
228 extern wxPen * wxRED_PEN;
229 extern wxPen * wxCYAN_PEN;
230 extern wxPen * wxGREEN_PEN;
231 extern wxPen * wxBLACK_PEN;
232 extern wxPen * wxWHITE_PEN;
233 extern wxPen * wxTRANSPARENT_PEN;
234 extern wxPen * wxBLACK_DASHED_PEN;
235 extern wxPen * wxGREY_PEN;
236 extern wxPen * wxMEDIUM_GREY_PEN;
237 extern wxPen * wxLIGHT_GREY_PEN;
238 extern wxBrush * wxBLUE_BRUSH;
239 extern wxBrush * wxGREEN_BRUSH;
240 extern wxBrush * wxWHITE_BRUSH;
241 extern wxBrush * wxBLACK_BRUSH;
242 extern wxBrush * wxTRANSPARENT_BRUSH;
243 extern wxBrush * wxCYAN_BRUSH;
244 extern wxBrush * wxRED_BRUSH;
245 extern wxBrush * wxGREY_BRUSH;
246 extern wxBrush * wxMEDIUM_GREY_BRUSH;
247 extern wxBrush * wxLIGHT_GREY_BRUSH;
248 extern wxColour * wxBLACK;
249 extern wxColour * wxWHITE;
250 extern wxColour * wxRED;
251 extern wxColour * wxBLUE;
252 extern wxColour * wxGREEN;
253 extern wxColour * wxCYAN;
254 extern wxColour * wxLIGHT_GREY;
255 extern wxCursor * wxSTANDARD_CURSOR;
256 extern wxCursor * wxHOURGLASS_CURSOR;
257 extern wxCursor * wxCROSS_CURSOR;
258 extern wxBitmap wxNullBitmap;
259 extern wxIcon wxNullIcon;
260 extern wxCursor wxNullCursor;
261 extern wxPen wxNullPen;
262 extern wxBrush wxNullBrush;
263 extern wxPalette wxNullPalette;
264 extern wxFont wxNullFont;
265 extern wxColour wxNullColour;
266 extern wxFontList * wxTheFontList;
267 extern wxPenList * wxThePenList;
268 extern wxBrushList * wxTheBrushList;
269 extern wxColourDatabase * wxTheColourDatabase;
270
271 #endif
272 #ifdef __cplusplus
273 extern "C" {
274 #endif
275 static PyObject *_wrap_wxEmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
276 PyObject * _resultobj;
277 wxBitmap * _result;
278 int _arg0;
279 int _arg1;
280 int _arg2 = (int ) -1;
281 char *_kwnames[] = { "width","height","depth", NULL };
282 char _ptemp[128];
283
284 self = self;
285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|i:wxEmptyBitmap",_kwnames,&_arg0,&_arg1,&_arg2))
286 return NULL;
287 {
288 wxPy_BEGIN_ALLOW_THREADS;
289 _result = (wxBitmap *)wxEmptyBitmap(_arg0,_arg1,_arg2);
290
291 wxPy_END_ALLOW_THREADS;
292 if (PyErr_Occurred()) return NULL;
293 } if (_result) {
294 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
295 _resultobj = Py_BuildValue("s",_ptemp);
296 } else {
297 Py_INCREF(Py_None);
298 _resultobj = Py_None;
299 }
300 return _resultobj;
301 }
302
303 static PyObject *_wrap_wxBitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
304 PyObject * _resultobj;
305 wxBitmap * _result;
306 PyObject * _arg0;
307 PyObject * _obj0 = 0;
308 char *_kwnames[] = { "listOfStrings", NULL };
309 char _ptemp[128];
310
311 self = self;
312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromXPMData",_kwnames,&_obj0))
313 return NULL;
314 {
315 _arg0 = _obj0;
316 }
317 {
318 wxPy_BEGIN_ALLOW_THREADS;
319 _result = (wxBitmap *)wxBitmapFromXPMData(_arg0);
320
321 wxPy_END_ALLOW_THREADS;
322 if (PyErr_Occurred()) return NULL;
323 } if (_result) {
324 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
325 _resultobj = Py_BuildValue("s",_ptemp);
326 } else {
327 Py_INCREF(Py_None);
328 _resultobj = Py_None;
329 }
330 return _resultobj;
331 }
332
333 static PyObject *_wrap_wxBitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
334 PyObject * _resultobj;
335 wxBitmap * _result;
336 wxIcon * _arg0;
337 PyObject * _argo0 = 0;
338 char *_kwnames[] = { "icon", NULL };
339 char _ptemp[128];
340
341 self = self;
342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmapFromIcon",_kwnames,&_argo0))
343 return NULL;
344 if (_argo0) {
345 if (_argo0 == Py_None) { _arg0 = NULL; }
346 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
347 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmapFromIcon. Expected _wxIcon_p.");
348 return NULL;
349 }
350 }
351 {
352 wxPy_BEGIN_ALLOW_THREADS;
353 _result = (wxBitmap *)wxBitmapFromIcon(*_arg0);
354
355 wxPy_END_ALLOW_THREADS;
356 if (PyErr_Occurred()) return NULL;
357 } if (_result) {
358 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
359 _resultobj = Py_BuildValue("s",_ptemp);
360 } else {
361 Py_INCREF(Py_None);
362 _resultobj = Py_None;
363 }
364 return _resultobj;
365 }
366
367 static PyObject *_wrap_wxBitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
368 PyObject * _resultobj;
369 wxBitmap * _result;
370 char * _arg0;
371 int _arg1;
372 int _arg2;
373 int _arg3 = (int ) 1;
374 char *_kwnames[] = { "bits","width","height","depth", NULL };
375 char _ptemp[128];
376
377 self = self;
378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"sii|i:wxBitmapFromBits",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
379 return NULL;
380 {
381 wxPy_BEGIN_ALLOW_THREADS;
382 _result = (wxBitmap *)wxBitmapFromBits(_arg0,_arg1,_arg2,_arg3);
383
384 wxPy_END_ALLOW_THREADS;
385 if (PyErr_Occurred()) return NULL;
386 } if (_result) {
387 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
388 _resultobj = Py_BuildValue("s",_ptemp);
389 } else {
390 Py_INCREF(Py_None);
391 _resultobj = Py_None;
392 }
393 return _resultobj;
394 }
395
396 static PyObject *_wrap_wxMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
397 PyObject * _resultobj;
398 wxMask * _result;
399 wxBitmap * _arg0;
400 wxColour * _arg1;
401 PyObject * _argo0 = 0;
402 wxColour temp;
403 PyObject * _obj1 = 0;
404 char *_kwnames[] = { "bitmap","colour", NULL };
405 char _ptemp[128];
406
407 self = self;
408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMaskColour",_kwnames,&_argo0,&_obj1))
409 return NULL;
410 if (_argo0) {
411 if (_argo0 == Py_None) { _arg0 = NULL; }
412 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
413 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMaskColour. Expected _wxBitmap_p.");
414 return NULL;
415 }
416 }
417 {
418 _arg1 = &temp;
419 if (! wxColour_helper(_obj1, &_arg1))
420 return NULL;
421 }
422 {
423 wxPy_BEGIN_ALLOW_THREADS;
424 _result = (wxMask *)wxMaskColour(*_arg0,*_arg1);
425
426 wxPy_END_ALLOW_THREADS;
427 if (PyErr_Occurred()) return NULL;
428 } if (_result) {
429 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
430 _resultobj = Py_BuildValue("s",_ptemp);
431 } else {
432 Py_INCREF(Py_None);
433 _resultobj = Py_None;
434 }
435 return _resultobj;
436 }
437
438 static PyObject *_wrap_wxEmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
439 PyObject * _resultobj;
440 wxIcon * _result;
441 char *_kwnames[] = { NULL };
442 char _ptemp[128];
443
444 self = self;
445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxEmptyIcon",_kwnames))
446 return NULL;
447 {
448 wxPy_BEGIN_ALLOW_THREADS;
449 _result = (wxIcon *)wxEmptyIcon();
450
451 wxPy_END_ALLOW_THREADS;
452 if (PyErr_Occurred()) return NULL;
453 } if (_result) {
454 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
455 _resultobj = Py_BuildValue("s",_ptemp);
456 } else {
457 Py_INCREF(Py_None);
458 _resultobj = Py_None;
459 }
460 return _resultobj;
461 }
462
463 static PyObject *_wrap_wxIconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
464 PyObject * _resultobj;
465 wxIcon * _result;
466 PyObject * _arg0;
467 PyObject * _obj0 = 0;
468 char *_kwnames[] = { "listOfStrings", NULL };
469 char _ptemp[128];
470
471 self = self;
472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIconFromXPMData",_kwnames,&_obj0))
473 return NULL;
474 {
475 _arg0 = _obj0;
476 }
477 {
478 wxPy_BEGIN_ALLOW_THREADS;
479 _result = (wxIcon *)wxIconFromXPMData(_arg0);
480
481 wxPy_END_ALLOW_THREADS;
482 if (PyErr_Occurred()) return NULL;
483 } if (_result) {
484 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
485 _resultobj = Py_BuildValue("s",_ptemp);
486 } else {
487 Py_INCREF(Py_None);
488 _resultobj = Py_None;
489 }
490 return _resultobj;
491 }
492
493 static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
494 PyObject * _resultobj;
495 wxCursor * _result;
496 int _arg0;
497 char *_kwnames[] = { "id", NULL };
498 char _ptemp[128];
499
500 self = self;
501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxStockCursor",_kwnames,&_arg0))
502 return NULL;
503 {
504 wxPy_BEGIN_ALLOW_THREADS;
505 _result = (wxCursor *)wxPyStockCursor(_arg0);
506
507 wxPy_END_ALLOW_THREADS;
508 if (PyErr_Occurred()) return NULL;
509 } if (_result) {
510 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
511 _resultobj = Py_BuildValue("s",_ptemp);
512 } else {
513 Py_INCREF(Py_None);
514 _resultobj = Py_None;
515 }
516 return _resultobj;
517 }
518
519 static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
520 PyObject * _resultobj;
521 wxColour * _result;
522 wxString * _arg0;
523 PyObject * _obj0 = 0;
524 char *_kwnames[] = { "colorName", NULL };
525 char _ptemp[128];
526
527 self = self;
528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNamedColour",_kwnames,&_obj0))
529 return NULL;
530 {
531 #if PYTHON_API_VERSION >= 1009
532 char* tmpPtr; int tmpSize;
533 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
534 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
535 return NULL;
536 }
537 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
538 return NULL;
539 _arg0 = new wxString(tmpPtr, tmpSize);
540 #else
541 if (!PyString_Check(_obj0)) {
542 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
543 return NULL;
544 }
545 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
546 #endif
547 }
548 {
549 wxPy_BEGIN_ALLOW_THREADS;
550 _result = (wxColour *)wxNamedColour(*_arg0);
551
552 wxPy_END_ALLOW_THREADS;
553 if (PyErr_Occurred()) return NULL;
554 } if (_result) {
555 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
556 _resultobj = Py_BuildValue("s",_ptemp);
557 } else {
558 Py_INCREF(Py_None);
559 _resultobj = Py_None;
560 }
561 {
562 if (_obj0)
563 delete _arg0;
564 }
565 return _resultobj;
566 }
567
568 static PyObject *_wrap_wxMemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
569 PyObject * _resultobj;
570 wxMemoryDC * _result;
571 wxDC * _arg0;
572 PyObject * _argo0 = 0;
573 char *_kwnames[] = { "oldDC", NULL };
574 char _ptemp[128];
575
576 self = self;
577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMemoryDCFromDC",_kwnames,&_argo0))
578 return NULL;
579 if (_argo0) {
580 if (_argo0 == Py_None) { _arg0 = NULL; }
581 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
582 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDCFromDC. Expected _wxDC_p.");
583 return NULL;
584 }
585 }
586 {
587 wxPy_BEGIN_ALLOW_THREADS;
588 _result = (wxMemoryDC *)wxMemoryDCFromDC(_arg0);
589
590 wxPy_END_ALLOW_THREADS;
591 if (PyErr_Occurred()) return NULL;
592 } if (_result) {
593 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
594 _resultobj = Py_BuildValue("s",_ptemp);
595 } else {
596 Py_INCREF(Py_None);
597 _resultobj = Py_None;
598 }
599 return _resultobj;
600 }
601
602 static int _wrap_wxNORMAL_FONT_set(PyObject *val) {
603
604 PyErr_SetString(PyExc_TypeError,"Variable wxNORMAL_FONT is read-only.");
605 return 1;
606 }
607
608 static PyObject *_wrap_wxNORMAL_FONT_get() {
609 PyObject * pyobj;
610 char ptemp[128];
611
612 SWIG_MakePtr(ptemp, (char *) wxNORMAL_FONT,"_wxFont_p");
613 pyobj = PyString_FromString(ptemp);
614 return pyobj;
615 }
616
617 static int _wrap_wxSMALL_FONT_set(PyObject *val) {
618
619 PyErr_SetString(PyExc_TypeError,"Variable wxSMALL_FONT is read-only.");
620 return 1;
621 }
622
623 static PyObject *_wrap_wxSMALL_FONT_get() {
624 PyObject * pyobj;
625 char ptemp[128];
626
627 SWIG_MakePtr(ptemp, (char *) wxSMALL_FONT,"_wxFont_p");
628 pyobj = PyString_FromString(ptemp);
629 return pyobj;
630 }
631
632 static int _wrap_wxITALIC_FONT_set(PyObject *val) {
633
634 PyErr_SetString(PyExc_TypeError,"Variable wxITALIC_FONT is read-only.");
635 return 1;
636 }
637
638 static PyObject *_wrap_wxITALIC_FONT_get() {
639 PyObject * pyobj;
640 char ptemp[128];
641
642 SWIG_MakePtr(ptemp, (char *) wxITALIC_FONT,"_wxFont_p");
643 pyobj = PyString_FromString(ptemp);
644 return pyobj;
645 }
646
647 static int _wrap_wxSWISS_FONT_set(PyObject *val) {
648
649 PyErr_SetString(PyExc_TypeError,"Variable wxSWISS_FONT is read-only.");
650 return 1;
651 }
652
653 static PyObject *_wrap_wxSWISS_FONT_get() {
654 PyObject * pyobj;
655 char ptemp[128];
656
657 SWIG_MakePtr(ptemp, (char *) wxSWISS_FONT,"_wxFont_p");
658 pyobj = PyString_FromString(ptemp);
659 return pyobj;
660 }
661
662 static int _wrap_wxRED_PEN_set(PyObject *val) {
663
664 PyErr_SetString(PyExc_TypeError,"Variable wxRED_PEN is read-only.");
665 return 1;
666 }
667
668 static PyObject *_wrap_wxRED_PEN_get() {
669 PyObject * pyobj;
670 char ptemp[128];
671
672 SWIG_MakePtr(ptemp, (char *) wxRED_PEN,"_wxPen_p");
673 pyobj = PyString_FromString(ptemp);
674 return pyobj;
675 }
676
677 static int _wrap_wxCYAN_PEN_set(PyObject *val) {
678
679 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_PEN is read-only.");
680 return 1;
681 }
682
683 static PyObject *_wrap_wxCYAN_PEN_get() {
684 PyObject * pyobj;
685 char ptemp[128];
686
687 SWIG_MakePtr(ptemp, (char *) wxCYAN_PEN,"_wxPen_p");
688 pyobj = PyString_FromString(ptemp);
689 return pyobj;
690 }
691
692 static int _wrap_wxGREEN_PEN_set(PyObject *val) {
693
694 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_PEN is read-only.");
695 return 1;
696 }
697
698 static PyObject *_wrap_wxGREEN_PEN_get() {
699 PyObject * pyobj;
700 char ptemp[128];
701
702 SWIG_MakePtr(ptemp, (char *) wxGREEN_PEN,"_wxPen_p");
703 pyobj = PyString_FromString(ptemp);
704 return pyobj;
705 }
706
707 static int _wrap_wxBLACK_PEN_set(PyObject *val) {
708
709 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_PEN is read-only.");
710 return 1;
711 }
712
713 static PyObject *_wrap_wxBLACK_PEN_get() {
714 PyObject * pyobj;
715 char ptemp[128];
716
717 SWIG_MakePtr(ptemp, (char *) wxBLACK_PEN,"_wxPen_p");
718 pyobj = PyString_FromString(ptemp);
719 return pyobj;
720 }
721
722 static int _wrap_wxWHITE_PEN_set(PyObject *val) {
723
724 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_PEN is read-only.");
725 return 1;
726 }
727
728 static PyObject *_wrap_wxWHITE_PEN_get() {
729 PyObject * pyobj;
730 char ptemp[128];
731
732 SWIG_MakePtr(ptemp, (char *) wxWHITE_PEN,"_wxPen_p");
733 pyobj = PyString_FromString(ptemp);
734 return pyobj;
735 }
736
737 static int _wrap_wxTRANSPARENT_PEN_set(PyObject *val) {
738
739 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_PEN is read-only.");
740 return 1;
741 }
742
743 static PyObject *_wrap_wxTRANSPARENT_PEN_get() {
744 PyObject * pyobj;
745 char ptemp[128];
746
747 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_PEN,"_wxPen_p");
748 pyobj = PyString_FromString(ptemp);
749 return pyobj;
750 }
751
752 static int _wrap_wxBLACK_DASHED_PEN_set(PyObject *val) {
753
754 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_DASHED_PEN is read-only.");
755 return 1;
756 }
757
758 static PyObject *_wrap_wxBLACK_DASHED_PEN_get() {
759 PyObject * pyobj;
760 char ptemp[128];
761
762 SWIG_MakePtr(ptemp, (char *) wxBLACK_DASHED_PEN,"_wxPen_p");
763 pyobj = PyString_FromString(ptemp);
764 return pyobj;
765 }
766
767 static int _wrap_wxGREY_PEN_set(PyObject *val) {
768
769 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_PEN is read-only.");
770 return 1;
771 }
772
773 static PyObject *_wrap_wxGREY_PEN_get() {
774 PyObject * pyobj;
775 char ptemp[128];
776
777 SWIG_MakePtr(ptemp, (char *) wxGREY_PEN,"_wxPen_p");
778 pyobj = PyString_FromString(ptemp);
779 return pyobj;
780 }
781
782 static int _wrap_wxMEDIUM_GREY_PEN_set(PyObject *val) {
783
784 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_PEN is read-only.");
785 return 1;
786 }
787
788 static PyObject *_wrap_wxMEDIUM_GREY_PEN_get() {
789 PyObject * pyobj;
790 char ptemp[128];
791
792 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_PEN,"_wxPen_p");
793 pyobj = PyString_FromString(ptemp);
794 return pyobj;
795 }
796
797 static int _wrap_wxLIGHT_GREY_PEN_set(PyObject *val) {
798
799 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_PEN is read-only.");
800 return 1;
801 }
802
803 static PyObject *_wrap_wxLIGHT_GREY_PEN_get() {
804 PyObject * pyobj;
805 char ptemp[128];
806
807 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_PEN,"_wxPen_p");
808 pyobj = PyString_FromString(ptemp);
809 return pyobj;
810 }
811
812 static int _wrap_wxBLUE_BRUSH_set(PyObject *val) {
813
814 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE_BRUSH is read-only.");
815 return 1;
816 }
817
818 static PyObject *_wrap_wxBLUE_BRUSH_get() {
819 PyObject * pyobj;
820 char ptemp[128];
821
822 SWIG_MakePtr(ptemp, (char *) wxBLUE_BRUSH,"_wxBrush_p");
823 pyobj = PyString_FromString(ptemp);
824 return pyobj;
825 }
826
827 static int _wrap_wxGREEN_BRUSH_set(PyObject *val) {
828
829 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN_BRUSH is read-only.");
830 return 1;
831 }
832
833 static PyObject *_wrap_wxGREEN_BRUSH_get() {
834 PyObject * pyobj;
835 char ptemp[128];
836
837 SWIG_MakePtr(ptemp, (char *) wxGREEN_BRUSH,"_wxBrush_p");
838 pyobj = PyString_FromString(ptemp);
839 return pyobj;
840 }
841
842 static int _wrap_wxWHITE_BRUSH_set(PyObject *val) {
843
844 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE_BRUSH is read-only.");
845 return 1;
846 }
847
848 static PyObject *_wrap_wxWHITE_BRUSH_get() {
849 PyObject * pyobj;
850 char ptemp[128];
851
852 SWIG_MakePtr(ptemp, (char *) wxWHITE_BRUSH,"_wxBrush_p");
853 pyobj = PyString_FromString(ptemp);
854 return pyobj;
855 }
856
857 static int _wrap_wxBLACK_BRUSH_set(PyObject *val) {
858
859 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK_BRUSH is read-only.");
860 return 1;
861 }
862
863 static PyObject *_wrap_wxBLACK_BRUSH_get() {
864 PyObject * pyobj;
865 char ptemp[128];
866
867 SWIG_MakePtr(ptemp, (char *) wxBLACK_BRUSH,"_wxBrush_p");
868 pyobj = PyString_FromString(ptemp);
869 return pyobj;
870 }
871
872 static int _wrap_wxTRANSPARENT_BRUSH_set(PyObject *val) {
873
874 PyErr_SetString(PyExc_TypeError,"Variable wxTRANSPARENT_BRUSH is read-only.");
875 return 1;
876 }
877
878 static PyObject *_wrap_wxTRANSPARENT_BRUSH_get() {
879 PyObject * pyobj;
880 char ptemp[128];
881
882 SWIG_MakePtr(ptemp, (char *) wxTRANSPARENT_BRUSH,"_wxBrush_p");
883 pyobj = PyString_FromString(ptemp);
884 return pyobj;
885 }
886
887 static int _wrap_wxCYAN_BRUSH_set(PyObject *val) {
888
889 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN_BRUSH is read-only.");
890 return 1;
891 }
892
893 static PyObject *_wrap_wxCYAN_BRUSH_get() {
894 PyObject * pyobj;
895 char ptemp[128];
896
897 SWIG_MakePtr(ptemp, (char *) wxCYAN_BRUSH,"_wxBrush_p");
898 pyobj = PyString_FromString(ptemp);
899 return pyobj;
900 }
901
902 static int _wrap_wxRED_BRUSH_set(PyObject *val) {
903
904 PyErr_SetString(PyExc_TypeError,"Variable wxRED_BRUSH is read-only.");
905 return 1;
906 }
907
908 static PyObject *_wrap_wxRED_BRUSH_get() {
909 PyObject * pyobj;
910 char ptemp[128];
911
912 SWIG_MakePtr(ptemp, (char *) wxRED_BRUSH,"_wxBrush_p");
913 pyobj = PyString_FromString(ptemp);
914 return pyobj;
915 }
916
917 static int _wrap_wxGREY_BRUSH_set(PyObject *val) {
918
919 PyErr_SetString(PyExc_TypeError,"Variable wxGREY_BRUSH is read-only.");
920 return 1;
921 }
922
923 static PyObject *_wrap_wxGREY_BRUSH_get() {
924 PyObject * pyobj;
925 char ptemp[128];
926
927 SWIG_MakePtr(ptemp, (char *) wxGREY_BRUSH,"_wxBrush_p");
928 pyobj = PyString_FromString(ptemp);
929 return pyobj;
930 }
931
932 static int _wrap_wxMEDIUM_GREY_BRUSH_set(PyObject *val) {
933
934 PyErr_SetString(PyExc_TypeError,"Variable wxMEDIUM_GREY_BRUSH is read-only.");
935 return 1;
936 }
937
938 static PyObject *_wrap_wxMEDIUM_GREY_BRUSH_get() {
939 PyObject * pyobj;
940 char ptemp[128];
941
942 SWIG_MakePtr(ptemp, (char *) wxMEDIUM_GREY_BRUSH,"_wxBrush_p");
943 pyobj = PyString_FromString(ptemp);
944 return pyobj;
945 }
946
947 static int _wrap_wxLIGHT_GREY_BRUSH_set(PyObject *val) {
948
949 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY_BRUSH is read-only.");
950 return 1;
951 }
952
953 static PyObject *_wrap_wxLIGHT_GREY_BRUSH_get() {
954 PyObject * pyobj;
955 char ptemp[128];
956
957 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY_BRUSH,"_wxBrush_p");
958 pyobj = PyString_FromString(ptemp);
959 return pyobj;
960 }
961
962 static int _wrap_wxBLACK_set(PyObject *val) {
963
964 PyErr_SetString(PyExc_TypeError,"Variable wxBLACK is read-only.");
965 return 1;
966 }
967
968 static PyObject *_wrap_wxBLACK_get() {
969 PyObject * pyobj;
970 char ptemp[128];
971
972 SWIG_MakePtr(ptemp, (char *) wxBLACK,"_wxColour_p");
973 pyobj = PyString_FromString(ptemp);
974 return pyobj;
975 }
976
977 static int _wrap_wxWHITE_set(PyObject *val) {
978
979 PyErr_SetString(PyExc_TypeError,"Variable wxWHITE is read-only.");
980 return 1;
981 }
982
983 static PyObject *_wrap_wxWHITE_get() {
984 PyObject * pyobj;
985 char ptemp[128];
986
987 SWIG_MakePtr(ptemp, (char *) wxWHITE,"_wxColour_p");
988 pyobj = PyString_FromString(ptemp);
989 return pyobj;
990 }
991
992 static int _wrap_wxRED_set(PyObject *val) {
993
994 PyErr_SetString(PyExc_TypeError,"Variable wxRED is read-only.");
995 return 1;
996 }
997
998 static PyObject *_wrap_wxRED_get() {
999 PyObject * pyobj;
1000 char ptemp[128];
1001
1002 SWIG_MakePtr(ptemp, (char *) wxRED,"_wxColour_p");
1003 pyobj = PyString_FromString(ptemp);
1004 return pyobj;
1005 }
1006
1007 static int _wrap_wxBLUE_set(PyObject *val) {
1008
1009 PyErr_SetString(PyExc_TypeError,"Variable wxBLUE is read-only.");
1010 return 1;
1011 }
1012
1013 static PyObject *_wrap_wxBLUE_get() {
1014 PyObject * pyobj;
1015 char ptemp[128];
1016
1017 SWIG_MakePtr(ptemp, (char *) wxBLUE,"_wxColour_p");
1018 pyobj = PyString_FromString(ptemp);
1019 return pyobj;
1020 }
1021
1022 static int _wrap_wxGREEN_set(PyObject *val) {
1023
1024 PyErr_SetString(PyExc_TypeError,"Variable wxGREEN is read-only.");
1025 return 1;
1026 }
1027
1028 static PyObject *_wrap_wxGREEN_get() {
1029 PyObject * pyobj;
1030 char ptemp[128];
1031
1032 SWIG_MakePtr(ptemp, (char *) wxGREEN,"_wxColour_p");
1033 pyobj = PyString_FromString(ptemp);
1034 return pyobj;
1035 }
1036
1037 static int _wrap_wxCYAN_set(PyObject *val) {
1038
1039 PyErr_SetString(PyExc_TypeError,"Variable wxCYAN is read-only.");
1040 return 1;
1041 }
1042
1043 static PyObject *_wrap_wxCYAN_get() {
1044 PyObject * pyobj;
1045 char ptemp[128];
1046
1047 SWIG_MakePtr(ptemp, (char *) wxCYAN,"_wxColour_p");
1048 pyobj = PyString_FromString(ptemp);
1049 return pyobj;
1050 }
1051
1052 static int _wrap_wxLIGHT_GREY_set(PyObject *val) {
1053
1054 PyErr_SetString(PyExc_TypeError,"Variable wxLIGHT_GREY is read-only.");
1055 return 1;
1056 }
1057
1058 static PyObject *_wrap_wxLIGHT_GREY_get() {
1059 PyObject * pyobj;
1060 char ptemp[128];
1061
1062 SWIG_MakePtr(ptemp, (char *) wxLIGHT_GREY,"_wxColour_p");
1063 pyobj = PyString_FromString(ptemp);
1064 return pyobj;
1065 }
1066
1067 static int _wrap_wxSTANDARD_CURSOR_set(PyObject *val) {
1068
1069 PyErr_SetString(PyExc_TypeError,"Variable wxSTANDARD_CURSOR is read-only.");
1070 return 1;
1071 }
1072
1073 static PyObject *_wrap_wxSTANDARD_CURSOR_get() {
1074 PyObject * pyobj;
1075 char ptemp[128];
1076
1077 SWIG_MakePtr(ptemp, (char *) wxSTANDARD_CURSOR,"_wxCursor_p");
1078 pyobj = PyString_FromString(ptemp);
1079 return pyobj;
1080 }
1081
1082 static int _wrap_wxHOURGLASS_CURSOR_set(PyObject *val) {
1083
1084 PyErr_SetString(PyExc_TypeError,"Variable wxHOURGLASS_CURSOR is read-only.");
1085 return 1;
1086 }
1087
1088 static PyObject *_wrap_wxHOURGLASS_CURSOR_get() {
1089 PyObject * pyobj;
1090 char ptemp[128];
1091
1092 SWIG_MakePtr(ptemp, (char *) wxHOURGLASS_CURSOR,"_wxCursor_p");
1093 pyobj = PyString_FromString(ptemp);
1094 return pyobj;
1095 }
1096
1097 static int _wrap_wxCROSS_CURSOR_set(PyObject *val) {
1098
1099 PyErr_SetString(PyExc_TypeError,"Variable wxCROSS_CURSOR is read-only.");
1100 return 1;
1101 }
1102
1103 static PyObject *_wrap_wxCROSS_CURSOR_get() {
1104 PyObject * pyobj;
1105 char ptemp[128];
1106
1107 SWIG_MakePtr(ptemp, (char *) wxCROSS_CURSOR,"_wxCursor_p");
1108 pyobj = PyString_FromString(ptemp);
1109 return pyobj;
1110 }
1111
1112 static int _wrap_wxNullBitmap_set(PyObject *val) {
1113
1114 PyErr_SetString(PyExc_TypeError,"Variable wxNullBitmap is read-only.");
1115 return 1;
1116 }
1117
1118 static PyObject *_wrap_wxNullBitmap_get() {
1119 PyObject * pyobj;
1120 char ptemp[128];
1121
1122 SWIG_MakePtr(ptemp,(char *) &wxNullBitmap,"_wxBitmap_p");
1123 pyobj = PyString_FromString(ptemp);
1124 return pyobj;
1125 }
1126
1127 static int _wrap_wxNullIcon_set(PyObject *val) {
1128
1129 PyErr_SetString(PyExc_TypeError,"Variable wxNullIcon is read-only.");
1130 return 1;
1131 }
1132
1133 static PyObject *_wrap_wxNullIcon_get() {
1134 PyObject * pyobj;
1135 char ptemp[128];
1136
1137 SWIG_MakePtr(ptemp,(char *) &wxNullIcon,"_wxIcon_p");
1138 pyobj = PyString_FromString(ptemp);
1139 return pyobj;
1140 }
1141
1142 static int _wrap_wxNullCursor_set(PyObject *val) {
1143
1144 PyErr_SetString(PyExc_TypeError,"Variable wxNullCursor is read-only.");
1145 return 1;
1146 }
1147
1148 static PyObject *_wrap_wxNullCursor_get() {
1149 PyObject * pyobj;
1150 char ptemp[128];
1151
1152 SWIG_MakePtr(ptemp,(char *) &wxNullCursor,"_wxCursor_p");
1153 pyobj = PyString_FromString(ptemp);
1154 return pyobj;
1155 }
1156
1157 static int _wrap_wxNullPen_set(PyObject *val) {
1158
1159 PyErr_SetString(PyExc_TypeError,"Variable wxNullPen is read-only.");
1160 return 1;
1161 }
1162
1163 static PyObject *_wrap_wxNullPen_get() {
1164 PyObject * pyobj;
1165 char ptemp[128];
1166
1167 SWIG_MakePtr(ptemp,(char *) &wxNullPen,"_wxPen_p");
1168 pyobj = PyString_FromString(ptemp);
1169 return pyobj;
1170 }
1171
1172 static int _wrap_wxNullBrush_set(PyObject *val) {
1173
1174 PyErr_SetString(PyExc_TypeError,"Variable wxNullBrush is read-only.");
1175 return 1;
1176 }
1177
1178 static PyObject *_wrap_wxNullBrush_get() {
1179 PyObject * pyobj;
1180 char ptemp[128];
1181
1182 SWIG_MakePtr(ptemp,(char *) &wxNullBrush,"_wxBrush_p");
1183 pyobj = PyString_FromString(ptemp);
1184 return pyobj;
1185 }
1186
1187 static int _wrap_wxNullPalette_set(PyObject *val) {
1188
1189 PyErr_SetString(PyExc_TypeError,"Variable wxNullPalette is read-only.");
1190 return 1;
1191 }
1192
1193 static PyObject *_wrap_wxNullPalette_get() {
1194 PyObject * pyobj;
1195 char ptemp[128];
1196
1197 SWIG_MakePtr(ptemp,(char *) &wxNullPalette,"_wxPalette_p");
1198 pyobj = PyString_FromString(ptemp);
1199 return pyobj;
1200 }
1201
1202 static int _wrap_wxNullFont_set(PyObject *val) {
1203
1204 PyErr_SetString(PyExc_TypeError,"Variable wxNullFont is read-only.");
1205 return 1;
1206 }
1207
1208 static PyObject *_wrap_wxNullFont_get() {
1209 PyObject * pyobj;
1210 char ptemp[128];
1211
1212 SWIG_MakePtr(ptemp,(char *) &wxNullFont,"_wxFont_p");
1213 pyobj = PyString_FromString(ptemp);
1214 return pyobj;
1215 }
1216
1217 static int _wrap_wxNullColour_set(PyObject *val) {
1218
1219 PyErr_SetString(PyExc_TypeError,"Variable wxNullColour is read-only.");
1220 return 1;
1221 }
1222
1223 static PyObject *_wrap_wxNullColour_get() {
1224 PyObject * pyobj;
1225 char ptemp[128];
1226
1227 SWIG_MakePtr(ptemp,(char *) &wxNullColour,"_wxColour_p");
1228 pyobj = PyString_FromString(ptemp);
1229 return pyobj;
1230 }
1231
1232 static int _wrap_wxTheFontList_set(PyObject *val) {
1233
1234 PyErr_SetString(PyExc_TypeError,"Variable wxTheFontList is read-only.");
1235 return 1;
1236 }
1237
1238 static PyObject *_wrap_wxTheFontList_get() {
1239 PyObject * pyobj;
1240 char ptemp[128];
1241
1242 SWIG_MakePtr(ptemp, (char *) wxTheFontList,"_wxFontList_p");
1243 pyobj = PyString_FromString(ptemp);
1244 return pyobj;
1245 }
1246
1247 static int _wrap_wxThePenList_set(PyObject *val) {
1248
1249 PyErr_SetString(PyExc_TypeError,"Variable wxThePenList is read-only.");
1250 return 1;
1251 }
1252
1253 static PyObject *_wrap_wxThePenList_get() {
1254 PyObject * pyobj;
1255 char ptemp[128];
1256
1257 SWIG_MakePtr(ptemp, (char *) wxThePenList,"_wxPenList_p");
1258 pyobj = PyString_FromString(ptemp);
1259 return pyobj;
1260 }
1261
1262 static int _wrap_wxTheBrushList_set(PyObject *val) {
1263
1264 PyErr_SetString(PyExc_TypeError,"Variable wxTheBrushList is read-only.");
1265 return 1;
1266 }
1267
1268 static PyObject *_wrap_wxTheBrushList_get() {
1269 PyObject * pyobj;
1270 char ptemp[128];
1271
1272 SWIG_MakePtr(ptemp, (char *) wxTheBrushList,"_wxBrushList_p");
1273 pyobj = PyString_FromString(ptemp);
1274 return pyobj;
1275 }
1276
1277 static int _wrap_wxTheColourDatabase_set(PyObject *val) {
1278
1279 PyErr_SetString(PyExc_TypeError,"Variable wxTheColourDatabase is read-only.");
1280 return 1;
1281 }
1282
1283 static PyObject *_wrap_wxTheColourDatabase_get() {
1284 PyObject * pyobj;
1285 char ptemp[128];
1286
1287 SWIG_MakePtr(ptemp, (char *) wxTheColourDatabase,"_wxColourDatabase_p");
1288 pyobj = PyString_FromString(ptemp);
1289 return pyobj;
1290 }
1291
1292 static void *SwigwxGDIObjectTowxObject(void *ptr) {
1293 wxGDIObject *src;
1294 wxObject *dest;
1295 src = (wxGDIObject *) ptr;
1296 dest = (wxObject *) src;
1297 return (void *) dest;
1298 }
1299
1300 #define new_wxGDIObject() (new wxGDIObject())
1301 static PyObject *_wrap_new_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1302 PyObject * _resultobj;
1303 wxGDIObject * _result;
1304 char *_kwnames[] = { NULL };
1305 char _ptemp[128];
1306
1307 self = self;
1308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxGDIObject",_kwnames))
1309 return NULL;
1310 {
1311 wxPy_BEGIN_ALLOW_THREADS;
1312 _result = (wxGDIObject *)new_wxGDIObject();
1313
1314 wxPy_END_ALLOW_THREADS;
1315 if (PyErr_Occurred()) return NULL;
1316 } if (_result) {
1317 SWIG_MakePtr(_ptemp, (char *) _result,"_wxGDIObject_p");
1318 _resultobj = Py_BuildValue("s",_ptemp);
1319 } else {
1320 Py_INCREF(Py_None);
1321 _resultobj = Py_None;
1322 }
1323 return _resultobj;
1324 }
1325
1326 #define delete_wxGDIObject(_swigobj) (delete _swigobj)
1327 static PyObject *_wrap_delete_wxGDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
1328 PyObject * _resultobj;
1329 wxGDIObject * _arg0;
1330 PyObject * _argo0 = 0;
1331 char *_kwnames[] = { "self", NULL };
1332
1333 self = self;
1334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxGDIObject",_kwnames,&_argo0))
1335 return NULL;
1336 if (_argo0) {
1337 if (_argo0 == Py_None) { _arg0 = NULL; }
1338 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1339 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxGDIObject. Expected _wxGDIObject_p.");
1340 return NULL;
1341 }
1342 }
1343 {
1344 wxPy_BEGIN_ALLOW_THREADS;
1345 delete_wxGDIObject(_arg0);
1346
1347 wxPy_END_ALLOW_THREADS;
1348 if (PyErr_Occurred()) return NULL;
1349 } Py_INCREF(Py_None);
1350 _resultobj = Py_None;
1351 return _resultobj;
1352 }
1353
1354 #define wxGDIObject_GetVisible(_swigobj) (_swigobj->GetVisible())
1355 static PyObject *_wrap_wxGDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1356 PyObject * _resultobj;
1357 bool _result;
1358 wxGDIObject * _arg0;
1359 PyObject * _argo0 = 0;
1360 char *_kwnames[] = { "self", NULL };
1361
1362 self = self;
1363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_GetVisible",_kwnames,&_argo0))
1364 return NULL;
1365 if (_argo0) {
1366 if (_argo0 == Py_None) { _arg0 = NULL; }
1367 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1368 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_GetVisible. Expected _wxGDIObject_p.");
1369 return NULL;
1370 }
1371 }
1372 {
1373 wxPy_BEGIN_ALLOW_THREADS;
1374 _result = (bool )wxGDIObject_GetVisible(_arg0);
1375
1376 wxPy_END_ALLOW_THREADS;
1377 if (PyErr_Occurred()) return NULL;
1378 } _resultobj = Py_BuildValue("i",_result);
1379 return _resultobj;
1380 }
1381
1382 #define wxGDIObject_SetVisible(_swigobj,_swigarg0) (_swigobj->SetVisible(_swigarg0))
1383 static PyObject *_wrap_wxGDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
1384 PyObject * _resultobj;
1385 wxGDIObject * _arg0;
1386 bool _arg1;
1387 PyObject * _argo0 = 0;
1388 int tempbool1;
1389 char *_kwnames[] = { "self","visible", NULL };
1390
1391 self = self;
1392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxGDIObject_SetVisible",_kwnames,&_argo0,&tempbool1))
1393 return NULL;
1394 if (_argo0) {
1395 if (_argo0 == Py_None) { _arg0 = NULL; }
1396 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1397 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_SetVisible. Expected _wxGDIObject_p.");
1398 return NULL;
1399 }
1400 }
1401 _arg1 = (bool ) tempbool1;
1402 {
1403 wxPy_BEGIN_ALLOW_THREADS;
1404 wxGDIObject_SetVisible(_arg0,_arg1);
1405
1406 wxPy_END_ALLOW_THREADS;
1407 if (PyErr_Occurred()) return NULL;
1408 } Py_INCREF(Py_None);
1409 _resultobj = Py_None;
1410 return _resultobj;
1411 }
1412
1413 #define wxGDIObject_IsNull(_swigobj) (_swigobj->IsNull())
1414 static PyObject *_wrap_wxGDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1415 PyObject * _resultobj;
1416 bool _result;
1417 wxGDIObject * _arg0;
1418 PyObject * _argo0 = 0;
1419 char *_kwnames[] = { "self", NULL };
1420
1421 self = self;
1422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGDIObject_IsNull",_kwnames,&_argo0))
1423 return NULL;
1424 if (_argo0) {
1425 if (_argo0 == Py_None) { _arg0 = NULL; }
1426 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGDIObject_p")) {
1427 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGDIObject_IsNull. Expected _wxGDIObject_p.");
1428 return NULL;
1429 }
1430 }
1431 {
1432 wxPy_BEGIN_ALLOW_THREADS;
1433 _result = (bool )wxGDIObject_IsNull(_arg0);
1434
1435 wxPy_END_ALLOW_THREADS;
1436 if (PyErr_Occurred()) return NULL;
1437 } _resultobj = Py_BuildValue("i",_result);
1438 return _resultobj;
1439 }
1440
1441 static void *SwigwxBitmapTowxGDIObject(void *ptr) {
1442 wxBitmap *src;
1443 wxGDIObject *dest;
1444 src = (wxBitmap *) ptr;
1445 dest = (wxGDIObject *) src;
1446 return (void *) dest;
1447 }
1448
1449 static void *SwigwxBitmapTowxObject(void *ptr) {
1450 wxBitmap *src;
1451 wxObject *dest;
1452 src = (wxBitmap *) ptr;
1453 dest = (wxObject *) src;
1454 return (void *) dest;
1455 }
1456
1457 #define new_wxBitmap(_swigarg0,_swigarg1) (new wxBitmap(_swigarg0,_swigarg1))
1458 static PyObject *_wrap_new_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1459 PyObject * _resultobj;
1460 wxBitmap * _result;
1461 wxString * _arg0;
1462 wxBitmapType _arg1 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1463 PyObject * _obj0 = 0;
1464 char *_kwnames[] = { "name","type", NULL };
1465 char _ptemp[128];
1466
1467 self = self;
1468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBitmap",_kwnames,&_obj0,&_arg1))
1469 return NULL;
1470 {
1471 #if PYTHON_API_VERSION >= 1009
1472 char* tmpPtr; int tmpSize;
1473 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
1474 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1475 return NULL;
1476 }
1477 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
1478 return NULL;
1479 _arg0 = new wxString(tmpPtr, tmpSize);
1480 #else
1481 if (!PyString_Check(_obj0)) {
1482 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1483 return NULL;
1484 }
1485 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
1486 #endif
1487 }
1488 {
1489 wxPy_BEGIN_ALLOW_THREADS;
1490 _result = (wxBitmap *)new_wxBitmap(*_arg0,_arg1);
1491
1492 wxPy_END_ALLOW_THREADS;
1493 if (PyErr_Occurred()) return NULL;
1494 } if (_result) {
1495 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
1496 _resultobj = Py_BuildValue("s",_ptemp);
1497 } else {
1498 Py_INCREF(Py_None);
1499 _resultobj = Py_None;
1500 }
1501 {
1502 if (_obj0)
1503 delete _arg0;
1504 }
1505 return _resultobj;
1506 }
1507
1508 #define delete_wxBitmap(_swigobj) (delete _swigobj)
1509 static PyObject *_wrap_delete_wxBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
1510 PyObject * _resultobj;
1511 wxBitmap * _arg0;
1512 PyObject * _argo0 = 0;
1513 char *_kwnames[] = { "self", NULL };
1514
1515 self = self;
1516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBitmap",_kwnames,&_argo0))
1517 return NULL;
1518 if (_argo0) {
1519 if (_argo0 == Py_None) { _arg0 = NULL; }
1520 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1521 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBitmap. Expected _wxBitmap_p.");
1522 return NULL;
1523 }
1524 }
1525 {
1526 wxPy_BEGIN_ALLOW_THREADS;
1527 delete_wxBitmap(_arg0);
1528
1529 wxPy_END_ALLOW_THREADS;
1530 if (PyErr_Occurred()) return NULL;
1531 } Py_INCREF(Py_None);
1532 _resultobj = Py_None;
1533 return _resultobj;
1534 }
1535
1536 #define wxBitmap_GetPalette(_swigobj) (_swigobj->GetPalette())
1537 static PyObject *_wrap_wxBitmap_GetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject * _resultobj;
1539 wxPalette * _result;
1540 wxBitmap * _arg0;
1541 PyObject * _argo0 = 0;
1542 char *_kwnames[] = { "self", NULL };
1543 char _ptemp[128];
1544
1545 self = self;
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetPalette",_kwnames,&_argo0))
1547 return NULL;
1548 if (_argo0) {
1549 if (_argo0 == Py_None) { _arg0 = NULL; }
1550 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1551 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetPalette. Expected _wxBitmap_p.");
1552 return NULL;
1553 }
1554 }
1555 {
1556 wxPy_BEGIN_ALLOW_THREADS;
1557 _result = (wxPalette *)wxBitmap_GetPalette(_arg0);
1558
1559 wxPy_END_ALLOW_THREADS;
1560 if (PyErr_Occurred()) return NULL;
1561 } if (_result) {
1562 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
1563 _resultobj = Py_BuildValue("s",_ptemp);
1564 } else {
1565 Py_INCREF(Py_None);
1566 _resultobj = Py_None;
1567 }
1568 return _resultobj;
1569 }
1570
1571 #define wxBitmap_GetMask(_swigobj) (_swigobj->GetMask())
1572 static PyObject *_wrap_wxBitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1573 PyObject * _resultobj;
1574 wxMask * _result;
1575 wxBitmap * _arg0;
1576 PyObject * _argo0 = 0;
1577 char *_kwnames[] = { "self", NULL };
1578 char _ptemp[128];
1579
1580 self = self;
1581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetMask",_kwnames,&_argo0))
1582 return NULL;
1583 if (_argo0) {
1584 if (_argo0 == Py_None) { _arg0 = NULL; }
1585 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1586 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetMask. Expected _wxBitmap_p.");
1587 return NULL;
1588 }
1589 }
1590 {
1591 wxPy_BEGIN_ALLOW_THREADS;
1592 _result = (wxMask *)wxBitmap_GetMask(_arg0);
1593
1594 wxPy_END_ALLOW_THREADS;
1595 if (PyErr_Occurred()) return NULL;
1596 } if (_result) {
1597 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
1598 _resultobj = Py_BuildValue("s",_ptemp);
1599 } else {
1600 Py_INCREF(Py_None);
1601 _resultobj = Py_None;
1602 }
1603 return _resultobj;
1604 }
1605
1606 #define wxBitmap_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
1607 static PyObject *_wrap_wxBitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1608 PyObject * _resultobj;
1609 bool _result;
1610 wxBitmap * _arg0;
1611 wxString * _arg1;
1612 wxBitmapType _arg2 = (wxBitmapType ) wxBITMAP_TYPE_BMP;
1613 PyObject * _argo0 = 0;
1614 PyObject * _obj1 = 0;
1615 char *_kwnames[] = { "self","name","type", NULL };
1616
1617 self = self;
1618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxBitmap_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
1619 return NULL;
1620 if (_argo0) {
1621 if (_argo0 == Py_None) { _arg0 = NULL; }
1622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_LoadFile. Expected _wxBitmap_p.");
1624 return NULL;
1625 }
1626 }
1627 {
1628 #if PYTHON_API_VERSION >= 1009
1629 char* tmpPtr; int tmpSize;
1630 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1631 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1632 return NULL;
1633 }
1634 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1635 return NULL;
1636 _arg1 = new wxString(tmpPtr, tmpSize);
1637 #else
1638 if (!PyString_Check(_obj1)) {
1639 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1640 return NULL;
1641 }
1642 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1643 #endif
1644 }
1645 {
1646 wxPy_BEGIN_ALLOW_THREADS;
1647 _result = (bool )wxBitmap_LoadFile(_arg0,*_arg1,_arg2);
1648
1649 wxPy_END_ALLOW_THREADS;
1650 if (PyErr_Occurred()) return NULL;
1651 } _resultobj = Py_BuildValue("i",_result);
1652 {
1653 if (_obj1)
1654 delete _arg1;
1655 }
1656 return _resultobj;
1657 }
1658
1659 #define wxBitmap_SaveFile(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->SaveFile(_swigarg0,_swigarg1,_swigarg2))
1660 static PyObject *_wrap_wxBitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
1661 PyObject * _resultobj;
1662 bool _result;
1663 wxBitmap * _arg0;
1664 wxString * _arg1;
1665 wxBitmapType _arg2;
1666 wxPalette * _arg3 = (wxPalette *) NULL;
1667 PyObject * _argo0 = 0;
1668 PyObject * _obj1 = 0;
1669 PyObject * _argo3 = 0;
1670 char *_kwnames[] = { "self","name","type","palette", NULL };
1671
1672 self = self;
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi|O:wxBitmap_SaveFile",_kwnames,&_argo0,&_obj1,&_arg2,&_argo3))
1674 return NULL;
1675 if (_argo0) {
1676 if (_argo0 == Py_None) { _arg0 = NULL; }
1677 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1678 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SaveFile. Expected _wxBitmap_p.");
1679 return NULL;
1680 }
1681 }
1682 {
1683 #if PYTHON_API_VERSION >= 1009
1684 char* tmpPtr; int tmpSize;
1685 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
1686 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1687 return NULL;
1688 }
1689 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
1690 return NULL;
1691 _arg1 = new wxString(tmpPtr, tmpSize);
1692 #else
1693 if (!PyString_Check(_obj1)) {
1694 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
1695 return NULL;
1696 }
1697 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
1698 #endif
1699 }
1700 if (_argo3) {
1701 if (_argo3 == Py_None) { _arg3 = NULL; }
1702 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxPalette_p")) {
1703 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxBitmap_SaveFile. Expected _wxPalette_p.");
1704 return NULL;
1705 }
1706 }
1707 {
1708 wxPy_BEGIN_ALLOW_THREADS;
1709 _result = (bool )wxBitmap_SaveFile(_arg0,*_arg1,_arg2,_arg3);
1710
1711 wxPy_END_ALLOW_THREADS;
1712 if (PyErr_Occurred()) return NULL;
1713 } _resultobj = Py_BuildValue("i",_result);
1714 {
1715 if (_obj1)
1716 delete _arg1;
1717 }
1718 return _resultobj;
1719 }
1720
1721 #define wxBitmap_SetMask(_swigobj,_swigarg0) (_swigobj->SetMask(_swigarg0))
1722 static PyObject *_wrap_wxBitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
1723 PyObject * _resultobj;
1724 wxBitmap * _arg0;
1725 wxMask * _arg1;
1726 PyObject * _argo0 = 0;
1727 PyObject * _argo1 = 0;
1728 char *_kwnames[] = { "self","mask", NULL };
1729
1730 self = self;
1731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetMask",_kwnames,&_argo0,&_argo1))
1732 return NULL;
1733 if (_argo0) {
1734 if (_argo0 == Py_None) { _arg0 = NULL; }
1735 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1736 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetMask. Expected _wxBitmap_p.");
1737 return NULL;
1738 }
1739 }
1740 if (_argo1) {
1741 if (_argo1 == Py_None) { _arg1 = NULL; }
1742 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxMask_p")) {
1743 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetMask. Expected _wxMask_p.");
1744 return NULL;
1745 }
1746 }
1747 {
1748 wxPy_BEGIN_ALLOW_THREADS;
1749 wxBitmap_SetMask(_arg0,_arg1);
1750
1751 wxPy_END_ALLOW_THREADS;
1752 if (PyErr_Occurred()) return NULL;
1753 } Py_INCREF(Py_None);
1754 _resultobj = Py_None;
1755 return _resultobj;
1756 }
1757
1758 #define wxBitmap_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
1759 static PyObject *_wrap_wxBitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
1760 PyObject * _resultobj;
1761 wxBitmap * _arg0;
1762 wxPalette * _arg1;
1763 PyObject * _argo0 = 0;
1764 PyObject * _argo1 = 0;
1765 char *_kwnames[] = { "self","palette", NULL };
1766
1767 self = self;
1768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetPalette",_kwnames,&_argo0,&_argo1))
1769 return NULL;
1770 if (_argo0) {
1771 if (_argo0 == Py_None) { _arg0 = NULL; }
1772 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1773 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetPalette. Expected _wxBitmap_p.");
1774 return NULL;
1775 }
1776 }
1777 if (_argo1) {
1778 if (_argo1 == Py_None) { _arg1 = NULL; }
1779 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
1780 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_SetPalette. Expected _wxPalette_p.");
1781 return NULL;
1782 }
1783 }
1784 {
1785 wxPy_BEGIN_ALLOW_THREADS;
1786 wxBitmap_SetPalette(_arg0,*_arg1);
1787
1788 wxPy_END_ALLOW_THREADS;
1789 if (PyErr_Occurred()) return NULL;
1790 } Py_INCREF(Py_None);
1791 _resultobj = Py_None;
1792 return _resultobj;
1793 }
1794
1795 #define wxBitmap_GetHandle(_swigobj) (_swigobj->GetHandle())
1796 static PyObject *_wrap_wxBitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1797 PyObject * _resultobj;
1798 long _result;
1799 wxBitmap * _arg0;
1800 PyObject * _argo0 = 0;
1801 char *_kwnames[] = { "self", NULL };
1802
1803 self = self;
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHandle",_kwnames,&_argo0))
1805 return NULL;
1806 if (_argo0) {
1807 if (_argo0 == Py_None) { _arg0 = NULL; }
1808 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1809 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHandle. Expected _wxBitmap_p.");
1810 return NULL;
1811 }
1812 }
1813 {
1814 wxPy_BEGIN_ALLOW_THREADS;
1815 _result = (long )wxBitmap_GetHandle(_arg0);
1816
1817 wxPy_END_ALLOW_THREADS;
1818 if (PyErr_Occurred()) return NULL;
1819 } _resultobj = Py_BuildValue("l",_result);
1820 return _resultobj;
1821 }
1822
1823 #define wxBitmap_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
1824 static PyObject *_wrap_wxBitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
1825 PyObject * _resultobj;
1826 wxBitmap * _arg0;
1827 long _arg1;
1828 PyObject * _argo0 = 0;
1829 char *_kwnames[] = { "self","handle", NULL };
1830
1831 self = self;
1832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxBitmap_SetHandle",_kwnames,&_argo0,&_arg1))
1833 return NULL;
1834 if (_argo0) {
1835 if (_argo0 == Py_None) { _arg0 = NULL; }
1836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHandle. Expected _wxBitmap_p.");
1838 return NULL;
1839 }
1840 }
1841 {
1842 wxPy_BEGIN_ALLOW_THREADS;
1843 wxBitmap_SetHandle(_arg0,_arg1);
1844
1845 wxPy_END_ALLOW_THREADS;
1846 if (PyErr_Occurred()) return NULL;
1847 } Py_INCREF(Py_None);
1848 _resultobj = Py_None;
1849 return _resultobj;
1850 }
1851
1852 #define wxBitmap_Ok(_swigobj) (_swigobj->Ok())
1853 static PyObject *_wrap_wxBitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1854 PyObject * _resultobj;
1855 bool _result;
1856 wxBitmap * _arg0;
1857 PyObject * _argo0 = 0;
1858 char *_kwnames[] = { "self", NULL };
1859
1860 self = self;
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_Ok",_kwnames,&_argo0))
1862 return NULL;
1863 if (_argo0) {
1864 if (_argo0 == Py_None) { _arg0 = NULL; }
1865 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1866 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_Ok. Expected _wxBitmap_p.");
1867 return NULL;
1868 }
1869 }
1870 {
1871 wxPy_BEGIN_ALLOW_THREADS;
1872 _result = (bool )wxBitmap_Ok(_arg0);
1873
1874 wxPy_END_ALLOW_THREADS;
1875 if (PyErr_Occurred()) return NULL;
1876 } _resultobj = Py_BuildValue("i",_result);
1877 return _resultobj;
1878 }
1879
1880 #define wxBitmap_GetWidth(_swigobj) (_swigobj->GetWidth())
1881 static PyObject *_wrap_wxBitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1882 PyObject * _resultobj;
1883 int _result;
1884 wxBitmap * _arg0;
1885 PyObject * _argo0 = 0;
1886 char *_kwnames[] = { "self", NULL };
1887
1888 self = self;
1889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetWidth",_kwnames,&_argo0))
1890 return NULL;
1891 if (_argo0) {
1892 if (_argo0 == Py_None) { _arg0 = NULL; }
1893 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1894 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetWidth. Expected _wxBitmap_p.");
1895 return NULL;
1896 }
1897 }
1898 {
1899 wxPy_BEGIN_ALLOW_THREADS;
1900 _result = (int )wxBitmap_GetWidth(_arg0);
1901
1902 wxPy_END_ALLOW_THREADS;
1903 if (PyErr_Occurred()) return NULL;
1904 } _resultobj = Py_BuildValue("i",_result);
1905 return _resultobj;
1906 }
1907
1908 #define wxBitmap_GetHeight(_swigobj) (_swigobj->GetHeight())
1909 static PyObject *_wrap_wxBitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1910 PyObject * _resultobj;
1911 int _result;
1912 wxBitmap * _arg0;
1913 PyObject * _argo0 = 0;
1914 char *_kwnames[] = { "self", NULL };
1915
1916 self = self;
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetHeight",_kwnames,&_argo0))
1918 return NULL;
1919 if (_argo0) {
1920 if (_argo0 == Py_None) { _arg0 = NULL; }
1921 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1922 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetHeight. Expected _wxBitmap_p.");
1923 return NULL;
1924 }
1925 }
1926 {
1927 wxPy_BEGIN_ALLOW_THREADS;
1928 _result = (int )wxBitmap_GetHeight(_arg0);
1929
1930 wxPy_END_ALLOW_THREADS;
1931 if (PyErr_Occurred()) return NULL;
1932 } _resultobj = Py_BuildValue("i",_result);
1933 return _resultobj;
1934 }
1935
1936 #define wxBitmap_GetDepth(_swigobj) (_swigobj->GetDepth())
1937 static PyObject *_wrap_wxBitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
1938 PyObject * _resultobj;
1939 int _result;
1940 wxBitmap * _arg0;
1941 PyObject * _argo0 = 0;
1942 char *_kwnames[] = { "self", NULL };
1943
1944 self = self;
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetDepth",_kwnames,&_argo0))
1946 return NULL;
1947 if (_argo0) {
1948 if (_argo0 == Py_None) { _arg0 = NULL; }
1949 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1950 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetDepth. Expected _wxBitmap_p.");
1951 return NULL;
1952 }
1953 }
1954 {
1955 wxPy_BEGIN_ALLOW_THREADS;
1956 _result = (int )wxBitmap_GetDepth(_arg0);
1957
1958 wxPy_END_ALLOW_THREADS;
1959 if (PyErr_Occurred()) return NULL;
1960 } _resultobj = Py_BuildValue("i",_result);
1961 return _resultobj;
1962 }
1963
1964 #define wxBitmap_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
1965 static PyObject *_wrap_wxBitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1966 PyObject * _resultobj;
1967 wxBitmap * _arg0;
1968 int _arg1;
1969 PyObject * _argo0 = 0;
1970 char *_kwnames[] = { "self","w", NULL };
1971
1972 self = self;
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetWidth",_kwnames,&_argo0,&_arg1))
1974 return NULL;
1975 if (_argo0) {
1976 if (_argo0 == Py_None) { _arg0 = NULL; }
1977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
1978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetWidth. Expected _wxBitmap_p.");
1979 return NULL;
1980 }
1981 }
1982 {
1983 wxPy_BEGIN_ALLOW_THREADS;
1984 wxBitmap_SetWidth(_arg0,_arg1);
1985
1986 wxPy_END_ALLOW_THREADS;
1987 if (PyErr_Occurred()) return NULL;
1988 } Py_INCREF(Py_None);
1989 _resultobj = Py_None;
1990 return _resultobj;
1991 }
1992
1993 #define wxBitmap_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
1994 static PyObject *_wrap_wxBitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
1995 PyObject * _resultobj;
1996 wxBitmap * _arg0;
1997 int _arg1;
1998 PyObject * _argo0 = 0;
1999 char *_kwnames[] = { "self","h", NULL };
2000
2001 self = self;
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetHeight",_kwnames,&_argo0,&_arg1))
2003 return NULL;
2004 if (_argo0) {
2005 if (_argo0 == Py_None) { _arg0 = NULL; }
2006 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2007 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetHeight. Expected _wxBitmap_p.");
2008 return NULL;
2009 }
2010 }
2011 {
2012 wxPy_BEGIN_ALLOW_THREADS;
2013 wxBitmap_SetHeight(_arg0,_arg1);
2014
2015 wxPy_END_ALLOW_THREADS;
2016 if (PyErr_Occurred()) return NULL;
2017 } Py_INCREF(Py_None);
2018 _resultobj = Py_None;
2019 return _resultobj;
2020 }
2021
2022 #define wxBitmap_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2023 static PyObject *_wrap_wxBitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2024 PyObject * _resultobj;
2025 wxBitmap * _arg0;
2026 int _arg1;
2027 PyObject * _argo0 = 0;
2028 char *_kwnames[] = { "self","d", NULL };
2029
2030 self = self;
2031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetDepth",_kwnames,&_argo0,&_arg1))
2032 return NULL;
2033 if (_argo0) {
2034 if (_argo0 == Py_None) { _arg0 = NULL; }
2035 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2036 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetDepth. Expected _wxBitmap_p.");
2037 return NULL;
2038 }
2039 }
2040 {
2041 wxPy_BEGIN_ALLOW_THREADS;
2042 wxBitmap_SetDepth(_arg0,_arg1);
2043
2044 wxPy_END_ALLOW_THREADS;
2045 if (PyErr_Occurred()) return NULL;
2046 } Py_INCREF(Py_None);
2047 _resultobj = Py_None;
2048 return _resultobj;
2049 }
2050
2051 #define wxBitmap_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2052 static PyObject *_wrap_wxBitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2053 PyObject * _resultobj;
2054 wxBitmap * _arg0;
2055 wxSize * _arg1;
2056 PyObject * _argo0 = 0;
2057 wxSize temp;
2058 PyObject * _obj1 = 0;
2059 char *_kwnames[] = { "self","size", NULL };
2060
2061 self = self;
2062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_SetSize",_kwnames,&_argo0,&_obj1))
2063 return NULL;
2064 if (_argo0) {
2065 if (_argo0 == Py_None) { _arg0 = NULL; }
2066 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2067 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetSize. Expected _wxBitmap_p.");
2068 return NULL;
2069 }
2070 }
2071 {
2072 _arg1 = &temp;
2073 if (! wxSize_helper(_obj1, &_arg1))
2074 return NULL;
2075 }
2076 {
2077 wxPy_BEGIN_ALLOW_THREADS;
2078 wxBitmap_SetSize(_arg0,*_arg1);
2079
2080 wxPy_END_ALLOW_THREADS;
2081 if (PyErr_Occurred()) return NULL;
2082 } Py_INCREF(Py_None);
2083 _resultobj = Py_None;
2084 return _resultobj;
2085 }
2086
2087 #define wxBitmap_GetSubBitmap(_swigobj,_swigarg0) (_swigobj->GetSubBitmap(_swigarg0))
2088 static PyObject *_wrap_wxBitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2089 PyObject * _resultobj;
2090 wxBitmap * _result;
2091 wxBitmap * _arg0;
2092 wxRect * _arg1;
2093 PyObject * _argo0 = 0;
2094 wxRect temp;
2095 PyObject * _obj1 = 0;
2096 char *_kwnames[] = { "self","rect", NULL };
2097 char _ptemp[128];
2098
2099 self = self;
2100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_GetSubBitmap",_kwnames,&_argo0,&_obj1))
2101 return NULL;
2102 if (_argo0) {
2103 if (_argo0 == Py_None) { _arg0 = NULL; }
2104 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2105 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetSubBitmap. Expected _wxBitmap_p.");
2106 return NULL;
2107 }
2108 }
2109 {
2110 _arg1 = &temp;
2111 if (! wxRect_helper(_obj1, &_arg1))
2112 return NULL;
2113 }
2114 {
2115 wxPy_BEGIN_ALLOW_THREADS;
2116 _result = new wxBitmap (wxBitmap_GetSubBitmap(_arg0,*_arg1));
2117
2118 wxPy_END_ALLOW_THREADS;
2119 if (PyErr_Occurred()) return NULL;
2120 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxBitmap_p");
2121 _resultobj = Py_BuildValue("s",_ptemp);
2122 return _resultobj;
2123 }
2124
2125 #define wxBitmap_CopyFromIcon(_swigobj,_swigarg0) (_swigobj->CopyFromIcon(_swigarg0))
2126 static PyObject *_wrap_wxBitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2127 PyObject * _resultobj;
2128 bool _result;
2129 wxBitmap * _arg0;
2130 wxIcon * _arg1;
2131 PyObject * _argo0 = 0;
2132 PyObject * _argo1 = 0;
2133 char *_kwnames[] = { "self","icon", NULL };
2134
2135 self = self;
2136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromIcon",_kwnames,&_argo0,&_argo1))
2137 return NULL;
2138 if (_argo0) {
2139 if (_argo0 == Py_None) { _arg0 = NULL; }
2140 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2141 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromIcon. Expected _wxBitmap_p.");
2142 return NULL;
2143 }
2144 }
2145 if (_argo1) {
2146 if (_argo1 == Py_None) { _arg1 = NULL; }
2147 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
2148 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromIcon. Expected _wxIcon_p.");
2149 return NULL;
2150 }
2151 }
2152 {
2153 wxPy_BEGIN_ALLOW_THREADS;
2154 _result = (bool )wxBitmap_CopyFromIcon(_arg0,*_arg1);
2155
2156 wxPy_END_ALLOW_THREADS;
2157 if (PyErr_Occurred()) return NULL;
2158 } _resultobj = Py_BuildValue("i",_result);
2159 return _resultobj;
2160 }
2161
2162 #define wxBitmap_CopyFromCursor(_swigobj,_swigarg0) (_swigobj->CopyFromCursor(_swigarg0))
2163 static PyObject *_wrap_wxBitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2164 PyObject * _resultobj;
2165 bool _result;
2166 wxBitmap * _arg0;
2167 wxCursor * _arg1;
2168 PyObject * _argo0 = 0;
2169 PyObject * _argo1 = 0;
2170 char *_kwnames[] = { "self","cursor", NULL };
2171
2172 self = self;
2173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBitmap_CopyFromCursor",_kwnames,&_argo0,&_argo1))
2174 return NULL;
2175 if (_argo0) {
2176 if (_argo0 == Py_None) { _arg0 = NULL; }
2177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_CopyFromCursor. Expected _wxBitmap_p.");
2179 return NULL;
2180 }
2181 }
2182 if (_argo1) {
2183 if (_argo1 == Py_None) { _arg1 = NULL; }
2184 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxCursor_p")) {
2185 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBitmap_CopyFromCursor. Expected _wxCursor_p.");
2186 return NULL;
2187 }
2188 }
2189 {
2190 wxPy_BEGIN_ALLOW_THREADS;
2191 _result = (bool )wxBitmap_CopyFromCursor(_arg0,*_arg1);
2192
2193 wxPy_END_ALLOW_THREADS;
2194 if (PyErr_Occurred()) return NULL;
2195 } _resultobj = Py_BuildValue("i",_result);
2196 return _resultobj;
2197 }
2198
2199 #define wxBitmap_GetQuality(_swigobj) (_swigobj->GetQuality())
2200 static PyObject *_wrap_wxBitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject * _resultobj;
2202 int _result;
2203 wxBitmap * _arg0;
2204 PyObject * _argo0 = 0;
2205 char *_kwnames[] = { "self", NULL };
2206
2207 self = self;
2208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBitmap_GetQuality",_kwnames,&_argo0))
2209 return NULL;
2210 if (_argo0) {
2211 if (_argo0 == Py_None) { _arg0 = NULL; }
2212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_GetQuality. Expected _wxBitmap_p.");
2214 return NULL;
2215 }
2216 }
2217 {
2218 wxPy_BEGIN_ALLOW_THREADS;
2219 _result = (int )wxBitmap_GetQuality(_arg0);
2220
2221 wxPy_END_ALLOW_THREADS;
2222 if (PyErr_Occurred()) return NULL;
2223 } _resultobj = Py_BuildValue("i",_result);
2224 return _resultobj;
2225 }
2226
2227 #define wxBitmap_SetQuality(_swigobj,_swigarg0) (_swigobj->SetQuality(_swigarg0))
2228 static PyObject *_wrap_wxBitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
2229 PyObject * _resultobj;
2230 wxBitmap * _arg0;
2231 int _arg1;
2232 PyObject * _argo0 = 0;
2233 char *_kwnames[] = { "self","q", NULL };
2234
2235 self = self;
2236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBitmap_SetQuality",_kwnames,&_argo0,&_arg1))
2237 return NULL;
2238 if (_argo0) {
2239 if (_argo0 == Py_None) { _arg0 = NULL; }
2240 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2241 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBitmap_SetQuality. Expected _wxBitmap_p.");
2242 return NULL;
2243 }
2244 }
2245 {
2246 wxPy_BEGIN_ALLOW_THREADS;
2247 wxBitmap_SetQuality(_arg0,_arg1);
2248
2249 wxPy_END_ALLOW_THREADS;
2250 if (PyErr_Occurred()) return NULL;
2251 } Py_INCREF(Py_None);
2252 _resultobj = Py_None;
2253 return _resultobj;
2254 }
2255
2256 static void *SwigwxMaskTowxObject(void *ptr) {
2257 wxMask *src;
2258 wxObject *dest;
2259 src = (wxMask *) ptr;
2260 dest = (wxObject *) src;
2261 return (void *) dest;
2262 }
2263
2264 #define new_wxMask(_swigarg0) (new wxMask(_swigarg0))
2265 static PyObject *_wrap_new_wxMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject * _resultobj;
2267 wxMask * _result;
2268 wxBitmap * _arg0;
2269 PyObject * _argo0 = 0;
2270 char *_kwnames[] = { "bitmap", NULL };
2271 char _ptemp[128];
2272
2273 self = self;
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxMask",_kwnames,&_argo0))
2275 return NULL;
2276 if (_argo0) {
2277 if (_argo0 == Py_None) { _arg0 = NULL; }
2278 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBitmap_p")) {
2279 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxMask. Expected _wxBitmap_p.");
2280 return NULL;
2281 }
2282 }
2283 {
2284 wxPy_BEGIN_ALLOW_THREADS;
2285 _result = (wxMask *)new_wxMask(*_arg0);
2286
2287 wxPy_END_ALLOW_THREADS;
2288 if (PyErr_Occurred()) return NULL;
2289 } if (_result) {
2290 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMask_p");
2291 _resultobj = Py_BuildValue("s",_ptemp);
2292 } else {
2293 Py_INCREF(Py_None);
2294 _resultobj = Py_None;
2295 }
2296 return _resultobj;
2297 }
2298
2299 static void wxMask_Destroy(wxMask *self) { delete self; }
2300 static PyObject *_wrap_wxMask_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) {
2301 PyObject * _resultobj;
2302 wxMask * _arg0;
2303 PyObject * _argo0 = 0;
2304 char *_kwnames[] = { "self", NULL };
2305
2306 self = self;
2307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMask_Destroy",_kwnames,&_argo0))
2308 return NULL;
2309 if (_argo0) {
2310 if (_argo0 == Py_None) { _arg0 = NULL; }
2311 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMask_p")) {
2312 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMask_Destroy. Expected _wxMask_p.");
2313 return NULL;
2314 }
2315 }
2316 {
2317 wxPy_BEGIN_ALLOW_THREADS;
2318 wxMask_Destroy(_arg0);
2319
2320 wxPy_END_ALLOW_THREADS;
2321 if (PyErr_Occurred()) return NULL;
2322 } Py_INCREF(Py_None);
2323 _resultobj = Py_None;
2324 return _resultobj;
2325 }
2326
2327 static void *SwigwxIconTowxGDIObject(void *ptr) {
2328 wxIcon *src;
2329 wxGDIObject *dest;
2330 src = (wxIcon *) ptr;
2331 dest = (wxGDIObject *) src;
2332 return (void *) dest;
2333 }
2334
2335 static void *SwigwxIconTowxObject(void *ptr) {
2336 wxIcon *src;
2337 wxObject *dest;
2338 src = (wxIcon *) ptr;
2339 dest = (wxObject *) src;
2340 return (void *) dest;
2341 }
2342
2343 #define new_wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxIcon(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2344 static PyObject *_wrap_new_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2345 PyObject * _resultobj;
2346 wxIcon * _result;
2347 wxString * _arg0;
2348 long _arg1;
2349 int _arg2 = (int ) -1;
2350 int _arg3 = (int ) -1;
2351 PyObject * _obj0 = 0;
2352 char *_kwnames[] = { "name","flags","desiredWidth","desiredHeight", NULL };
2353 char _ptemp[128];
2354
2355 self = self;
2356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxIcon",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2357 return NULL;
2358 {
2359 #if PYTHON_API_VERSION >= 1009
2360 char* tmpPtr; int tmpSize;
2361 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2362 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2363 return NULL;
2364 }
2365 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2366 return NULL;
2367 _arg0 = new wxString(tmpPtr, tmpSize);
2368 #else
2369 if (!PyString_Check(_obj0)) {
2370 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2371 return NULL;
2372 }
2373 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2374 #endif
2375 }
2376 {
2377 wxPy_BEGIN_ALLOW_THREADS;
2378 _result = (wxIcon *)new_wxIcon(*_arg0,_arg1,_arg2,_arg3);
2379
2380 wxPy_END_ALLOW_THREADS;
2381 if (PyErr_Occurred()) return NULL;
2382 } if (_result) {
2383 SWIG_MakePtr(_ptemp, (char *) _result,"_wxIcon_p");
2384 _resultobj = Py_BuildValue("s",_ptemp);
2385 } else {
2386 Py_INCREF(Py_None);
2387 _resultobj = Py_None;
2388 }
2389 {
2390 if (_obj0)
2391 delete _arg0;
2392 }
2393 return _resultobj;
2394 }
2395
2396 #define delete_wxIcon(_swigobj) (delete _swigobj)
2397 static PyObject *_wrap_delete_wxIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2398 PyObject * _resultobj;
2399 wxIcon * _arg0;
2400 PyObject * _argo0 = 0;
2401 char *_kwnames[] = { "self", NULL };
2402
2403 self = self;
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxIcon",_kwnames,&_argo0))
2405 return NULL;
2406 if (_argo0) {
2407 if (_argo0 == Py_None) { _arg0 = NULL; }
2408 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2409 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxIcon. Expected _wxIcon_p.");
2410 return NULL;
2411 }
2412 }
2413 {
2414 wxPy_BEGIN_ALLOW_THREADS;
2415 delete_wxIcon(_arg0);
2416
2417 wxPy_END_ALLOW_THREADS;
2418 if (PyErr_Occurred()) return NULL;
2419 } Py_INCREF(Py_None);
2420 _resultobj = Py_None;
2421 return _resultobj;
2422 }
2423
2424 #define wxIcon_LoadFile(_swigobj,_swigarg0,_swigarg1) (_swigobj->LoadFile(_swigarg0,_swigarg1))
2425 static PyObject *_wrap_wxIcon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2426 PyObject * _resultobj;
2427 bool _result;
2428 wxIcon * _arg0;
2429 wxString * _arg1;
2430 long _arg2;
2431 PyObject * _argo0 = 0;
2432 PyObject * _obj1 = 0;
2433 char *_kwnames[] = { "self","name","flags", NULL };
2434
2435 self = self;
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOl:wxIcon_LoadFile",_kwnames,&_argo0,&_obj1,&_arg2))
2437 return NULL;
2438 if (_argo0) {
2439 if (_argo0 == Py_None) { _arg0 = NULL; }
2440 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2441 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_LoadFile. Expected _wxIcon_p.");
2442 return NULL;
2443 }
2444 }
2445 {
2446 #if PYTHON_API_VERSION >= 1009
2447 char* tmpPtr; int tmpSize;
2448 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
2449 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2450 return NULL;
2451 }
2452 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
2453 return NULL;
2454 _arg1 = new wxString(tmpPtr, tmpSize);
2455 #else
2456 if (!PyString_Check(_obj1)) {
2457 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2458 return NULL;
2459 }
2460 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
2461 #endif
2462 }
2463 {
2464 wxPy_BEGIN_ALLOW_THREADS;
2465 _result = (bool )wxIcon_LoadFile(_arg0,*_arg1,_arg2);
2466
2467 wxPy_END_ALLOW_THREADS;
2468 if (PyErr_Occurred()) return NULL;
2469 } _resultobj = Py_BuildValue("i",_result);
2470 {
2471 if (_obj1)
2472 delete _arg1;
2473 }
2474 return _resultobj;
2475 }
2476
2477 #define wxIcon_GetHandle(_swigobj) (_swigobj->GetHandle())
2478 static PyObject *_wrap_wxIcon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject * _resultobj;
2480 long _result;
2481 wxIcon * _arg0;
2482 PyObject * _argo0 = 0;
2483 char *_kwnames[] = { "self", NULL };
2484
2485 self = self;
2486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHandle",_kwnames,&_argo0))
2487 return NULL;
2488 if (_argo0) {
2489 if (_argo0 == Py_None) { _arg0 = NULL; }
2490 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2491 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHandle. Expected _wxIcon_p.");
2492 return NULL;
2493 }
2494 }
2495 {
2496 wxPy_BEGIN_ALLOW_THREADS;
2497 _result = (long )wxIcon_GetHandle(_arg0);
2498
2499 wxPy_END_ALLOW_THREADS;
2500 if (PyErr_Occurred()) return NULL;
2501 } _resultobj = Py_BuildValue("l",_result);
2502 return _resultobj;
2503 }
2504
2505 #define wxIcon_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2506 static PyObject *_wrap_wxIcon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject * _resultobj;
2508 wxIcon * _arg0;
2509 long _arg1;
2510 PyObject * _argo0 = 0;
2511 char *_kwnames[] = { "self","handle", NULL };
2512
2513 self = self;
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxIcon_SetHandle",_kwnames,&_argo0,&_arg1))
2515 return NULL;
2516 if (_argo0) {
2517 if (_argo0 == Py_None) { _arg0 = NULL; }
2518 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2519 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHandle. Expected _wxIcon_p.");
2520 return NULL;
2521 }
2522 }
2523 {
2524 wxPy_BEGIN_ALLOW_THREADS;
2525 wxIcon_SetHandle(_arg0,_arg1);
2526
2527 wxPy_END_ALLOW_THREADS;
2528 if (PyErr_Occurred()) return NULL;
2529 } Py_INCREF(Py_None);
2530 _resultobj = Py_None;
2531 return _resultobj;
2532 }
2533
2534 #define wxIcon_Ok(_swigobj) (_swigobj->Ok())
2535 static PyObject *_wrap_wxIcon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2536 PyObject * _resultobj;
2537 bool _result;
2538 wxIcon * _arg0;
2539 PyObject * _argo0 = 0;
2540 char *_kwnames[] = { "self", NULL };
2541
2542 self = self;
2543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_Ok",_kwnames,&_argo0))
2544 return NULL;
2545 if (_argo0) {
2546 if (_argo0 == Py_None) { _arg0 = NULL; }
2547 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2548 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_Ok. Expected _wxIcon_p.");
2549 return NULL;
2550 }
2551 }
2552 {
2553 wxPy_BEGIN_ALLOW_THREADS;
2554 _result = (bool )wxIcon_Ok(_arg0);
2555
2556 wxPy_END_ALLOW_THREADS;
2557 if (PyErr_Occurred()) return NULL;
2558 } _resultobj = Py_BuildValue("i",_result);
2559 return _resultobj;
2560 }
2561
2562 #define wxIcon_GetWidth(_swigobj) (_swigobj->GetWidth())
2563 static PyObject *_wrap_wxIcon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject * _resultobj;
2565 int _result;
2566 wxIcon * _arg0;
2567 PyObject * _argo0 = 0;
2568 char *_kwnames[] = { "self", NULL };
2569
2570 self = self;
2571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetWidth",_kwnames,&_argo0))
2572 return NULL;
2573 if (_argo0) {
2574 if (_argo0 == Py_None) { _arg0 = NULL; }
2575 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2576 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetWidth. Expected _wxIcon_p.");
2577 return NULL;
2578 }
2579 }
2580 {
2581 wxPy_BEGIN_ALLOW_THREADS;
2582 _result = (int )wxIcon_GetWidth(_arg0);
2583
2584 wxPy_END_ALLOW_THREADS;
2585 if (PyErr_Occurred()) return NULL;
2586 } _resultobj = Py_BuildValue("i",_result);
2587 return _resultobj;
2588 }
2589
2590 #define wxIcon_GetHeight(_swigobj) (_swigobj->GetHeight())
2591 static PyObject *_wrap_wxIcon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2592 PyObject * _resultobj;
2593 int _result;
2594 wxIcon * _arg0;
2595 PyObject * _argo0 = 0;
2596 char *_kwnames[] = { "self", NULL };
2597
2598 self = self;
2599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetHeight",_kwnames,&_argo0))
2600 return NULL;
2601 if (_argo0) {
2602 if (_argo0 == Py_None) { _arg0 = NULL; }
2603 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2604 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetHeight. Expected _wxIcon_p.");
2605 return NULL;
2606 }
2607 }
2608 {
2609 wxPy_BEGIN_ALLOW_THREADS;
2610 _result = (int )wxIcon_GetHeight(_arg0);
2611
2612 wxPy_END_ALLOW_THREADS;
2613 if (PyErr_Occurred()) return NULL;
2614 } _resultobj = Py_BuildValue("i",_result);
2615 return _resultobj;
2616 }
2617
2618 #define wxIcon_GetDepth(_swigobj) (_swigobj->GetDepth())
2619 static PyObject *_wrap_wxIcon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2620 PyObject * _resultobj;
2621 int _result;
2622 wxIcon * _arg0;
2623 PyObject * _argo0 = 0;
2624 char *_kwnames[] = { "self", NULL };
2625
2626 self = self;
2627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxIcon_GetDepth",_kwnames,&_argo0))
2628 return NULL;
2629 if (_argo0) {
2630 if (_argo0 == Py_None) { _arg0 = NULL; }
2631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_GetDepth. Expected _wxIcon_p.");
2633 return NULL;
2634 }
2635 }
2636 {
2637 wxPy_BEGIN_ALLOW_THREADS;
2638 _result = (int )wxIcon_GetDepth(_arg0);
2639
2640 wxPy_END_ALLOW_THREADS;
2641 if (PyErr_Occurred()) return NULL;
2642 } _resultobj = Py_BuildValue("i",_result);
2643 return _resultobj;
2644 }
2645
2646 #define wxIcon_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
2647 static PyObject *_wrap_wxIcon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2648 PyObject * _resultobj;
2649 wxIcon * _arg0;
2650 int _arg1;
2651 PyObject * _argo0 = 0;
2652 char *_kwnames[] = { "self","w", NULL };
2653
2654 self = self;
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetWidth",_kwnames,&_argo0,&_arg1))
2656 return NULL;
2657 if (_argo0) {
2658 if (_argo0 == Py_None) { _arg0 = NULL; }
2659 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2660 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetWidth. Expected _wxIcon_p.");
2661 return NULL;
2662 }
2663 }
2664 {
2665 wxPy_BEGIN_ALLOW_THREADS;
2666 wxIcon_SetWidth(_arg0,_arg1);
2667
2668 wxPy_END_ALLOW_THREADS;
2669 if (PyErr_Occurred()) return NULL;
2670 } Py_INCREF(Py_None);
2671 _resultobj = Py_None;
2672 return _resultobj;
2673 }
2674
2675 #define wxIcon_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
2676 static PyObject *_wrap_wxIcon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject * _resultobj;
2678 wxIcon * _arg0;
2679 int _arg1;
2680 PyObject * _argo0 = 0;
2681 char *_kwnames[] = { "self","h", NULL };
2682
2683 self = self;
2684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetHeight",_kwnames,&_argo0,&_arg1))
2685 return NULL;
2686 if (_argo0) {
2687 if (_argo0 == Py_None) { _arg0 = NULL; }
2688 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2689 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetHeight. Expected _wxIcon_p.");
2690 return NULL;
2691 }
2692 }
2693 {
2694 wxPy_BEGIN_ALLOW_THREADS;
2695 wxIcon_SetHeight(_arg0,_arg1);
2696
2697 wxPy_END_ALLOW_THREADS;
2698 if (PyErr_Occurred()) return NULL;
2699 } Py_INCREF(Py_None);
2700 _resultobj = Py_None;
2701 return _resultobj;
2702 }
2703
2704 #define wxIcon_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
2705 static PyObject *_wrap_wxIcon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2706 PyObject * _resultobj;
2707 wxIcon * _arg0;
2708 int _arg1;
2709 PyObject * _argo0 = 0;
2710 char *_kwnames[] = { "self","d", NULL };
2711
2712 self = self;
2713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxIcon_SetDepth",_kwnames,&_argo0,&_arg1))
2714 return NULL;
2715 if (_argo0) {
2716 if (_argo0 == Py_None) { _arg0 = NULL; }
2717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetDepth. Expected _wxIcon_p.");
2719 return NULL;
2720 }
2721 }
2722 {
2723 wxPy_BEGIN_ALLOW_THREADS;
2724 wxIcon_SetDepth(_arg0,_arg1);
2725
2726 wxPy_END_ALLOW_THREADS;
2727 if (PyErr_Occurred()) return NULL;
2728 } Py_INCREF(Py_None);
2729 _resultobj = Py_None;
2730 return _resultobj;
2731 }
2732
2733 #define wxIcon_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
2734 static PyObject *_wrap_wxIcon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2735 PyObject * _resultobj;
2736 wxIcon * _arg0;
2737 wxSize * _arg1;
2738 PyObject * _argo0 = 0;
2739 wxSize temp;
2740 PyObject * _obj1 = 0;
2741 char *_kwnames[] = { "self","size", NULL };
2742
2743 self = self;
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_SetSize",_kwnames,&_argo0,&_obj1))
2745 return NULL;
2746 if (_argo0) {
2747 if (_argo0 == Py_None) { _arg0 = NULL; }
2748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_SetSize. Expected _wxIcon_p.");
2750 return NULL;
2751 }
2752 }
2753 {
2754 _arg1 = &temp;
2755 if (! wxSize_helper(_obj1, &_arg1))
2756 return NULL;
2757 }
2758 {
2759 wxPy_BEGIN_ALLOW_THREADS;
2760 wxIcon_SetSize(_arg0,*_arg1);
2761
2762 wxPy_END_ALLOW_THREADS;
2763 if (PyErr_Occurred()) return NULL;
2764 } Py_INCREF(Py_None);
2765 _resultobj = Py_None;
2766 return _resultobj;
2767 }
2768
2769 #define wxIcon_CopyFromBitmap(_swigobj,_swigarg0) (_swigobj->CopyFromBitmap(_swigarg0))
2770 static PyObject *_wrap_wxIcon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2771 PyObject * _resultobj;
2772 wxIcon * _arg0;
2773 wxBitmap * _arg1;
2774 PyObject * _argo0 = 0;
2775 PyObject * _argo1 = 0;
2776 char *_kwnames[] = { "self","bmp", NULL };
2777
2778 self = self;
2779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxIcon_CopyFromBitmap",_kwnames,&_argo0,&_argo1))
2780 return NULL;
2781 if (_argo0) {
2782 if (_argo0 == Py_None) { _arg0 = NULL; }
2783 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxIcon_p")) {
2784 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxIcon_CopyFromBitmap. Expected _wxIcon_p.");
2785 return NULL;
2786 }
2787 }
2788 if (_argo1) {
2789 if (_argo1 == Py_None) { _arg1 = NULL; }
2790 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
2791 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxIcon_CopyFromBitmap. Expected _wxBitmap_p.");
2792 return NULL;
2793 }
2794 }
2795 {
2796 wxPy_BEGIN_ALLOW_THREADS;
2797 wxIcon_CopyFromBitmap(_arg0,*_arg1);
2798
2799 wxPy_END_ALLOW_THREADS;
2800 if (PyErr_Occurred()) return NULL;
2801 } Py_INCREF(Py_None);
2802 _resultobj = Py_None;
2803 return _resultobj;
2804 }
2805
2806 static void *SwigwxCursorTowxGDIObject(void *ptr) {
2807 wxCursor *src;
2808 wxGDIObject *dest;
2809 src = (wxCursor *) ptr;
2810 dest = (wxGDIObject *) src;
2811 return (void *) dest;
2812 }
2813
2814 static void *SwigwxCursorTowxObject(void *ptr) {
2815 wxCursor *src;
2816 wxObject *dest;
2817 src = (wxCursor *) ptr;
2818 dest = (wxObject *) src;
2819 return (void *) dest;
2820 }
2821
2822 #define new_wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxCursor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
2823 static PyObject *_wrap_new_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2824 PyObject * _resultobj;
2825 wxCursor * _result;
2826 wxString * _arg0;
2827 long _arg1;
2828 int _arg2 = (int ) 0;
2829 int _arg3 = (int ) 0;
2830 PyObject * _obj0 = 0;
2831 char *_kwnames[] = { "cursorName","flags","hotSpotX","hotSpotY", NULL };
2832 char _ptemp[128];
2833
2834 self = self;
2835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol|ii:new_wxCursor",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
2836 return NULL;
2837 {
2838 #if PYTHON_API_VERSION >= 1009
2839 char* tmpPtr; int tmpSize;
2840 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
2841 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2842 return NULL;
2843 }
2844 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
2845 return NULL;
2846 _arg0 = new wxString(tmpPtr, tmpSize);
2847 #else
2848 if (!PyString_Check(_obj0)) {
2849 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
2850 return NULL;
2851 }
2852 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
2853 #endif
2854 }
2855 {
2856 wxPy_BEGIN_ALLOW_THREADS;
2857 _result = (wxCursor *)new_wxCursor(*_arg0,_arg1,_arg2,_arg3);
2858
2859 wxPy_END_ALLOW_THREADS;
2860 if (PyErr_Occurred()) return NULL;
2861 } if (_result) {
2862 SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
2863 _resultobj = Py_BuildValue("s",_ptemp);
2864 } else {
2865 Py_INCREF(Py_None);
2866 _resultobj = Py_None;
2867 }
2868 {
2869 if (_obj0)
2870 delete _arg0;
2871 }
2872 return _resultobj;
2873 }
2874
2875 #define delete_wxCursor(_swigobj) (delete _swigobj)
2876 static PyObject *_wrap_delete_wxCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
2877 PyObject * _resultobj;
2878 wxCursor * _arg0;
2879 PyObject * _argo0 = 0;
2880 char *_kwnames[] = { "self", NULL };
2881
2882 self = self;
2883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxCursor",_kwnames,&_argo0))
2884 return NULL;
2885 if (_argo0) {
2886 if (_argo0 == Py_None) { _arg0 = NULL; }
2887 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2888 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxCursor. Expected _wxCursor_p.");
2889 return NULL;
2890 }
2891 }
2892 {
2893 wxPy_BEGIN_ALLOW_THREADS;
2894 delete_wxCursor(_arg0);
2895
2896 wxPy_END_ALLOW_THREADS;
2897 if (PyErr_Occurred()) return NULL;
2898 } Py_INCREF(Py_None);
2899 _resultobj = Py_None;
2900 return _resultobj;
2901 }
2902
2903 #define wxCursor_GetHandle(_swigobj) (_swigobj->GetHandle())
2904 static PyObject *_wrap_wxCursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2905 PyObject * _resultobj;
2906 long _result;
2907 wxCursor * _arg0;
2908 PyObject * _argo0 = 0;
2909 char *_kwnames[] = { "self", NULL };
2910
2911 self = self;
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHandle",_kwnames,&_argo0))
2913 return NULL;
2914 if (_argo0) {
2915 if (_argo0 == Py_None) { _arg0 = NULL; }
2916 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2917 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHandle. Expected _wxCursor_p.");
2918 return NULL;
2919 }
2920 }
2921 {
2922 wxPy_BEGIN_ALLOW_THREADS;
2923 _result = (long )wxCursor_GetHandle(_arg0);
2924
2925 wxPy_END_ALLOW_THREADS;
2926 if (PyErr_Occurred()) return NULL;
2927 } _resultobj = Py_BuildValue("l",_result);
2928 return _resultobj;
2929 }
2930
2931 #define wxCursor_SetHandle(_swigobj,_swigarg0) (_swigobj->SetHandle(_swigarg0))
2932 static PyObject *_wrap_wxCursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2933 PyObject * _resultobj;
2934 wxCursor * _arg0;
2935 long _arg1;
2936 PyObject * _argo0 = 0;
2937 char *_kwnames[] = { "self","handle", NULL };
2938
2939 self = self;
2940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxCursor_SetHandle",_kwnames,&_argo0,&_arg1))
2941 return NULL;
2942 if (_argo0) {
2943 if (_argo0 == Py_None) { _arg0 = NULL; }
2944 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2945 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHandle. Expected _wxCursor_p.");
2946 return NULL;
2947 }
2948 }
2949 {
2950 wxPy_BEGIN_ALLOW_THREADS;
2951 wxCursor_SetHandle(_arg0,_arg1);
2952
2953 wxPy_END_ALLOW_THREADS;
2954 if (PyErr_Occurred()) return NULL;
2955 } Py_INCREF(Py_None);
2956 _resultobj = Py_None;
2957 return _resultobj;
2958 }
2959
2960 #define wxCursor_Ok(_swigobj) (_swigobj->Ok())
2961 static PyObject *_wrap_wxCursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2962 PyObject * _resultobj;
2963 bool _result;
2964 wxCursor * _arg0;
2965 PyObject * _argo0 = 0;
2966 char *_kwnames[] = { "self", NULL };
2967
2968 self = self;
2969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_Ok",_kwnames,&_argo0))
2970 return NULL;
2971 if (_argo0) {
2972 if (_argo0 == Py_None) { _arg0 = NULL; }
2973 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
2974 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_Ok. Expected _wxCursor_p.");
2975 return NULL;
2976 }
2977 }
2978 {
2979 wxPy_BEGIN_ALLOW_THREADS;
2980 _result = (bool )wxCursor_Ok(_arg0);
2981
2982 wxPy_END_ALLOW_THREADS;
2983 if (PyErr_Occurred()) return NULL;
2984 } _resultobj = Py_BuildValue("i",_result);
2985 return _resultobj;
2986 }
2987
2988 #define wxCursor_GetWidth(_swigobj) (_swigobj->GetWidth())
2989 static PyObject *_wrap_wxCursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject * _resultobj;
2991 int _result;
2992 wxCursor * _arg0;
2993 PyObject * _argo0 = 0;
2994 char *_kwnames[] = { "self", NULL };
2995
2996 self = self;
2997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetWidth",_kwnames,&_argo0))
2998 return NULL;
2999 if (_argo0) {
3000 if (_argo0 == Py_None) { _arg0 = NULL; }
3001 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3002 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetWidth. Expected _wxCursor_p.");
3003 return NULL;
3004 }
3005 }
3006 {
3007 wxPy_BEGIN_ALLOW_THREADS;
3008 _result = (int )wxCursor_GetWidth(_arg0);
3009
3010 wxPy_END_ALLOW_THREADS;
3011 if (PyErr_Occurred()) return NULL;
3012 } _resultobj = Py_BuildValue("i",_result);
3013 return _resultobj;
3014 }
3015
3016 #define wxCursor_GetHeight(_swigobj) (_swigobj->GetHeight())
3017 static PyObject *_wrap_wxCursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3018 PyObject * _resultobj;
3019 int _result;
3020 wxCursor * _arg0;
3021 PyObject * _argo0 = 0;
3022 char *_kwnames[] = { "self", NULL };
3023
3024 self = self;
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetHeight",_kwnames,&_argo0))
3026 return NULL;
3027 if (_argo0) {
3028 if (_argo0 == Py_None) { _arg0 = NULL; }
3029 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3030 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetHeight. Expected _wxCursor_p.");
3031 return NULL;
3032 }
3033 }
3034 {
3035 wxPy_BEGIN_ALLOW_THREADS;
3036 _result = (int )wxCursor_GetHeight(_arg0);
3037
3038 wxPy_END_ALLOW_THREADS;
3039 if (PyErr_Occurred()) return NULL;
3040 } _resultobj = Py_BuildValue("i",_result);
3041 return _resultobj;
3042 }
3043
3044 #define wxCursor_GetDepth(_swigobj) (_swigobj->GetDepth())
3045 static PyObject *_wrap_wxCursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3046 PyObject * _resultobj;
3047 int _result;
3048 wxCursor * _arg0;
3049 PyObject * _argo0 = 0;
3050 char *_kwnames[] = { "self", NULL };
3051
3052 self = self;
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursor_GetDepth",_kwnames,&_argo0))
3054 return NULL;
3055 if (_argo0) {
3056 if (_argo0 == Py_None) { _arg0 = NULL; }
3057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_GetDepth. Expected _wxCursor_p.");
3059 return NULL;
3060 }
3061 }
3062 {
3063 wxPy_BEGIN_ALLOW_THREADS;
3064 _result = (int )wxCursor_GetDepth(_arg0);
3065
3066 wxPy_END_ALLOW_THREADS;
3067 if (PyErr_Occurred()) return NULL;
3068 } _resultobj = Py_BuildValue("i",_result);
3069 return _resultobj;
3070 }
3071
3072 #define wxCursor_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
3073 static PyObject *_wrap_wxCursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3074 PyObject * _resultobj;
3075 wxCursor * _arg0;
3076 int _arg1;
3077 PyObject * _argo0 = 0;
3078 char *_kwnames[] = { "self","w", NULL };
3079
3080 self = self;
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetWidth",_kwnames,&_argo0,&_arg1))
3082 return NULL;
3083 if (_argo0) {
3084 if (_argo0 == Py_None) { _arg0 = NULL; }
3085 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3086 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetWidth. Expected _wxCursor_p.");
3087 return NULL;
3088 }
3089 }
3090 {
3091 wxPy_BEGIN_ALLOW_THREADS;
3092 wxCursor_SetWidth(_arg0,_arg1);
3093
3094 wxPy_END_ALLOW_THREADS;
3095 if (PyErr_Occurred()) return NULL;
3096 } Py_INCREF(Py_None);
3097 _resultobj = Py_None;
3098 return _resultobj;
3099 }
3100
3101 #define wxCursor_SetHeight(_swigobj,_swigarg0) (_swigobj->SetHeight(_swigarg0))
3102 static PyObject *_wrap_wxCursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject * _resultobj;
3104 wxCursor * _arg0;
3105 int _arg1;
3106 PyObject * _argo0 = 0;
3107 char *_kwnames[] = { "self","h", NULL };
3108
3109 self = self;
3110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetHeight",_kwnames,&_argo0,&_arg1))
3111 return NULL;
3112 if (_argo0) {
3113 if (_argo0 == Py_None) { _arg0 = NULL; }
3114 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3115 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetHeight. Expected _wxCursor_p.");
3116 return NULL;
3117 }
3118 }
3119 {
3120 wxPy_BEGIN_ALLOW_THREADS;
3121 wxCursor_SetHeight(_arg0,_arg1);
3122
3123 wxPy_END_ALLOW_THREADS;
3124 if (PyErr_Occurred()) return NULL;
3125 } Py_INCREF(Py_None);
3126 _resultobj = Py_None;
3127 return _resultobj;
3128 }
3129
3130 #define wxCursor_SetDepth(_swigobj,_swigarg0) (_swigobj->SetDepth(_swigarg0))
3131 static PyObject *_wrap_wxCursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3132 PyObject * _resultobj;
3133 wxCursor * _arg0;
3134 int _arg1;
3135 PyObject * _argo0 = 0;
3136 char *_kwnames[] = { "self","d", NULL };
3137
3138 self = self;
3139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxCursor_SetDepth",_kwnames,&_argo0,&_arg1))
3140 return NULL;
3141 if (_argo0) {
3142 if (_argo0 == Py_None) { _arg0 = NULL; }
3143 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3144 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetDepth. Expected _wxCursor_p.");
3145 return NULL;
3146 }
3147 }
3148 {
3149 wxPy_BEGIN_ALLOW_THREADS;
3150 wxCursor_SetDepth(_arg0,_arg1);
3151
3152 wxPy_END_ALLOW_THREADS;
3153 if (PyErr_Occurred()) return NULL;
3154 } Py_INCREF(Py_None);
3155 _resultobj = Py_None;
3156 return _resultobj;
3157 }
3158
3159 #define wxCursor_SetSize(_swigobj,_swigarg0) (_swigobj->SetSize(_swigarg0))
3160 static PyObject *_wrap_wxCursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3161 PyObject * _resultobj;
3162 wxCursor * _arg0;
3163 wxSize * _arg1;
3164 PyObject * _argo0 = 0;
3165 wxSize temp;
3166 PyObject * _obj1 = 0;
3167 char *_kwnames[] = { "self","size", NULL };
3168
3169 self = self;
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxCursor_SetSize",_kwnames,&_argo0,&_obj1))
3171 return NULL;
3172 if (_argo0) {
3173 if (_argo0 == Py_None) { _arg0 = NULL; }
3174 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxCursor_p")) {
3175 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursor_SetSize. Expected _wxCursor_p.");
3176 return NULL;
3177 }
3178 }
3179 {
3180 _arg1 = &temp;
3181 if (! wxSize_helper(_obj1, &_arg1))
3182 return NULL;
3183 }
3184 {
3185 wxPy_BEGIN_ALLOW_THREADS;
3186 wxCursor_SetSize(_arg0,*_arg1);
3187
3188 wxPy_END_ALLOW_THREADS;
3189 if (PyErr_Occurred()) return NULL;
3190 } Py_INCREF(Py_None);
3191 _resultobj = Py_None;
3192 return _resultobj;
3193 }
3194
3195 #define wxNativeFontInfo_FromString(_swigobj,_swigarg0) (_swigobj->FromString(_swigarg0))
3196 static PyObject *_wrap_wxNativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
3197 PyObject * _resultobj;
3198 bool _result;
3199 wxNativeFontInfo * _arg0;
3200 wxString * _arg1;
3201 PyObject * _argo0 = 0;
3202 PyObject * _obj1 = 0;
3203 char *_kwnames[] = { "self","s", NULL };
3204
3205 self = self;
3206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxNativeFontInfo_FromString",_kwnames,&_argo0,&_obj1))
3207 return NULL;
3208 if (_argo0) {
3209 if (_argo0 == Py_None) { _arg0 = NULL; }
3210 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3211 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_FromString. Expected _wxNativeFontInfo_p.");
3212 return NULL;
3213 }
3214 }
3215 {
3216 #if PYTHON_API_VERSION >= 1009
3217 char* tmpPtr; int tmpSize;
3218 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3219 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3220 return NULL;
3221 }
3222 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3223 return NULL;
3224 _arg1 = new wxString(tmpPtr, tmpSize);
3225 #else
3226 if (!PyString_Check(_obj1)) {
3227 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3228 return NULL;
3229 }
3230 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3231 #endif
3232 }
3233 {
3234 wxPy_BEGIN_ALLOW_THREADS;
3235 _result = (bool )wxNativeFontInfo_FromString(_arg0,*_arg1);
3236
3237 wxPy_END_ALLOW_THREADS;
3238 if (PyErr_Occurred()) return NULL;
3239 } _resultobj = Py_BuildValue("i",_result);
3240 {
3241 if (_obj1)
3242 delete _arg1;
3243 }
3244 return _resultobj;
3245 }
3246
3247 #define wxNativeFontInfo_ToString(_swigobj) (_swigobj->ToString())
3248 static PyObject *_wrap_wxNativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
3249 PyObject * _resultobj;
3250 wxString * _result;
3251 wxNativeFontInfo * _arg0;
3252 PyObject * _argo0 = 0;
3253 char *_kwnames[] = { "self", NULL };
3254
3255 self = self;
3256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo_ToString",_kwnames,&_argo0))
3257 return NULL;
3258 if (_argo0) {
3259 if (_argo0 == Py_None) { _arg0 = NULL; }
3260 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3261 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo_ToString. Expected _wxNativeFontInfo_p.");
3262 return NULL;
3263 }
3264 }
3265 {
3266 wxPy_BEGIN_ALLOW_THREADS;
3267 _result = new wxString (wxNativeFontInfo_ToString(_arg0));
3268
3269 wxPy_END_ALLOW_THREADS;
3270 if (PyErr_Occurred()) return NULL;
3271 }{
3272 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3273 }
3274 {
3275 delete _result;
3276 }
3277 return _resultobj;
3278 }
3279
3280 static wxString wxNativeFontInfo___str__(wxNativeFontInfo *self) {
3281 return self->ToString();
3282 }
3283 static PyObject *_wrap_wxNativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
3284 PyObject * _resultobj;
3285 wxString * _result;
3286 wxNativeFontInfo * _arg0;
3287 PyObject * _argo0 = 0;
3288 char *_kwnames[] = { "self", NULL };
3289
3290 self = self;
3291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxNativeFontInfo___str__",_kwnames,&_argo0))
3292 return NULL;
3293 if (_argo0) {
3294 if (_argo0 == Py_None) { _arg0 = NULL; }
3295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxNativeFontInfo___str__. Expected _wxNativeFontInfo_p.");
3297 return NULL;
3298 }
3299 }
3300 {
3301 wxPy_BEGIN_ALLOW_THREADS;
3302 _result = new wxString (wxNativeFontInfo___str__(_arg0));
3303
3304 wxPy_END_ALLOW_THREADS;
3305 if (PyErr_Occurred()) return NULL;
3306 }{
3307 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3308 }
3309 {
3310 delete _result;
3311 }
3312 return _resultobj;
3313 }
3314
3315 #define new_wxFontMapper() (new wxFontMapper())
3316 static PyObject *_wrap_new_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3317 PyObject * _resultobj;
3318 wxFontMapper * _result;
3319 char *_kwnames[] = { NULL };
3320 char _ptemp[128];
3321
3322 self = self;
3323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxFontMapper",_kwnames))
3324 return NULL;
3325 {
3326 wxPy_BEGIN_ALLOW_THREADS;
3327 _result = (wxFontMapper *)new_wxFontMapper();
3328
3329 wxPy_END_ALLOW_THREADS;
3330 if (PyErr_Occurred()) return NULL;
3331 } if (_result) {
3332 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFontMapper_p");
3333 _resultobj = Py_BuildValue("s",_ptemp);
3334 } else {
3335 Py_INCREF(Py_None);
3336 _resultobj = Py_None;
3337 }
3338 return _resultobj;
3339 }
3340
3341 #define delete_wxFontMapper(_swigobj) (delete _swigobj)
3342 static PyObject *_wrap_delete_wxFontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
3343 PyObject * _resultobj;
3344 wxFontMapper * _arg0;
3345 PyObject * _argo0 = 0;
3346 char *_kwnames[] = { "self", NULL };
3347
3348 self = self;
3349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFontMapper",_kwnames,&_argo0))
3350 return NULL;
3351 if (_argo0) {
3352 if (_argo0 == Py_None) { _arg0 = NULL; }
3353 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3354 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFontMapper. Expected _wxFontMapper_p.");
3355 return NULL;
3356 }
3357 }
3358 {
3359 wxPy_BEGIN_ALLOW_THREADS;
3360 delete_wxFontMapper(_arg0);
3361
3362 wxPy_END_ALLOW_THREADS;
3363 if (PyErr_Occurred()) return NULL;
3364 } Py_INCREF(Py_None);
3365 _resultobj = Py_None;
3366 return _resultobj;
3367 }
3368
3369 static PyObject * wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,const wxString & facename,bool interactive) {
3370 wxFontEncoding alt_enc;
3371 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3372 return PyInt_FromLong(alt_enc);
3373 else {
3374 Py_INCREF(Py_None);
3375 return Py_None;
3376 }
3377 }
3378 static PyObject *_wrap_wxFontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3379 PyObject * _resultobj;
3380 PyObject * _result;
3381 wxFontMapper * _arg0;
3382 wxFontEncoding _arg1;
3383 wxString * _arg2 = (wxString *) &wxEmptyString;
3384 bool _arg3 = (bool ) TRUE;
3385 PyObject * _argo0 = 0;
3386 PyObject * _obj2 = 0;
3387 int tempbool3 = (int) TRUE;
3388 char *_kwnames[] = { "self","encoding","facename","interactive", NULL };
3389
3390 self = self;
3391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|Oi:wxFontMapper_GetAltForEncoding",_kwnames,&_argo0,&_arg1,&_obj2,&tempbool3))
3392 return NULL;
3393 if (_argo0) {
3394 if (_argo0 == Py_None) { _arg0 = NULL; }
3395 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3396 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_GetAltForEncoding. Expected _wxFontMapper_p.");
3397 return NULL;
3398 }
3399 }
3400 if (_obj2)
3401 {
3402 #if PYTHON_API_VERSION >= 1009
3403 char* tmpPtr; int tmpSize;
3404 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3405 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3406 return NULL;
3407 }
3408 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3409 return NULL;
3410 _arg2 = new wxString(tmpPtr, tmpSize);
3411 #else
3412 if (!PyString_Check(_obj2)) {
3413 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3414 return NULL;
3415 }
3416 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3417 #endif
3418 }
3419 _arg3 = (bool ) tempbool3;
3420 {
3421 wxPy_BEGIN_ALLOW_THREADS;
3422 _result = (PyObject *)wxFontMapper_GetAltForEncoding(_arg0,_arg1,*_arg2,_arg3);
3423
3424 wxPy_END_ALLOW_THREADS;
3425 if (PyErr_Occurred()) return NULL;
3426 }{
3427 _resultobj = _result;
3428 }
3429 {
3430 if (_obj2)
3431 delete _arg2;
3432 }
3433 return _resultobj;
3434 }
3435
3436 #define wxFontMapper_IsEncodingAvailable(_swigobj,_swigarg0,_swigarg1) (_swigobj->IsEncodingAvailable(_swigarg0,_swigarg1))
3437 static PyObject *_wrap_wxFontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
3438 PyObject * _resultobj;
3439 bool _result;
3440 wxFontMapper * _arg0;
3441 wxFontEncoding _arg1;
3442 wxString * _arg2 = (wxString *) &wxEmptyString;
3443 PyObject * _argo0 = 0;
3444 PyObject * _obj2 = 0;
3445 char *_kwnames[] = { "self","encoding","facename", NULL };
3446
3447 self = self;
3448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi|O:wxFontMapper_IsEncodingAvailable",_kwnames,&_argo0,&_arg1,&_obj2))
3449 return NULL;
3450 if (_argo0) {
3451 if (_argo0 == Py_None) { _arg0 = NULL; }
3452 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3453 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_IsEncodingAvailable. Expected _wxFontMapper_p.");
3454 return NULL;
3455 }
3456 }
3457 if (_obj2)
3458 {
3459 #if PYTHON_API_VERSION >= 1009
3460 char* tmpPtr; int tmpSize;
3461 if (!PyString_Check(_obj2) && !PyUnicode_Check(_obj2)) {
3462 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3463 return NULL;
3464 }
3465 if (PyString_AsStringAndSize(_obj2, &tmpPtr, &tmpSize) == -1)
3466 return NULL;
3467 _arg2 = new wxString(tmpPtr, tmpSize);
3468 #else
3469 if (!PyString_Check(_obj2)) {
3470 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3471 return NULL;
3472 }
3473 _arg2 = new wxString(PyString_AS_STRING(_obj2), PyString_GET_SIZE(_obj2));
3474 #endif
3475 }
3476 {
3477 wxPy_BEGIN_ALLOW_THREADS;
3478 _result = (bool )wxFontMapper_IsEncodingAvailable(_arg0,_arg1,*_arg2);
3479
3480 wxPy_END_ALLOW_THREADS;
3481 if (PyErr_Occurred()) return NULL;
3482 } _resultobj = Py_BuildValue("i",_result);
3483 {
3484 if (_obj2)
3485 delete _arg2;
3486 }
3487 return _resultobj;
3488 }
3489
3490 #define wxFontMapper_CharsetToEncoding(_swigobj,_swigarg0,_swigarg1) (_swigobj->CharsetToEncoding(_swigarg0,_swigarg1))
3491 static PyObject *_wrap_wxFontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
3492 PyObject * _resultobj;
3493 wxFontEncoding _result;
3494 wxFontMapper * _arg0;
3495 wxString * _arg1;
3496 bool _arg2 = (bool ) TRUE;
3497 PyObject * _argo0 = 0;
3498 PyObject * _obj1 = 0;
3499 int tempbool2 = (int) TRUE;
3500 char *_kwnames[] = { "self","charset","interactive", NULL };
3501
3502 self = self;
3503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|i:wxFontMapper_CharsetToEncoding",_kwnames,&_argo0,&_obj1,&tempbool2))
3504 return NULL;
3505 if (_argo0) {
3506 if (_argo0 == Py_None) { _arg0 = NULL; }
3507 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3508 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_CharsetToEncoding. Expected _wxFontMapper_p.");
3509 return NULL;
3510 }
3511 }
3512 {
3513 #if PYTHON_API_VERSION >= 1009
3514 char* tmpPtr; int tmpSize;
3515 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3516 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3517 return NULL;
3518 }
3519 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3520 return NULL;
3521 _arg1 = new wxString(tmpPtr, tmpSize);
3522 #else
3523 if (!PyString_Check(_obj1)) {
3524 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3525 return NULL;
3526 }
3527 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3528 #endif
3529 }
3530 _arg2 = (bool ) tempbool2;
3531 {
3532 wxPy_BEGIN_ALLOW_THREADS;
3533 _result = (wxFontEncoding )wxFontMapper_CharsetToEncoding(_arg0,*_arg1,_arg2);
3534
3535 wxPy_END_ALLOW_THREADS;
3536 if (PyErr_Occurred()) return NULL;
3537 } _resultobj = Py_BuildValue("i",_result);
3538 {
3539 if (_obj1)
3540 delete _arg1;
3541 }
3542 return _resultobj;
3543 }
3544
3545 static PyObject *_wrap_wxFontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
3546 PyObject * _resultobj;
3547 wxString * _result;
3548 wxFontEncoding _arg0;
3549 char *_kwnames[] = { "encoding", NULL };
3550
3551 self = self;
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingName",_kwnames,&_arg0))
3553 return NULL;
3554 {
3555 wxPy_BEGIN_ALLOW_THREADS;
3556 _result = new wxString (wxFontMapper::GetEncodingName(_arg0));
3557
3558 wxPy_END_ALLOW_THREADS;
3559 if (PyErr_Occurred()) return NULL;
3560 }{
3561 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3562 }
3563 {
3564 delete _result;
3565 }
3566 return _resultobj;
3567 }
3568
3569 static PyObject *_wrap_wxFontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject * _resultobj;
3571 wxString * _result;
3572 wxFontEncoding _arg0;
3573 char *_kwnames[] = { "encoding", NULL };
3574
3575 self = self;
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFontMapper_GetEncodingDescription",_kwnames,&_arg0))
3577 return NULL;
3578 {
3579 wxPy_BEGIN_ALLOW_THREADS;
3580 _result = new wxString (wxFontMapper::GetEncodingDescription(_arg0));
3581
3582 wxPy_END_ALLOW_THREADS;
3583 if (PyErr_Occurred()) return NULL;
3584 }{
3585 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
3586 }
3587 {
3588 delete _result;
3589 }
3590 return _resultobj;
3591 }
3592
3593 #define wxFontMapper_SetDialogParent(_swigobj,_swigarg0) (_swigobj->SetDialogParent(_swigarg0))
3594 static PyObject *_wrap_wxFontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
3595 PyObject * _resultobj;
3596 wxFontMapper * _arg0;
3597 wxWindow * _arg1;
3598 PyObject * _argo0 = 0;
3599 PyObject * _argo1 = 0;
3600 char *_kwnames[] = { "self","parent", NULL };
3601
3602 self = self;
3603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogParent",_kwnames,&_argo0,&_argo1))
3604 return NULL;
3605 if (_argo0) {
3606 if (_argo0 == Py_None) { _arg0 = NULL; }
3607 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3608 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogParent. Expected _wxFontMapper_p.");
3609 return NULL;
3610 }
3611 }
3612 if (_argo1) {
3613 if (_argo1 == Py_None) { _arg1 = NULL; }
3614 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
3615 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetDialogParent. Expected _wxWindow_p.");
3616 return NULL;
3617 }
3618 }
3619 {
3620 wxPy_BEGIN_ALLOW_THREADS;
3621 wxFontMapper_SetDialogParent(_arg0,_arg1);
3622
3623 wxPy_END_ALLOW_THREADS;
3624 if (PyErr_Occurred()) return NULL;
3625 } Py_INCREF(Py_None);
3626 _resultobj = Py_None;
3627 return _resultobj;
3628 }
3629
3630 #define wxFontMapper_SetDialogTitle(_swigobj,_swigarg0) (_swigobj->SetDialogTitle(_swigarg0))
3631 static PyObject *_wrap_wxFontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
3632 PyObject * _resultobj;
3633 wxFontMapper * _arg0;
3634 wxString * _arg1;
3635 PyObject * _argo0 = 0;
3636 PyObject * _obj1 = 0;
3637 char *_kwnames[] = { "self","title", NULL };
3638
3639 self = self;
3640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetDialogTitle",_kwnames,&_argo0,&_obj1))
3641 return NULL;
3642 if (_argo0) {
3643 if (_argo0 == Py_None) { _arg0 = NULL; }
3644 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3645 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetDialogTitle. Expected _wxFontMapper_p.");
3646 return NULL;
3647 }
3648 }
3649 {
3650 #if PYTHON_API_VERSION >= 1009
3651 char* tmpPtr; int tmpSize;
3652 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3653 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3654 return NULL;
3655 }
3656 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3657 return NULL;
3658 _arg1 = new wxString(tmpPtr, tmpSize);
3659 #else
3660 if (!PyString_Check(_obj1)) {
3661 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3662 return NULL;
3663 }
3664 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3665 #endif
3666 }
3667 {
3668 wxPy_BEGIN_ALLOW_THREADS;
3669 wxFontMapper_SetDialogTitle(_arg0,*_arg1);
3670
3671 wxPy_END_ALLOW_THREADS;
3672 if (PyErr_Occurred()) return NULL;
3673 } Py_INCREF(Py_None);
3674 _resultobj = Py_None;
3675 {
3676 if (_obj1)
3677 delete _arg1;
3678 }
3679 return _resultobj;
3680 }
3681
3682 #define wxFontMapper_SetConfig(_swigobj,_swigarg0) (_swigobj->SetConfig(_swigarg0))
3683 static PyObject *_wrap_wxFontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
3684 PyObject * _resultobj;
3685 wxFontMapper * _arg0;
3686 wxConfigBase * _arg1;
3687 PyObject * _argo0 = 0;
3688 PyObject * _argo1 = 0;
3689 char *_kwnames[] = { "self","config", NULL };
3690
3691 self = self;
3692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfig",_kwnames,&_argo0,&_argo1))
3693 return NULL;
3694 if (_argo0) {
3695 if (_argo0 == Py_None) { _arg0 = NULL; }
3696 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3697 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfig. Expected _wxFontMapper_p.");
3698 return NULL;
3699 }
3700 }
3701 if (_argo1) {
3702 if (_argo1 == Py_None) { _arg1 = NULL; }
3703 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxConfigBase_p")) {
3704 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontMapper_SetConfig. Expected _wxConfigBase_p.");
3705 return NULL;
3706 }
3707 }
3708 {
3709 wxPy_BEGIN_ALLOW_THREADS;
3710 wxFontMapper_SetConfig(_arg0,_arg1);
3711
3712 wxPy_END_ALLOW_THREADS;
3713 if (PyErr_Occurred()) return NULL;
3714 } Py_INCREF(Py_None);
3715 _resultobj = Py_None;
3716 return _resultobj;
3717 }
3718
3719 #define wxFontMapper_SetConfigPath(_swigobj,_swigarg0) (_swigobj->SetConfigPath(_swigarg0))
3720 static PyObject *_wrap_wxFontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3721 PyObject * _resultobj;
3722 wxFontMapper * _arg0;
3723 wxString * _arg1;
3724 PyObject * _argo0 = 0;
3725 PyObject * _obj1 = 0;
3726 char *_kwnames[] = { "self","prefix", NULL };
3727
3728 self = self;
3729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontMapper_SetConfigPath",_kwnames,&_argo0,&_obj1))
3730 return NULL;
3731 if (_argo0) {
3732 if (_argo0 == Py_None) { _arg0 = NULL; }
3733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontMapper_p")) {
3734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontMapper_SetConfigPath. Expected _wxFontMapper_p.");
3735 return NULL;
3736 }
3737 }
3738 {
3739 #if PYTHON_API_VERSION >= 1009
3740 char* tmpPtr; int tmpSize;
3741 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
3742 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3743 return NULL;
3744 }
3745 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
3746 return NULL;
3747 _arg1 = new wxString(tmpPtr, tmpSize);
3748 #else
3749 if (!PyString_Check(_obj1)) {
3750 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
3751 return NULL;
3752 }
3753 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
3754 #endif
3755 }
3756 {
3757 wxPy_BEGIN_ALLOW_THREADS;
3758 wxFontMapper_SetConfigPath(_arg0,*_arg1);
3759
3760 wxPy_END_ALLOW_THREADS;
3761 if (PyErr_Occurred()) return NULL;
3762 } Py_INCREF(Py_None);
3763 _resultobj = Py_None;
3764 {
3765 if (_obj1)
3766 delete _arg1;
3767 }
3768 return _resultobj;
3769 }
3770
3771 static PyObject *_wrap_wxFontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
3772 PyObject * _resultobj;
3773 wxChar * _result;
3774 char *_kwnames[] = { NULL };
3775
3776 self = self;
3777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFontMapper_GetDefaultConfigPath",_kwnames))
3778 return NULL;
3779 {
3780 wxPy_BEGIN_ALLOW_THREADS;
3781 _result = (wxChar *)wxFontMapper::GetDefaultConfigPath();
3782
3783 wxPy_END_ALLOW_THREADS;
3784 if (PyErr_Occurred()) return NULL;
3785 } _resultobj = Py_BuildValue("s", _result);
3786 return _resultobj;
3787 }
3788
3789 static void *SwigwxFontTowxGDIObject(void *ptr) {
3790 wxFont *src;
3791 wxGDIObject *dest;
3792 src = (wxFont *) ptr;
3793 dest = (wxGDIObject *) src;
3794 return (void *) dest;
3795 }
3796
3797 static void *SwigwxFontTowxObject(void *ptr) {
3798 wxFont *src;
3799 wxObject *dest;
3800 src = (wxFont *) ptr;
3801 dest = (wxObject *) src;
3802 return (void *) dest;
3803 }
3804
3805 #define new_wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (new wxFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
3806 static PyObject *_wrap_new_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3807 PyObject * _resultobj;
3808 wxFont * _result;
3809 int _arg0;
3810 int _arg1;
3811 int _arg2;
3812 int _arg3;
3813 int _arg4 = (int ) FALSE;
3814 char * _arg5 = (char *) "";
3815 wxFontEncoding _arg6 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
3816 char *_kwnames[] = { "pointSize","family","style","weight","underline","faceName","encoding", NULL };
3817 char _ptemp[128];
3818
3819 self = self;
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"iiii|isi:new_wxFont",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
3821 return NULL;
3822 {
3823 wxPy_BEGIN_ALLOW_THREADS;
3824 _result = (wxFont *)new_wxFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
3825
3826 wxPy_END_ALLOW_THREADS;
3827 if (PyErr_Occurred()) return NULL;
3828 } if (_result) {
3829 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3830 _resultobj = Py_BuildValue("s",_ptemp);
3831 } else {
3832 Py_INCREF(Py_None);
3833 _resultobj = Py_None;
3834 }
3835 return _resultobj;
3836 }
3837
3838 #define new_wxFontFromNativeInfo(_swigarg0) (new wxFont(_swigarg0))
3839 static PyObject *_wrap_new_wxFontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
3840 PyObject * _resultobj;
3841 wxFont * _result;
3842 wxNativeFontInfo * _arg0;
3843 PyObject * _argo0 = 0;
3844 char *_kwnames[] = { "info", NULL };
3845 char _ptemp[128];
3846
3847 self = self;
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxFontFromNativeInfo",_kwnames,&_argo0))
3849 return NULL;
3850 if (_argo0) {
3851 if (_argo0 == Py_None) { _arg0 = NULL; }
3852 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxNativeFontInfo_p")) {
3853 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxFontFromNativeInfo. Expected _wxNativeFontInfo_p.");
3854 return NULL;
3855 }
3856 }
3857 {
3858 wxPy_BEGIN_ALLOW_THREADS;
3859 _result = (wxFont *)new_wxFontFromNativeInfo(*_arg0);
3860
3861 wxPy_END_ALLOW_THREADS;
3862 if (PyErr_Occurred()) return NULL;
3863 } if (_result) {
3864 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
3865 _resultobj = Py_BuildValue("s",_ptemp);
3866 } else {
3867 Py_INCREF(Py_None);
3868 _resultobj = Py_None;
3869 }
3870 return _resultobj;
3871 }
3872
3873 #define delete_wxFont(_swigobj) (delete _swigobj)
3874 static PyObject *_wrap_delete_wxFont(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject * _resultobj;
3876 wxFont * _arg0;
3877 PyObject * _argo0 = 0;
3878 char *_kwnames[] = { "self", NULL };
3879
3880 self = self;
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxFont",_kwnames,&_argo0))
3882 return NULL;
3883 if (_argo0) {
3884 if (_argo0 == Py_None) { _arg0 = NULL; }
3885 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3886 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxFont. Expected _wxFont_p.");
3887 return NULL;
3888 }
3889 }
3890 {
3891 wxPy_BEGIN_ALLOW_THREADS;
3892 delete_wxFont(_arg0);
3893
3894 wxPy_END_ALLOW_THREADS;
3895 if (PyErr_Occurred()) return NULL;
3896 } Py_INCREF(Py_None);
3897 _resultobj = Py_None;
3898 return _resultobj;
3899 }
3900
3901 #define wxFont_Ok(_swigobj) (_swigobj->Ok())
3902 static PyObject *_wrap_wxFont_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3903 PyObject * _resultobj;
3904 bool _result;
3905 wxFont * _arg0;
3906 PyObject * _argo0 = 0;
3907 char *_kwnames[] = { "self", NULL };
3908
3909 self = self;
3910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_Ok",_kwnames,&_argo0))
3911 return NULL;
3912 if (_argo0) {
3913 if (_argo0 == Py_None) { _arg0 = NULL; }
3914 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3915 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_Ok. Expected _wxFont_p.");
3916 return NULL;
3917 }
3918 }
3919 {
3920 wxPy_BEGIN_ALLOW_THREADS;
3921 _result = (bool )wxFont_Ok(_arg0);
3922
3923 wxPy_END_ALLOW_THREADS;
3924 if (PyErr_Occurred()) return NULL;
3925 } _resultobj = Py_BuildValue("i",_result);
3926 return _resultobj;
3927 }
3928
3929 #define wxFont_GetPointSize(_swigobj) (_swigobj->GetPointSize())
3930 static PyObject *_wrap_wxFont_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3931 PyObject * _resultobj;
3932 int _result;
3933 wxFont * _arg0;
3934 PyObject * _argo0 = 0;
3935 char *_kwnames[] = { "self", NULL };
3936
3937 self = self;
3938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetPointSize",_kwnames,&_argo0))
3939 return NULL;
3940 if (_argo0) {
3941 if (_argo0 == Py_None) { _arg0 = NULL; }
3942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetPointSize. Expected _wxFont_p.");
3944 return NULL;
3945 }
3946 }
3947 {
3948 wxPy_BEGIN_ALLOW_THREADS;
3949 _result = (int )wxFont_GetPointSize(_arg0);
3950
3951 wxPy_END_ALLOW_THREADS;
3952 if (PyErr_Occurred()) return NULL;
3953 } _resultobj = Py_BuildValue("i",_result);
3954 return _resultobj;
3955 }
3956
3957 #define wxFont_GetFamily(_swigobj) (_swigobj->GetFamily())
3958 static PyObject *_wrap_wxFont_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
3959 PyObject * _resultobj;
3960 int _result;
3961 wxFont * _arg0;
3962 PyObject * _argo0 = 0;
3963 char *_kwnames[] = { "self", NULL };
3964
3965 self = self;
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamily",_kwnames,&_argo0))
3967 return NULL;
3968 if (_argo0) {
3969 if (_argo0 == Py_None) { _arg0 = NULL; }
3970 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3971 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamily. Expected _wxFont_p.");
3972 return NULL;
3973 }
3974 }
3975 {
3976 wxPy_BEGIN_ALLOW_THREADS;
3977 _result = (int )wxFont_GetFamily(_arg0);
3978
3979 wxPy_END_ALLOW_THREADS;
3980 if (PyErr_Occurred()) return NULL;
3981 } _resultobj = Py_BuildValue("i",_result);
3982 return _resultobj;
3983 }
3984
3985 #define wxFont_GetStyle(_swigobj) (_swigobj->GetStyle())
3986 static PyObject *_wrap_wxFont_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
3987 PyObject * _resultobj;
3988 int _result;
3989 wxFont * _arg0;
3990 PyObject * _argo0 = 0;
3991 char *_kwnames[] = { "self", NULL };
3992
3993 self = self;
3994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyle",_kwnames,&_argo0))
3995 return NULL;
3996 if (_argo0) {
3997 if (_argo0 == Py_None) { _arg0 = NULL; }
3998 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
3999 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyle. Expected _wxFont_p.");
4000 return NULL;
4001 }
4002 }
4003 {
4004 wxPy_BEGIN_ALLOW_THREADS;
4005 _result = (int )wxFont_GetStyle(_arg0);
4006
4007 wxPy_END_ALLOW_THREADS;
4008 if (PyErr_Occurred()) return NULL;
4009 } _resultobj = Py_BuildValue("i",_result);
4010 return _resultobj;
4011 }
4012
4013 #define wxFont_GetWeight(_swigobj) (_swigobj->GetWeight())
4014 static PyObject *_wrap_wxFont_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4015 PyObject * _resultobj;
4016 int _result;
4017 wxFont * _arg0;
4018 PyObject * _argo0 = 0;
4019 char *_kwnames[] = { "self", NULL };
4020
4021 self = self;
4022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeight",_kwnames,&_argo0))
4023 return NULL;
4024 if (_argo0) {
4025 if (_argo0 == Py_None) { _arg0 = NULL; }
4026 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4027 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeight. Expected _wxFont_p.");
4028 return NULL;
4029 }
4030 }
4031 {
4032 wxPy_BEGIN_ALLOW_THREADS;
4033 _result = (int )wxFont_GetWeight(_arg0);
4034
4035 wxPy_END_ALLOW_THREADS;
4036 if (PyErr_Occurred()) return NULL;
4037 } _resultobj = Py_BuildValue("i",_result);
4038 return _resultobj;
4039 }
4040
4041 #define wxFont_GetUnderlined(_swigobj) (_swigobj->GetUnderlined())
4042 static PyObject *_wrap_wxFont_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4043 PyObject * _resultobj;
4044 bool _result;
4045 wxFont * _arg0;
4046 PyObject * _argo0 = 0;
4047 char *_kwnames[] = { "self", NULL };
4048
4049 self = self;
4050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetUnderlined",_kwnames,&_argo0))
4051 return NULL;
4052 if (_argo0) {
4053 if (_argo0 == Py_None) { _arg0 = NULL; }
4054 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4055 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetUnderlined. Expected _wxFont_p.");
4056 return NULL;
4057 }
4058 }
4059 {
4060 wxPy_BEGIN_ALLOW_THREADS;
4061 _result = (bool )wxFont_GetUnderlined(_arg0);
4062
4063 wxPy_END_ALLOW_THREADS;
4064 if (PyErr_Occurred()) return NULL;
4065 } _resultobj = Py_BuildValue("i",_result);
4066 return _resultobj;
4067 }
4068
4069 #define wxFont_GetFaceName(_swigobj) (_swigobj->GetFaceName())
4070 static PyObject *_wrap_wxFont_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4071 PyObject * _resultobj;
4072 wxString * _result;
4073 wxFont * _arg0;
4074 PyObject * _argo0 = 0;
4075 char *_kwnames[] = { "self", NULL };
4076
4077 self = self;
4078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFaceName",_kwnames,&_argo0))
4079 return NULL;
4080 if (_argo0) {
4081 if (_argo0 == Py_None) { _arg0 = NULL; }
4082 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4083 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFaceName. Expected _wxFont_p.");
4084 return NULL;
4085 }
4086 }
4087 {
4088 wxPy_BEGIN_ALLOW_THREADS;
4089 _result = new wxString (wxFont_GetFaceName(_arg0));
4090
4091 wxPy_END_ALLOW_THREADS;
4092 if (PyErr_Occurred()) return NULL;
4093 }{
4094 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4095 }
4096 {
4097 delete _result;
4098 }
4099 return _resultobj;
4100 }
4101
4102 #define wxFont_GetEncoding(_swigobj) (_swigobj->GetEncoding())
4103 static PyObject *_wrap_wxFont_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4104 PyObject * _resultobj;
4105 wxFontEncoding _result;
4106 wxFont * _arg0;
4107 PyObject * _argo0 = 0;
4108 char *_kwnames[] = { "self", NULL };
4109
4110 self = self;
4111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetEncoding",_kwnames,&_argo0))
4112 return NULL;
4113 if (_argo0) {
4114 if (_argo0 == Py_None) { _arg0 = NULL; }
4115 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4116 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetEncoding. Expected _wxFont_p.");
4117 return NULL;
4118 }
4119 }
4120 {
4121 wxPy_BEGIN_ALLOW_THREADS;
4122 _result = (wxFontEncoding )wxFont_GetEncoding(_arg0);
4123
4124 wxPy_END_ALLOW_THREADS;
4125 if (PyErr_Occurred()) return NULL;
4126 } _resultobj = Py_BuildValue("i",_result);
4127 return _resultobj;
4128 }
4129
4130 #define wxFont_GetNativeFontInfo(_swigobj) (_swigobj->GetNativeFontInfo())
4131 static PyObject *_wrap_wxFont_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4132 PyObject * _resultobj;
4133 wxNativeFontInfo * _result;
4134 wxFont * _arg0;
4135 PyObject * _argo0 = 0;
4136 char *_kwnames[] = { "self", NULL };
4137 char _ptemp[128];
4138
4139 self = self;
4140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetNativeFontInfo",_kwnames,&_argo0))
4141 return NULL;
4142 if (_argo0) {
4143 if (_argo0 == Py_None) { _arg0 = NULL; }
4144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetNativeFontInfo. Expected _wxFont_p.");
4146 return NULL;
4147 }
4148 }
4149 {
4150 wxPy_BEGIN_ALLOW_THREADS;
4151 _result = (wxNativeFontInfo *)wxFont_GetNativeFontInfo(_arg0);
4152
4153 wxPy_END_ALLOW_THREADS;
4154 if (PyErr_Occurred()) return NULL;
4155 } if (_result) {
4156 SWIG_MakePtr(_ptemp, (char *) _result,"_wxNativeFontInfo_p");
4157 _resultobj = Py_BuildValue("s",_ptemp);
4158 } else {
4159 Py_INCREF(Py_None);
4160 _resultobj = Py_None;
4161 }
4162 return _resultobj;
4163 }
4164
4165 #define wxFont_SetPointSize(_swigobj,_swigarg0) (_swigobj->SetPointSize(_swigarg0))
4166 static PyObject *_wrap_wxFont_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4167 PyObject * _resultobj;
4168 wxFont * _arg0;
4169 int _arg1;
4170 PyObject * _argo0 = 0;
4171 char *_kwnames[] = { "self","pointSize", NULL };
4172
4173 self = self;
4174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetPointSize",_kwnames,&_argo0,&_arg1))
4175 return NULL;
4176 if (_argo0) {
4177 if (_argo0 == Py_None) { _arg0 = NULL; }
4178 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4179 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetPointSize. Expected _wxFont_p.");
4180 return NULL;
4181 }
4182 }
4183 {
4184 wxPy_BEGIN_ALLOW_THREADS;
4185 wxFont_SetPointSize(_arg0,_arg1);
4186
4187 wxPy_END_ALLOW_THREADS;
4188 if (PyErr_Occurred()) return NULL;
4189 } Py_INCREF(Py_None);
4190 _resultobj = Py_None;
4191 return _resultobj;
4192 }
4193
4194 #define wxFont_SetFamily(_swigobj,_swigarg0) (_swigobj->SetFamily(_swigarg0))
4195 static PyObject *_wrap_wxFont_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
4196 PyObject * _resultobj;
4197 wxFont * _arg0;
4198 int _arg1;
4199 PyObject * _argo0 = 0;
4200 char *_kwnames[] = { "self","family", NULL };
4201
4202 self = self;
4203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetFamily",_kwnames,&_argo0,&_arg1))
4204 return NULL;
4205 if (_argo0) {
4206 if (_argo0 == Py_None) { _arg0 = NULL; }
4207 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4208 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFamily. Expected _wxFont_p.");
4209 return NULL;
4210 }
4211 }
4212 {
4213 wxPy_BEGIN_ALLOW_THREADS;
4214 wxFont_SetFamily(_arg0,_arg1);
4215
4216 wxPy_END_ALLOW_THREADS;
4217 if (PyErr_Occurred()) return NULL;
4218 } Py_INCREF(Py_None);
4219 _resultobj = Py_None;
4220 return _resultobj;
4221 }
4222
4223 #define wxFont_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
4224 static PyObject *_wrap_wxFont_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
4225 PyObject * _resultobj;
4226 wxFont * _arg0;
4227 int _arg1;
4228 PyObject * _argo0 = 0;
4229 char *_kwnames[] = { "self","style", NULL };
4230
4231 self = self;
4232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetStyle",_kwnames,&_argo0,&_arg1))
4233 return NULL;
4234 if (_argo0) {
4235 if (_argo0 == Py_None) { _arg0 = NULL; }
4236 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4237 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetStyle. Expected _wxFont_p.");
4238 return NULL;
4239 }
4240 }
4241 {
4242 wxPy_BEGIN_ALLOW_THREADS;
4243 wxFont_SetStyle(_arg0,_arg1);
4244
4245 wxPy_END_ALLOW_THREADS;
4246 if (PyErr_Occurred()) return NULL;
4247 } Py_INCREF(Py_None);
4248 _resultobj = Py_None;
4249 return _resultobj;
4250 }
4251
4252 #define wxFont_SetWeight(_swigobj,_swigarg0) (_swigobj->SetWeight(_swigarg0))
4253 static PyObject *_wrap_wxFont_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject * _resultobj;
4255 wxFont * _arg0;
4256 int _arg1;
4257 PyObject * _argo0 = 0;
4258 char *_kwnames[] = { "self","weight", NULL };
4259
4260 self = self;
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetWeight",_kwnames,&_argo0,&_arg1))
4262 return NULL;
4263 if (_argo0) {
4264 if (_argo0 == Py_None) { _arg0 = NULL; }
4265 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4266 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetWeight. Expected _wxFont_p.");
4267 return NULL;
4268 }
4269 }
4270 {
4271 wxPy_BEGIN_ALLOW_THREADS;
4272 wxFont_SetWeight(_arg0,_arg1);
4273
4274 wxPy_END_ALLOW_THREADS;
4275 if (PyErr_Occurred()) return NULL;
4276 } Py_INCREF(Py_None);
4277 _resultobj = Py_None;
4278 return _resultobj;
4279 }
4280
4281 #define wxFont_SetFaceName(_swigobj,_swigarg0) (_swigobj->SetFaceName(_swigarg0))
4282 static PyObject *_wrap_wxFont_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
4283 PyObject * _resultobj;
4284 wxFont * _arg0;
4285 wxString * _arg1;
4286 PyObject * _argo0 = 0;
4287 PyObject * _obj1 = 0;
4288 char *_kwnames[] = { "self","faceName", NULL };
4289
4290 self = self;
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetFaceName",_kwnames,&_argo0,&_obj1))
4292 return NULL;
4293 if (_argo0) {
4294 if (_argo0 == Py_None) { _arg0 = NULL; }
4295 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4296 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetFaceName. Expected _wxFont_p.");
4297 return NULL;
4298 }
4299 }
4300 {
4301 #if PYTHON_API_VERSION >= 1009
4302 char* tmpPtr; int tmpSize;
4303 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4304 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4305 return NULL;
4306 }
4307 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4308 return NULL;
4309 _arg1 = new wxString(tmpPtr, tmpSize);
4310 #else
4311 if (!PyString_Check(_obj1)) {
4312 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4313 return NULL;
4314 }
4315 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
4316 #endif
4317 }
4318 {
4319 wxPy_BEGIN_ALLOW_THREADS;
4320 wxFont_SetFaceName(_arg0,*_arg1);
4321
4322 wxPy_END_ALLOW_THREADS;
4323 if (PyErr_Occurred()) return NULL;
4324 } Py_INCREF(Py_None);
4325 _resultobj = Py_None;
4326 {
4327 if (_obj1)
4328 delete _arg1;
4329 }
4330 return _resultobj;
4331 }
4332
4333 #define wxFont_SetUnderlined(_swigobj,_swigarg0) (_swigobj->SetUnderlined(_swigarg0))
4334 static PyObject *_wrap_wxFont_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
4335 PyObject * _resultobj;
4336 wxFont * _arg0;
4337 bool _arg1;
4338 PyObject * _argo0 = 0;
4339 int tempbool1;
4340 char *_kwnames[] = { "self","underlined", NULL };
4341
4342 self = self;
4343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetUnderlined",_kwnames,&_argo0,&tempbool1))
4344 return NULL;
4345 if (_argo0) {
4346 if (_argo0 == Py_None) { _arg0 = NULL; }
4347 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4348 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetUnderlined. Expected _wxFont_p.");
4349 return NULL;
4350 }
4351 }
4352 _arg1 = (bool ) tempbool1;
4353 {
4354 wxPy_BEGIN_ALLOW_THREADS;
4355 wxFont_SetUnderlined(_arg0,_arg1);
4356
4357 wxPy_END_ALLOW_THREADS;
4358 if (PyErr_Occurred()) return NULL;
4359 } Py_INCREF(Py_None);
4360 _resultobj = Py_None;
4361 return _resultobj;
4362 }
4363
4364 #define wxFont_SetEncoding(_swigobj,_swigarg0) (_swigobj->SetEncoding(_swigarg0))
4365 static PyObject *_wrap_wxFont_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4366 PyObject * _resultobj;
4367 wxFont * _arg0;
4368 wxFontEncoding _arg1;
4369 PyObject * _argo0 = 0;
4370 char *_kwnames[] = { "self","encoding", NULL };
4371
4372 self = self;
4373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxFont_SetEncoding",_kwnames,&_argo0,&_arg1))
4374 return NULL;
4375 if (_argo0) {
4376 if (_argo0 == Py_None) { _arg0 = NULL; }
4377 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4378 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetEncoding. Expected _wxFont_p.");
4379 return NULL;
4380 }
4381 }
4382 {
4383 wxPy_BEGIN_ALLOW_THREADS;
4384 wxFont_SetEncoding(_arg0,_arg1);
4385
4386 wxPy_END_ALLOW_THREADS;
4387 if (PyErr_Occurred()) return NULL;
4388 } Py_INCREF(Py_None);
4389 _resultobj = Py_None;
4390 return _resultobj;
4391 }
4392
4393 #define wxFont_SetNativeFontInfo(_swigobj,_swigarg0) (_swigobj->SetNativeFontInfo(_swigarg0))
4394 static PyObject *_wrap_wxFont_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
4395 PyObject * _resultobj;
4396 wxFont * _arg0;
4397 wxNativeFontInfo * _arg1;
4398 PyObject * _argo0 = 0;
4399 PyObject * _argo1 = 0;
4400 char *_kwnames[] = { "self","info", NULL };
4401
4402 self = self;
4403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFont_SetNativeFontInfo",_kwnames,&_argo0,&_argo1))
4404 return NULL;
4405 if (_argo0) {
4406 if (_argo0 == Py_None) { _arg0 = NULL; }
4407 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4408 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_SetNativeFontInfo. Expected _wxFont_p.");
4409 return NULL;
4410 }
4411 }
4412 if (_argo1) {
4413 if (_argo1 == Py_None) { _arg1 = NULL; }
4414 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxNativeFontInfo_p")) {
4415 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFont_SetNativeFontInfo. Expected _wxNativeFontInfo_p.");
4416 return NULL;
4417 }
4418 }
4419 {
4420 wxPy_BEGIN_ALLOW_THREADS;
4421 wxFont_SetNativeFontInfo(_arg0,*_arg1);
4422
4423 wxPy_END_ALLOW_THREADS;
4424 if (PyErr_Occurred()) return NULL;
4425 } Py_INCREF(Py_None);
4426 _resultobj = Py_None;
4427 return _resultobj;
4428 }
4429
4430 #define wxFont_GetFamilyString(_swigobj) (_swigobj->GetFamilyString())
4431 static PyObject *_wrap_wxFont_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
4432 PyObject * _resultobj;
4433 wxString * _result;
4434 wxFont * _arg0;
4435 PyObject * _argo0 = 0;
4436 char *_kwnames[] = { "self", NULL };
4437
4438 self = self;
4439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetFamilyString",_kwnames,&_argo0))
4440 return NULL;
4441 if (_argo0) {
4442 if (_argo0 == Py_None) { _arg0 = NULL; }
4443 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4444 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetFamilyString. Expected _wxFont_p.");
4445 return NULL;
4446 }
4447 }
4448 {
4449 wxPy_BEGIN_ALLOW_THREADS;
4450 _result = new wxString (wxFont_GetFamilyString(_arg0));
4451
4452 wxPy_END_ALLOW_THREADS;
4453 if (PyErr_Occurred()) return NULL;
4454 }{
4455 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4456 }
4457 {
4458 delete _result;
4459 }
4460 return _resultobj;
4461 }
4462
4463 #define wxFont_GetStyleString(_swigobj) (_swigobj->GetStyleString())
4464 static PyObject *_wrap_wxFont_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject * _resultobj;
4466 wxString * _result;
4467 wxFont * _arg0;
4468 PyObject * _argo0 = 0;
4469 char *_kwnames[] = { "self", NULL };
4470
4471 self = self;
4472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetStyleString",_kwnames,&_argo0))
4473 return NULL;
4474 if (_argo0) {
4475 if (_argo0 == Py_None) { _arg0 = NULL; }
4476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetStyleString. Expected _wxFont_p.");
4478 return NULL;
4479 }
4480 }
4481 {
4482 wxPy_BEGIN_ALLOW_THREADS;
4483 _result = new wxString (wxFont_GetStyleString(_arg0));
4484
4485 wxPy_END_ALLOW_THREADS;
4486 if (PyErr_Occurred()) return NULL;
4487 }{
4488 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4489 }
4490 {
4491 delete _result;
4492 }
4493 return _resultobj;
4494 }
4495
4496 #define wxFont_GetWeightString(_swigobj) (_swigobj->GetWeightString())
4497 static PyObject *_wrap_wxFont_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject * _resultobj;
4499 wxString * _result;
4500 wxFont * _arg0;
4501 PyObject * _argo0 = 0;
4502 char *_kwnames[] = { "self", NULL };
4503
4504 self = self;
4505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFont_GetWeightString",_kwnames,&_argo0))
4506 return NULL;
4507 if (_argo0) {
4508 if (_argo0 == Py_None) { _arg0 = NULL; }
4509 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFont_p")) {
4510 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFont_GetWeightString. Expected _wxFont_p.");
4511 return NULL;
4512 }
4513 }
4514 {
4515 wxPy_BEGIN_ALLOW_THREADS;
4516 _result = new wxString (wxFont_GetWeightString(_arg0));
4517
4518 wxPy_END_ALLOW_THREADS;
4519 if (PyErr_Occurred()) return NULL;
4520 }{
4521 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
4522 }
4523 {
4524 delete _result;
4525 }
4526 return _resultobj;
4527 }
4528
4529 static PyObject *_wrap_wxFont_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4530 PyObject * _resultobj;
4531 wxFontEncoding _result;
4532 char *_kwnames[] = { NULL };
4533
4534 self = self;
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":wxFont_GetDefaultEncoding",_kwnames))
4536 return NULL;
4537 {
4538 wxPy_BEGIN_ALLOW_THREADS;
4539 _result = (wxFontEncoding )wxFont::GetDefaultEncoding();
4540
4541 wxPy_END_ALLOW_THREADS;
4542 if (PyErr_Occurred()) return NULL;
4543 } _resultobj = Py_BuildValue("i",_result);
4544 return _resultobj;
4545 }
4546
4547 static PyObject *_wrap_wxFont_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
4548 PyObject * _resultobj;
4549 wxFontEncoding _arg0;
4550 char *_kwnames[] = { "encoding", NULL };
4551
4552 self = self;
4553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"i:wxFont_SetDefaultEncoding",_kwnames,&_arg0))
4554 return NULL;
4555 {
4556 wxPy_BEGIN_ALLOW_THREADS;
4557 wxFont::SetDefaultEncoding(_arg0);
4558
4559 wxPy_END_ALLOW_THREADS;
4560 if (PyErr_Occurred()) return NULL;
4561 } Py_INCREF(Py_None);
4562 _resultobj = Py_None;
4563 return _resultobj;
4564 }
4565
4566 static void *SwigwxFontListTowxObject(void *ptr) {
4567 wxFontList *src;
4568 wxObject *dest;
4569 src = (wxFontList *) ptr;
4570 dest = (wxObject *) src;
4571 return (void *) dest;
4572 }
4573
4574 #define wxFontList_AddFont(_swigobj,_swigarg0) (_swigobj->AddFont(_swigarg0))
4575 static PyObject *_wrap_wxFontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4576 PyObject * _resultobj;
4577 wxFontList * _arg0;
4578 wxFont * _arg1;
4579 PyObject * _argo0 = 0;
4580 PyObject * _argo1 = 0;
4581 char *_kwnames[] = { "self","font", NULL };
4582
4583 self = self;
4584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_AddFont",_kwnames,&_argo0,&_argo1))
4585 return NULL;
4586 if (_argo0) {
4587 if (_argo0 == Py_None) { _arg0 = NULL; }
4588 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4589 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_AddFont. Expected _wxFontList_p.");
4590 return NULL;
4591 }
4592 }
4593 if (_argo1) {
4594 if (_argo1 == Py_None) { _arg1 = NULL; }
4595 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4596 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_AddFont. Expected _wxFont_p.");
4597 return NULL;
4598 }
4599 }
4600 {
4601 wxPy_BEGIN_ALLOW_THREADS;
4602 wxFontList_AddFont(_arg0,_arg1);
4603
4604 wxPy_END_ALLOW_THREADS;
4605 if (PyErr_Occurred()) return NULL;
4606 } Py_INCREF(Py_None);
4607 _resultobj = Py_None;
4608 return _resultobj;
4609 }
4610
4611 #define wxFontList_FindOrCreateFont(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6) (_swigobj->FindOrCreateFont(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6))
4612 static PyObject *_wrap_wxFontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4613 PyObject * _resultobj;
4614 wxFont * _result;
4615 wxFontList * _arg0;
4616 int _arg1;
4617 int _arg2;
4618 int _arg3;
4619 int _arg4;
4620 bool _arg5 = (bool ) FALSE;
4621 char * _arg6 = (char *) NULL;
4622 wxFontEncoding _arg7 = (wxFontEncoding ) (wxFONTENCODING_DEFAULT);
4623 PyObject * _argo0 = 0;
4624 int tempbool5 = (int) FALSE;
4625 char *_kwnames[] = { "self","point_size","family","style","weight","underline","facename","encoding", NULL };
4626 char _ptemp[128];
4627
4628 self = self;
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oiiii|isi:wxFontList_FindOrCreateFont",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&tempbool5,&_arg6,&_arg7))
4630 return NULL;
4631 if (_argo0) {
4632 if (_argo0 == Py_None) { _arg0 = NULL; }
4633 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4634 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_FindOrCreateFont. Expected _wxFontList_p.");
4635 return NULL;
4636 }
4637 }
4638 _arg5 = (bool ) tempbool5;
4639 {
4640 wxPy_BEGIN_ALLOW_THREADS;
4641 _result = (wxFont *)wxFontList_FindOrCreateFont(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7);
4642
4643 wxPy_END_ALLOW_THREADS;
4644 if (PyErr_Occurred()) return NULL;
4645 } if (_result) {
4646 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
4647 _resultobj = Py_BuildValue("s",_ptemp);
4648 } else {
4649 Py_INCREF(Py_None);
4650 _resultobj = Py_None;
4651 }
4652 return _resultobj;
4653 }
4654
4655 #define wxFontList_RemoveFont(_swigobj,_swigarg0) (_swigobj->RemoveFont(_swigarg0))
4656 static PyObject *_wrap_wxFontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
4657 PyObject * _resultobj;
4658 wxFontList * _arg0;
4659 wxFont * _arg1;
4660 PyObject * _argo0 = 0;
4661 PyObject * _argo1 = 0;
4662 char *_kwnames[] = { "self","font", NULL };
4663
4664 self = self;
4665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxFontList_RemoveFont",_kwnames,&_argo0,&_argo1))
4666 return NULL;
4667 if (_argo0) {
4668 if (_argo0 == Py_None) { _arg0 = NULL; }
4669 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4670 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_RemoveFont. Expected _wxFontList_p.");
4671 return NULL;
4672 }
4673 }
4674 if (_argo1) {
4675 if (_argo1 == Py_None) { _arg1 = NULL; }
4676 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
4677 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxFontList_RemoveFont. Expected _wxFont_p.");
4678 return NULL;
4679 }
4680 }
4681 {
4682 wxPy_BEGIN_ALLOW_THREADS;
4683 wxFontList_RemoveFont(_arg0,_arg1);
4684
4685 wxPy_END_ALLOW_THREADS;
4686 if (PyErr_Occurred()) return NULL;
4687 } Py_INCREF(Py_None);
4688 _resultobj = Py_None;
4689 return _resultobj;
4690 }
4691
4692 #define wxFontList_GetCount(_swigobj) (_swigobj->GetCount())
4693 static PyObject *_wrap_wxFontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
4694 PyObject * _resultobj;
4695 int _result;
4696 wxFontList * _arg0;
4697 PyObject * _argo0 = 0;
4698 char *_kwnames[] = { "self", NULL };
4699
4700 self = self;
4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxFontList_GetCount",_kwnames,&_argo0))
4702 return NULL;
4703 if (_argo0) {
4704 if (_argo0 == Py_None) { _arg0 = NULL; }
4705 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxFontList_p")) {
4706 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxFontList_GetCount. Expected _wxFontList_p.");
4707 return NULL;
4708 }
4709 }
4710 {
4711 wxPy_BEGIN_ALLOW_THREADS;
4712 _result = (int )wxFontList_GetCount(_arg0);
4713
4714 wxPy_END_ALLOW_THREADS;
4715 if (PyErr_Occurred()) return NULL;
4716 } _resultobj = Py_BuildValue("i",_result);
4717 return _resultobj;
4718 }
4719
4720 static void *SwigwxColourTowxObject(void *ptr) {
4721 wxColour *src;
4722 wxObject *dest;
4723 src = (wxColour *) ptr;
4724 dest = (wxObject *) src;
4725 return (void *) dest;
4726 }
4727
4728 #define new_wxColour(_swigarg0,_swigarg1,_swigarg2) (new wxColour(_swigarg0,_swigarg1,_swigarg2))
4729 static PyObject *_wrap_new_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4730 PyObject * _resultobj;
4731 wxColour * _result;
4732 unsigned char _arg0 = (unsigned char ) 0;
4733 unsigned char _arg1 = (unsigned char ) 0;
4734 unsigned char _arg2 = (unsigned char ) 0;
4735 char *_kwnames[] = { "red","green","blue", NULL };
4736 char _ptemp[128];
4737
4738 self = self;
4739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|bbb:new_wxColour",_kwnames,&_arg0,&_arg1,&_arg2))
4740 return NULL;
4741 {
4742 wxPy_BEGIN_ALLOW_THREADS;
4743 _result = (wxColour *)new_wxColour(_arg0,_arg1,_arg2);
4744
4745 wxPy_END_ALLOW_THREADS;
4746 if (PyErr_Occurred()) return NULL;
4747 } if (_result) {
4748 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
4749 _resultobj = Py_BuildValue("s",_ptemp);
4750 } else {
4751 Py_INCREF(Py_None);
4752 _resultobj = Py_None;
4753 }
4754 return _resultobj;
4755 }
4756
4757 #define delete_wxColour(_swigobj) (delete _swigobj)
4758 static PyObject *_wrap_delete_wxColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject * _resultobj;
4760 wxColour * _arg0;
4761 wxColour temp;
4762 PyObject * _obj0 = 0;
4763 char *_kwnames[] = { "self", NULL };
4764
4765 self = self;
4766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxColour",_kwnames,&_obj0))
4767 return NULL;
4768 {
4769 _arg0 = &temp;
4770 if (! wxColour_helper(_obj0, &_arg0))
4771 return NULL;
4772 }
4773 {
4774 wxPy_BEGIN_ALLOW_THREADS;
4775 delete_wxColour(_arg0);
4776
4777 wxPy_END_ALLOW_THREADS;
4778 if (PyErr_Occurred()) return NULL;
4779 } Py_INCREF(Py_None);
4780 _resultobj = Py_None;
4781 return _resultobj;
4782 }
4783
4784 #define wxColour_Red(_swigobj) (_swigobj->Red())
4785 static PyObject *_wrap_wxColour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
4786 PyObject * _resultobj;
4787 unsigned char _result;
4788 wxColour * _arg0;
4789 wxColour temp;
4790 PyObject * _obj0 = 0;
4791 char *_kwnames[] = { "self", NULL };
4792
4793 self = self;
4794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Red",_kwnames,&_obj0))
4795 return NULL;
4796 {
4797 _arg0 = &temp;
4798 if (! wxColour_helper(_obj0, &_arg0))
4799 return NULL;
4800 }
4801 {
4802 wxPy_BEGIN_ALLOW_THREADS;
4803 _result = (unsigned char )wxColour_Red(_arg0);
4804
4805 wxPy_END_ALLOW_THREADS;
4806 if (PyErr_Occurred()) return NULL;
4807 } _resultobj = Py_BuildValue("b",_result);
4808 return _resultobj;
4809 }
4810
4811 #define wxColour_Green(_swigobj) (_swigobj->Green())
4812 static PyObject *_wrap_wxColour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
4813 PyObject * _resultobj;
4814 unsigned char _result;
4815 wxColour * _arg0;
4816 wxColour temp;
4817 PyObject * _obj0 = 0;
4818 char *_kwnames[] = { "self", NULL };
4819
4820 self = self;
4821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Green",_kwnames,&_obj0))
4822 return NULL;
4823 {
4824 _arg0 = &temp;
4825 if (! wxColour_helper(_obj0, &_arg0))
4826 return NULL;
4827 }
4828 {
4829 wxPy_BEGIN_ALLOW_THREADS;
4830 _result = (unsigned char )wxColour_Green(_arg0);
4831
4832 wxPy_END_ALLOW_THREADS;
4833 if (PyErr_Occurred()) return NULL;
4834 } _resultobj = Py_BuildValue("b",_result);
4835 return _resultobj;
4836 }
4837
4838 #define wxColour_Blue(_swigobj) (_swigobj->Blue())
4839 static PyObject *_wrap_wxColour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
4840 PyObject * _resultobj;
4841 unsigned char _result;
4842 wxColour * _arg0;
4843 wxColour temp;
4844 PyObject * _obj0 = 0;
4845 char *_kwnames[] = { "self", NULL };
4846
4847 self = self;
4848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Blue",_kwnames,&_obj0))
4849 return NULL;
4850 {
4851 _arg0 = &temp;
4852 if (! wxColour_helper(_obj0, &_arg0))
4853 return NULL;
4854 }
4855 {
4856 wxPy_BEGIN_ALLOW_THREADS;
4857 _result = (unsigned char )wxColour_Blue(_arg0);
4858
4859 wxPy_END_ALLOW_THREADS;
4860 if (PyErr_Occurred()) return NULL;
4861 } _resultobj = Py_BuildValue("b",_result);
4862 return _resultobj;
4863 }
4864
4865 #define wxColour_Ok(_swigobj) (_swigobj->Ok())
4866 static PyObject *_wrap_wxColour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4867 PyObject * _resultobj;
4868 bool _result;
4869 wxColour * _arg0;
4870 wxColour temp;
4871 PyObject * _obj0 = 0;
4872 char *_kwnames[] = { "self", NULL };
4873
4874 self = self;
4875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Ok",_kwnames,&_obj0))
4876 return NULL;
4877 {
4878 _arg0 = &temp;
4879 if (! wxColour_helper(_obj0, &_arg0))
4880 return NULL;
4881 }
4882 {
4883 wxPy_BEGIN_ALLOW_THREADS;
4884 _result = (bool )wxColour_Ok(_arg0);
4885
4886 wxPy_END_ALLOW_THREADS;
4887 if (PyErr_Occurred()) return NULL;
4888 } _resultobj = Py_BuildValue("i",_result);
4889 return _resultobj;
4890 }
4891
4892 #define wxColour_Set(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Set(_swigarg0,_swigarg1,_swigarg2))
4893 static PyObject *_wrap_wxColour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
4894 PyObject * _resultobj;
4895 wxColour * _arg0;
4896 unsigned char _arg1;
4897 unsigned char _arg2;
4898 unsigned char _arg3;
4899 wxColour temp;
4900 PyObject * _obj0 = 0;
4901 char *_kwnames[] = { "self","red","green","blue", NULL };
4902
4903 self = self;
4904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxColour_Set",_kwnames,&_obj0,&_arg1,&_arg2,&_arg3))
4905 return NULL;
4906 {
4907 _arg0 = &temp;
4908 if (! wxColour_helper(_obj0, &_arg0))
4909 return NULL;
4910 }
4911 {
4912 wxPy_BEGIN_ALLOW_THREADS;
4913 wxColour_Set(_arg0,_arg1,_arg2,_arg3);
4914
4915 wxPy_END_ALLOW_THREADS;
4916 if (PyErr_Occurred()) return NULL;
4917 } Py_INCREF(Py_None);
4918 _resultobj = Py_None;
4919 return _resultobj;
4920 }
4921
4922 static PyObject * wxColour_Get(wxColour *self) {
4923 PyObject* rv = PyTuple_New(3);
4924 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
4925 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
4926 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
4927 return rv;
4928 }
4929 static PyObject *_wrap_wxColour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
4930 PyObject * _resultobj;
4931 PyObject * _result;
4932 wxColour * _arg0;
4933 wxColour temp;
4934 PyObject * _obj0 = 0;
4935 char *_kwnames[] = { "self", NULL };
4936
4937 self = self;
4938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxColour_Get",_kwnames,&_obj0))
4939 return NULL;
4940 {
4941 _arg0 = &temp;
4942 if (! wxColour_helper(_obj0, &_arg0))
4943 return NULL;
4944 }
4945 {
4946 wxPy_BEGIN_ALLOW_THREADS;
4947 _result = (PyObject *)wxColour_Get(_arg0);
4948
4949 wxPy_END_ALLOW_THREADS;
4950 if (PyErr_Occurred()) return NULL;
4951 }{
4952 _resultobj = _result;
4953 }
4954 return _resultobj;
4955 }
4956
4957 static void *SwigwxColourDatabaseTowxObject(void *ptr) {
4958 wxColourDatabase *src;
4959 wxObject *dest;
4960 src = (wxColourDatabase *) ptr;
4961 dest = (wxObject *) src;
4962 return (void *) dest;
4963 }
4964
4965 #define wxColourDatabase_FindColour(_swigobj,_swigarg0) (_swigobj->FindColour(_swigarg0))
4966 static PyObject *_wrap_wxColourDatabase_FindColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4967 PyObject * _resultobj;
4968 wxColour * _result;
4969 wxColourDatabase * _arg0;
4970 wxString * _arg1;
4971 PyObject * _argo0 = 0;
4972 PyObject * _obj1 = 0;
4973 char *_kwnames[] = { "self","colour", NULL };
4974 char _ptemp[128];
4975
4976 self = self;
4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindColour",_kwnames,&_argo0,&_obj1))
4978 return NULL;
4979 if (_argo0) {
4980 if (_argo0 == Py_None) { _arg0 = NULL; }
4981 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
4982 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindColour. Expected _wxColourDatabase_p.");
4983 return NULL;
4984 }
4985 }
4986 {
4987 #if PYTHON_API_VERSION >= 1009
4988 char* tmpPtr; int tmpSize;
4989 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
4990 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4991 return NULL;
4992 }
4993 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
4994 return NULL;
4995 _arg1 = new wxString(tmpPtr, tmpSize);
4996 #else
4997 if (!PyString_Check(_obj1)) {
4998 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
4999 return NULL;
5000 }
5001 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5002 #endif
5003 }
5004 {
5005 wxPy_BEGIN_ALLOW_THREADS;
5006 _result = (wxColour *)wxColourDatabase_FindColour(_arg0,*_arg1);
5007
5008 wxPy_END_ALLOW_THREADS;
5009 if (PyErr_Occurred()) return NULL;
5010 } if (_result) {
5011 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
5012 _resultobj = Py_BuildValue("s",_ptemp);
5013 } else {
5014 Py_INCREF(Py_None);
5015 _resultobj = Py_None;
5016 }
5017 {
5018 if (_obj1)
5019 delete _arg1;
5020 }
5021 return _resultobj;
5022 }
5023
5024 #define wxColourDatabase_FindName(_swigobj,_swigarg0) (_swigobj->FindName(_swigarg0))
5025 static PyObject *_wrap_wxColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject * _resultobj;
5027 wxString * _result;
5028 wxColourDatabase * _arg0;
5029 wxColour * _arg1;
5030 PyObject * _argo0 = 0;
5031 wxColour temp;
5032 PyObject * _obj1 = 0;
5033 char *_kwnames[] = { "self","colour", NULL };
5034
5035 self = self;
5036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxColourDatabase_FindName",_kwnames,&_argo0,&_obj1))
5037 return NULL;
5038 if (_argo0) {
5039 if (_argo0 == Py_None) { _arg0 = NULL; }
5040 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5041 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_FindName. Expected _wxColourDatabase_p.");
5042 return NULL;
5043 }
5044 }
5045 {
5046 _arg1 = &temp;
5047 if (! wxColour_helper(_obj1, &_arg1))
5048 return NULL;
5049 }
5050 {
5051 wxPy_BEGIN_ALLOW_THREADS;
5052 _result = new wxString (wxColourDatabase_FindName(_arg0,*_arg1));
5053
5054 wxPy_END_ALLOW_THREADS;
5055 if (PyErr_Occurred()) return NULL;
5056 }{
5057 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
5058 }
5059 {
5060 delete _result;
5061 }
5062 return _resultobj;
5063 }
5064
5065 static void wxColourDatabase_Append(wxColourDatabase *self,const wxString & name,int red,int green,int blue) {
5066 self->Append(name.c_str(), new wxColour(red, green, blue));
5067 }
5068 static PyObject *_wrap_wxColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
5069 PyObject * _resultobj;
5070 wxColourDatabase * _arg0;
5071 wxString * _arg1;
5072 int _arg2;
5073 int _arg3;
5074 int _arg4;
5075 PyObject * _argo0 = 0;
5076 PyObject * _obj1 = 0;
5077 char *_kwnames[] = { "self","name","red","green","blue", NULL };
5078
5079 self = self;
5080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiii:wxColourDatabase_Append",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
5081 return NULL;
5082 if (_argo0) {
5083 if (_argo0 == Py_None) { _arg0 = NULL; }
5084 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxColourDatabase_p")) {
5085 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxColourDatabase_Append. Expected _wxColourDatabase_p.");
5086 return NULL;
5087 }
5088 }
5089 {
5090 #if PYTHON_API_VERSION >= 1009
5091 char* tmpPtr; int tmpSize;
5092 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
5093 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5094 return NULL;
5095 }
5096 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
5097 return NULL;
5098 _arg1 = new wxString(tmpPtr, tmpSize);
5099 #else
5100 if (!PyString_Check(_obj1)) {
5101 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
5102 return NULL;
5103 }
5104 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
5105 #endif
5106 }
5107 {
5108 wxPy_BEGIN_ALLOW_THREADS;
5109 wxColourDatabase_Append(_arg0,*_arg1,_arg2,_arg3,_arg4);
5110
5111 wxPy_END_ALLOW_THREADS;
5112 if (PyErr_Occurred()) return NULL;
5113 } Py_INCREF(Py_None);
5114 _resultobj = Py_None;
5115 {
5116 if (_obj1)
5117 delete _arg1;
5118 }
5119 return _resultobj;
5120 }
5121
5122 static void *SwigwxPenTowxGDIObject(void *ptr) {
5123 wxPen *src;
5124 wxGDIObject *dest;
5125 src = (wxPen *) ptr;
5126 dest = (wxGDIObject *) src;
5127 return (void *) dest;
5128 }
5129
5130 static void *SwigwxPenTowxObject(void *ptr) {
5131 wxPen *src;
5132 wxObject *dest;
5133 src = (wxPen *) ptr;
5134 dest = (wxObject *) src;
5135 return (void *) dest;
5136 }
5137
5138 #define new_wxPen(_swigarg0,_swigarg1,_swigarg2) (new wxPen(_swigarg0,_swigarg1,_swigarg2))
5139 static PyObject *_wrap_new_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5140 PyObject * _resultobj;
5141 wxPen * _result;
5142 wxColour * _arg0;
5143 int _arg1 = (int ) 1;
5144 int _arg2 = (int ) wxSOLID;
5145 wxColour temp;
5146 PyObject * _obj0 = 0;
5147 char *_kwnames[] = { "colour","width","style", NULL };
5148 char _ptemp[128];
5149
5150 self = self;
5151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPen",_kwnames,&_obj0,&_arg1,&_arg2))
5152 return NULL;
5153 {
5154 _arg0 = &temp;
5155 if (! wxColour_helper(_obj0, &_arg0))
5156 return NULL;
5157 }
5158 {
5159 wxPy_BEGIN_ALLOW_THREADS;
5160 _result = (wxPen *)new_wxPen(*_arg0,_arg1,_arg2);
5161
5162 wxPy_END_ALLOW_THREADS;
5163 if (PyErr_Occurred()) return NULL;
5164 } if (_result) {
5165 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5166 _resultobj = Py_BuildValue("s",_ptemp);
5167 } else {
5168 Py_INCREF(Py_None);
5169 _resultobj = Py_None;
5170 }
5171 return _resultobj;
5172 }
5173
5174 #define delete_wxPen(_swigobj) (delete _swigobj)
5175 static PyObject *_wrap_delete_wxPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5176 PyObject * _resultobj;
5177 wxPen * _arg0;
5178 PyObject * _argo0 = 0;
5179 char *_kwnames[] = { "self", NULL };
5180
5181 self = self;
5182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPen",_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 delete_wxPen. Expected _wxPen_p.");
5188 return NULL;
5189 }
5190 }
5191 {
5192 wxPy_BEGIN_ALLOW_THREADS;
5193 delete_wxPen(_arg0);
5194
5195 wxPy_END_ALLOW_THREADS;
5196 if (PyErr_Occurred()) return NULL;
5197 } Py_INCREF(Py_None);
5198 _resultobj = Py_None;
5199 return _resultobj;
5200 }
5201
5202 #define wxPen_GetCap(_swigobj) (_swigobj->GetCap())
5203 static PyObject *_wrap_wxPen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5204 PyObject * _resultobj;
5205 int _result;
5206 wxPen * _arg0;
5207 PyObject * _argo0 = 0;
5208 char *_kwnames[] = { "self", NULL };
5209
5210 self = self;
5211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetCap",_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_GetCap. Expected _wxPen_p.");
5217 return NULL;
5218 }
5219 }
5220 {
5221 wxPy_BEGIN_ALLOW_THREADS;
5222 _result = (int )wxPen_GetCap(_arg0);
5223
5224 wxPy_END_ALLOW_THREADS;
5225 if (PyErr_Occurred()) return NULL;
5226 } _resultobj = Py_BuildValue("i",_result);
5227 return _resultobj;
5228 }
5229
5230 #define wxPen_GetColour(_swigobj) (_swigobj->GetColour())
5231 static PyObject *_wrap_wxPen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5232 PyObject * _resultobj;
5233 wxColour * _result;
5234 wxPen * _arg0;
5235 PyObject * _argo0 = 0;
5236 char *_kwnames[] = { "self", NULL };
5237 char _ptemp[128];
5238
5239 self = self;
5240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetColour",_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_GetColour. Expected _wxPen_p.");
5246 return NULL;
5247 }
5248 }
5249 {
5250 wxPy_BEGIN_ALLOW_THREADS;
5251 _result = new wxColour (wxPen_GetColour(_arg0));
5252
5253 wxPy_END_ALLOW_THREADS;
5254 if (PyErr_Occurred()) return NULL;
5255 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
5256 _resultobj = Py_BuildValue("s",_ptemp);
5257 return _resultobj;
5258 }
5259
5260 #define wxPen_GetJoin(_swigobj) (_swigobj->GetJoin())
5261 static PyObject *_wrap_wxPen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5262 PyObject * _resultobj;
5263 int _result;
5264 wxPen * _arg0;
5265 PyObject * _argo0 = 0;
5266 char *_kwnames[] = { "self", NULL };
5267
5268 self = self;
5269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetJoin",_kwnames,&_argo0))
5270 return NULL;
5271 if (_argo0) {
5272 if (_argo0 == Py_None) { _arg0 = NULL; }
5273 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5274 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetJoin. Expected _wxPen_p.");
5275 return NULL;
5276 }
5277 }
5278 {
5279 wxPy_BEGIN_ALLOW_THREADS;
5280 _result = (int )wxPen_GetJoin(_arg0);
5281
5282 wxPy_END_ALLOW_THREADS;
5283 if (PyErr_Occurred()) return NULL;
5284 } _resultobj = Py_BuildValue("i",_result);
5285 return _resultobj;
5286 }
5287
5288 #define wxPen_GetStyle(_swigobj) (_swigobj->GetStyle())
5289 static PyObject *_wrap_wxPen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5290 PyObject * _resultobj;
5291 int _result;
5292 wxPen * _arg0;
5293 PyObject * _argo0 = 0;
5294 char *_kwnames[] = { "self", NULL };
5295
5296 self = self;
5297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStyle",_kwnames,&_argo0))
5298 return NULL;
5299 if (_argo0) {
5300 if (_argo0 == Py_None) { _arg0 = NULL; }
5301 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5302 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStyle. Expected _wxPen_p.");
5303 return NULL;
5304 }
5305 }
5306 {
5307 wxPy_BEGIN_ALLOW_THREADS;
5308 _result = (int )wxPen_GetStyle(_arg0);
5309
5310 wxPy_END_ALLOW_THREADS;
5311 if (PyErr_Occurred()) return NULL;
5312 } _resultobj = Py_BuildValue("i",_result);
5313 return _resultobj;
5314 }
5315
5316 #define wxPen_GetWidth(_swigobj) (_swigobj->GetWidth())
5317 static PyObject *_wrap_wxPen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5318 PyObject * _resultobj;
5319 int _result;
5320 wxPen * _arg0;
5321 PyObject * _argo0 = 0;
5322 char *_kwnames[] = { "self", NULL };
5323
5324 self = self;
5325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetWidth",_kwnames,&_argo0))
5326 return NULL;
5327 if (_argo0) {
5328 if (_argo0 == Py_None) { _arg0 = NULL; }
5329 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5330 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetWidth. Expected _wxPen_p.");
5331 return NULL;
5332 }
5333 }
5334 {
5335 wxPy_BEGIN_ALLOW_THREADS;
5336 _result = (int )wxPen_GetWidth(_arg0);
5337
5338 wxPy_END_ALLOW_THREADS;
5339 if (PyErr_Occurred()) return NULL;
5340 } _resultobj = Py_BuildValue("i",_result);
5341 return _resultobj;
5342 }
5343
5344 #define wxPen_Ok(_swigobj) (_swigobj->Ok())
5345 static PyObject *_wrap_wxPen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
5346 PyObject * _resultobj;
5347 bool _result;
5348 wxPen * _arg0;
5349 PyObject * _argo0 = 0;
5350 char *_kwnames[] = { "self", NULL };
5351
5352 self = self;
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_Ok",_kwnames,&_argo0))
5354 return NULL;
5355 if (_argo0) {
5356 if (_argo0 == Py_None) { _arg0 = NULL; }
5357 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5358 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_Ok. Expected _wxPen_p.");
5359 return NULL;
5360 }
5361 }
5362 {
5363 wxPy_BEGIN_ALLOW_THREADS;
5364 _result = (bool )wxPen_Ok(_arg0);
5365
5366 wxPy_END_ALLOW_THREADS;
5367 if (PyErr_Occurred()) return NULL;
5368 } _resultobj = Py_BuildValue("i",_result);
5369 return _resultobj;
5370 }
5371
5372 #define wxPen_SetCap(_swigobj,_swigarg0) (_swigobj->SetCap(_swigarg0))
5373 static PyObject *_wrap_wxPen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
5374 PyObject * _resultobj;
5375 wxPen * _arg0;
5376 int _arg1;
5377 PyObject * _argo0 = 0;
5378 char *_kwnames[] = { "self","cap_style", NULL };
5379
5380 self = self;
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetCap",_kwnames,&_argo0,&_arg1))
5382 return NULL;
5383 if (_argo0) {
5384 if (_argo0 == Py_None) { _arg0 = NULL; }
5385 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5386 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetCap. Expected _wxPen_p.");
5387 return NULL;
5388 }
5389 }
5390 {
5391 wxPy_BEGIN_ALLOW_THREADS;
5392 wxPen_SetCap(_arg0,_arg1);
5393
5394 wxPy_END_ALLOW_THREADS;
5395 if (PyErr_Occurred()) return NULL;
5396 } Py_INCREF(Py_None);
5397 _resultobj = Py_None;
5398 return _resultobj;
5399 }
5400
5401 #define wxPen_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
5402 static PyObject *_wrap_wxPen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5403 PyObject * _resultobj;
5404 wxPen * _arg0;
5405 wxColour * _arg1;
5406 PyObject * _argo0 = 0;
5407 wxColour temp;
5408 PyObject * _obj1 = 0;
5409 char *_kwnames[] = { "self","colour", NULL };
5410
5411 self = self;
5412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetColour",_kwnames,&_argo0,&_obj1))
5413 return NULL;
5414 if (_argo0) {
5415 if (_argo0 == Py_None) { _arg0 = NULL; }
5416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetColour. Expected _wxPen_p.");
5418 return NULL;
5419 }
5420 }
5421 {
5422 _arg1 = &temp;
5423 if (! wxColour_helper(_obj1, &_arg1))
5424 return NULL;
5425 }
5426 {
5427 wxPy_BEGIN_ALLOW_THREADS;
5428 wxPen_SetColour(_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_SetJoin(_swigobj,_swigarg0) (_swigobj->SetJoin(_swigarg0))
5438 static PyObject *_wrap_wxPen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
5439 PyObject * _resultobj;
5440 wxPen * _arg0;
5441 int _arg1;
5442 PyObject * _argo0 = 0;
5443 char *_kwnames[] = { "self","join_style", NULL };
5444
5445 self = self;
5446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetJoin",_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_SetJoin. Expected _wxPen_p.");
5452 return NULL;
5453 }
5454 }
5455 {
5456 wxPy_BEGIN_ALLOW_THREADS;
5457 wxPen_SetJoin(_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_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
5467 static PyObject *_wrap_wxPen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5468 PyObject * _resultobj;
5469 wxPen * _arg0;
5470 int _arg1;
5471 PyObject * _argo0 = 0;
5472 char *_kwnames[] = { "self","style", NULL };
5473
5474 self = self;
5475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetStyle",_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_SetStyle. Expected _wxPen_p.");
5481 return NULL;
5482 }
5483 }
5484 {
5485 wxPy_BEGIN_ALLOW_THREADS;
5486 wxPen_SetStyle(_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_SetWidth(_swigobj,_swigarg0) (_swigobj->SetWidth(_swigarg0))
5496 static PyObject *_wrap_wxPen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5497 PyObject * _resultobj;
5498 wxPen * _arg0;
5499 int _arg1;
5500 PyObject * _argo0 = 0;
5501 char *_kwnames[] = { "self","width", NULL };
5502
5503 self = self;
5504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxPen_SetWidth",_kwnames,&_argo0,&_arg1))
5505 return NULL;
5506 if (_argo0) {
5507 if (_argo0 == Py_None) { _arg0 = NULL; }
5508 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5509 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetWidth. Expected _wxPen_p.");
5510 return NULL;
5511 }
5512 }
5513 {
5514 wxPy_BEGIN_ALLOW_THREADS;
5515 wxPen_SetWidth(_arg0,_arg1);
5516
5517 wxPy_END_ALLOW_THREADS;
5518 if (PyErr_Occurred()) return NULL;
5519 } Py_INCREF(Py_None);
5520 _resultobj = Py_None;
5521 return _resultobj;
5522 }
5523
5524 #define wxPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5525 static PyObject *_wrap_wxPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5526 PyObject * _resultobj;
5527 wxPen * _arg0;
5528 int _arg1;
5529 wxDash * _arg2;
5530 PyObject * _argo0 = 0;
5531 PyObject * _obj2 = 0;
5532 char *_kwnames[] = { "self","choices", NULL };
5533
5534 self = self;
5535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetDashes",_kwnames,&_argo0,&_obj2))
5536 return NULL;
5537 if (_argo0) {
5538 if (_argo0 == Py_None) { _arg0 = NULL; }
5539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetDashes. Expected _wxPen_p.");
5541 return NULL;
5542 }
5543 }
5544 if (_obj2)
5545 {
5546 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5547 if (_arg2 == NULL) {
5548 return NULL;
5549 }
5550 }
5551 {
5552 if (_obj2) {
5553 _arg1 = PyList_Size(_obj2);
5554 }
5555 else {
5556 _arg1 = 0;
5557 }
5558 }
5559 {
5560 wxPy_BEGIN_ALLOW_THREADS;
5561 wxPen_SetDashes(_arg0,_arg1,_arg2);
5562
5563 wxPy_END_ALLOW_THREADS;
5564 if (PyErr_Occurred()) return NULL;
5565 } Py_INCREF(Py_None);
5566 _resultobj = Py_None;
5567 {
5568 delete [] _arg2;
5569 }
5570 return _resultobj;
5571 }
5572
5573 #define wxPen_GetStipple(_swigobj) (_swigobj->GetStipple())
5574 static PyObject *_wrap_wxPen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5575 PyObject * _resultobj;
5576 wxBitmap * _result;
5577 wxPen * _arg0;
5578 PyObject * _argo0 = 0;
5579 char *_kwnames[] = { "self", NULL };
5580 char _ptemp[128];
5581
5582 self = self;
5583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPen_GetStipple",_kwnames,&_argo0))
5584 return NULL;
5585 if (_argo0) {
5586 if (_argo0 == Py_None) { _arg0 = NULL; }
5587 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5588 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_GetStipple. Expected _wxPen_p.");
5589 return NULL;
5590 }
5591 }
5592 {
5593 wxPy_BEGIN_ALLOW_THREADS;
5594 _result = (wxBitmap *)wxPen_GetStipple(_arg0);
5595
5596 wxPy_END_ALLOW_THREADS;
5597 if (PyErr_Occurred()) return NULL;
5598 } if (_result) {
5599 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
5600 _resultobj = Py_BuildValue("s",_ptemp);
5601 } else {
5602 Py_INCREF(Py_None);
5603 _resultobj = Py_None;
5604 }
5605 return _resultobj;
5606 }
5607
5608 #define wxPen_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
5609 static PyObject *_wrap_wxPen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
5610 PyObject * _resultobj;
5611 wxPen * _arg0;
5612 wxBitmap * _arg1;
5613 PyObject * _argo0 = 0;
5614 PyObject * _argo1 = 0;
5615 char *_kwnames[] = { "self","stipple", NULL };
5616
5617 self = self;
5618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPen_SetStipple",_kwnames,&_argo0,&_argo1))
5619 return NULL;
5620 if (_argo0) {
5621 if (_argo0 == Py_None) { _arg0 = NULL; }
5622 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPen_p")) {
5623 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPen_SetStipple. Expected _wxPen_p.");
5624 return NULL;
5625 }
5626 }
5627 if (_argo1) {
5628 if (_argo1 == Py_None) { _arg1 = NULL; }
5629 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
5630 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPen_SetStipple. Expected _wxBitmap_p.");
5631 return NULL;
5632 }
5633 }
5634 {
5635 wxPy_BEGIN_ALLOW_THREADS;
5636 wxPen_SetStipple(_arg0,*_arg1);
5637
5638 wxPy_END_ALLOW_THREADS;
5639 if (PyErr_Occurred()) return NULL;
5640 } Py_INCREF(Py_None);
5641 _resultobj = Py_None;
5642 return _resultobj;
5643 }
5644
5645 static void *SwigwxPyPenTowxPen(void *ptr) {
5646 wxPyPen *src;
5647 wxPen *dest;
5648 src = (wxPyPen *) ptr;
5649 dest = (wxPen *) src;
5650 return (void *) dest;
5651 }
5652
5653 static void *SwigwxPyPenTowxGDIObject(void *ptr) {
5654 wxPyPen *src;
5655 wxGDIObject *dest;
5656 src = (wxPyPen *) ptr;
5657 dest = (wxGDIObject *) src;
5658 return (void *) dest;
5659 }
5660
5661 static void *SwigwxPyPenTowxObject(void *ptr) {
5662 wxPyPen *src;
5663 wxObject *dest;
5664 src = (wxPyPen *) ptr;
5665 dest = (wxObject *) src;
5666 return (void *) dest;
5667 }
5668
5669 #define new_wxPyPen(_swigarg0,_swigarg1,_swigarg2) (new wxPyPen(_swigarg0,_swigarg1,_swigarg2))
5670 static PyObject *_wrap_new_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5671 PyObject * _resultobj;
5672 wxPyPen * _result;
5673 wxColour * _arg0;
5674 int _arg1 = (int ) 1;
5675 int _arg2 = (int ) wxSOLID;
5676 wxColour temp;
5677 PyObject * _obj0 = 0;
5678 char *_kwnames[] = { "colour","width","style", NULL };
5679 char _ptemp[128];
5680
5681 self = self;
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:new_wxPyPen",_kwnames,&_obj0,&_arg1,&_arg2))
5683 return NULL;
5684 {
5685 _arg0 = &temp;
5686 if (! wxColour_helper(_obj0, &_arg0))
5687 return NULL;
5688 }
5689 {
5690 wxPy_BEGIN_ALLOW_THREADS;
5691 _result = (wxPyPen *)new_wxPyPen(*_arg0,_arg1,_arg2);
5692
5693 wxPy_END_ALLOW_THREADS;
5694 if (PyErr_Occurred()) return NULL;
5695 } if (_result) {
5696 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPyPen_p");
5697 _resultobj = Py_BuildValue("s",_ptemp);
5698 } else {
5699 Py_INCREF(Py_None);
5700 _resultobj = Py_None;
5701 }
5702 return _resultobj;
5703 }
5704
5705 #define delete_wxPyPen(_swigobj) (delete _swigobj)
5706 static PyObject *_wrap_delete_wxPyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject * _resultobj;
5708 wxPyPen * _arg0;
5709 PyObject * _argo0 = 0;
5710 char *_kwnames[] = { "self", NULL };
5711
5712 self = self;
5713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPyPen",_kwnames,&_argo0))
5714 return NULL;
5715 if (_argo0) {
5716 if (_argo0 == Py_None) { _arg0 = NULL; }
5717 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5718 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPyPen. Expected _wxPyPen_p.");
5719 return NULL;
5720 }
5721 }
5722 {
5723 wxPy_BEGIN_ALLOW_THREADS;
5724 delete_wxPyPen(_arg0);
5725
5726 wxPy_END_ALLOW_THREADS;
5727 if (PyErr_Occurred()) return NULL;
5728 } Py_INCREF(Py_None);
5729 _resultobj = Py_None;
5730 return _resultobj;
5731 }
5732
5733 #define wxPyPen_SetDashes(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDashes(_swigarg0,_swigarg1))
5734 static PyObject *_wrap_wxPyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
5735 PyObject * _resultobj;
5736 wxPyPen * _arg0;
5737 int _arg1;
5738 wxDash * _arg2;
5739 PyObject * _argo0 = 0;
5740 PyObject * _obj2 = 0;
5741 char *_kwnames[] = { "self","choices", NULL };
5742
5743 self = self;
5744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPyPen_SetDashes",_kwnames,&_argo0,&_obj2))
5745 return NULL;
5746 if (_argo0) {
5747 if (_argo0 == Py_None) { _arg0 = NULL; }
5748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPyPen_p")) {
5749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPyPen_SetDashes. Expected _wxPyPen_p.");
5750 return NULL;
5751 }
5752 }
5753 if (_obj2)
5754 {
5755 _arg2 = (wxDash*)byte_LIST_helper(_obj2);
5756 if (_arg2 == NULL) {
5757 return NULL;
5758 }
5759 }
5760 {
5761 if (_obj2) {
5762 _arg1 = PyList_Size(_obj2);
5763 }
5764 else {
5765 _arg1 = 0;
5766 }
5767 }
5768 {
5769 wxPy_BEGIN_ALLOW_THREADS;
5770 wxPyPen_SetDashes(_arg0,_arg1,_arg2);
5771
5772 wxPy_END_ALLOW_THREADS;
5773 if (PyErr_Occurred()) return NULL;
5774 } Py_INCREF(Py_None);
5775 _resultobj = Py_None;
5776 {
5777 delete [] _arg2;
5778 }
5779 return _resultobj;
5780 }
5781
5782 static void *SwigwxPenListTowxObject(void *ptr) {
5783 wxPenList *src;
5784 wxObject *dest;
5785 src = (wxPenList *) ptr;
5786 dest = (wxObject *) src;
5787 return (void *) dest;
5788 }
5789
5790 #define wxPenList_AddPen(_swigobj,_swigarg0) (_swigobj->AddPen(_swigarg0))
5791 static PyObject *_wrap_wxPenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
5792 PyObject * _resultobj;
5793 wxPenList * _arg0;
5794 wxPen * _arg1;
5795 PyObject * _argo0 = 0;
5796 PyObject * _argo1 = 0;
5797 char *_kwnames[] = { "self","pen", NULL };
5798
5799 self = self;
5800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_AddPen",_kwnames,&_argo0,&_argo1))
5801 return NULL;
5802 if (_argo0) {
5803 if (_argo0 == Py_None) { _arg0 = NULL; }
5804 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5805 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_AddPen. Expected _wxPenList_p.");
5806 return NULL;
5807 }
5808 }
5809 if (_argo1) {
5810 if (_argo1 == Py_None) { _arg1 = NULL; }
5811 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5812 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_AddPen. Expected _wxPen_p.");
5813 return NULL;
5814 }
5815 }
5816 {
5817 wxPy_BEGIN_ALLOW_THREADS;
5818 wxPenList_AddPen(_arg0,_arg1);
5819
5820 wxPy_END_ALLOW_THREADS;
5821 if (PyErr_Occurred()) return NULL;
5822 } Py_INCREF(Py_None);
5823 _resultobj = Py_None;
5824 return _resultobj;
5825 }
5826
5827 #define wxPenList_FindOrCreatePen(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->FindOrCreatePen(_swigarg0,_swigarg1,_swigarg2))
5828 static PyObject *_wrap_wxPenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5829 PyObject * _resultobj;
5830 wxPen * _result;
5831 wxPenList * _arg0;
5832 wxColour * _arg1;
5833 int _arg2;
5834 int _arg3;
5835 PyObject * _argo0 = 0;
5836 wxColour temp;
5837 PyObject * _obj1 = 0;
5838 char *_kwnames[] = { "self","colour","width","style", NULL };
5839 char _ptemp[128];
5840
5841 self = self;
5842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOii:wxPenList_FindOrCreatePen",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
5843 return NULL;
5844 if (_argo0) {
5845 if (_argo0 == Py_None) { _arg0 = NULL; }
5846 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5847 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_FindOrCreatePen. Expected _wxPenList_p.");
5848 return NULL;
5849 }
5850 }
5851 {
5852 _arg1 = &temp;
5853 if (! wxColour_helper(_obj1, &_arg1))
5854 return NULL;
5855 }
5856 {
5857 wxPy_BEGIN_ALLOW_THREADS;
5858 _result = (wxPen *)wxPenList_FindOrCreatePen(_arg0,*_arg1,_arg2,_arg3);
5859
5860 wxPy_END_ALLOW_THREADS;
5861 if (PyErr_Occurred()) return NULL;
5862 } if (_result) {
5863 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
5864 _resultobj = Py_BuildValue("s",_ptemp);
5865 } else {
5866 Py_INCREF(Py_None);
5867 _resultobj = Py_None;
5868 }
5869 return _resultobj;
5870 }
5871
5872 #define wxPenList_RemovePen(_swigobj,_swigarg0) (_swigobj->RemovePen(_swigarg0))
5873 static PyObject *_wrap_wxPenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
5874 PyObject * _resultobj;
5875 wxPenList * _arg0;
5876 wxPen * _arg1;
5877 PyObject * _argo0 = 0;
5878 PyObject * _argo1 = 0;
5879 char *_kwnames[] = { "self","pen", NULL };
5880
5881 self = self;
5882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxPenList_RemovePen",_kwnames,&_argo0,&_argo1))
5883 return NULL;
5884 if (_argo0) {
5885 if (_argo0 == Py_None) { _arg0 = NULL; }
5886 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5887 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_RemovePen. Expected _wxPenList_p.");
5888 return NULL;
5889 }
5890 }
5891 if (_argo1) {
5892 if (_argo1 == Py_None) { _arg1 = NULL; }
5893 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
5894 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxPenList_RemovePen. Expected _wxPen_p.");
5895 return NULL;
5896 }
5897 }
5898 {
5899 wxPy_BEGIN_ALLOW_THREADS;
5900 wxPenList_RemovePen(_arg0,_arg1);
5901
5902 wxPy_END_ALLOW_THREADS;
5903 if (PyErr_Occurred()) return NULL;
5904 } Py_INCREF(Py_None);
5905 _resultobj = Py_None;
5906 return _resultobj;
5907 }
5908
5909 #define wxPenList_GetCount(_swigobj) (_swigobj->GetCount())
5910 static PyObject *_wrap_wxPenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
5911 PyObject * _resultobj;
5912 int _result;
5913 wxPenList * _arg0;
5914 PyObject * _argo0 = 0;
5915 char *_kwnames[] = { "self", NULL };
5916
5917 self = self;
5918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPenList_GetCount",_kwnames,&_argo0))
5919 return NULL;
5920 if (_argo0) {
5921 if (_argo0 == Py_None) { _arg0 = NULL; }
5922 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPenList_p")) {
5923 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPenList_GetCount. Expected _wxPenList_p.");
5924 return NULL;
5925 }
5926 }
5927 {
5928 wxPy_BEGIN_ALLOW_THREADS;
5929 _result = (int )wxPenList_GetCount(_arg0);
5930
5931 wxPy_END_ALLOW_THREADS;
5932 if (PyErr_Occurred()) return NULL;
5933 } _resultobj = Py_BuildValue("i",_result);
5934 return _resultobj;
5935 }
5936
5937 static void *SwigwxBrushTowxGDIObject(void *ptr) {
5938 wxBrush *src;
5939 wxGDIObject *dest;
5940 src = (wxBrush *) ptr;
5941 dest = (wxGDIObject *) src;
5942 return (void *) dest;
5943 }
5944
5945 static void *SwigwxBrushTowxObject(void *ptr) {
5946 wxBrush *src;
5947 wxObject *dest;
5948 src = (wxBrush *) ptr;
5949 dest = (wxObject *) src;
5950 return (void *) dest;
5951 }
5952
5953 #define new_wxBrush(_swigarg0,_swigarg1) (new wxBrush(_swigarg0,_swigarg1))
5954 static PyObject *_wrap_new_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5955 PyObject * _resultobj;
5956 wxBrush * _result;
5957 wxColour * _arg0;
5958 int _arg1 = (int ) wxSOLID;
5959 wxColour temp;
5960 PyObject * _obj0 = 0;
5961 char *_kwnames[] = { "colour","style", NULL };
5962 char _ptemp[128];
5963
5964 self = self;
5965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|i:new_wxBrush",_kwnames,&_obj0,&_arg1))
5966 return NULL;
5967 {
5968 _arg0 = &temp;
5969 if (! wxColour_helper(_obj0, &_arg0))
5970 return NULL;
5971 }
5972 {
5973 wxPy_BEGIN_ALLOW_THREADS;
5974 _result = (wxBrush *)new_wxBrush(*_arg0,_arg1);
5975
5976 wxPy_END_ALLOW_THREADS;
5977 if (PyErr_Occurred()) return NULL;
5978 } if (_result) {
5979 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
5980 _resultobj = Py_BuildValue("s",_ptemp);
5981 } else {
5982 Py_INCREF(Py_None);
5983 _resultobj = Py_None;
5984 }
5985 return _resultobj;
5986 }
5987
5988 #define delete_wxBrush(_swigobj) (delete _swigobj)
5989 static PyObject *_wrap_delete_wxBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
5990 PyObject * _resultobj;
5991 wxBrush * _arg0;
5992 PyObject * _argo0 = 0;
5993 char *_kwnames[] = { "self", NULL };
5994
5995 self = self;
5996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxBrush",_kwnames,&_argo0))
5997 return NULL;
5998 if (_argo0) {
5999 if (_argo0 == Py_None) { _arg0 = NULL; }
6000 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6001 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxBrush. Expected _wxBrush_p.");
6002 return NULL;
6003 }
6004 }
6005 {
6006 wxPy_BEGIN_ALLOW_THREADS;
6007 delete_wxBrush(_arg0);
6008
6009 wxPy_END_ALLOW_THREADS;
6010 if (PyErr_Occurred()) return NULL;
6011 } Py_INCREF(Py_None);
6012 _resultobj = Py_None;
6013 return _resultobj;
6014 }
6015
6016 #define wxBrush_GetColour(_swigobj) (_swigobj->GetColour())
6017 static PyObject *_wrap_wxBrush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6018 PyObject * _resultobj;
6019 wxColour * _result;
6020 wxBrush * _arg0;
6021 PyObject * _argo0 = 0;
6022 char *_kwnames[] = { "self", NULL };
6023 char _ptemp[128];
6024
6025 self = self;
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetColour",_kwnames,&_argo0))
6027 return NULL;
6028 if (_argo0) {
6029 if (_argo0 == Py_None) { _arg0 = NULL; }
6030 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6031 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetColour. Expected _wxBrush_p.");
6032 return NULL;
6033 }
6034 }
6035 {
6036 wxPy_BEGIN_ALLOW_THREADS;
6037 _result = new wxColour (wxBrush_GetColour(_arg0));
6038
6039 wxPy_END_ALLOW_THREADS;
6040 if (PyErr_Occurred()) return NULL;
6041 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
6042 _resultobj = Py_BuildValue("s",_ptemp);
6043 return _resultobj;
6044 }
6045
6046 #define wxBrush_GetStipple(_swigobj) (_swigobj->GetStipple())
6047 static PyObject *_wrap_wxBrush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject * _resultobj;
6049 wxBitmap * _result;
6050 wxBrush * _arg0;
6051 PyObject * _argo0 = 0;
6052 char *_kwnames[] = { "self", NULL };
6053 char _ptemp[128];
6054
6055 self = self;
6056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStipple",_kwnames,&_argo0))
6057 return NULL;
6058 if (_argo0) {
6059 if (_argo0 == Py_None) { _arg0 = NULL; }
6060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStipple. Expected _wxBrush_p.");
6062 return NULL;
6063 }
6064 }
6065 {
6066 wxPy_BEGIN_ALLOW_THREADS;
6067 _result = (wxBitmap *)wxBrush_GetStipple(_arg0);
6068
6069 wxPy_END_ALLOW_THREADS;
6070 if (PyErr_Occurred()) return NULL;
6071 } if (_result) {
6072 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBitmap_p");
6073 _resultobj = Py_BuildValue("s",_ptemp);
6074 } else {
6075 Py_INCREF(Py_None);
6076 _resultobj = Py_None;
6077 }
6078 return _resultobj;
6079 }
6080
6081 #define wxBrush_GetStyle(_swigobj) (_swigobj->GetStyle())
6082 static PyObject *_wrap_wxBrush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6083 PyObject * _resultobj;
6084 int _result;
6085 wxBrush * _arg0;
6086 PyObject * _argo0 = 0;
6087 char *_kwnames[] = { "self", NULL };
6088
6089 self = self;
6090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_GetStyle",_kwnames,&_argo0))
6091 return NULL;
6092 if (_argo0) {
6093 if (_argo0 == Py_None) { _arg0 = NULL; }
6094 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6095 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_GetStyle. Expected _wxBrush_p.");
6096 return NULL;
6097 }
6098 }
6099 {
6100 wxPy_BEGIN_ALLOW_THREADS;
6101 _result = (int )wxBrush_GetStyle(_arg0);
6102
6103 wxPy_END_ALLOW_THREADS;
6104 if (PyErr_Occurred()) return NULL;
6105 } _resultobj = Py_BuildValue("i",_result);
6106 return _resultobj;
6107 }
6108
6109 #define wxBrush_Ok(_swigobj) (_swigobj->Ok())
6110 static PyObject *_wrap_wxBrush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
6111 PyObject * _resultobj;
6112 bool _result;
6113 wxBrush * _arg0;
6114 PyObject * _argo0 = 0;
6115 char *_kwnames[] = { "self", NULL };
6116
6117 self = self;
6118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrush_Ok",_kwnames,&_argo0))
6119 return NULL;
6120 if (_argo0) {
6121 if (_argo0 == Py_None) { _arg0 = NULL; }
6122 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6123 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_Ok. Expected _wxBrush_p.");
6124 return NULL;
6125 }
6126 }
6127 {
6128 wxPy_BEGIN_ALLOW_THREADS;
6129 _result = (bool )wxBrush_Ok(_arg0);
6130
6131 wxPy_END_ALLOW_THREADS;
6132 if (PyErr_Occurred()) return NULL;
6133 } _resultobj = Py_BuildValue("i",_result);
6134 return _resultobj;
6135 }
6136
6137 #define wxBrush_SetColour(_swigobj,_swigarg0) (_swigobj->SetColour(_swigarg0))
6138 static PyObject *_wrap_wxBrush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6139 PyObject * _resultobj;
6140 wxBrush * _arg0;
6141 wxColour * _arg1;
6142 PyObject * _argo0 = 0;
6143 wxColour temp;
6144 PyObject * _obj1 = 0;
6145 char *_kwnames[] = { "self","colour", NULL };
6146
6147 self = self;
6148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetColour",_kwnames,&_argo0,&_obj1))
6149 return NULL;
6150 if (_argo0) {
6151 if (_argo0 == Py_None) { _arg0 = NULL; }
6152 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6153 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetColour. Expected _wxBrush_p.");
6154 return NULL;
6155 }
6156 }
6157 {
6158 _arg1 = &temp;
6159 if (! wxColour_helper(_obj1, &_arg1))
6160 return NULL;
6161 }
6162 {
6163 wxPy_BEGIN_ALLOW_THREADS;
6164 wxBrush_SetColour(_arg0,*_arg1);
6165
6166 wxPy_END_ALLOW_THREADS;
6167 if (PyErr_Occurred()) return NULL;
6168 } Py_INCREF(Py_None);
6169 _resultobj = Py_None;
6170 return _resultobj;
6171 }
6172
6173 #define wxBrush_SetStipple(_swigobj,_swigarg0) (_swigobj->SetStipple(_swigarg0))
6174 static PyObject *_wrap_wxBrush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
6175 PyObject * _resultobj;
6176 wxBrush * _arg0;
6177 wxBitmap * _arg1;
6178 PyObject * _argo0 = 0;
6179 PyObject * _argo1 = 0;
6180 char *_kwnames[] = { "self","bitmap", NULL };
6181
6182 self = self;
6183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrush_SetStipple",_kwnames,&_argo0,&_argo1))
6184 return NULL;
6185 if (_argo0) {
6186 if (_argo0 == Py_None) { _arg0 = NULL; }
6187 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6188 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStipple. Expected _wxBrush_p.");
6189 return NULL;
6190 }
6191 }
6192 if (_argo1) {
6193 if (_argo1 == Py_None) { _arg1 = NULL; }
6194 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
6195 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrush_SetStipple. Expected _wxBitmap_p.");
6196 return NULL;
6197 }
6198 }
6199 {
6200 wxPy_BEGIN_ALLOW_THREADS;
6201 wxBrush_SetStipple(_arg0,*_arg1);
6202
6203 wxPy_END_ALLOW_THREADS;
6204 if (PyErr_Occurred()) return NULL;
6205 } Py_INCREF(Py_None);
6206 _resultobj = Py_None;
6207 return _resultobj;
6208 }
6209
6210 #define wxBrush_SetStyle(_swigobj,_swigarg0) (_swigobj->SetStyle(_swigarg0))
6211 static PyObject *_wrap_wxBrush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6212 PyObject * _resultobj;
6213 wxBrush * _arg0;
6214 int _arg1;
6215 PyObject * _argo0 = 0;
6216 char *_kwnames[] = { "self","style", NULL };
6217
6218 self = self;
6219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxBrush_SetStyle",_kwnames,&_argo0,&_arg1))
6220 return NULL;
6221 if (_argo0) {
6222 if (_argo0 == Py_None) { _arg0 = NULL; }
6223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrush_p")) {
6224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrush_SetStyle. Expected _wxBrush_p.");
6225 return NULL;
6226 }
6227 }
6228 {
6229 wxPy_BEGIN_ALLOW_THREADS;
6230 wxBrush_SetStyle(_arg0,_arg1);
6231
6232 wxPy_END_ALLOW_THREADS;
6233 if (PyErr_Occurred()) return NULL;
6234 } Py_INCREF(Py_None);
6235 _resultobj = Py_None;
6236 return _resultobj;
6237 }
6238
6239 static void *SwigwxBrushListTowxObject(void *ptr) {
6240 wxBrushList *src;
6241 wxObject *dest;
6242 src = (wxBrushList *) ptr;
6243 dest = (wxObject *) src;
6244 return (void *) dest;
6245 }
6246
6247 #define wxBrushList_AddBrush(_swigobj,_swigarg0) (_swigobj->AddBrush(_swigarg0))
6248 static PyObject *_wrap_wxBrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6249 PyObject * _resultobj;
6250 wxBrushList * _arg0;
6251 wxBrush * _arg1;
6252 PyObject * _argo0 = 0;
6253 PyObject * _argo1 = 0;
6254 char *_kwnames[] = { "self","brush", NULL };
6255
6256 self = self;
6257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_AddBrush",_kwnames,&_argo0,&_argo1))
6258 return NULL;
6259 if (_argo0) {
6260 if (_argo0 == Py_None) { _arg0 = NULL; }
6261 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6262 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_AddBrush. Expected _wxBrushList_p.");
6263 return NULL;
6264 }
6265 }
6266 if (_argo1) {
6267 if (_argo1 == Py_None) { _arg1 = NULL; }
6268 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6269 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_AddBrush. Expected _wxBrush_p.");
6270 return NULL;
6271 }
6272 }
6273 {
6274 wxPy_BEGIN_ALLOW_THREADS;
6275 wxBrushList_AddBrush(_arg0,_arg1);
6276
6277 wxPy_END_ALLOW_THREADS;
6278 if (PyErr_Occurred()) return NULL;
6279 } Py_INCREF(Py_None);
6280 _resultobj = Py_None;
6281 return _resultobj;
6282 }
6283
6284 #define wxBrushList_FindOrCreateBrush(_swigobj,_swigarg0,_swigarg1) (_swigobj->FindOrCreateBrush(_swigarg0,_swigarg1))
6285 static PyObject *_wrap_wxBrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6286 PyObject * _resultobj;
6287 wxBrush * _result;
6288 wxBrushList * _arg0;
6289 wxColour * _arg1;
6290 int _arg2;
6291 PyObject * _argo0 = 0;
6292 wxColour temp;
6293 PyObject * _obj1 = 0;
6294 char *_kwnames[] = { "self","colour","style", NULL };
6295 char _ptemp[128];
6296
6297 self = self;
6298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOi:wxBrushList_FindOrCreateBrush",_kwnames,&_argo0,&_obj1,&_arg2))
6299 return NULL;
6300 if (_argo0) {
6301 if (_argo0 == Py_None) { _arg0 = NULL; }
6302 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6303 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_FindOrCreateBrush. Expected _wxBrushList_p.");
6304 return NULL;
6305 }
6306 }
6307 {
6308 _arg1 = &temp;
6309 if (! wxColour_helper(_obj1, &_arg1))
6310 return NULL;
6311 }
6312 {
6313 wxPy_BEGIN_ALLOW_THREADS;
6314 _result = (wxBrush *)wxBrushList_FindOrCreateBrush(_arg0,*_arg1,_arg2);
6315
6316 wxPy_END_ALLOW_THREADS;
6317 if (PyErr_Occurred()) return NULL;
6318 } if (_result) {
6319 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
6320 _resultobj = Py_BuildValue("s",_ptemp);
6321 } else {
6322 Py_INCREF(Py_None);
6323 _resultobj = Py_None;
6324 }
6325 return _resultobj;
6326 }
6327
6328 #define wxBrushList_RemoveBrush(_swigobj,_swigarg0) (_swigobj->RemoveBrush(_swigarg0))
6329 static PyObject *_wrap_wxBrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
6330 PyObject * _resultobj;
6331 wxBrushList * _arg0;
6332 wxBrush * _arg1;
6333 PyObject * _argo0 = 0;
6334 PyObject * _argo1 = 0;
6335 char *_kwnames[] = { "self","brush", NULL };
6336
6337 self = self;
6338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxBrushList_RemoveBrush",_kwnames,&_argo0,&_argo1))
6339 return NULL;
6340 if (_argo0) {
6341 if (_argo0 == Py_None) { _arg0 = NULL; }
6342 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6343 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_RemoveBrush. Expected _wxBrushList_p.");
6344 return NULL;
6345 }
6346 }
6347 if (_argo1) {
6348 if (_argo1 == Py_None) { _arg1 = NULL; }
6349 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
6350 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxBrushList_RemoveBrush. Expected _wxBrush_p.");
6351 return NULL;
6352 }
6353 }
6354 {
6355 wxPy_BEGIN_ALLOW_THREADS;
6356 wxBrushList_RemoveBrush(_arg0,_arg1);
6357
6358 wxPy_END_ALLOW_THREADS;
6359 if (PyErr_Occurred()) return NULL;
6360 } Py_INCREF(Py_None);
6361 _resultobj = Py_None;
6362 return _resultobj;
6363 }
6364
6365 #define wxBrushList_GetCount(_swigobj) (_swigobj->GetCount())
6366 static PyObject *_wrap_wxBrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6367 PyObject * _resultobj;
6368 int _result;
6369 wxBrushList * _arg0;
6370 PyObject * _argo0 = 0;
6371 char *_kwnames[] = { "self", NULL };
6372
6373 self = self;
6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxBrushList_GetCount",_kwnames,&_argo0))
6375 return NULL;
6376 if (_argo0) {
6377 if (_argo0 == Py_None) { _arg0 = NULL; }
6378 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxBrushList_p")) {
6379 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxBrushList_GetCount. Expected _wxBrushList_p.");
6380 return NULL;
6381 }
6382 }
6383 {
6384 wxPy_BEGIN_ALLOW_THREADS;
6385 _result = (int )wxBrushList_GetCount(_arg0);
6386
6387 wxPy_END_ALLOW_THREADS;
6388 if (PyErr_Occurred()) return NULL;
6389 } _resultobj = Py_BuildValue("i",_result);
6390 return _resultobj;
6391 }
6392
6393 static void *SwigwxDCTowxObject(void *ptr) {
6394 wxDC *src;
6395 wxObject *dest;
6396 src = (wxDC *) ptr;
6397 dest = (wxObject *) src;
6398 return (void *) dest;
6399 }
6400
6401 #define delete_wxDC(_swigobj) (delete _swigobj)
6402 static PyObject *_wrap_delete_wxDC(PyObject *self, PyObject *args, PyObject *kwargs) {
6403 PyObject * _resultobj;
6404 wxDC * _arg0;
6405 PyObject * _argo0 = 0;
6406 char *_kwnames[] = { "self", NULL };
6407
6408 self = self;
6409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxDC",_kwnames,&_argo0))
6410 return NULL;
6411 if (_argo0) {
6412 if (_argo0 == Py_None) { _arg0 = NULL; }
6413 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6414 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxDC. Expected _wxDC_p.");
6415 return NULL;
6416 }
6417 }
6418 {
6419 wxPy_BEGIN_ALLOW_THREADS;
6420 delete_wxDC(_arg0);
6421
6422 wxPy_END_ALLOW_THREADS;
6423 if (PyErr_Occurred()) return NULL;
6424 } Py_INCREF(Py_None);
6425 _resultobj = Py_None;
6426 return _resultobj;
6427 }
6428
6429 #define wxDC_BeginDrawing(_swigobj) (_swigobj->BeginDrawing())
6430 static PyObject *_wrap_wxDC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
6431 PyObject * _resultobj;
6432 wxDC * _arg0;
6433 PyObject * _argo0 = 0;
6434 char *_kwnames[] = { "self", NULL };
6435
6436 self = self;
6437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_BeginDrawing",_kwnames,&_argo0))
6438 return NULL;
6439 if (_argo0) {
6440 if (_argo0 == Py_None) { _arg0 = NULL; }
6441 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6442 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_BeginDrawing. Expected _wxDC_p.");
6443 return NULL;
6444 }
6445 }
6446 {
6447 wxPy_BEGIN_ALLOW_THREADS;
6448 wxDC_BeginDrawing(_arg0);
6449
6450 wxPy_END_ALLOW_THREADS;
6451 if (PyErr_Occurred()) return NULL;
6452 } Py_INCREF(Py_None);
6453 _resultobj = Py_None;
6454 return _resultobj;
6455 }
6456
6457 #define wxDC_Blit(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8) (_swigobj->Blit(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5,_swigarg6,_swigarg7,_swigarg8))
6458 static PyObject *_wrap_wxDC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
6459 PyObject * _resultobj;
6460 bool _result;
6461 wxDC * _arg0;
6462 long _arg1;
6463 long _arg2;
6464 long _arg3;
6465 long _arg4;
6466 wxDC * _arg5;
6467 long _arg6;
6468 long _arg7;
6469 int _arg8 = (int ) wxCOPY;
6470 int _arg9 = (int ) FALSE;
6471 PyObject * _argo0 = 0;
6472 PyObject * _argo5 = 0;
6473 char *_kwnames[] = { "self","xdest","ydest","width","height","source","xsrc","ysrc","logicalFunc","useMask", NULL };
6474
6475 self = self;
6476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllllOll|ii:wxDC_Blit",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_argo5,&_arg6,&_arg7,&_arg8,&_arg9))
6477 return NULL;
6478 if (_argo0) {
6479 if (_argo0 == Py_None) { _arg0 = NULL; }
6480 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6481 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Blit. Expected _wxDC_p.");
6482 return NULL;
6483 }
6484 }
6485 if (_argo5) {
6486 if (_argo5 == Py_None) { _arg5 = NULL; }
6487 else if (SWIG_GetPtrObj(_argo5,(void **) &_arg5,"_wxDC_p")) {
6488 PyErr_SetString(PyExc_TypeError,"Type error in argument 6 of wxDC_Blit. Expected _wxDC_p.");
6489 return NULL;
6490 }
6491 }
6492 {
6493 wxPy_BEGIN_ALLOW_THREADS;
6494 _result = (bool )wxDC_Blit(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8,_arg9);
6495
6496 wxPy_END_ALLOW_THREADS;
6497 if (PyErr_Occurred()) return NULL;
6498 } _resultobj = Py_BuildValue("i",_result);
6499 return _resultobj;
6500 }
6501
6502 #define wxDC_Clear(_swigobj) (_swigobj->Clear())
6503 static PyObject *_wrap_wxDC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
6504 PyObject * _resultobj;
6505 wxDC * _arg0;
6506 PyObject * _argo0 = 0;
6507 char *_kwnames[] = { "self", NULL };
6508
6509 self = self;
6510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Clear",_kwnames,&_argo0))
6511 return NULL;
6512 if (_argo0) {
6513 if (_argo0 == Py_None) { _arg0 = NULL; }
6514 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6515 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Clear. Expected _wxDC_p.");
6516 return NULL;
6517 }
6518 }
6519 {
6520 wxPy_BEGIN_ALLOW_THREADS;
6521 wxDC_Clear(_arg0);
6522
6523 wxPy_END_ALLOW_THREADS;
6524 if (PyErr_Occurred()) return NULL;
6525 } Py_INCREF(Py_None);
6526 _resultobj = Py_None;
6527 return _resultobj;
6528 }
6529
6530 #define wxDC_CrossHair(_swigobj,_swigarg0,_swigarg1) (_swigobj->CrossHair(_swigarg0,_swigarg1))
6531 static PyObject *_wrap_wxDC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
6532 PyObject * _resultobj;
6533 wxDC * _arg0;
6534 long _arg1;
6535 long _arg2;
6536 PyObject * _argo0 = 0;
6537 char *_kwnames[] = { "self","x","y", NULL };
6538
6539 self = self;
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_CrossHair",_kwnames,&_argo0,&_arg1,&_arg2))
6541 return NULL;
6542 if (_argo0) {
6543 if (_argo0 == Py_None) { _arg0 = NULL; }
6544 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6545 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CrossHair. Expected _wxDC_p.");
6546 return NULL;
6547 }
6548 }
6549 {
6550 wxPy_BEGIN_ALLOW_THREADS;
6551 wxDC_CrossHair(_arg0,_arg1,_arg2);
6552
6553 wxPy_END_ALLOW_THREADS;
6554 if (PyErr_Occurred()) return NULL;
6555 } Py_INCREF(Py_None);
6556 _resultobj = Py_None;
6557 return _resultobj;
6558 }
6559
6560 #define wxDC_DestroyClippingRegion(_swigobj) (_swigobj->DestroyClippingRegion())
6561 static PyObject *_wrap_wxDC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject * _resultobj;
6563 wxDC * _arg0;
6564 PyObject * _argo0 = 0;
6565 char *_kwnames[] = { "self", NULL };
6566
6567 self = self;
6568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_DestroyClippingRegion",_kwnames,&_argo0))
6569 return NULL;
6570 if (_argo0) {
6571 if (_argo0 == Py_None) { _arg0 = NULL; }
6572 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6573 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DestroyClippingRegion. Expected _wxDC_p.");
6574 return NULL;
6575 }
6576 }
6577 {
6578 wxPy_BEGIN_ALLOW_THREADS;
6579 wxDC_DestroyClippingRegion(_arg0);
6580
6581 wxPy_END_ALLOW_THREADS;
6582 if (PyErr_Occurred()) return NULL;
6583 } Py_INCREF(Py_None);
6584 _resultobj = Py_None;
6585 return _resultobj;
6586 }
6587
6588 #define wxDC_DeviceToLogicalX(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalX(_swigarg0))
6589 static PyObject *_wrap_wxDC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
6590 PyObject * _resultobj;
6591 long _result;
6592 wxDC * _arg0;
6593 long _arg1;
6594 PyObject * _argo0 = 0;
6595 char *_kwnames[] = { "self","x", NULL };
6596
6597 self = self;
6598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalX",_kwnames,&_argo0,&_arg1))
6599 return NULL;
6600 if (_argo0) {
6601 if (_argo0 == Py_None) { _arg0 = NULL; }
6602 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6603 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalX. Expected _wxDC_p.");
6604 return NULL;
6605 }
6606 }
6607 {
6608 wxPy_BEGIN_ALLOW_THREADS;
6609 _result = (long )wxDC_DeviceToLogicalX(_arg0,_arg1);
6610
6611 wxPy_END_ALLOW_THREADS;
6612 if (PyErr_Occurred()) return NULL;
6613 } _resultobj = Py_BuildValue("l",_result);
6614 return _resultobj;
6615 }
6616
6617 #define wxDC_DeviceToLogicalXRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalXRel(_swigarg0))
6618 static PyObject *_wrap_wxDC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6619 PyObject * _resultobj;
6620 long _result;
6621 wxDC * _arg0;
6622 long _arg1;
6623 PyObject * _argo0 = 0;
6624 char *_kwnames[] = { "self","x", NULL };
6625
6626 self = self;
6627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalXRel",_kwnames,&_argo0,&_arg1))
6628 return NULL;
6629 if (_argo0) {
6630 if (_argo0 == Py_None) { _arg0 = NULL; }
6631 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6632 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalXRel. Expected _wxDC_p.");
6633 return NULL;
6634 }
6635 }
6636 {
6637 wxPy_BEGIN_ALLOW_THREADS;
6638 _result = (long )wxDC_DeviceToLogicalXRel(_arg0,_arg1);
6639
6640 wxPy_END_ALLOW_THREADS;
6641 if (PyErr_Occurred()) return NULL;
6642 } _resultobj = Py_BuildValue("l",_result);
6643 return _resultobj;
6644 }
6645
6646 #define wxDC_DeviceToLogicalY(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalY(_swigarg0))
6647 static PyObject *_wrap_wxDC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
6648 PyObject * _resultobj;
6649 long _result;
6650 wxDC * _arg0;
6651 long _arg1;
6652 PyObject * _argo0 = 0;
6653 char *_kwnames[] = { "self","y", NULL };
6654
6655 self = self;
6656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalY",_kwnames,&_argo0,&_arg1))
6657 return NULL;
6658 if (_argo0) {
6659 if (_argo0 == Py_None) { _arg0 = NULL; }
6660 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6661 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalY. Expected _wxDC_p.");
6662 return NULL;
6663 }
6664 }
6665 {
6666 wxPy_BEGIN_ALLOW_THREADS;
6667 _result = (long )wxDC_DeviceToLogicalY(_arg0,_arg1);
6668
6669 wxPy_END_ALLOW_THREADS;
6670 if (PyErr_Occurred()) return NULL;
6671 } _resultobj = Py_BuildValue("l",_result);
6672 return _resultobj;
6673 }
6674
6675 #define wxDC_DeviceToLogicalYRel(_swigobj,_swigarg0) (_swigobj->DeviceToLogicalYRel(_swigarg0))
6676 static PyObject *_wrap_wxDC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
6677 PyObject * _resultobj;
6678 long _result;
6679 wxDC * _arg0;
6680 long _arg1;
6681 PyObject * _argo0 = 0;
6682 char *_kwnames[] = { "self","y", NULL };
6683
6684 self = self;
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_DeviceToLogicalYRel",_kwnames,&_argo0,&_arg1))
6686 return NULL;
6687 if (_argo0) {
6688 if (_argo0 == Py_None) { _arg0 = NULL; }
6689 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6690 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DeviceToLogicalYRel. Expected _wxDC_p.");
6691 return NULL;
6692 }
6693 }
6694 {
6695 wxPy_BEGIN_ALLOW_THREADS;
6696 _result = (long )wxDC_DeviceToLogicalYRel(_arg0,_arg1);
6697
6698 wxPy_END_ALLOW_THREADS;
6699 if (PyErr_Occurred()) return NULL;
6700 } _resultobj = Py_BuildValue("l",_result);
6701 return _resultobj;
6702 }
6703
6704 #define wxDC_DrawArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6705 static PyObject *_wrap_wxDC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6706 PyObject * _resultobj;
6707 wxDC * _arg0;
6708 long _arg1;
6709 long _arg2;
6710 long _arg3;
6711 long _arg4;
6712 long _arg5;
6713 long _arg6;
6714 PyObject * _argo0 = 0;
6715 char *_kwnames[] = { "self","x1","y1","x2","y2","xc","yc", NULL };
6716
6717 self = self;
6718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6719 return NULL;
6720 if (_argo0) {
6721 if (_argo0 == Py_None) { _arg0 = NULL; }
6722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawArc. Expected _wxDC_p.");
6724 return NULL;
6725 }
6726 }
6727 {
6728 wxPy_BEGIN_ALLOW_THREADS;
6729 wxDC_DrawArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6730
6731 wxPy_END_ALLOW_THREADS;
6732 if (PyErr_Occurred()) return NULL;
6733 } Py_INCREF(Py_None);
6734 _resultobj = Py_None;
6735 return _resultobj;
6736 }
6737
6738 #define wxDC_DrawCircle(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawCircle(_swigarg0,_swigarg1,_swigarg2))
6739 static PyObject *_wrap_wxDC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
6740 PyObject * _resultobj;
6741 wxDC * _arg0;
6742 long _arg1;
6743 long _arg2;
6744 long _arg3;
6745 PyObject * _argo0 = 0;
6746 char *_kwnames[] = { "self","x","y","radius", NULL };
6747
6748 self = self;
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Olll:wxDC_DrawCircle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
6750 return NULL;
6751 if (_argo0) {
6752 if (_argo0 == Py_None) { _arg0 = NULL; }
6753 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6754 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawCircle. Expected _wxDC_p.");
6755 return NULL;
6756 }
6757 }
6758 {
6759 wxPy_BEGIN_ALLOW_THREADS;
6760 wxDC_DrawCircle(_arg0,_arg1,_arg2,_arg3);
6761
6762 wxPy_END_ALLOW_THREADS;
6763 if (PyErr_Occurred()) return NULL;
6764 } Py_INCREF(Py_None);
6765 _resultobj = Py_None;
6766 return _resultobj;
6767 }
6768
6769 #define wxDC_DrawEllipse(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawEllipse(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6770 static PyObject *_wrap_wxDC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
6771 PyObject * _resultobj;
6772 wxDC * _arg0;
6773 long _arg1;
6774 long _arg2;
6775 long _arg3;
6776 long _arg4;
6777 PyObject * _argo0 = 0;
6778 char *_kwnames[] = { "self","x","y","width","height", NULL };
6779
6780 self = self;
6781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawEllipse",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6782 return NULL;
6783 if (_argo0) {
6784 if (_argo0 == Py_None) { _arg0 = NULL; }
6785 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6786 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipse. Expected _wxDC_p.");
6787 return NULL;
6788 }
6789 }
6790 {
6791 wxPy_BEGIN_ALLOW_THREADS;
6792 wxDC_DrawEllipse(_arg0,_arg1,_arg2,_arg3,_arg4);
6793
6794 wxPy_END_ALLOW_THREADS;
6795 if (PyErr_Occurred()) return NULL;
6796 } Py_INCREF(Py_None);
6797 _resultobj = Py_None;
6798 return _resultobj;
6799 }
6800
6801 #define wxDC_DrawEllipticArc(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->DrawEllipticArc(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
6802 static PyObject *_wrap_wxDC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
6803 PyObject * _resultobj;
6804 wxDC * _arg0;
6805 long _arg1;
6806 long _arg2;
6807 long _arg3;
6808 long _arg4;
6809 long _arg5;
6810 long _arg6;
6811 PyObject * _argo0 = 0;
6812 char *_kwnames[] = { "self","x","y","width","height","start","end", NULL };
6813
6814 self = self;
6815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollllll:wxDC_DrawEllipticArc",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5,&_arg6))
6816 return NULL;
6817 if (_argo0) {
6818 if (_argo0 == Py_None) { _arg0 = NULL; }
6819 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6820 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawEllipticArc. Expected _wxDC_p.");
6821 return NULL;
6822 }
6823 }
6824 {
6825 wxPy_BEGIN_ALLOW_THREADS;
6826 wxDC_DrawEllipticArc(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
6827
6828 wxPy_END_ALLOW_THREADS;
6829 if (PyErr_Occurred()) return NULL;
6830 } Py_INCREF(Py_None);
6831 _resultobj = Py_None;
6832 return _resultobj;
6833 }
6834
6835 #define wxDC_DrawIcon(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawIcon(_swigarg0,_swigarg1,_swigarg2))
6836 static PyObject *_wrap_wxDC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
6837 PyObject * _resultobj;
6838 wxDC * _arg0;
6839 wxIcon * _arg1;
6840 long _arg2;
6841 long _arg3;
6842 PyObject * _argo0 = 0;
6843 PyObject * _argo1 = 0;
6844 char *_kwnames[] = { "self","icon","x","y", NULL };
6845
6846 self = self;
6847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawIcon",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3))
6848 return NULL;
6849 if (_argo0) {
6850 if (_argo0 == Py_None) { _arg0 = NULL; }
6851 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6852 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawIcon. Expected _wxDC_p.");
6853 return NULL;
6854 }
6855 }
6856 if (_argo1) {
6857 if (_argo1 == Py_None) { _arg1 = NULL; }
6858 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
6859 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawIcon. Expected _wxIcon_p.");
6860 return NULL;
6861 }
6862 }
6863 {
6864 wxPy_BEGIN_ALLOW_THREADS;
6865 wxDC_DrawIcon(_arg0,*_arg1,_arg2,_arg3);
6866
6867 wxPy_END_ALLOW_THREADS;
6868 if (PyErr_Occurred()) return NULL;
6869 } Py_INCREF(Py_None);
6870 _resultobj = Py_None;
6871 return _resultobj;
6872 }
6873
6874 #define wxDC_DrawLine(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLine(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6875 static PyObject *_wrap_wxDC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
6876 PyObject * _resultobj;
6877 wxDC * _arg0;
6878 long _arg1;
6879 long _arg2;
6880 long _arg3;
6881 long _arg4;
6882 PyObject * _argo0 = 0;
6883 char *_kwnames[] = { "self","x1","y1","x2","y2", NULL };
6884
6885 self = self;
6886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawLine",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
6887 return NULL;
6888 if (_argo0) {
6889 if (_argo0 == Py_None) { _arg0 = NULL; }
6890 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6891 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLine. Expected _wxDC_p.");
6892 return NULL;
6893 }
6894 }
6895 {
6896 wxPy_BEGIN_ALLOW_THREADS;
6897 wxDC_DrawLine(_arg0,_arg1,_arg2,_arg3,_arg4);
6898
6899 wxPy_END_ALLOW_THREADS;
6900 if (PyErr_Occurred()) return NULL;
6901 } Py_INCREF(Py_None);
6902 _resultobj = Py_None;
6903 return _resultobj;
6904 }
6905
6906 #define wxDC_DrawLines(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawLines(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
6907 static PyObject *_wrap_wxDC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
6908 PyObject * _resultobj;
6909 wxDC * _arg0;
6910 int _arg1;
6911 wxPoint * _arg2;
6912 long _arg3 = (long ) 0;
6913 long _arg4 = (long ) 0;
6914 PyObject * _argo0 = 0;
6915 int NPOINTS;
6916 PyObject * _obj2 = 0;
6917 char *_kwnames[] = { "self","points","xoffset","yoffset", NULL };
6918
6919 self = self;
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|ll:wxDC_DrawLines",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4))
6921 return NULL;
6922 if (_argo0) {
6923 if (_argo0 == Py_None) { _arg0 = NULL; }
6924 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6925 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawLines. Expected _wxDC_p.");
6926 return NULL;
6927 }
6928 }
6929 if (_obj2)
6930 {
6931 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6932 if (_arg2 == NULL) {
6933 return NULL;
6934 }
6935 }
6936 {
6937 _arg1 = NPOINTS;
6938 }
6939 {
6940 wxPy_BEGIN_ALLOW_THREADS;
6941 wxDC_DrawLines(_arg0,_arg1,_arg2,_arg3,_arg4);
6942
6943 wxPy_END_ALLOW_THREADS;
6944 if (PyErr_Occurred()) return NULL;
6945 } Py_INCREF(Py_None);
6946 _resultobj = Py_None;
6947 {
6948 delete [] _arg2;
6949 }
6950 return _resultobj;
6951 }
6952
6953 #define wxDC_DrawPolygon(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawPolygon(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
6954 static PyObject *_wrap_wxDC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
6955 PyObject * _resultobj;
6956 wxDC * _arg0;
6957 int _arg1;
6958 wxPoint * _arg2;
6959 long _arg3 = (long ) 0;
6960 long _arg4 = (long ) 0;
6961 int _arg5 = (int ) wxODDEVEN_RULE;
6962 PyObject * _argo0 = 0;
6963 int NPOINTS;
6964 PyObject * _obj2 = 0;
6965 char *_kwnames[] = { "self","points","xoffset","yoffset","fill_style", NULL };
6966
6967 self = self;
6968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|lli:wxDC_DrawPolygon",_kwnames,&_argo0,&_obj2,&_arg3,&_arg4,&_arg5))
6969 return NULL;
6970 if (_argo0) {
6971 if (_argo0 == Py_None) { _arg0 = NULL; }
6972 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
6973 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPolygon. Expected _wxDC_p.");
6974 return NULL;
6975 }
6976 }
6977 if (_obj2)
6978 {
6979 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
6980 if (_arg2 == NULL) {
6981 return NULL;
6982 }
6983 }
6984 {
6985 _arg1 = NPOINTS;
6986 }
6987 {
6988 wxPy_BEGIN_ALLOW_THREADS;
6989 wxDC_DrawPolygon(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
6990
6991 wxPy_END_ALLOW_THREADS;
6992 if (PyErr_Occurred()) return NULL;
6993 } Py_INCREF(Py_None);
6994 _resultobj = Py_None;
6995 {
6996 delete [] _arg2;
6997 }
6998 return _resultobj;
6999 }
7000
7001 #define wxDC_DrawPoint(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawPoint(_swigarg0,_swigarg1))
7002 static PyObject *_wrap_wxDC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
7003 PyObject * _resultobj;
7004 wxDC * _arg0;
7005 long _arg1;
7006 long _arg2;
7007 PyObject * _argo0 = 0;
7008 char *_kwnames[] = { "self","x","y", NULL };
7009
7010 self = self;
7011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_DrawPoint",_kwnames,&_argo0,&_arg1,&_arg2))
7012 return NULL;
7013 if (_argo0) {
7014 if (_argo0 == Py_None) { _arg0 = NULL; }
7015 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7016 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawPoint. Expected _wxDC_p.");
7017 return NULL;
7018 }
7019 }
7020 {
7021 wxPy_BEGIN_ALLOW_THREADS;
7022 wxDC_DrawPoint(_arg0,_arg1,_arg2);
7023
7024 wxPy_END_ALLOW_THREADS;
7025 if (PyErr_Occurred()) return NULL;
7026 } Py_INCREF(Py_None);
7027 _resultobj = Py_None;
7028 return _resultobj;
7029 }
7030
7031 #define wxDC_DrawRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7032 static PyObject *_wrap_wxDC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7033 PyObject * _resultobj;
7034 wxDC * _arg0;
7035 long _arg1;
7036 long _arg2;
7037 long _arg3;
7038 long _arg4;
7039 PyObject * _argo0 = 0;
7040 char *_kwnames[] = { "self","x","y","width","height", NULL };
7041
7042 self = self;
7043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_DrawRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
7044 return NULL;
7045 if (_argo0) {
7046 if (_argo0 == Py_None) { _arg0 = NULL; }
7047 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7048 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRectangle. Expected _wxDC_p.");
7049 return NULL;
7050 }
7051 }
7052 {
7053 wxPy_BEGIN_ALLOW_THREADS;
7054 wxDC_DrawRectangle(_arg0,_arg1,_arg2,_arg3,_arg4);
7055
7056 wxPy_END_ALLOW_THREADS;
7057 if (PyErr_Occurred()) return NULL;
7058 } Py_INCREF(Py_None);
7059 _resultobj = Py_None;
7060 return _resultobj;
7061 }
7062
7063 #define wxDC_DrawRotatedText(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawRotatedText(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7064 static PyObject *_wrap_wxDC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
7065 PyObject * _resultobj;
7066 wxDC * _arg0;
7067 wxString * _arg1;
7068 wxCoord _arg2;
7069 wxCoord _arg3;
7070 double _arg4;
7071 PyObject * _argo0 = 0;
7072 PyObject * _obj1 = 0;
7073 char *_kwnames[] = { "self","text","x","y","angle", NULL };
7074
7075 self = self;
7076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOiid:wxDC_DrawRotatedText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3,&_arg4))
7077 return NULL;
7078 if (_argo0) {
7079 if (_argo0 == Py_None) { _arg0 = NULL; }
7080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRotatedText. Expected _wxDC_p.");
7082 return NULL;
7083 }
7084 }
7085 {
7086 #if PYTHON_API_VERSION >= 1009
7087 char* tmpPtr; int tmpSize;
7088 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7089 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7090 return NULL;
7091 }
7092 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7093 return NULL;
7094 _arg1 = new wxString(tmpPtr, tmpSize);
7095 #else
7096 if (!PyString_Check(_obj1)) {
7097 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7098 return NULL;
7099 }
7100 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7101 #endif
7102 }
7103 {
7104 wxPy_BEGIN_ALLOW_THREADS;
7105 wxDC_DrawRotatedText(_arg0,*_arg1,_arg2,_arg3,_arg4);
7106
7107 wxPy_END_ALLOW_THREADS;
7108 if (PyErr_Occurred()) return NULL;
7109 } Py_INCREF(Py_None);
7110 _resultobj = Py_None;
7111 {
7112 if (_obj1)
7113 delete _arg1;
7114 }
7115 return _resultobj;
7116 }
7117
7118 #define wxDC_DrawRoundedRectangle(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4) (_swigobj->DrawRoundedRectangle(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4))
7119 static PyObject *_wrap_wxDC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
7120 PyObject * _resultobj;
7121 wxDC * _arg0;
7122 long _arg1;
7123 long _arg2;
7124 long _arg3;
7125 long _arg4;
7126 long _arg5 = (long ) 20;
7127 PyObject * _argo0 = 0;
7128 char *_kwnames[] = { "self","x","y","width","height","radius", NULL };
7129
7130 self = self;
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll|l:wxDC_DrawRoundedRectangle",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4,&_arg5))
7132 return NULL;
7133 if (_argo0) {
7134 if (_argo0 == Py_None) { _arg0 = NULL; }
7135 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7136 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawRoundedRectangle. Expected _wxDC_p.");
7137 return NULL;
7138 }
7139 }
7140 {
7141 wxPy_BEGIN_ALLOW_THREADS;
7142 wxDC_DrawRoundedRectangle(_arg0,_arg1,_arg2,_arg3,_arg4,_arg5);
7143
7144 wxPy_END_ALLOW_THREADS;
7145 if (PyErr_Occurred()) return NULL;
7146 } Py_INCREF(Py_None);
7147 _resultobj = Py_None;
7148 return _resultobj;
7149 }
7150
7151 #define wxDC_DrawSpline(_swigobj,_swigarg0,_swigarg1) (_swigobj->DrawSpline(_swigarg0,_swigarg1))
7152 static PyObject *_wrap_wxDC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
7153 PyObject * _resultobj;
7154 wxDC * _arg0;
7155 int _arg1;
7156 wxPoint * _arg2;
7157 PyObject * _argo0 = 0;
7158 int NPOINTS;
7159 PyObject * _obj2 = 0;
7160 char *_kwnames[] = { "self","points", NULL };
7161
7162 self = self;
7163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_DrawSpline",_kwnames,&_argo0,&_obj2))
7164 return NULL;
7165 if (_argo0) {
7166 if (_argo0 == Py_None) { _arg0 = NULL; }
7167 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7168 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawSpline. Expected _wxDC_p.");
7169 return NULL;
7170 }
7171 }
7172 if (_obj2)
7173 {
7174 _arg2 = wxPoint_LIST_helper(_obj2, &NPOINTS);
7175 if (_arg2 == NULL) {
7176 return NULL;
7177 }
7178 }
7179 {
7180 _arg1 = NPOINTS;
7181 }
7182 {
7183 wxPy_BEGIN_ALLOW_THREADS;
7184 wxDC_DrawSpline(_arg0,_arg1,_arg2);
7185
7186 wxPy_END_ALLOW_THREADS;
7187 if (PyErr_Occurred()) return NULL;
7188 } Py_INCREF(Py_None);
7189 _resultobj = Py_None;
7190 {
7191 delete [] _arg2;
7192 }
7193 return _resultobj;
7194 }
7195
7196 #define wxDC_DrawText(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->DrawText(_swigarg0,_swigarg1,_swigarg2))
7197 static PyObject *_wrap_wxDC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
7198 PyObject * _resultobj;
7199 wxDC * _arg0;
7200 wxString * _arg1;
7201 long _arg2;
7202 long _arg3;
7203 PyObject * _argo0 = 0;
7204 PyObject * _obj1 = 0;
7205 char *_kwnames[] = { "self","text","x","y", NULL };
7206
7207 self = self;
7208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll:wxDC_DrawText",_kwnames,&_argo0,&_obj1,&_arg2,&_arg3))
7209 return NULL;
7210 if (_argo0) {
7211 if (_argo0 == Py_None) { _arg0 = NULL; }
7212 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7213 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawText. Expected _wxDC_p.");
7214 return NULL;
7215 }
7216 }
7217 {
7218 #if PYTHON_API_VERSION >= 1009
7219 char* tmpPtr; int tmpSize;
7220 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7221 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7222 return NULL;
7223 }
7224 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7225 return NULL;
7226 _arg1 = new wxString(tmpPtr, tmpSize);
7227 #else
7228 if (!PyString_Check(_obj1)) {
7229 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7230 return NULL;
7231 }
7232 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7233 #endif
7234 }
7235 {
7236 wxPy_BEGIN_ALLOW_THREADS;
7237 wxDC_DrawText(_arg0,*_arg1,_arg2,_arg3);
7238
7239 wxPy_END_ALLOW_THREADS;
7240 if (PyErr_Occurred()) return NULL;
7241 } Py_INCREF(Py_None);
7242 _resultobj = Py_None;
7243 {
7244 if (_obj1)
7245 delete _arg1;
7246 }
7247 return _resultobj;
7248 }
7249
7250 #define wxDC_EndDoc(_swigobj) (_swigobj->EndDoc())
7251 static PyObject *_wrap_wxDC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
7252 PyObject * _resultobj;
7253 wxDC * _arg0;
7254 PyObject * _argo0 = 0;
7255 char *_kwnames[] = { "self", NULL };
7256
7257 self = self;
7258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDoc",_kwnames,&_argo0))
7259 return NULL;
7260 if (_argo0) {
7261 if (_argo0 == Py_None) { _arg0 = NULL; }
7262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDoc. Expected _wxDC_p.");
7264 return NULL;
7265 }
7266 }
7267 {
7268 wxPy_BEGIN_ALLOW_THREADS;
7269 wxDC_EndDoc(_arg0);
7270
7271 wxPy_END_ALLOW_THREADS;
7272 if (PyErr_Occurred()) return NULL;
7273 } Py_INCREF(Py_None);
7274 _resultobj = Py_None;
7275 return _resultobj;
7276 }
7277
7278 #define wxDC_EndDrawing(_swigobj) (_swigobj->EndDrawing())
7279 static PyObject *_wrap_wxDC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
7280 PyObject * _resultobj;
7281 wxDC * _arg0;
7282 PyObject * _argo0 = 0;
7283 char *_kwnames[] = { "self", NULL };
7284
7285 self = self;
7286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndDrawing",_kwnames,&_argo0))
7287 return NULL;
7288 if (_argo0) {
7289 if (_argo0 == Py_None) { _arg0 = NULL; }
7290 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7291 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndDrawing. Expected _wxDC_p.");
7292 return NULL;
7293 }
7294 }
7295 {
7296 wxPy_BEGIN_ALLOW_THREADS;
7297 wxDC_EndDrawing(_arg0);
7298
7299 wxPy_END_ALLOW_THREADS;
7300 if (PyErr_Occurred()) return NULL;
7301 } Py_INCREF(Py_None);
7302 _resultobj = Py_None;
7303 return _resultobj;
7304 }
7305
7306 #define wxDC_EndPage(_swigobj) (_swigobj->EndPage())
7307 static PyObject *_wrap_wxDC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject * _resultobj;
7309 wxDC * _arg0;
7310 PyObject * _argo0 = 0;
7311 char *_kwnames[] = { "self", NULL };
7312
7313 self = self;
7314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_EndPage",_kwnames,&_argo0))
7315 return NULL;
7316 if (_argo0) {
7317 if (_argo0 == Py_None) { _arg0 = NULL; }
7318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_EndPage. Expected _wxDC_p.");
7320 return NULL;
7321 }
7322 }
7323 {
7324 wxPy_BEGIN_ALLOW_THREADS;
7325 wxDC_EndPage(_arg0);
7326
7327 wxPy_END_ALLOW_THREADS;
7328 if (PyErr_Occurred()) return NULL;
7329 } Py_INCREF(Py_None);
7330 _resultobj = Py_None;
7331 return _resultobj;
7332 }
7333
7334 #define wxDC_FloodFill(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->FloodFill(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7335 static PyObject *_wrap_wxDC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
7336 PyObject * _resultobj;
7337 wxDC * _arg0;
7338 long _arg1;
7339 long _arg2;
7340 wxColour * _arg3;
7341 int _arg4 = (int ) wxFLOOD_SURFACE;
7342 PyObject * _argo0 = 0;
7343 wxColour temp;
7344 PyObject * _obj3 = 0;
7345 char *_kwnames[] = { "self","x","y","colour","style", NULL };
7346
7347 self = self;
7348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OllO|i:wxDC_FloodFill",_kwnames,&_argo0,&_arg1,&_arg2,&_obj3,&_arg4))
7349 return NULL;
7350 if (_argo0) {
7351 if (_argo0 == Py_None) { _arg0 = NULL; }
7352 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7353 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_FloodFill. Expected _wxDC_p.");
7354 return NULL;
7355 }
7356 }
7357 {
7358 _arg3 = &temp;
7359 if (! wxColour_helper(_obj3, &_arg3))
7360 return NULL;
7361 }
7362 {
7363 wxPy_BEGIN_ALLOW_THREADS;
7364 wxDC_FloodFill(_arg0,_arg1,_arg2,*_arg3,_arg4);
7365
7366 wxPy_END_ALLOW_THREADS;
7367 if (PyErr_Occurred()) return NULL;
7368 } Py_INCREF(Py_None);
7369 _resultobj = Py_None;
7370 return _resultobj;
7371 }
7372
7373 #define wxDC_GetBackground(_swigobj) (_swigobj->GetBackground())
7374 static PyObject *_wrap_wxDC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7375 PyObject * _resultobj;
7376 wxBrush * _result;
7377 wxDC * _arg0;
7378 PyObject * _argo0 = 0;
7379 char *_kwnames[] = { "self", NULL };
7380 char _ptemp[128];
7381
7382 self = self;
7383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBackground",_kwnames,&_argo0))
7384 return NULL;
7385 if (_argo0) {
7386 if (_argo0 == Py_None) { _arg0 = NULL; }
7387 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7388 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBackground. Expected _wxDC_p.");
7389 return NULL;
7390 }
7391 }
7392 {
7393 wxPy_BEGIN_ALLOW_THREADS;
7394 wxBrush & _result_ref = wxDC_GetBackground(_arg0);
7395 _result = (wxBrush *) &_result_ref;
7396
7397 wxPy_END_ALLOW_THREADS;
7398 if (PyErr_Occurred()) return NULL;
7399 } if (_result) {
7400 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7401 _resultobj = Py_BuildValue("s",_ptemp);
7402 } else {
7403 Py_INCREF(Py_None);
7404 _resultobj = Py_None;
7405 }
7406 return _resultobj;
7407 }
7408
7409 #define wxDC_GetBrush(_swigobj) (_swigobj->GetBrush())
7410 static PyObject *_wrap_wxDC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
7411 PyObject * _resultobj;
7412 wxBrush * _result;
7413 wxDC * _arg0;
7414 PyObject * _argo0 = 0;
7415 char *_kwnames[] = { "self", NULL };
7416 char _ptemp[128];
7417
7418 self = self;
7419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBrush",_kwnames,&_argo0))
7420 return NULL;
7421 if (_argo0) {
7422 if (_argo0 == Py_None) { _arg0 = NULL; }
7423 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7424 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBrush. Expected _wxDC_p.");
7425 return NULL;
7426 }
7427 }
7428 {
7429 wxPy_BEGIN_ALLOW_THREADS;
7430 wxBrush & _result_ref = wxDC_GetBrush(_arg0);
7431 _result = (wxBrush *) &_result_ref;
7432
7433 wxPy_END_ALLOW_THREADS;
7434 if (PyErr_Occurred()) return NULL;
7435 } if (_result) {
7436 SWIG_MakePtr(_ptemp, (char *) _result,"_wxBrush_p");
7437 _resultobj = Py_BuildValue("s",_ptemp);
7438 } else {
7439 Py_INCREF(Py_None);
7440 _resultobj = Py_None;
7441 }
7442 return _resultobj;
7443 }
7444
7445 #define wxDC_GetCharHeight(_swigobj) (_swigobj->GetCharHeight())
7446 static PyObject *_wrap_wxDC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7447 PyObject * _resultobj;
7448 long _result;
7449 wxDC * _arg0;
7450 PyObject * _argo0 = 0;
7451 char *_kwnames[] = { "self", NULL };
7452
7453 self = self;
7454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharHeight",_kwnames,&_argo0))
7455 return NULL;
7456 if (_argo0) {
7457 if (_argo0 == Py_None) { _arg0 = NULL; }
7458 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7459 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharHeight. Expected _wxDC_p.");
7460 return NULL;
7461 }
7462 }
7463 {
7464 wxPy_BEGIN_ALLOW_THREADS;
7465 _result = (long )wxDC_GetCharHeight(_arg0);
7466
7467 wxPy_END_ALLOW_THREADS;
7468 if (PyErr_Occurred()) return NULL;
7469 } _resultobj = Py_BuildValue("l",_result);
7470 return _resultobj;
7471 }
7472
7473 #define wxDC_GetCharWidth(_swigobj) (_swigobj->GetCharWidth())
7474 static PyObject *_wrap_wxDC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7475 PyObject * _resultobj;
7476 long _result;
7477 wxDC * _arg0;
7478 PyObject * _argo0 = 0;
7479 char *_kwnames[] = { "self", NULL };
7480
7481 self = self;
7482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetCharWidth",_kwnames,&_argo0))
7483 return NULL;
7484 if (_argo0) {
7485 if (_argo0 == Py_None) { _arg0 = NULL; }
7486 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7487 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetCharWidth. Expected _wxDC_p.");
7488 return NULL;
7489 }
7490 }
7491 {
7492 wxPy_BEGIN_ALLOW_THREADS;
7493 _result = (long )wxDC_GetCharWidth(_arg0);
7494
7495 wxPy_END_ALLOW_THREADS;
7496 if (PyErr_Occurred()) return NULL;
7497 } _resultobj = Py_BuildValue("l",_result);
7498 return _resultobj;
7499 }
7500
7501 #define wxDC_GetClippingBox(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetClippingBox(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
7502 static PyObject *_wrap_wxDC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
7503 PyObject * _resultobj;
7504 wxDC * _arg0;
7505 long * _arg1;
7506 long temp;
7507 long * _arg2;
7508 long temp0;
7509 long * _arg3;
7510 long temp1;
7511 long * _arg4;
7512 long temp2;
7513 PyObject * _argo0 = 0;
7514 char *_kwnames[] = { "self", NULL };
7515
7516 self = self;
7517 {
7518 _arg1 = &temp;
7519 }
7520 {
7521 _arg2 = &temp0;
7522 }
7523 {
7524 _arg3 = &temp1;
7525 }
7526 {
7527 _arg4 = &temp2;
7528 }
7529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetClippingBox",_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_GetClippingBox. Expected _wxDC_p.");
7535 return NULL;
7536 }
7537 }
7538 {
7539 wxPy_BEGIN_ALLOW_THREADS;
7540 wxDC_GetClippingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
7541
7542 wxPy_END_ALLOW_THREADS;
7543 if (PyErr_Occurred()) return NULL;
7544 } Py_INCREF(Py_None);
7545 _resultobj = Py_None;
7546 {
7547 PyObject *o;
7548 o = PyInt_FromLong((long) (*_arg1));
7549 _resultobj = t_output_helper(_resultobj, o);
7550 }
7551 {
7552 PyObject *o;
7553 o = PyInt_FromLong((long) (*_arg2));
7554 _resultobj = t_output_helper(_resultobj, o);
7555 }
7556 {
7557 PyObject *o;
7558 o = PyInt_FromLong((long) (*_arg3));
7559 _resultobj = t_output_helper(_resultobj, o);
7560 }
7561 {
7562 PyObject *o;
7563 o = PyInt_FromLong((long) (*_arg4));
7564 _resultobj = t_output_helper(_resultobj, o);
7565 }
7566 return _resultobj;
7567 }
7568
7569 #define wxDC_GetFont(_swigobj) (_swigobj->GetFont())
7570 static PyObject *_wrap_wxDC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
7571 PyObject * _resultobj;
7572 wxFont * _result;
7573 wxDC * _arg0;
7574 PyObject * _argo0 = 0;
7575 char *_kwnames[] = { "self", NULL };
7576 char _ptemp[128];
7577
7578 self = self;
7579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetFont",_kwnames,&_argo0))
7580 return NULL;
7581 if (_argo0) {
7582 if (_argo0 == Py_None) { _arg0 = NULL; }
7583 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7584 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFont. Expected _wxDC_p.");
7585 return NULL;
7586 }
7587 }
7588 {
7589 wxPy_BEGIN_ALLOW_THREADS;
7590 wxFont & _result_ref = wxDC_GetFont(_arg0);
7591 _result = (wxFont *) &_result_ref;
7592
7593 wxPy_END_ALLOW_THREADS;
7594 if (PyErr_Occurred()) return NULL;
7595 } if (_result) {
7596 SWIG_MakePtr(_ptemp, (char *) _result,"_wxFont_p");
7597 _resultobj = Py_BuildValue("s",_ptemp);
7598 } else {
7599 Py_INCREF(Py_None);
7600 _resultobj = Py_None;
7601 }
7602 return _resultobj;
7603 }
7604
7605 #define wxDC_GetLogicalFunction(_swigobj) (_swigobj->GetLogicalFunction())
7606 static PyObject *_wrap_wxDC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
7607 PyObject * _resultobj;
7608 int _result;
7609 wxDC * _arg0;
7610 PyObject * _argo0 = 0;
7611 char *_kwnames[] = { "self", NULL };
7612
7613 self = self;
7614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalFunction",_kwnames,&_argo0))
7615 return NULL;
7616 if (_argo0) {
7617 if (_argo0 == Py_None) { _arg0 = NULL; }
7618 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7619 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalFunction. Expected _wxDC_p.");
7620 return NULL;
7621 }
7622 }
7623 {
7624 wxPy_BEGIN_ALLOW_THREADS;
7625 _result = (int )wxDC_GetLogicalFunction(_arg0);
7626
7627 wxPy_END_ALLOW_THREADS;
7628 if (PyErr_Occurred()) return NULL;
7629 } _resultobj = Py_BuildValue("i",_result);
7630 return _resultobj;
7631 }
7632
7633 #define wxDC_GetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalScale(_swigarg0,_swigarg1))
7634 static PyObject *_wrap_wxDC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
7635 PyObject * _resultobj;
7636 wxDC * _arg0;
7637 double * _arg1;
7638 double temp;
7639 double * _arg2;
7640 double temp0;
7641 PyObject * _argo0 = 0;
7642 char *_kwnames[] = { "self", NULL };
7643
7644 self = self;
7645 {
7646 _arg1 = &temp;
7647 }
7648 {
7649 _arg2 = &temp0;
7650 }
7651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalScale",_kwnames,&_argo0))
7652 return NULL;
7653 if (_argo0) {
7654 if (_argo0 == Py_None) { _arg0 = NULL; }
7655 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7656 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalScale. Expected _wxDC_p.");
7657 return NULL;
7658 }
7659 }
7660 {
7661 wxPy_BEGIN_ALLOW_THREADS;
7662 wxDC_GetLogicalScale(_arg0,_arg1,_arg2);
7663
7664 wxPy_END_ALLOW_THREADS;
7665 if (PyErr_Occurred()) return NULL;
7666 } Py_INCREF(Py_None);
7667 _resultobj = Py_None;
7668 {
7669 PyObject *o;
7670 o = PyFloat_FromDouble((double) (*_arg1));
7671 _resultobj = t_output_helper(_resultobj, o);
7672 }
7673 {
7674 PyObject *o;
7675 o = PyFloat_FromDouble((double) (*_arg2));
7676 _resultobj = t_output_helper(_resultobj, o);
7677 }
7678 return _resultobj;
7679 }
7680
7681 #define wxDC_GetMapMode(_swigobj) (_swigobj->GetMapMode())
7682 static PyObject *_wrap_wxDC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject * _resultobj;
7684 int _result;
7685 wxDC * _arg0;
7686 PyObject * _argo0 = 0;
7687 char *_kwnames[] = { "self", NULL };
7688
7689 self = self;
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetMapMode",_kwnames,&_argo0))
7691 return NULL;
7692 if (_argo0) {
7693 if (_argo0 == Py_None) { _arg0 = NULL; }
7694 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7695 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetMapMode. Expected _wxDC_p.");
7696 return NULL;
7697 }
7698 }
7699 {
7700 wxPy_BEGIN_ALLOW_THREADS;
7701 _result = (int )wxDC_GetMapMode(_arg0);
7702
7703 wxPy_END_ALLOW_THREADS;
7704 if (PyErr_Occurred()) return NULL;
7705 } _resultobj = Py_BuildValue("i",_result);
7706 return _resultobj;
7707 }
7708
7709 #define wxDC_GetOptimization(_swigobj) (_swigobj->GetOptimization())
7710 static PyObject *_wrap_wxDC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
7711 PyObject * _resultobj;
7712 bool _result;
7713 wxDC * _arg0;
7714 PyObject * _argo0 = 0;
7715 char *_kwnames[] = { "self", NULL };
7716
7717 self = self;
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetOptimization",_kwnames,&_argo0))
7719 return NULL;
7720 if (_argo0) {
7721 if (_argo0 == Py_None) { _arg0 = NULL; }
7722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetOptimization. Expected _wxDC_p.");
7724 return NULL;
7725 }
7726 }
7727 {
7728 wxPy_BEGIN_ALLOW_THREADS;
7729 _result = (bool )wxDC_GetOptimization(_arg0);
7730
7731 wxPy_END_ALLOW_THREADS;
7732 if (PyErr_Occurred()) return NULL;
7733 } _resultobj = Py_BuildValue("i",_result);
7734 return _resultobj;
7735 }
7736
7737 #define wxDC_GetPen(_swigobj) (_swigobj->GetPen())
7738 static PyObject *_wrap_wxDC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
7739 PyObject * _resultobj;
7740 wxPen * _result;
7741 wxDC * _arg0;
7742 PyObject * _argo0 = 0;
7743 char *_kwnames[] = { "self", NULL };
7744 char _ptemp[128];
7745
7746 self = self;
7747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPen",_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_GetPen. Expected _wxDC_p.");
7753 return NULL;
7754 }
7755 }
7756 {
7757 wxPy_BEGIN_ALLOW_THREADS;
7758 wxPen & _result_ref = wxDC_GetPen(_arg0);
7759 _result = (wxPen *) &_result_ref;
7760
7761 wxPy_END_ALLOW_THREADS;
7762 if (PyErr_Occurred()) return NULL;
7763 } if (_result) {
7764 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPen_p");
7765 _resultobj = Py_BuildValue("s",_ptemp);
7766 } else {
7767 Py_INCREF(Py_None);
7768 _resultobj = Py_None;
7769 }
7770 return _resultobj;
7771 }
7772
7773 static wxColour * wxDC_GetPixel(wxDC *self,long x,long y) {
7774 wxColour* wc = new wxColour();
7775 self->GetPixel(x, y, wc);
7776 return wc;
7777 }
7778 static PyObject *_wrap_wxDC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
7779 PyObject * _resultobj;
7780 wxColour * _result;
7781 wxDC * _arg0;
7782 long _arg1;
7783 long _arg2;
7784 PyObject * _argo0 = 0;
7785 char *_kwnames[] = { "self","x","y", NULL };
7786 char _ptemp[128];
7787
7788 self = self;
7789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2))
7790 return NULL;
7791 if (_argo0) {
7792 if (_argo0 == Py_None) { _arg0 = NULL; }
7793 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7794 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPixel. Expected _wxDC_p.");
7795 return NULL;
7796 }
7797 }
7798 {
7799 wxPy_BEGIN_ALLOW_THREADS;
7800 _result = (wxColour *)wxDC_GetPixel(_arg0,_arg1,_arg2);
7801
7802 wxPy_END_ALLOW_THREADS;
7803 if (PyErr_Occurred()) return NULL;
7804 } if (_result) {
7805 SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
7806 _resultobj = Py_BuildValue("s",_ptemp);
7807 } else {
7808 Py_INCREF(Py_None);
7809 _resultobj = Py_None;
7810 }
7811 return _resultobj;
7812 }
7813
7814 #define wxDC_GetSizeTuple(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetSize(_swigarg0,_swigarg1))
7815 static PyObject *_wrap_wxDC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
7816 PyObject * _resultobj;
7817 wxDC * _arg0;
7818 int * _arg1;
7819 int temp;
7820 int * _arg2;
7821 int temp0;
7822 PyObject * _argo0 = 0;
7823 char *_kwnames[] = { "self", NULL };
7824
7825 self = self;
7826 {
7827 _arg1 = &temp;
7828 }
7829 {
7830 _arg2 = &temp0;
7831 }
7832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeTuple",_kwnames,&_argo0))
7833 return NULL;
7834 if (_argo0) {
7835 if (_argo0 == Py_None) { _arg0 = NULL; }
7836 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7837 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeTuple. Expected _wxDC_p.");
7838 return NULL;
7839 }
7840 }
7841 {
7842 wxPy_BEGIN_ALLOW_THREADS;
7843 wxDC_GetSizeTuple(_arg0,_arg1,_arg2);
7844
7845 wxPy_END_ALLOW_THREADS;
7846 if (PyErr_Occurred()) return NULL;
7847 } Py_INCREF(Py_None);
7848 _resultobj = Py_None;
7849 {
7850 PyObject *o;
7851 o = PyInt_FromLong((long) (*_arg1));
7852 _resultobj = t_output_helper(_resultobj, o);
7853 }
7854 {
7855 PyObject *o;
7856 o = PyInt_FromLong((long) (*_arg2));
7857 _resultobj = t_output_helper(_resultobj, o);
7858 }
7859 return _resultobj;
7860 }
7861
7862 #define wxDC_GetSize(_swigobj) (_swigobj->GetSize())
7863 static PyObject *_wrap_wxDC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7864 PyObject * _resultobj;
7865 wxSize * _result;
7866 wxDC * _arg0;
7867 PyObject * _argo0 = 0;
7868 char *_kwnames[] = { "self", NULL };
7869 char _ptemp[128];
7870
7871 self = self;
7872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSize",_kwnames,&_argo0))
7873 return NULL;
7874 if (_argo0) {
7875 if (_argo0 == Py_None) { _arg0 = NULL; }
7876 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7877 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSize. Expected _wxDC_p.");
7878 return NULL;
7879 }
7880 }
7881 {
7882 wxPy_BEGIN_ALLOW_THREADS;
7883 _result = new wxSize (wxDC_GetSize(_arg0));
7884
7885 wxPy_END_ALLOW_THREADS;
7886 if (PyErr_Occurred()) return NULL;
7887 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7888 _resultobj = Py_BuildValue("s",_ptemp);
7889 return _resultobj;
7890 }
7891
7892 #define wxDC_GetSizeMM(_swigobj) (_swigobj->GetSizeMM())
7893 static PyObject *_wrap_wxDC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
7894 PyObject * _resultobj;
7895 wxSize * _result;
7896 wxDC * _arg0;
7897 PyObject * _argo0 = 0;
7898 char *_kwnames[] = { "self", NULL };
7899 char _ptemp[128];
7900
7901 self = self;
7902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetSizeMM",_kwnames,&_argo0))
7903 return NULL;
7904 if (_argo0) {
7905 if (_argo0 == Py_None) { _arg0 = NULL; }
7906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetSizeMM. Expected _wxDC_p.");
7908 return NULL;
7909 }
7910 }
7911 {
7912 wxPy_BEGIN_ALLOW_THREADS;
7913 _result = new wxSize (wxDC_GetSizeMM(_arg0));
7914
7915 wxPy_END_ALLOW_THREADS;
7916 if (PyErr_Occurred()) return NULL;
7917 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
7918 _resultobj = Py_BuildValue("s",_ptemp);
7919 return _resultobj;
7920 }
7921
7922 #define wxDC_GetTextBackground(_swigobj) (_swigobj->GetTextBackground())
7923 static PyObject *_wrap_wxDC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
7924 PyObject * _resultobj;
7925 wxColour * _result;
7926 wxDC * _arg0;
7927 PyObject * _argo0 = 0;
7928 char *_kwnames[] = { "self", NULL };
7929 char _ptemp[128];
7930
7931 self = self;
7932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextBackground",_kwnames,&_argo0))
7933 return NULL;
7934 if (_argo0) {
7935 if (_argo0 == Py_None) { _arg0 = NULL; }
7936 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7937 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextBackground. Expected _wxDC_p.");
7938 return NULL;
7939 }
7940 }
7941 {
7942 wxPy_BEGIN_ALLOW_THREADS;
7943 _result = new wxColour (wxDC_GetTextBackground(_arg0));
7944
7945 wxPy_END_ALLOW_THREADS;
7946 if (PyErr_Occurred()) return NULL;
7947 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
7948 _resultobj = Py_BuildValue("s",_ptemp);
7949 return _resultobj;
7950 }
7951
7952 #define wxDC_GetTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2))
7953 static PyObject *_wrap_wxDC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
7954 PyObject * _resultobj;
7955 wxDC * _arg0;
7956 wxString * _arg1;
7957 long * _arg2;
7958 long temp;
7959 long * _arg3;
7960 long temp0;
7961 PyObject * _argo0 = 0;
7962 PyObject * _obj1 = 0;
7963 char *_kwnames[] = { "self","string", NULL };
7964
7965 self = self;
7966 {
7967 _arg2 = &temp;
7968 }
7969 {
7970 _arg3 = &temp0;
7971 }
7972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_GetTextExtent",_kwnames,&_argo0,&_obj1))
7973 return NULL;
7974 if (_argo0) {
7975 if (_argo0 == Py_None) { _arg0 = NULL; }
7976 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
7977 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextExtent. Expected _wxDC_p.");
7978 return NULL;
7979 }
7980 }
7981 {
7982 #if PYTHON_API_VERSION >= 1009
7983 char* tmpPtr; int tmpSize;
7984 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
7985 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7986 return NULL;
7987 }
7988 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
7989 return NULL;
7990 _arg1 = new wxString(tmpPtr, tmpSize);
7991 #else
7992 if (!PyString_Check(_obj1)) {
7993 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
7994 return NULL;
7995 }
7996 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
7997 #endif
7998 }
7999 {
8000 wxPy_BEGIN_ALLOW_THREADS;
8001 wxDC_GetTextExtent(_arg0,*_arg1,_arg2,_arg3);
8002
8003 wxPy_END_ALLOW_THREADS;
8004 if (PyErr_Occurred()) return NULL;
8005 } Py_INCREF(Py_None);
8006 _resultobj = Py_None;
8007 {
8008 PyObject *o;
8009 o = PyInt_FromLong((long) (*_arg2));
8010 _resultobj = t_output_helper(_resultobj, o);
8011 }
8012 {
8013 PyObject *o;
8014 o = PyInt_FromLong((long) (*_arg3));
8015 _resultobj = t_output_helper(_resultobj, o);
8016 }
8017 {
8018 if (_obj1)
8019 delete _arg1;
8020 }
8021 return _resultobj;
8022 }
8023
8024 #define wxDC_GetFullTextExtent(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->GetTextExtent(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
8025 static PyObject *_wrap_wxDC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
8026 PyObject * _resultobj;
8027 wxDC * _arg0;
8028 wxString * _arg1;
8029 long * _arg2;
8030 long temp;
8031 long * _arg3;
8032 long temp0;
8033 long * _arg4;
8034 long temp1;
8035 long * _arg5;
8036 long temp2;
8037 wxFont * _arg6 = (wxFont *) NULL;
8038 PyObject * _argo0 = 0;
8039 PyObject * _obj1 = 0;
8040 PyObject * _argo6 = 0;
8041 char *_kwnames[] = { "self","string","font", NULL };
8042
8043 self = self;
8044 {
8045 _arg2 = &temp;
8046 }
8047 {
8048 _arg3 = &temp0;
8049 }
8050 {
8051 _arg4 = &temp1;
8052 }
8053 {
8054 _arg5 = &temp2;
8055 }
8056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxDC_GetFullTextExtent",_kwnames,&_argo0,&_obj1,&_argo6))
8057 return NULL;
8058 if (_argo0) {
8059 if (_argo0 == Py_None) { _arg0 = NULL; }
8060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetFullTextExtent. Expected _wxDC_p.");
8062 return NULL;
8063 }
8064 }
8065 {
8066 #if PYTHON_API_VERSION >= 1009
8067 char* tmpPtr; int tmpSize;
8068 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
8069 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8070 return NULL;
8071 }
8072 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
8073 return NULL;
8074 _arg1 = new wxString(tmpPtr, tmpSize);
8075 #else
8076 if (!PyString_Check(_obj1)) {
8077 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
8078 return NULL;
8079 }
8080 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
8081 #endif
8082 }
8083 if (_argo6) {
8084 if (_argo6 == Py_None) { _arg6 = NULL; }
8085 else if (SWIG_GetPtrObj(_argo6,(void **) &_arg6,"_wxFont_p")) {
8086 PyErr_SetString(PyExc_TypeError,"Type error in argument 7 of wxDC_GetFullTextExtent. Expected _wxFont_p.");
8087 return NULL;
8088 }
8089 }
8090 {
8091 wxPy_BEGIN_ALLOW_THREADS;
8092 wxDC_GetFullTextExtent(_arg0,*_arg1,_arg2,_arg3,_arg4,_arg5,_arg6);
8093
8094 wxPy_END_ALLOW_THREADS;
8095 if (PyErr_Occurred()) return NULL;
8096 } Py_INCREF(Py_None);
8097 _resultobj = Py_None;
8098 {
8099 PyObject *o;
8100 o = PyInt_FromLong((long) (*_arg2));
8101 _resultobj = t_output_helper(_resultobj, o);
8102 }
8103 {
8104 PyObject *o;
8105 o = PyInt_FromLong((long) (*_arg3));
8106 _resultobj = t_output_helper(_resultobj, o);
8107 }
8108 {
8109 PyObject *o;
8110 o = PyInt_FromLong((long) (*_arg4));
8111 _resultobj = t_output_helper(_resultobj, o);
8112 }
8113 {
8114 PyObject *o;
8115 o = PyInt_FromLong((long) (*_arg5));
8116 _resultobj = t_output_helper(_resultobj, o);
8117 }
8118 {
8119 if (_obj1)
8120 delete _arg1;
8121 }
8122 return _resultobj;
8123 }
8124
8125 #define wxDC_GetTextForeground(_swigobj) (_swigobj->GetTextForeground())
8126 static PyObject *_wrap_wxDC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8127 PyObject * _resultobj;
8128 wxColour * _result;
8129 wxDC * _arg0;
8130 PyObject * _argo0 = 0;
8131 char *_kwnames[] = { "self", NULL };
8132 char _ptemp[128];
8133
8134 self = self;
8135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetTextForeground",_kwnames,&_argo0))
8136 return NULL;
8137 if (_argo0) {
8138 if (_argo0 == Py_None) { _arg0 = NULL; }
8139 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8140 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetTextForeground. Expected _wxDC_p.");
8141 return NULL;
8142 }
8143 }
8144 {
8145 wxPy_BEGIN_ALLOW_THREADS;
8146 _result = new wxColour (wxDC_GetTextForeground(_arg0));
8147
8148 wxPy_END_ALLOW_THREADS;
8149 if (PyErr_Occurred()) return NULL;
8150 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
8151 _resultobj = Py_BuildValue("s",_ptemp);
8152 return _resultobj;
8153 }
8154
8155 #define wxDC_GetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetUserScale(_swigarg0,_swigarg1))
8156 static PyObject *_wrap_wxDC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8157 PyObject * _resultobj;
8158 wxDC * _arg0;
8159 double * _arg1;
8160 double temp;
8161 double * _arg2;
8162 double temp0;
8163 PyObject * _argo0 = 0;
8164 char *_kwnames[] = { "self", NULL };
8165
8166 self = self;
8167 {
8168 _arg1 = &temp;
8169 }
8170 {
8171 _arg2 = &temp0;
8172 }
8173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetUserScale",_kwnames,&_argo0))
8174 return NULL;
8175 if (_argo0) {
8176 if (_argo0 == Py_None) { _arg0 = NULL; }
8177 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8178 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetUserScale. Expected _wxDC_p.");
8179 return NULL;
8180 }
8181 }
8182 {
8183 wxPy_BEGIN_ALLOW_THREADS;
8184 wxDC_GetUserScale(_arg0,_arg1,_arg2);
8185
8186 wxPy_END_ALLOW_THREADS;
8187 if (PyErr_Occurred()) return NULL;
8188 } Py_INCREF(Py_None);
8189 _resultobj = Py_None;
8190 {
8191 PyObject *o;
8192 o = PyFloat_FromDouble((double) (*_arg1));
8193 _resultobj = t_output_helper(_resultobj, o);
8194 }
8195 {
8196 PyObject *o;
8197 o = PyFloat_FromDouble((double) (*_arg2));
8198 _resultobj = t_output_helper(_resultobj, o);
8199 }
8200 return _resultobj;
8201 }
8202
8203 #define wxDC_LogicalToDeviceX(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceX(_swigarg0))
8204 static PyObject *_wrap_wxDC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
8205 PyObject * _resultobj;
8206 long _result;
8207 wxDC * _arg0;
8208 long _arg1;
8209 PyObject * _argo0 = 0;
8210 char *_kwnames[] = { "self","x", NULL };
8211
8212 self = self;
8213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceX",_kwnames,&_argo0,&_arg1))
8214 return NULL;
8215 if (_argo0) {
8216 if (_argo0 == Py_None) { _arg0 = NULL; }
8217 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8218 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceX. Expected _wxDC_p.");
8219 return NULL;
8220 }
8221 }
8222 {
8223 wxPy_BEGIN_ALLOW_THREADS;
8224 _result = (long )wxDC_LogicalToDeviceX(_arg0,_arg1);
8225
8226 wxPy_END_ALLOW_THREADS;
8227 if (PyErr_Occurred()) return NULL;
8228 } _resultobj = Py_BuildValue("l",_result);
8229 return _resultobj;
8230 }
8231
8232 #define wxDC_LogicalToDeviceXRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceXRel(_swigarg0))
8233 static PyObject *_wrap_wxDC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8234 PyObject * _resultobj;
8235 long _result;
8236 wxDC * _arg0;
8237 long _arg1;
8238 PyObject * _argo0 = 0;
8239 char *_kwnames[] = { "self","x", NULL };
8240
8241 self = self;
8242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceXRel",_kwnames,&_argo0,&_arg1))
8243 return NULL;
8244 if (_argo0) {
8245 if (_argo0 == Py_None) { _arg0 = NULL; }
8246 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8247 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceXRel. Expected _wxDC_p.");
8248 return NULL;
8249 }
8250 }
8251 {
8252 wxPy_BEGIN_ALLOW_THREADS;
8253 _result = (long )wxDC_LogicalToDeviceXRel(_arg0,_arg1);
8254
8255 wxPy_END_ALLOW_THREADS;
8256 if (PyErr_Occurred()) return NULL;
8257 } _resultobj = Py_BuildValue("l",_result);
8258 return _resultobj;
8259 }
8260
8261 #define wxDC_LogicalToDeviceY(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceY(_swigarg0))
8262 static PyObject *_wrap_wxDC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
8263 PyObject * _resultobj;
8264 long _result;
8265 wxDC * _arg0;
8266 long _arg1;
8267 PyObject * _argo0 = 0;
8268 char *_kwnames[] = { "self","y", NULL };
8269
8270 self = self;
8271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceY",_kwnames,&_argo0,&_arg1))
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_LogicalToDeviceY. Expected _wxDC_p.");
8277 return NULL;
8278 }
8279 }
8280 {
8281 wxPy_BEGIN_ALLOW_THREADS;
8282 _result = (long )wxDC_LogicalToDeviceY(_arg0,_arg1);
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_LogicalToDeviceYRel(_swigobj,_swigarg0) (_swigobj->LogicalToDeviceYRel(_swigarg0))
8291 static PyObject *_wrap_wxDC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
8292 PyObject * _resultobj;
8293 long _result;
8294 wxDC * _arg0;
8295 long _arg1;
8296 PyObject * _argo0 = 0;
8297 char *_kwnames[] = { "self","y", NULL };
8298
8299 self = self;
8300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ol:wxDC_LogicalToDeviceYRel",_kwnames,&_argo0,&_arg1))
8301 return NULL;
8302 if (_argo0) {
8303 if (_argo0 == Py_None) { _arg0 = NULL; }
8304 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8305 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_LogicalToDeviceYRel. Expected _wxDC_p.");
8306 return NULL;
8307 }
8308 }
8309 {
8310 wxPy_BEGIN_ALLOW_THREADS;
8311 _result = (long )wxDC_LogicalToDeviceYRel(_arg0,_arg1);
8312
8313 wxPy_END_ALLOW_THREADS;
8314 if (PyErr_Occurred()) return NULL;
8315 } _resultobj = Py_BuildValue("l",_result);
8316 return _resultobj;
8317 }
8318
8319 #define wxDC_MaxX(_swigobj) (_swigobj->MaxX())
8320 static PyObject *_wrap_wxDC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
8321 PyObject * _resultobj;
8322 long _result;
8323 wxDC * _arg0;
8324 PyObject * _argo0 = 0;
8325 char *_kwnames[] = { "self", NULL };
8326
8327 self = self;
8328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxX",_kwnames,&_argo0))
8329 return NULL;
8330 if (_argo0) {
8331 if (_argo0 == Py_None) { _arg0 = NULL; }
8332 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8333 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxX. Expected _wxDC_p.");
8334 return NULL;
8335 }
8336 }
8337 {
8338 wxPy_BEGIN_ALLOW_THREADS;
8339 _result = (long )wxDC_MaxX(_arg0);
8340
8341 wxPy_END_ALLOW_THREADS;
8342 if (PyErr_Occurred()) return NULL;
8343 } _resultobj = Py_BuildValue("l",_result);
8344 return _resultobj;
8345 }
8346
8347 #define wxDC_MaxY(_swigobj) (_swigobj->MaxY())
8348 static PyObject *_wrap_wxDC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
8349 PyObject * _resultobj;
8350 long _result;
8351 wxDC * _arg0;
8352 PyObject * _argo0 = 0;
8353 char *_kwnames[] = { "self", NULL };
8354
8355 self = self;
8356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MaxY",_kwnames,&_argo0))
8357 return NULL;
8358 if (_argo0) {
8359 if (_argo0 == Py_None) { _arg0 = NULL; }
8360 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8361 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MaxY. Expected _wxDC_p.");
8362 return NULL;
8363 }
8364 }
8365 {
8366 wxPy_BEGIN_ALLOW_THREADS;
8367 _result = (long )wxDC_MaxY(_arg0);
8368
8369 wxPy_END_ALLOW_THREADS;
8370 if (PyErr_Occurred()) return NULL;
8371 } _resultobj = Py_BuildValue("l",_result);
8372 return _resultobj;
8373 }
8374
8375 #define wxDC_MinX(_swigobj) (_swigobj->MinX())
8376 static PyObject *_wrap_wxDC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
8377 PyObject * _resultobj;
8378 long _result;
8379 wxDC * _arg0;
8380 PyObject * _argo0 = 0;
8381 char *_kwnames[] = { "self", NULL };
8382
8383 self = self;
8384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinX",_kwnames,&_argo0))
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_MinX. Expected _wxDC_p.");
8390 return NULL;
8391 }
8392 }
8393 {
8394 wxPy_BEGIN_ALLOW_THREADS;
8395 _result = (long )wxDC_MinX(_arg0);
8396
8397 wxPy_END_ALLOW_THREADS;
8398 if (PyErr_Occurred()) return NULL;
8399 } _resultobj = Py_BuildValue("l",_result);
8400 return _resultobj;
8401 }
8402
8403 #define wxDC_MinY(_swigobj) (_swigobj->MinY())
8404 static PyObject *_wrap_wxDC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
8405 PyObject * _resultobj;
8406 long _result;
8407 wxDC * _arg0;
8408 PyObject * _argo0 = 0;
8409 char *_kwnames[] = { "self", NULL };
8410
8411 self = self;
8412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_MinY",_kwnames,&_argo0))
8413 return NULL;
8414 if (_argo0) {
8415 if (_argo0 == Py_None) { _arg0 = NULL; }
8416 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8417 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_MinY. Expected _wxDC_p.");
8418 return NULL;
8419 }
8420 }
8421 {
8422 wxPy_BEGIN_ALLOW_THREADS;
8423 _result = (long )wxDC_MinY(_arg0);
8424
8425 wxPy_END_ALLOW_THREADS;
8426 if (PyErr_Occurred()) return NULL;
8427 } _resultobj = Py_BuildValue("l",_result);
8428 return _resultobj;
8429 }
8430
8431 #define wxDC_Ok(_swigobj) (_swigobj->Ok())
8432 static PyObject *_wrap_wxDC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8433 PyObject * _resultobj;
8434 bool _result;
8435 wxDC * _arg0;
8436 PyObject * _argo0 = 0;
8437 char *_kwnames[] = { "self", NULL };
8438
8439 self = self;
8440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_Ok",_kwnames,&_argo0))
8441 return NULL;
8442 if (_argo0) {
8443 if (_argo0 == Py_None) { _arg0 = NULL; }
8444 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8445 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_Ok. Expected _wxDC_p.");
8446 return NULL;
8447 }
8448 }
8449 {
8450 wxPy_BEGIN_ALLOW_THREADS;
8451 _result = (bool )wxDC_Ok(_arg0);
8452
8453 wxPy_END_ALLOW_THREADS;
8454 if (PyErr_Occurred()) return NULL;
8455 } _resultobj = Py_BuildValue("i",_result);
8456 return _resultobj;
8457 }
8458
8459 #define wxDC_SetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetDeviceOrigin(_swigarg0,_swigarg1))
8460 static PyObject *_wrap_wxDC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
8461 PyObject * _resultobj;
8462 wxDC * _arg0;
8463 long _arg1;
8464 long _arg2;
8465 PyObject * _argo0 = 0;
8466 char *_kwnames[] = { "self","x","y", NULL };
8467
8468 self = self;
8469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxDC_SetDeviceOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
8470 return NULL;
8471 if (_argo0) {
8472 if (_argo0 == Py_None) { _arg0 = NULL; }
8473 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8474 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetDeviceOrigin. Expected _wxDC_p.");
8475 return NULL;
8476 }
8477 }
8478 {
8479 wxPy_BEGIN_ALLOW_THREADS;
8480 wxDC_SetDeviceOrigin(_arg0,_arg1,_arg2);
8481
8482 wxPy_END_ALLOW_THREADS;
8483 if (PyErr_Occurred()) return NULL;
8484 } Py_INCREF(Py_None);
8485 _resultobj = Py_None;
8486 return _resultobj;
8487 }
8488
8489 #define wxDC_SetBackground(_swigobj,_swigarg0) (_swigobj->SetBackground(_swigarg0))
8490 static PyObject *_wrap_wxDC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8491 PyObject * _resultobj;
8492 wxDC * _arg0;
8493 wxBrush * _arg1;
8494 PyObject * _argo0 = 0;
8495 PyObject * _argo1 = 0;
8496 char *_kwnames[] = { "self","brush", NULL };
8497
8498 self = self;
8499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBackground",_kwnames,&_argo0,&_argo1))
8500 return NULL;
8501 if (_argo0) {
8502 if (_argo0 == Py_None) { _arg0 = NULL; }
8503 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8504 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackground. Expected _wxDC_p.");
8505 return NULL;
8506 }
8507 }
8508 if (_argo1) {
8509 if (_argo1 == Py_None) { _arg1 = NULL; }
8510 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8511 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBackground. Expected _wxBrush_p.");
8512 return NULL;
8513 }
8514 }
8515 {
8516 wxPy_BEGIN_ALLOW_THREADS;
8517 wxDC_SetBackground(_arg0,*_arg1);
8518
8519 wxPy_END_ALLOW_THREADS;
8520 if (PyErr_Occurred()) return NULL;
8521 } Py_INCREF(Py_None);
8522 _resultobj = Py_None;
8523 return _resultobj;
8524 }
8525
8526 #define wxDC_SetBackgroundMode(_swigobj,_swigarg0) (_swigobj->SetBackgroundMode(_swigarg0))
8527 static PyObject *_wrap_wxDC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8528 PyObject * _resultobj;
8529 wxDC * _arg0;
8530 int _arg1;
8531 PyObject * _argo0 = 0;
8532 char *_kwnames[] = { "self","mode", NULL };
8533
8534 self = self;
8535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetBackgroundMode",_kwnames,&_argo0,&_arg1))
8536 return NULL;
8537 if (_argo0) {
8538 if (_argo0 == Py_None) { _arg0 = NULL; }
8539 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8540 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBackgroundMode. Expected _wxDC_p.");
8541 return NULL;
8542 }
8543 }
8544 {
8545 wxPy_BEGIN_ALLOW_THREADS;
8546 wxDC_SetBackgroundMode(_arg0,_arg1);
8547
8548 wxPy_END_ALLOW_THREADS;
8549 if (PyErr_Occurred()) return NULL;
8550 } Py_INCREF(Py_None);
8551 _resultobj = Py_None;
8552 return _resultobj;
8553 }
8554
8555 #define wxDC_SetClippingRegion(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->SetClippingRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
8556 static PyObject *_wrap_wxDC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8557 PyObject * _resultobj;
8558 wxDC * _arg0;
8559 long _arg1;
8560 long _arg2;
8561 long _arg3;
8562 long _arg4;
8563 PyObject * _argo0 = 0;
8564 char *_kwnames[] = { "self","x","y","width","height", NULL };
8565
8566 self = self;
8567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxDC_SetClippingRegion",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
8568 return NULL;
8569 if (_argo0) {
8570 if (_argo0 == Py_None) { _arg0 = NULL; }
8571 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8572 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegion. Expected _wxDC_p.");
8573 return NULL;
8574 }
8575 }
8576 {
8577 wxPy_BEGIN_ALLOW_THREADS;
8578 wxDC_SetClippingRegion(_arg0,_arg1,_arg2,_arg3,_arg4);
8579
8580 wxPy_END_ALLOW_THREADS;
8581 if (PyErr_Occurred()) return NULL;
8582 } Py_INCREF(Py_None);
8583 _resultobj = Py_None;
8584 return _resultobj;
8585 }
8586
8587 #define wxDC_SetClippingRegionAsRegion(_swigobj,_swigarg0) (_swigobj->SetClippingRegion(_swigarg0))
8588 static PyObject *_wrap_wxDC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
8589 PyObject * _resultobj;
8590 wxDC * _arg0;
8591 wxRegion * _arg1;
8592 PyObject * _argo0 = 0;
8593 PyObject * _argo1 = 0;
8594 char *_kwnames[] = { "self","region", NULL };
8595
8596 self = self;
8597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetClippingRegionAsRegion",_kwnames,&_argo0,&_argo1))
8598 return NULL;
8599 if (_argo0) {
8600 if (_argo0 == Py_None) { _arg0 = NULL; }
8601 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8602 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetClippingRegionAsRegion. Expected _wxDC_p.");
8603 return NULL;
8604 }
8605 }
8606 if (_argo1) {
8607 if (_argo1 == Py_None) { _arg1 = NULL; }
8608 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
8609 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetClippingRegionAsRegion. Expected _wxRegion_p.");
8610 return NULL;
8611 }
8612 }
8613 {
8614 wxPy_BEGIN_ALLOW_THREADS;
8615 wxDC_SetClippingRegionAsRegion(_arg0,*_arg1);
8616
8617 wxPy_END_ALLOW_THREADS;
8618 if (PyErr_Occurred()) return NULL;
8619 } Py_INCREF(Py_None);
8620 _resultobj = Py_None;
8621 return _resultobj;
8622 }
8623
8624 #define wxDC_SetPalette(_swigobj,_swigarg0) (_swigobj->SetPalette(_swigarg0))
8625 static PyObject *_wrap_wxDC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
8626 PyObject * _resultobj;
8627 wxDC * _arg0;
8628 wxPalette * _arg1;
8629 PyObject * _argo0 = 0;
8630 PyObject * _argo1 = 0;
8631 char *_kwnames[] = { "self","colourMap", NULL };
8632
8633 self = self;
8634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPalette",_kwnames,&_argo0,&_argo1))
8635 return NULL;
8636 if (_argo0) {
8637 if (_argo0 == Py_None) { _arg0 = NULL; }
8638 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8639 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPalette. Expected _wxDC_p.");
8640 return NULL;
8641 }
8642 }
8643 if (_argo1) {
8644 if (_argo1 == Py_None) { _arg1 = NULL; }
8645 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPalette_p")) {
8646 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPalette. Expected _wxPalette_p.");
8647 return NULL;
8648 }
8649 }
8650 {
8651 wxPy_BEGIN_ALLOW_THREADS;
8652 wxDC_SetPalette(_arg0,*_arg1);
8653
8654 wxPy_END_ALLOW_THREADS;
8655 if (PyErr_Occurred()) return NULL;
8656 } Py_INCREF(Py_None);
8657 _resultobj = Py_None;
8658 return _resultobj;
8659 }
8660
8661 #define wxDC_SetBrush(_swigobj,_swigarg0) (_swigobj->SetBrush(_swigarg0))
8662 static PyObject *_wrap_wxDC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
8663 PyObject * _resultobj;
8664 wxDC * _arg0;
8665 wxBrush * _arg1;
8666 PyObject * _argo0 = 0;
8667 PyObject * _argo1 = 0;
8668 char *_kwnames[] = { "self","brush", NULL };
8669
8670 self = self;
8671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetBrush",_kwnames,&_argo0,&_argo1))
8672 return NULL;
8673 if (_argo0) {
8674 if (_argo0 == Py_None) { _arg0 = NULL; }
8675 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8676 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetBrush. Expected _wxDC_p.");
8677 return NULL;
8678 }
8679 }
8680 if (_argo1) {
8681 if (_argo1 == Py_None) { _arg1 = NULL; }
8682 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBrush_p")) {
8683 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetBrush. Expected _wxBrush_p.");
8684 return NULL;
8685 }
8686 }
8687 {
8688 wxPy_BEGIN_ALLOW_THREADS;
8689 wxDC_SetBrush(_arg0,*_arg1);
8690
8691 wxPy_END_ALLOW_THREADS;
8692 if (PyErr_Occurred()) return NULL;
8693 } Py_INCREF(Py_None);
8694 _resultobj = Py_None;
8695 return _resultobj;
8696 }
8697
8698 #define wxDC_SetFont(_swigobj,_swigarg0) (_swigobj->SetFont(_swigarg0))
8699 static PyObject *_wrap_wxDC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
8700 PyObject * _resultobj;
8701 wxDC * _arg0;
8702 wxFont * _arg1;
8703 PyObject * _argo0 = 0;
8704 PyObject * _argo1 = 0;
8705 char *_kwnames[] = { "self","font", NULL };
8706
8707 self = self;
8708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetFont",_kwnames,&_argo0,&_argo1))
8709 return NULL;
8710 if (_argo0) {
8711 if (_argo0 == Py_None) { _arg0 = NULL; }
8712 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8713 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetFont. Expected _wxDC_p.");
8714 return NULL;
8715 }
8716 }
8717 if (_argo1) {
8718 if (_argo1 == Py_None) { _arg1 = NULL; }
8719 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxFont_p")) {
8720 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetFont. Expected _wxFont_p.");
8721 return NULL;
8722 }
8723 }
8724 {
8725 wxPy_BEGIN_ALLOW_THREADS;
8726 wxDC_SetFont(_arg0,*_arg1);
8727
8728 wxPy_END_ALLOW_THREADS;
8729 if (PyErr_Occurred()) return NULL;
8730 } Py_INCREF(Py_None);
8731 _resultobj = Py_None;
8732 return _resultobj;
8733 }
8734
8735 #define wxDC_SetLogicalFunction(_swigobj,_swigarg0) (_swigobj->SetLogicalFunction(_swigarg0))
8736 static PyObject *_wrap_wxDC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject * _resultobj;
8738 wxDC * _arg0;
8739 int _arg1;
8740 PyObject * _argo0 = 0;
8741 char *_kwnames[] = { "self","function", NULL };
8742
8743 self = self;
8744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetLogicalFunction",_kwnames,&_argo0,&_arg1))
8745 return NULL;
8746 if (_argo0) {
8747 if (_argo0 == Py_None) { _arg0 = NULL; }
8748 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8749 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalFunction. Expected _wxDC_p.");
8750 return NULL;
8751 }
8752 }
8753 {
8754 wxPy_BEGIN_ALLOW_THREADS;
8755 wxDC_SetLogicalFunction(_arg0,_arg1);
8756
8757 wxPy_END_ALLOW_THREADS;
8758 if (PyErr_Occurred()) return NULL;
8759 } Py_INCREF(Py_None);
8760 _resultobj = Py_None;
8761 return _resultobj;
8762 }
8763
8764 #define wxDC_SetLogicalScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalScale(_swigarg0,_swigarg1))
8765 static PyObject *_wrap_wxDC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject * _resultobj;
8767 wxDC * _arg0;
8768 double _arg1;
8769 double _arg2;
8770 PyObject * _argo0 = 0;
8771 char *_kwnames[] = { "self","x","y", NULL };
8772
8773 self = self;
8774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetLogicalScale",_kwnames,&_argo0,&_arg1,&_arg2))
8775 return NULL;
8776 if (_argo0) {
8777 if (_argo0 == Py_None) { _arg0 = NULL; }
8778 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8779 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalScale. Expected _wxDC_p.");
8780 return NULL;
8781 }
8782 }
8783 {
8784 wxPy_BEGIN_ALLOW_THREADS;
8785 wxDC_SetLogicalScale(_arg0,_arg1,_arg2);
8786
8787 wxPy_END_ALLOW_THREADS;
8788 if (PyErr_Occurred()) return NULL;
8789 } Py_INCREF(Py_None);
8790 _resultobj = Py_None;
8791 return _resultobj;
8792 }
8793
8794 #define wxDC_SetMapMode(_swigobj,_swigarg0) (_swigobj->SetMapMode(_swigarg0))
8795 static PyObject *_wrap_wxDC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
8796 PyObject * _resultobj;
8797 wxDC * _arg0;
8798 int _arg1;
8799 PyObject * _argo0 = 0;
8800 char *_kwnames[] = { "self","mode", NULL };
8801
8802 self = self;
8803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetMapMode",_kwnames,&_argo0,&_arg1))
8804 return NULL;
8805 if (_argo0) {
8806 if (_argo0 == Py_None) { _arg0 = NULL; }
8807 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8808 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetMapMode. Expected _wxDC_p.");
8809 return NULL;
8810 }
8811 }
8812 {
8813 wxPy_BEGIN_ALLOW_THREADS;
8814 wxDC_SetMapMode(_arg0,_arg1);
8815
8816 wxPy_END_ALLOW_THREADS;
8817 if (PyErr_Occurred()) return NULL;
8818 } Py_INCREF(Py_None);
8819 _resultobj = Py_None;
8820 return _resultobj;
8821 }
8822
8823 #define wxDC_SetOptimization(_swigobj,_swigarg0) (_swigobj->SetOptimization(_swigarg0))
8824 static PyObject *_wrap_wxDC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
8825 PyObject * _resultobj;
8826 wxDC * _arg0;
8827 bool _arg1;
8828 PyObject * _argo0 = 0;
8829 int tempbool1;
8830 char *_kwnames[] = { "self","optimize", NULL };
8831
8832 self = self;
8833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxDC_SetOptimization",_kwnames,&_argo0,&tempbool1))
8834 return NULL;
8835 if (_argo0) {
8836 if (_argo0 == Py_None) { _arg0 = NULL; }
8837 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8838 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetOptimization. Expected _wxDC_p.");
8839 return NULL;
8840 }
8841 }
8842 _arg1 = (bool ) tempbool1;
8843 {
8844 wxPy_BEGIN_ALLOW_THREADS;
8845 wxDC_SetOptimization(_arg0,_arg1);
8846
8847 wxPy_END_ALLOW_THREADS;
8848 if (PyErr_Occurred()) return NULL;
8849 } Py_INCREF(Py_None);
8850 _resultobj = Py_None;
8851 return _resultobj;
8852 }
8853
8854 #define wxDC_SetPen(_swigobj,_swigarg0) (_swigobj->SetPen(_swigarg0))
8855 static PyObject *_wrap_wxDC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
8856 PyObject * _resultobj;
8857 wxDC * _arg0;
8858 wxPen * _arg1;
8859 PyObject * _argo0 = 0;
8860 PyObject * _argo1 = 0;
8861 char *_kwnames[] = { "self","pen", NULL };
8862
8863 self = self;
8864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetPen",_kwnames,&_argo0,&_argo1))
8865 return NULL;
8866 if (_argo0) {
8867 if (_argo0 == Py_None) { _arg0 = NULL; }
8868 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8869 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetPen. Expected _wxDC_p.");
8870 return NULL;
8871 }
8872 }
8873 if (_argo1) {
8874 if (_argo1 == Py_None) { _arg1 = NULL; }
8875 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxPen_p")) {
8876 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_SetPen. Expected _wxPen_p.");
8877 return NULL;
8878 }
8879 }
8880 {
8881 wxPy_BEGIN_ALLOW_THREADS;
8882 wxDC_SetPen(_arg0,*_arg1);
8883
8884 wxPy_END_ALLOW_THREADS;
8885 if (PyErr_Occurred()) return NULL;
8886 } Py_INCREF(Py_None);
8887 _resultobj = Py_None;
8888 return _resultobj;
8889 }
8890
8891 #define wxDC_SetTextBackground(_swigobj,_swigarg0) (_swigobj->SetTextBackground(_swigarg0))
8892 static PyObject *_wrap_wxDC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
8893 PyObject * _resultobj;
8894 wxDC * _arg0;
8895 wxColour * _arg1;
8896 PyObject * _argo0 = 0;
8897 wxColour temp;
8898 PyObject * _obj1 = 0;
8899 char *_kwnames[] = { "self","colour", NULL };
8900
8901 self = self;
8902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextBackground",_kwnames,&_argo0,&_obj1))
8903 return NULL;
8904 if (_argo0) {
8905 if (_argo0 == Py_None) { _arg0 = NULL; }
8906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextBackground. Expected _wxDC_p.");
8908 return NULL;
8909 }
8910 }
8911 {
8912 _arg1 = &temp;
8913 if (! wxColour_helper(_obj1, &_arg1))
8914 return NULL;
8915 }
8916 {
8917 wxPy_BEGIN_ALLOW_THREADS;
8918 wxDC_SetTextBackground(_arg0,*_arg1);
8919
8920 wxPy_END_ALLOW_THREADS;
8921 if (PyErr_Occurred()) return NULL;
8922 } Py_INCREF(Py_None);
8923 _resultobj = Py_None;
8924 return _resultobj;
8925 }
8926
8927 #define wxDC_SetTextForeground(_swigobj,_swigarg0) (_swigobj->SetTextForeground(_swigarg0))
8928 static PyObject *_wrap_wxDC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
8929 PyObject * _resultobj;
8930 wxDC * _arg0;
8931 wxColour * _arg1;
8932 PyObject * _argo0 = 0;
8933 wxColour temp;
8934 PyObject * _obj1 = 0;
8935 char *_kwnames[] = { "self","colour", NULL };
8936
8937 self = self;
8938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_SetTextForeground",_kwnames,&_argo0,&_obj1))
8939 return NULL;
8940 if (_argo0) {
8941 if (_argo0 == Py_None) { _arg0 = NULL; }
8942 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8943 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetTextForeground. Expected _wxDC_p.");
8944 return NULL;
8945 }
8946 }
8947 {
8948 _arg1 = &temp;
8949 if (! wxColour_helper(_obj1, &_arg1))
8950 return NULL;
8951 }
8952 {
8953 wxPy_BEGIN_ALLOW_THREADS;
8954 wxDC_SetTextForeground(_arg0,*_arg1);
8955
8956 wxPy_END_ALLOW_THREADS;
8957 if (PyErr_Occurred()) return NULL;
8958 } Py_INCREF(Py_None);
8959 _resultobj = Py_None;
8960 return _resultobj;
8961 }
8962
8963 #define wxDC_SetUserScale(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetUserScale(_swigarg0,_swigarg1))
8964 static PyObject *_wrap_wxDC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
8965 PyObject * _resultobj;
8966 wxDC * _arg0;
8967 double _arg1;
8968 double _arg2;
8969 PyObject * _argo0 = 0;
8970 char *_kwnames[] = { "self","x_scale","y_scale", NULL };
8971
8972 self = self;
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Odd:wxDC_SetUserScale",_kwnames,&_argo0,&_arg1,&_arg2))
8974 return NULL;
8975 if (_argo0) {
8976 if (_argo0 == Py_None) { _arg0 = NULL; }
8977 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
8978 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetUserScale. Expected _wxDC_p.");
8979 return NULL;
8980 }
8981 }
8982 {
8983 wxPy_BEGIN_ALLOW_THREADS;
8984 wxDC_SetUserScale(_arg0,_arg1,_arg2);
8985
8986 wxPy_END_ALLOW_THREADS;
8987 if (PyErr_Occurred()) return NULL;
8988 } Py_INCREF(Py_None);
8989 _resultobj = Py_None;
8990 return _resultobj;
8991 }
8992
8993 #define wxDC_StartDoc(_swigobj,_swigarg0) (_swigobj->StartDoc(_swigarg0))
8994 static PyObject *_wrap_wxDC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
8995 PyObject * _resultobj;
8996 bool _result;
8997 wxDC * _arg0;
8998 wxString * _arg1;
8999 PyObject * _argo0 = 0;
9000 PyObject * _obj1 = 0;
9001 char *_kwnames[] = { "self","message", NULL };
9002
9003 self = self;
9004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxDC_StartDoc",_kwnames,&_argo0,&_obj1))
9005 return NULL;
9006 if (_argo0) {
9007 if (_argo0 == Py_None) { _arg0 = NULL; }
9008 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9009 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartDoc. Expected _wxDC_p.");
9010 return NULL;
9011 }
9012 }
9013 {
9014 #if PYTHON_API_VERSION >= 1009
9015 char* tmpPtr; int tmpSize;
9016 if (!PyString_Check(_obj1) && !PyUnicode_Check(_obj1)) {
9017 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9018 return NULL;
9019 }
9020 if (PyString_AsStringAndSize(_obj1, &tmpPtr, &tmpSize) == -1)
9021 return NULL;
9022 _arg1 = new wxString(tmpPtr, tmpSize);
9023 #else
9024 if (!PyString_Check(_obj1)) {
9025 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
9026 return NULL;
9027 }
9028 _arg1 = new wxString(PyString_AS_STRING(_obj1), PyString_GET_SIZE(_obj1));
9029 #endif
9030 }
9031 {
9032 wxPy_BEGIN_ALLOW_THREADS;
9033 _result = (bool )wxDC_StartDoc(_arg0,*_arg1);
9034
9035 wxPy_END_ALLOW_THREADS;
9036 if (PyErr_Occurred()) return NULL;
9037 } _resultobj = Py_BuildValue("i",_result);
9038 {
9039 if (_obj1)
9040 delete _arg1;
9041 }
9042 return _resultobj;
9043 }
9044
9045 #define wxDC_StartPage(_swigobj) (_swigobj->StartPage())
9046 static PyObject *_wrap_wxDC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
9047 PyObject * _resultobj;
9048 wxDC * _arg0;
9049 PyObject * _argo0 = 0;
9050 char *_kwnames[] = { "self", NULL };
9051
9052 self = self;
9053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_StartPage",_kwnames,&_argo0))
9054 return NULL;
9055 if (_argo0) {
9056 if (_argo0 == Py_None) { _arg0 = NULL; }
9057 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9058 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_StartPage. Expected _wxDC_p.");
9059 return NULL;
9060 }
9061 }
9062 {
9063 wxPy_BEGIN_ALLOW_THREADS;
9064 wxDC_StartPage(_arg0);
9065
9066 wxPy_END_ALLOW_THREADS;
9067 if (PyErr_Occurred()) return NULL;
9068 } Py_INCREF(Py_None);
9069 _resultobj = Py_None;
9070 return _resultobj;
9071 }
9072
9073 #define wxDC_DrawBitmap(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->DrawBitmap(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
9074 static PyObject *_wrap_wxDC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9075 PyObject * _resultobj;
9076 wxDC * _arg0;
9077 wxBitmap * _arg1;
9078 long _arg2;
9079 long _arg3;
9080 int _arg4 = (int ) FALSE;
9081 PyObject * _argo0 = 0;
9082 PyObject * _argo1 = 0;
9083 char *_kwnames[] = { "self","bitmap","x","y","useMask", NULL };
9084
9085 self = self;
9086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOll|i:wxDC_DrawBitmap",_kwnames,&_argo0,&_argo1,&_arg2,&_arg3,&_arg4))
9087 return NULL;
9088 if (_argo0) {
9089 if (_argo0 == Py_None) { _arg0 = NULL; }
9090 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9091 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_DrawBitmap. Expected _wxDC_p.");
9092 return NULL;
9093 }
9094 }
9095 if (_argo1) {
9096 if (_argo1 == Py_None) { _arg1 = NULL; }
9097 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9098 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxDC_DrawBitmap. Expected _wxBitmap_p.");
9099 return NULL;
9100 }
9101 }
9102 {
9103 wxPy_BEGIN_ALLOW_THREADS;
9104 wxDC_DrawBitmap(_arg0,*_arg1,_arg2,_arg3,_arg4);
9105
9106 wxPy_END_ALLOW_THREADS;
9107 if (PyErr_Occurred()) return NULL;
9108 } Py_INCREF(Py_None);
9109 _resultobj = Py_None;
9110 return _resultobj;
9111 }
9112
9113 #define wxDC_CanDrawBitmap(_swigobj) (_swigobj->CanDrawBitmap())
9114 static PyObject *_wrap_wxDC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
9115 PyObject * _resultobj;
9116 bool _result;
9117 wxDC * _arg0;
9118 PyObject * _argo0 = 0;
9119 char *_kwnames[] = { "self", NULL };
9120
9121 self = self;
9122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanDrawBitmap",_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_CanDrawBitmap. Expected _wxDC_p.");
9128 return NULL;
9129 }
9130 }
9131 {
9132 wxPy_BEGIN_ALLOW_THREADS;
9133 _result = (bool )wxDC_CanDrawBitmap(_arg0);
9134
9135 wxPy_END_ALLOW_THREADS;
9136 if (PyErr_Occurred()) return NULL;
9137 } _resultobj = Py_BuildValue("i",_result);
9138 return _resultobj;
9139 }
9140
9141 #define wxDC_CanGetTextExtent(_swigobj) (_swigobj->CanGetTextExtent())
9142 static PyObject *_wrap_wxDC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
9143 PyObject * _resultobj;
9144 bool _result;
9145 wxDC * _arg0;
9146 PyObject * _argo0 = 0;
9147 char *_kwnames[] = { "self", NULL };
9148
9149 self = self;
9150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_CanGetTextExtent",_kwnames,&_argo0))
9151 return NULL;
9152 if (_argo0) {
9153 if (_argo0 == Py_None) { _arg0 = NULL; }
9154 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9155 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CanGetTextExtent. Expected _wxDC_p.");
9156 return NULL;
9157 }
9158 }
9159 {
9160 wxPy_BEGIN_ALLOW_THREADS;
9161 _result = (bool )wxDC_CanGetTextExtent(_arg0);
9162
9163 wxPy_END_ALLOW_THREADS;
9164 if (PyErr_Occurred()) return NULL;
9165 } _resultobj = Py_BuildValue("i",_result);
9166 return _resultobj;
9167 }
9168
9169 #define wxDC_GetDepth(_swigobj) (_swigobj->GetDepth())
9170 static PyObject *_wrap_wxDC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
9171 PyObject * _resultobj;
9172 int _result;
9173 wxDC * _arg0;
9174 PyObject * _argo0 = 0;
9175 char *_kwnames[] = { "self", NULL };
9176
9177 self = self;
9178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDepth",_kwnames,&_argo0))
9179 return NULL;
9180 if (_argo0) {
9181 if (_argo0 == Py_None) { _arg0 = NULL; }
9182 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9183 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDepth. Expected _wxDC_p.");
9184 return NULL;
9185 }
9186 }
9187 {
9188 wxPy_BEGIN_ALLOW_THREADS;
9189 _result = (int )wxDC_GetDepth(_arg0);
9190
9191 wxPy_END_ALLOW_THREADS;
9192 if (PyErr_Occurred()) return NULL;
9193 } _resultobj = Py_BuildValue("i",_result);
9194 return _resultobj;
9195 }
9196
9197 #define wxDC_GetPPI(_swigobj) (_swigobj->GetPPI())
9198 static PyObject *_wrap_wxDC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
9199 PyObject * _resultobj;
9200 wxSize * _result;
9201 wxDC * _arg0;
9202 PyObject * _argo0 = 0;
9203 char *_kwnames[] = { "self", NULL };
9204 char _ptemp[128];
9205
9206 self = self;
9207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetPPI",_kwnames,&_argo0))
9208 return NULL;
9209 if (_argo0) {
9210 if (_argo0 == Py_None) { _arg0 = NULL; }
9211 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9212 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetPPI. Expected _wxDC_p.");
9213 return NULL;
9214 }
9215 }
9216 {
9217 wxPy_BEGIN_ALLOW_THREADS;
9218 _result = new wxSize (wxDC_GetPPI(_arg0));
9219
9220 wxPy_END_ALLOW_THREADS;
9221 if (PyErr_Occurred()) return NULL;
9222 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
9223 _resultobj = Py_BuildValue("s",_ptemp);
9224 return _resultobj;
9225 }
9226
9227 #define wxDC_GetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetLogicalOrigin(_swigarg0,_swigarg1))
9228 static PyObject *_wrap_wxDC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9229 PyObject * _resultobj;
9230 wxDC * _arg0;
9231 int * _arg1;
9232 int temp;
9233 int * _arg2;
9234 int temp0;
9235 PyObject * _argo0 = 0;
9236 char *_kwnames[] = { "self", NULL };
9237
9238 self = self;
9239 {
9240 _arg1 = &temp;
9241 }
9242 {
9243 _arg2 = &temp0;
9244 }
9245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetLogicalOrigin",_kwnames,&_argo0))
9246 return NULL;
9247 if (_argo0) {
9248 if (_argo0 == Py_None) { _arg0 = NULL; }
9249 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9250 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetLogicalOrigin. Expected _wxDC_p.");
9251 return NULL;
9252 }
9253 }
9254 {
9255 wxPy_BEGIN_ALLOW_THREADS;
9256 wxDC_GetLogicalOrigin(_arg0,_arg1,_arg2);
9257
9258 wxPy_END_ALLOW_THREADS;
9259 if (PyErr_Occurred()) return NULL;
9260 } Py_INCREF(Py_None);
9261 _resultobj = Py_None;
9262 {
9263 PyObject *o;
9264 o = PyInt_FromLong((long) (*_arg1));
9265 _resultobj = t_output_helper(_resultobj, o);
9266 }
9267 {
9268 PyObject *o;
9269 o = PyInt_FromLong((long) (*_arg2));
9270 _resultobj = t_output_helper(_resultobj, o);
9271 }
9272 return _resultobj;
9273 }
9274
9275 #define wxDC_SetLogicalOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetLogicalOrigin(_swigarg0,_swigarg1))
9276 static PyObject *_wrap_wxDC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9277 PyObject * _resultobj;
9278 wxDC * _arg0;
9279 int _arg1;
9280 int _arg2;
9281 PyObject * _argo0 = 0;
9282 char *_kwnames[] = { "self","x","y", NULL };
9283
9284 self = self;
9285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetLogicalOrigin",_kwnames,&_argo0,&_arg1,&_arg2))
9286 return NULL;
9287 if (_argo0) {
9288 if (_argo0 == Py_None) { _arg0 = NULL; }
9289 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9290 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetLogicalOrigin. Expected _wxDC_p.");
9291 return NULL;
9292 }
9293 }
9294 {
9295 wxPy_BEGIN_ALLOW_THREADS;
9296 wxDC_SetLogicalOrigin(_arg0,_arg1,_arg2);
9297
9298 wxPy_END_ALLOW_THREADS;
9299 if (PyErr_Occurred()) return NULL;
9300 } Py_INCREF(Py_None);
9301 _resultobj = Py_None;
9302 return _resultobj;
9303 }
9304
9305 #define wxDC_GetDeviceOrigin(_swigobj,_swigarg0,_swigarg1) (_swigobj->GetDeviceOrigin(_swigarg0,_swigarg1))
9306 static PyObject *_wrap_wxDC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
9307 PyObject * _resultobj;
9308 wxDC * _arg0;
9309 int * _arg1;
9310 int temp;
9311 int * _arg2;
9312 int temp0;
9313 PyObject * _argo0 = 0;
9314 char *_kwnames[] = { "self", NULL };
9315
9316 self = self;
9317 {
9318 _arg1 = &temp;
9319 }
9320 {
9321 _arg2 = &temp0;
9322 }
9323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetDeviceOrigin",_kwnames,&_argo0))
9324 return NULL;
9325 if (_argo0) {
9326 if (_argo0 == Py_None) { _arg0 = NULL; }
9327 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9328 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetDeviceOrigin. Expected _wxDC_p.");
9329 return NULL;
9330 }
9331 }
9332 {
9333 wxPy_BEGIN_ALLOW_THREADS;
9334 wxDC_GetDeviceOrigin(_arg0,_arg1,_arg2);
9335
9336 wxPy_END_ALLOW_THREADS;
9337 if (PyErr_Occurred()) return NULL;
9338 } Py_INCREF(Py_None);
9339 _resultobj = Py_None;
9340 {
9341 PyObject *o;
9342 o = PyInt_FromLong((long) (*_arg1));
9343 _resultobj = t_output_helper(_resultobj, o);
9344 }
9345 {
9346 PyObject *o;
9347 o = PyInt_FromLong((long) (*_arg2));
9348 _resultobj = t_output_helper(_resultobj, o);
9349 }
9350 return _resultobj;
9351 }
9352
9353 #define wxDC_SetAxisOrientation(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetAxisOrientation(_swigarg0,_swigarg1))
9354 static PyObject *_wrap_wxDC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
9355 PyObject * _resultobj;
9356 wxDC * _arg0;
9357 bool _arg1;
9358 bool _arg2;
9359 PyObject * _argo0 = 0;
9360 int tempbool1;
9361 int tempbool2;
9362 char *_kwnames[] = { "self","xLeftRight","yBottomUp", NULL };
9363
9364 self = self;
9365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_SetAxisOrientation",_kwnames,&_argo0,&tempbool1,&tempbool2))
9366 return NULL;
9367 if (_argo0) {
9368 if (_argo0 == Py_None) { _arg0 = NULL; }
9369 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9370 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_SetAxisOrientation. Expected _wxDC_p.");
9371 return NULL;
9372 }
9373 }
9374 _arg1 = (bool ) tempbool1;
9375 _arg2 = (bool ) tempbool2;
9376 {
9377 wxPy_BEGIN_ALLOW_THREADS;
9378 wxDC_SetAxisOrientation(_arg0,_arg1,_arg2);
9379
9380 wxPy_END_ALLOW_THREADS;
9381 if (PyErr_Occurred()) return NULL;
9382 } Py_INCREF(Py_None);
9383 _resultobj = Py_None;
9384 return _resultobj;
9385 }
9386
9387 #define wxDC_CalcBoundingBox(_swigobj,_swigarg0,_swigarg1) (_swigobj->CalcBoundingBox(_swigarg0,_swigarg1))
9388 static PyObject *_wrap_wxDC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9389 PyObject * _resultobj;
9390 wxDC * _arg0;
9391 int _arg1;
9392 int _arg2;
9393 PyObject * _argo0 = 0;
9394 char *_kwnames[] = { "self","x","y", NULL };
9395
9396 self = self;
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxDC_CalcBoundingBox",_kwnames,&_argo0,&_arg1,&_arg2))
9398 return NULL;
9399 if (_argo0) {
9400 if (_argo0 == Py_None) { _arg0 = NULL; }
9401 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9402 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_CalcBoundingBox. Expected _wxDC_p.");
9403 return NULL;
9404 }
9405 }
9406 {
9407 wxPy_BEGIN_ALLOW_THREADS;
9408 wxDC_CalcBoundingBox(_arg0,_arg1,_arg2);
9409
9410 wxPy_END_ALLOW_THREADS;
9411 if (PyErr_Occurred()) return NULL;
9412 } Py_INCREF(Py_None);
9413 _resultobj = Py_None;
9414 return _resultobj;
9415 }
9416
9417 #define wxDC_ResetBoundingBox(_swigobj) (_swigobj->ResetBoundingBox())
9418 static PyObject *_wrap_wxDC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9419 PyObject * _resultobj;
9420 wxDC * _arg0;
9421 PyObject * _argo0 = 0;
9422 char *_kwnames[] = { "self", NULL };
9423
9424 self = self;
9425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_ResetBoundingBox",_kwnames,&_argo0))
9426 return NULL;
9427 if (_argo0) {
9428 if (_argo0 == Py_None) { _arg0 = NULL; }
9429 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9430 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_ResetBoundingBox. Expected _wxDC_p.");
9431 return NULL;
9432 }
9433 }
9434 {
9435 wxPy_BEGIN_ALLOW_THREADS;
9436 wxDC_ResetBoundingBox(_arg0);
9437
9438 wxPy_END_ALLOW_THREADS;
9439 if (PyErr_Occurred()) return NULL;
9440 } Py_INCREF(Py_None);
9441 _resultobj = Py_None;
9442 return _resultobj;
9443 }
9444
9445 static PyObject *_wrap_wxDC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
9446 PyObject * _resultobj;
9447 wxDC * _arg0;
9448 int * _arg1;
9449 int temp;
9450 int * _arg2;
9451 int temp0;
9452 int * _arg3;
9453 int temp1;
9454 int * _arg4;
9455 int temp2;
9456 PyObject * _argo0 = 0;
9457 char *_kwnames[] = { "self", NULL };
9458
9459 self = self;
9460 {
9461 _arg1 = &temp;
9462 }
9463 {
9464 _arg2 = &temp0;
9465 }
9466 {
9467 _arg3 = &temp1;
9468 }
9469 {
9470 _arg4 = &temp2;
9471 }
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetBoundingBox",_kwnames,&_argo0))
9473 return NULL;
9474 if (_argo0) {
9475 if (_argo0 == Py_None) { _arg0 = NULL; }
9476 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9477 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetBoundingBox. Expected _wxDC_p.");
9478 return NULL;
9479 }
9480 }
9481 {
9482 wxPy_BEGIN_ALLOW_THREADS;
9483 wxDC_GetBoundingBox(_arg0,_arg1,_arg2,_arg3,_arg4);
9484
9485 wxPy_END_ALLOW_THREADS;
9486 if (PyErr_Occurred()) return NULL;
9487 } Py_INCREF(Py_None);
9488 _resultobj = Py_None;
9489 {
9490 PyObject *o;
9491 o = PyInt_FromLong((long) (*_arg1));
9492 _resultobj = t_output_helper(_resultobj, o);
9493 }
9494 {
9495 PyObject *o;
9496 o = PyInt_FromLong((long) (*_arg2));
9497 _resultobj = t_output_helper(_resultobj, o);
9498 }
9499 {
9500 PyObject *o;
9501 o = PyInt_FromLong((long) (*_arg3));
9502 _resultobj = t_output_helper(_resultobj, o);
9503 }
9504 {
9505 PyObject *o;
9506 o = PyInt_FromLong((long) (*_arg4));
9507 _resultobj = t_output_helper(_resultobj, o);
9508 }
9509 return _resultobj;
9510 }
9511
9512 #define wxDC_GetHDC(_swigobj) (_swigobj->GetHDC())
9513 static PyObject *_wrap_wxDC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9514 PyObject * _resultobj;
9515 long _result;
9516 wxDC * _arg0;
9517 PyObject * _argo0 = 0;
9518 char *_kwnames[] = { "self", NULL };
9519
9520 self = self;
9521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxDC_GetHDC",_kwnames,&_argo0))
9522 return NULL;
9523 if (_argo0) {
9524 if (_argo0 == Py_None) { _arg0 = NULL; }
9525 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9526 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC_GetHDC. Expected _wxDC_p.");
9527 return NULL;
9528 }
9529 }
9530 {
9531 wxPy_BEGIN_ALLOW_THREADS;
9532 _result = (long )wxDC_GetHDC(_arg0);
9533
9534 wxPy_END_ALLOW_THREADS;
9535 if (PyErr_Occurred()) return NULL;
9536 } _resultobj = Py_BuildValue("l",_result);
9537 return _resultobj;
9538 }
9539
9540 static PyObject * wxDC__DrawPointList(wxDC *self,PyObject * pyPoints,PyObject * pyPens) {
9541 bool isFastSeq = PyList_Check(pyPoints) || PyTuple_Check(pyPoints);
9542 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9543 int numObjs = 0;
9544 int numPens = 0;
9545 wxPen* pen;
9546 PyObject* obj;
9547 int x1, y1;
9548 int i = 0;
9549
9550 if (!PySequence_Check(pyPoints)) {
9551 goto err0;
9552 }
9553 if (!PySequence_Check(pyPens)) {
9554 goto err1;
9555 }
9556 numObjs = PySequence_Length(pyPoints);
9557 numPens = PySequence_Length(pyPens);
9558
9559 for (i = 0; i < numObjs; i++) {
9560 // Use a new pen?
9561 if (i < numPens) {
9562 if (isFastPens) {
9563 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9564 }
9565 else {
9566 obj = PySequence_GetItem(pyPens, i);
9567 }
9568 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9569 if (!isFastPens)
9570 Py_DECREF(obj);
9571 goto err1;
9572 }
9573
9574 self->SetPen(*pen);
9575 if (!isFastPens)
9576 Py_DECREF(obj);
9577 }
9578
9579 // Get the point coordinants
9580 if (isFastSeq) {
9581 obj = PySequence_Fast_GET_ITEM(pyPoints, i);
9582 }
9583 else {
9584 obj = PySequence_GetItem(pyPoints, i);
9585 }
9586 if (! _2int_seq_helper(obj, &x1, &y1)) {
9587 if (!isFastPens)
9588 Py_DECREF(obj);
9589 goto err0;
9590 }
9591
9592 // Now draw the point
9593 self->DrawPoint(x1, y1);
9594
9595 if (!isFastSeq)
9596 Py_DECREF(obj);
9597 }
9598
9599 Py_INCREF(Py_None);
9600 return Py_None;
9601
9602 err1:
9603 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9604 return NULL;
9605 err0:
9606 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x,y) sequences.");
9607 return NULL;
9608 }
9609 static PyObject *_wrap_wxDC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
9610 PyObject * _resultobj;
9611 PyObject * _result;
9612 wxDC * _arg0;
9613 PyObject * _arg1;
9614 PyObject * _arg2;
9615 PyObject * _argo0 = 0;
9616 PyObject * _obj1 = 0;
9617 PyObject * _obj2 = 0;
9618 char *_kwnames[] = { "self","pyPoints","pyPens", NULL };
9619
9620 self = self;
9621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawPointList",_kwnames,&_argo0,&_obj1,&_obj2))
9622 return NULL;
9623 if (_argo0) {
9624 if (_argo0 == Py_None) { _arg0 = NULL; }
9625 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9626 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawPointList. Expected _wxDC_p.");
9627 return NULL;
9628 }
9629 }
9630 {
9631 _arg1 = _obj1;
9632 }
9633 {
9634 _arg2 = _obj2;
9635 }
9636 {
9637 wxPy_BEGIN_ALLOW_THREADS;
9638 _result = (PyObject *)wxDC__DrawPointList(_arg0,_arg1,_arg2);
9639
9640 wxPy_END_ALLOW_THREADS;
9641 if (PyErr_Occurred()) return NULL;
9642 }{
9643 _resultobj = _result;
9644 }
9645 return _resultobj;
9646 }
9647
9648 static PyObject * wxDC__DrawLineList(wxDC *self,PyObject * pyLines,PyObject * pyPens) {
9649 bool isFastSeq = PyList_Check(pyLines) || PyTuple_Check(pyLines);
9650 bool isFastPens = PyList_Check(pyPens) || PyTuple_Check(pyPens);
9651 int numObjs = 0;
9652 int numPens = 0;
9653 wxPen* pen;
9654 PyObject* obj;
9655 int x1, y1, x2, y2;
9656 int i = 0;
9657
9658 if (!PySequence_Check(pyLines)) {
9659 goto err0;
9660 }
9661 if (!PySequence_Check(pyPens)) {
9662 goto err1;
9663 }
9664 numObjs = PySequence_Length(pyLines);
9665 numPens = PySequence_Length(pyPens);
9666
9667 for (i = 0; i < numObjs; i++) {
9668 // Use a new pen?
9669 if (i < numPens) {
9670 if (isFastPens) {
9671 obj = PySequence_Fast_GET_ITEM(pyPens, i);
9672 }
9673 else {
9674 obj = PySequence_GetItem(pyPens, i);
9675 }
9676 if (SWIG_GetPtrObj(obj, (void **) &pen, "_wxPen_p")) {
9677 if (!isFastPens)
9678 Py_DECREF(obj);
9679 goto err1;
9680 }
9681
9682 self->SetPen(*pen);
9683 if (!isFastPens)
9684 Py_DECREF(obj);
9685 }
9686
9687 // Get the line coordinants
9688 if (isFastSeq) {
9689 obj = PySequence_Fast_GET_ITEM(pyLines, i);
9690 }
9691 else {
9692 obj = PySequence_GetItem(pyLines, i);
9693 }
9694 if (! _4int_seq_helper(obj, &x1, &y1, &x2, &y2)) {
9695 if (!isFastPens)
9696 Py_DECREF(obj);
9697 goto err0;
9698 }
9699
9700 // Now draw the line
9701 self->DrawLine(x1, y1, x2, y2);
9702
9703 if (!isFastSeq)
9704 Py_DECREF(obj);
9705 }
9706
9707 Py_INCREF(Py_None);
9708 return Py_None;
9709
9710 err1:
9711 PyErr_SetString(PyExc_TypeError, "Expected a sequence of wxPens");
9712 return NULL;
9713 err0:
9714 PyErr_SetString(PyExc_TypeError, "Expected a sequence of (x1,y1, x2,y2) sequences.");
9715 return NULL;
9716 }
9717 static PyObject *_wrap_wxDC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
9718 PyObject * _resultobj;
9719 PyObject * _result;
9720 wxDC * _arg0;
9721 PyObject * _arg1;
9722 PyObject * _arg2;
9723 PyObject * _argo0 = 0;
9724 PyObject * _obj1 = 0;
9725 PyObject * _obj2 = 0;
9726 char *_kwnames[] = { "self","pyLines","pyPens", NULL };
9727
9728 self = self;
9729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxDC__DrawLineList",_kwnames,&_argo0,&_obj1,&_obj2))
9730 return NULL;
9731 if (_argo0) {
9732 if (_argo0 == Py_None) { _arg0 = NULL; }
9733 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxDC_p")) {
9734 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxDC__DrawLineList. Expected _wxDC_p.");
9735 return NULL;
9736 }
9737 }
9738 {
9739 _arg1 = _obj1;
9740 }
9741 {
9742 _arg2 = _obj2;
9743 }
9744 {
9745 wxPy_BEGIN_ALLOW_THREADS;
9746 _result = (PyObject *)wxDC__DrawLineList(_arg0,_arg1,_arg2);
9747
9748 wxPy_END_ALLOW_THREADS;
9749 if (PyErr_Occurred()) return NULL;
9750 }{
9751 _resultobj = _result;
9752 }
9753 return _resultobj;
9754 }
9755
9756 static void *SwigwxMemoryDCTowxDC(void *ptr) {
9757 wxMemoryDC *src;
9758 wxDC *dest;
9759 src = (wxMemoryDC *) ptr;
9760 dest = (wxDC *) src;
9761 return (void *) dest;
9762 }
9763
9764 static void *SwigwxMemoryDCTowxObject(void *ptr) {
9765 wxMemoryDC *src;
9766 wxObject *dest;
9767 src = (wxMemoryDC *) ptr;
9768 dest = (wxObject *) src;
9769 return (void *) dest;
9770 }
9771
9772 #define new_wxMemoryDC() (new wxMemoryDC())
9773 static PyObject *_wrap_new_wxMemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9774 PyObject * _resultobj;
9775 wxMemoryDC * _result;
9776 char *_kwnames[] = { NULL };
9777 char _ptemp[128];
9778
9779 self = self;
9780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxMemoryDC",_kwnames))
9781 return NULL;
9782 {
9783 wxPy_BEGIN_ALLOW_THREADS;
9784 _result = (wxMemoryDC *)new_wxMemoryDC();
9785
9786 wxPy_END_ALLOW_THREADS;
9787 if (PyErr_Occurred()) return NULL;
9788 } if (_result) {
9789 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMemoryDC_p");
9790 _resultobj = Py_BuildValue("s",_ptemp);
9791 } else {
9792 Py_INCREF(Py_None);
9793 _resultobj = Py_None;
9794 }
9795 return _resultobj;
9796 }
9797
9798 #define wxMemoryDC_SelectObject(_swigobj,_swigarg0) (_swigobj->SelectObject(_swigarg0))
9799 static PyObject *_wrap_wxMemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
9800 PyObject * _resultobj;
9801 wxMemoryDC * _arg0;
9802 wxBitmap * _arg1;
9803 PyObject * _argo0 = 0;
9804 PyObject * _argo1 = 0;
9805 char *_kwnames[] = { "self","bitmap", NULL };
9806
9807 self = self;
9808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxMemoryDC_SelectObject",_kwnames,&_argo0,&_argo1))
9809 return NULL;
9810 if (_argo0) {
9811 if (_argo0 == Py_None) { _arg0 = NULL; }
9812 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMemoryDC_p")) {
9813 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMemoryDC_SelectObject. Expected _wxMemoryDC_p.");
9814 return NULL;
9815 }
9816 }
9817 if (_argo1) {
9818 if (_argo1 == Py_None) { _arg1 = NULL; }
9819 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
9820 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxMemoryDC_SelectObject. Expected _wxBitmap_p.");
9821 return NULL;
9822 }
9823 }
9824 {
9825 wxPy_BEGIN_ALLOW_THREADS;
9826 wxMemoryDC_SelectObject(_arg0,*_arg1);
9827
9828 wxPy_END_ALLOW_THREADS;
9829 if (PyErr_Occurred()) return NULL;
9830 } Py_INCREF(Py_None);
9831 _resultobj = Py_None;
9832 return _resultobj;
9833 }
9834
9835 static void *SwigwxScreenDCTowxDC(void *ptr) {
9836 wxScreenDC *src;
9837 wxDC *dest;
9838 src = (wxScreenDC *) ptr;
9839 dest = (wxDC *) src;
9840 return (void *) dest;
9841 }
9842
9843 static void *SwigwxScreenDCTowxObject(void *ptr) {
9844 wxScreenDC *src;
9845 wxObject *dest;
9846 src = (wxScreenDC *) ptr;
9847 dest = (wxObject *) src;
9848 return (void *) dest;
9849 }
9850
9851 #define new_wxScreenDC() (new wxScreenDC())
9852 static PyObject *_wrap_new_wxScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9853 PyObject * _resultobj;
9854 wxScreenDC * _result;
9855 char *_kwnames[] = { NULL };
9856 char _ptemp[128];
9857
9858 self = self;
9859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,":new_wxScreenDC",_kwnames))
9860 return NULL;
9861 {
9862 wxPy_BEGIN_ALLOW_THREADS;
9863 _result = (wxScreenDC *)new_wxScreenDC();
9864
9865 wxPy_END_ALLOW_THREADS;
9866 if (PyErr_Occurred()) return NULL;
9867 } if (_result) {
9868 SWIG_MakePtr(_ptemp, (char *) _result,"_wxScreenDC_p");
9869 _resultobj = Py_BuildValue("s",_ptemp);
9870 } else {
9871 Py_INCREF(Py_None);
9872 _resultobj = Py_None;
9873 }
9874 return _resultobj;
9875 }
9876
9877 #define wxScreenDC_StartDrawingOnTopWin(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9878 static PyObject *_wrap_wxScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
9879 PyObject * _resultobj;
9880 bool _result;
9881 wxScreenDC * _arg0;
9882 wxWindow * _arg1;
9883 PyObject * _argo0 = 0;
9884 PyObject * _argo1 = 0;
9885 char *_kwnames[] = { "self","window", NULL };
9886
9887 self = self;
9888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxScreenDC_StartDrawingOnTopWin",_kwnames,&_argo0,&_argo1))
9889 return NULL;
9890 if (_argo0) {
9891 if (_argo0 == Py_None) { _arg0 = NULL; }
9892 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9893 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTopWin. Expected _wxScreenDC_p.");
9894 return NULL;
9895 }
9896 }
9897 if (_argo1) {
9898 if (_argo1 == Py_None) { _arg1 = NULL; }
9899 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxWindow_p")) {
9900 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxScreenDC_StartDrawingOnTopWin. Expected _wxWindow_p.");
9901 return NULL;
9902 }
9903 }
9904 {
9905 wxPy_BEGIN_ALLOW_THREADS;
9906 _result = (bool )wxScreenDC_StartDrawingOnTopWin(_arg0,_arg1);
9907
9908 wxPy_END_ALLOW_THREADS;
9909 if (PyErr_Occurred()) return NULL;
9910 } _resultobj = Py_BuildValue("i",_result);
9911 return _resultobj;
9912 }
9913
9914 #define wxScreenDC_StartDrawingOnTop(_swigobj,_swigarg0) (_swigobj->StartDrawingOnTop(_swigarg0))
9915 static PyObject *_wrap_wxScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9916 PyObject * _resultobj;
9917 bool _result;
9918 wxScreenDC * _arg0;
9919 wxRect * _arg1 = (wxRect *) NULL;
9920 PyObject * _argo0 = 0;
9921 wxRect temp;
9922 PyObject * _obj1 = 0;
9923 char *_kwnames[] = { "self","rect", NULL };
9924
9925 self = self;
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|O:wxScreenDC_StartDrawingOnTop",_kwnames,&_argo0,&_obj1))
9927 return NULL;
9928 if (_argo0) {
9929 if (_argo0 == Py_None) { _arg0 = NULL; }
9930 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9931 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_StartDrawingOnTop. Expected _wxScreenDC_p.");
9932 return NULL;
9933 }
9934 }
9935 if (_obj1)
9936 {
9937 _arg1 = &temp;
9938 if (! wxRect_helper(_obj1, &_arg1))
9939 return NULL;
9940 }
9941 {
9942 wxPy_BEGIN_ALLOW_THREADS;
9943 _result = (bool )wxScreenDC_StartDrawingOnTop(_arg0,_arg1);
9944
9945 wxPy_END_ALLOW_THREADS;
9946 if (PyErr_Occurred()) return NULL;
9947 } _resultobj = Py_BuildValue("i",_result);
9948 return _resultobj;
9949 }
9950
9951 #define wxScreenDC_EndDrawingOnTop(_swigobj) (_swigobj->EndDrawingOnTop())
9952 static PyObject *_wrap_wxScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
9953 PyObject * _resultobj;
9954 bool _result;
9955 wxScreenDC * _arg0;
9956 PyObject * _argo0 = 0;
9957 char *_kwnames[] = { "self", NULL };
9958
9959 self = self;
9960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxScreenDC_EndDrawingOnTop",_kwnames,&_argo0))
9961 return NULL;
9962 if (_argo0) {
9963 if (_argo0 == Py_None) { _arg0 = NULL; }
9964 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxScreenDC_p")) {
9965 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxScreenDC_EndDrawingOnTop. Expected _wxScreenDC_p.");
9966 return NULL;
9967 }
9968 }
9969 {
9970 wxPy_BEGIN_ALLOW_THREADS;
9971 _result = (bool )wxScreenDC_EndDrawingOnTop(_arg0);
9972
9973 wxPy_END_ALLOW_THREADS;
9974 if (PyErr_Occurred()) return NULL;
9975 } _resultobj = Py_BuildValue("i",_result);
9976 return _resultobj;
9977 }
9978
9979 static void *SwigwxClientDCTowxDC(void *ptr) {
9980 wxClientDC *src;
9981 wxDC *dest;
9982 src = (wxClientDC *) ptr;
9983 dest = (wxDC *) src;
9984 return (void *) dest;
9985 }
9986
9987 static void *SwigwxClientDCTowxObject(void *ptr) {
9988 wxClientDC *src;
9989 wxObject *dest;
9990 src = (wxClientDC *) ptr;
9991 dest = (wxObject *) src;
9992 return (void *) dest;
9993 }
9994
9995 #define new_wxClientDC(_swigarg0) (new wxClientDC(_swigarg0))
9996 static PyObject *_wrap_new_wxClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
9997 PyObject * _resultobj;
9998 wxClientDC * _result;
9999 wxWindow * _arg0;
10000 PyObject * _argo0 = 0;
10001 char *_kwnames[] = { "win", NULL };
10002 char _ptemp[128];
10003
10004 self = self;
10005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxClientDC",_kwnames,&_argo0))
10006 return NULL;
10007 if (_argo0) {
10008 if (_argo0 == Py_None) { _arg0 = NULL; }
10009 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10010 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxClientDC. Expected _wxWindow_p.");
10011 return NULL;
10012 }
10013 }
10014 {
10015 wxPy_BEGIN_ALLOW_THREADS;
10016 _result = (wxClientDC *)new_wxClientDC(_arg0);
10017
10018 wxPy_END_ALLOW_THREADS;
10019 if (PyErr_Occurred()) return NULL;
10020 } if (_result) {
10021 SWIG_MakePtr(_ptemp, (char *) _result,"_wxClientDC_p");
10022 _resultobj = Py_BuildValue("s",_ptemp);
10023 } else {
10024 Py_INCREF(Py_None);
10025 _resultobj = Py_None;
10026 }
10027 return _resultobj;
10028 }
10029
10030 static void *SwigwxPaintDCTowxDC(void *ptr) {
10031 wxPaintDC *src;
10032 wxDC *dest;
10033 src = (wxPaintDC *) ptr;
10034 dest = (wxDC *) src;
10035 return (void *) dest;
10036 }
10037
10038 static void *SwigwxPaintDCTowxObject(void *ptr) {
10039 wxPaintDC *src;
10040 wxObject *dest;
10041 src = (wxPaintDC *) ptr;
10042 dest = (wxObject *) src;
10043 return (void *) dest;
10044 }
10045
10046 #define new_wxPaintDC(_swigarg0) (new wxPaintDC(_swigarg0))
10047 static PyObject *_wrap_new_wxPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10048 PyObject * _resultobj;
10049 wxPaintDC * _result;
10050 wxWindow * _arg0;
10051 PyObject * _argo0 = 0;
10052 char *_kwnames[] = { "win", NULL };
10053 char _ptemp[128];
10054
10055 self = self;
10056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxPaintDC",_kwnames,&_argo0))
10057 return NULL;
10058 if (_argo0) {
10059 if (_argo0 == Py_None) { _arg0 = NULL; }
10060 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10061 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxPaintDC. Expected _wxWindow_p.");
10062 return NULL;
10063 }
10064 }
10065 {
10066 wxPy_BEGIN_ALLOW_THREADS;
10067 _result = (wxPaintDC *)new_wxPaintDC(_arg0);
10068
10069 wxPy_END_ALLOW_THREADS;
10070 if (PyErr_Occurred()) return NULL;
10071 } if (_result) {
10072 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPaintDC_p");
10073 _resultobj = Py_BuildValue("s",_ptemp);
10074 } else {
10075 Py_INCREF(Py_None);
10076 _resultobj = Py_None;
10077 }
10078 return _resultobj;
10079 }
10080
10081 static void *SwigwxWindowDCTowxDC(void *ptr) {
10082 wxWindowDC *src;
10083 wxDC *dest;
10084 src = (wxWindowDC *) ptr;
10085 dest = (wxDC *) src;
10086 return (void *) dest;
10087 }
10088
10089 static void *SwigwxWindowDCTowxObject(void *ptr) {
10090 wxWindowDC *src;
10091 wxObject *dest;
10092 src = (wxWindowDC *) ptr;
10093 dest = (wxObject *) src;
10094 return (void *) dest;
10095 }
10096
10097 #define new_wxWindowDC(_swigarg0) (new wxWindowDC(_swigarg0))
10098 static PyObject *_wrap_new_wxWindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10099 PyObject * _resultobj;
10100 wxWindowDC * _result;
10101 wxWindow * _arg0;
10102 PyObject * _argo0 = 0;
10103 char *_kwnames[] = { "win", NULL };
10104 char _ptemp[128];
10105
10106 self = self;
10107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxWindowDC",_kwnames,&_argo0))
10108 return NULL;
10109 if (_argo0) {
10110 if (_argo0 == Py_None) { _arg0 = NULL; }
10111 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxWindow_p")) {
10112 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxWindowDC. Expected _wxWindow_p.");
10113 return NULL;
10114 }
10115 }
10116 {
10117 wxPy_BEGIN_ALLOW_THREADS;
10118 _result = (wxWindowDC *)new_wxWindowDC(_arg0);
10119
10120 wxPy_END_ALLOW_THREADS;
10121 if (PyErr_Occurred()) return NULL;
10122 } if (_result) {
10123 SWIG_MakePtr(_ptemp, (char *) _result,"_wxWindowDC_p");
10124 _resultobj = Py_BuildValue("s",_ptemp);
10125 } else {
10126 Py_INCREF(Py_None);
10127 _resultobj = Py_None;
10128 }
10129 return _resultobj;
10130 }
10131
10132 static void *SwigwxMetaFileTowxObject(void *ptr) {
10133 wxMetaFile *src;
10134 wxObject *dest;
10135 src = (wxMetaFile *) ptr;
10136 dest = (wxObject *) src;
10137 return (void *) dest;
10138 }
10139
10140 #define new_wxMetaFile(_swigarg0) (new wxMetaFile(_swigarg0))
10141 static PyObject *_wrap_new_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10142 PyObject * _resultobj;
10143 wxMetaFile * _result;
10144 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
10145 PyObject * _obj0 = 0;
10146 char *_kwnames[] = { "filename", NULL };
10147 char _ptemp[128];
10148
10149 self = self;
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|O:new_wxMetaFile",_kwnames,&_obj0))
10151 return NULL;
10152 if (_obj0)
10153 {
10154 #if PYTHON_API_VERSION >= 1009
10155 char* tmpPtr; int tmpSize;
10156 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10157 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10158 return NULL;
10159 }
10160 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10161 return NULL;
10162 _arg0 = new wxString(tmpPtr, tmpSize);
10163 #else
10164 if (!PyString_Check(_obj0)) {
10165 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10166 return NULL;
10167 }
10168 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10169 #endif
10170 }
10171 {
10172 wxPy_BEGIN_ALLOW_THREADS;
10173 _result = (wxMetaFile *)new_wxMetaFile(*_arg0);
10174
10175 wxPy_END_ALLOW_THREADS;
10176 if (PyErr_Occurred()) return NULL;
10177 } if (_result) {
10178 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10179 _resultobj = Py_BuildValue("s",_ptemp);
10180 } else {
10181 Py_INCREF(Py_None);
10182 _resultobj = Py_None;
10183 }
10184 {
10185 if (_obj0)
10186 delete _arg0;
10187 }
10188 return _resultobj;
10189 }
10190
10191 #define delete_wxMetaFile(_swigobj) (delete _swigobj)
10192 static PyObject *_wrap_delete_wxMetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
10193 PyObject * _resultobj;
10194 wxMetaFile * _arg0;
10195 PyObject * _argo0 = 0;
10196 char *_kwnames[] = { "self", NULL };
10197
10198 self = self;
10199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxMetaFile",_kwnames,&_argo0))
10200 return NULL;
10201 if (_argo0) {
10202 if (_argo0 == Py_None) { _arg0 = NULL; }
10203 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10204 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxMetaFile. Expected _wxMetaFile_p.");
10205 return NULL;
10206 }
10207 }
10208 {
10209 wxPy_BEGIN_ALLOW_THREADS;
10210 delete_wxMetaFile(_arg0);
10211
10212 wxPy_END_ALLOW_THREADS;
10213 if (PyErr_Occurred()) return NULL;
10214 } Py_INCREF(Py_None);
10215 _resultobj = Py_None;
10216 return _resultobj;
10217 }
10218
10219 #define wxMetaFile_Ok(_swigobj) (_swigobj->Ok())
10220 static PyObject *_wrap_wxMetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10221 PyObject * _resultobj;
10222 bool _result;
10223 wxMetaFile * _arg0;
10224 PyObject * _argo0 = 0;
10225 char *_kwnames[] = { "self", NULL };
10226
10227 self = self;
10228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_Ok",_kwnames,&_argo0))
10229 return NULL;
10230 if (_argo0) {
10231 if (_argo0 == Py_None) { _arg0 = NULL; }
10232 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10233 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_Ok. Expected _wxMetaFile_p.");
10234 return NULL;
10235 }
10236 }
10237 {
10238 wxPy_BEGIN_ALLOW_THREADS;
10239 _result = (bool )wxMetaFile_Ok(_arg0);
10240
10241 wxPy_END_ALLOW_THREADS;
10242 if (PyErr_Occurred()) return NULL;
10243 } _resultobj = Py_BuildValue("i",_result);
10244 return _resultobj;
10245 }
10246
10247 #define wxMetaFile_SetClipboard(_swigobj,_swigarg0,_swigarg1) (_swigobj->SetClipboard(_swigarg0,_swigarg1))
10248 static PyObject *_wrap_wxMetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
10249 PyObject * _resultobj;
10250 bool _result;
10251 wxMetaFile * _arg0;
10252 int _arg1 = (int ) 0;
10253 int _arg2 = (int ) 0;
10254 PyObject * _argo0 = 0;
10255 char *_kwnames[] = { "self","width","height", NULL };
10256
10257 self = self;
10258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O|ii:wxMetaFile_SetClipboard",_kwnames,&_argo0,&_arg1,&_arg2))
10259 return NULL;
10260 if (_argo0) {
10261 if (_argo0 == Py_None) { _arg0 = NULL; }
10262 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10263 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_SetClipboard. Expected _wxMetaFile_p.");
10264 return NULL;
10265 }
10266 }
10267 {
10268 wxPy_BEGIN_ALLOW_THREADS;
10269 _result = (bool )wxMetaFile_SetClipboard(_arg0,_arg1,_arg2);
10270
10271 wxPy_END_ALLOW_THREADS;
10272 if (PyErr_Occurred()) return NULL;
10273 } _resultobj = Py_BuildValue("i",_result);
10274 return _resultobj;
10275 }
10276
10277 #define wxMetaFile_GetSize(_swigobj) (_swigobj->GetSize())
10278 static PyObject *_wrap_wxMetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10279 PyObject * _resultobj;
10280 wxSize * _result;
10281 wxMetaFile * _arg0;
10282 PyObject * _argo0 = 0;
10283 char *_kwnames[] = { "self", NULL };
10284 char _ptemp[128];
10285
10286 self = self;
10287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetSize",_kwnames,&_argo0))
10288 return NULL;
10289 if (_argo0) {
10290 if (_argo0 == Py_None) { _arg0 = NULL; }
10291 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10292 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetSize. Expected _wxMetaFile_p.");
10293 return NULL;
10294 }
10295 }
10296 {
10297 wxPy_BEGIN_ALLOW_THREADS;
10298 _result = new wxSize (wxMetaFile_GetSize(_arg0));
10299
10300 wxPy_END_ALLOW_THREADS;
10301 if (PyErr_Occurred()) return NULL;
10302 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxSize_p");
10303 _resultobj = Py_BuildValue("s",_ptemp);
10304 return _resultobj;
10305 }
10306
10307 #define wxMetaFile_GetWidth(_swigobj) (_swigobj->GetWidth())
10308 static PyObject *_wrap_wxMetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
10309 PyObject * _resultobj;
10310 int _result;
10311 wxMetaFile * _arg0;
10312 PyObject * _argo0 = 0;
10313 char *_kwnames[] = { "self", NULL };
10314
10315 self = self;
10316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetWidth",_kwnames,&_argo0))
10317 return NULL;
10318 if (_argo0) {
10319 if (_argo0 == Py_None) { _arg0 = NULL; }
10320 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10321 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetWidth. Expected _wxMetaFile_p.");
10322 return NULL;
10323 }
10324 }
10325 {
10326 wxPy_BEGIN_ALLOW_THREADS;
10327 _result = (int )wxMetaFile_GetWidth(_arg0);
10328
10329 wxPy_END_ALLOW_THREADS;
10330 if (PyErr_Occurred()) return NULL;
10331 } _resultobj = Py_BuildValue("i",_result);
10332 return _resultobj;
10333 }
10334
10335 #define wxMetaFile_GetHeight(_swigobj) (_swigobj->GetHeight())
10336 static PyObject *_wrap_wxMetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject * _resultobj;
10338 int _result;
10339 wxMetaFile * _arg0;
10340 PyObject * _argo0 = 0;
10341 char *_kwnames[] = { "self", NULL };
10342
10343 self = self;
10344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetHeight",_kwnames,&_argo0))
10345 return NULL;
10346 if (_argo0) {
10347 if (_argo0 == Py_None) { _arg0 = NULL; }
10348 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10349 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetHeight. Expected _wxMetaFile_p.");
10350 return NULL;
10351 }
10352 }
10353 {
10354 wxPy_BEGIN_ALLOW_THREADS;
10355 _result = (int )wxMetaFile_GetHeight(_arg0);
10356
10357 wxPy_END_ALLOW_THREADS;
10358 if (PyErr_Occurred()) return NULL;
10359 } _resultobj = Py_BuildValue("i",_result);
10360 return _resultobj;
10361 }
10362
10363 #define wxMetaFile_GetFileName(_swigobj) (_swigobj->GetFileName())
10364 static PyObject *_wrap_wxMetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
10365 PyObject * _resultobj;
10366 wxString * _result;
10367 wxMetaFile * _arg0;
10368 PyObject * _argo0 = 0;
10369 char *_kwnames[] = { "self", NULL };
10370
10371 self = self;
10372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFile_GetFileName",_kwnames,&_argo0))
10373 return NULL;
10374 if (_argo0) {
10375 if (_argo0 == Py_None) { _arg0 = NULL; }
10376 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFile_p")) {
10377 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFile_GetFileName. Expected _wxMetaFile_p.");
10378 return NULL;
10379 }
10380 }
10381 {
10382 wxPy_BEGIN_ALLOW_THREADS;
10383 const wxString & _result_ref = wxMetaFile_GetFileName(_arg0);
10384 _result = (wxString *) &_result_ref;
10385
10386 wxPy_END_ALLOW_THREADS;
10387 if (PyErr_Occurred()) return NULL;
10388 }{
10389 _resultobj = PyString_FromStringAndSize(_result->c_str(), _result->Len());
10390 }
10391 return _resultobj;
10392 }
10393
10394 static void *SwigwxMetaFileDCTowxDC(void *ptr) {
10395 wxMetaFileDC *src;
10396 wxDC *dest;
10397 src = (wxMetaFileDC *) ptr;
10398 dest = (wxDC *) src;
10399 return (void *) dest;
10400 }
10401
10402 static void *SwigwxMetaFileDCTowxObject(void *ptr) {
10403 wxMetaFileDC *src;
10404 wxObject *dest;
10405 src = (wxMetaFileDC *) ptr;
10406 dest = (wxObject *) src;
10407 return (void *) dest;
10408 }
10409
10410 #define new_wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxMetaFileDC(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10411 static PyObject *_wrap_new_wxMetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
10412 PyObject * _resultobj;
10413 wxMetaFileDC * _result;
10414 wxString * _arg0 = (wxString *) &wxPyEmptyStr;
10415 int _arg1 = (int ) 0;
10416 int _arg2 = (int ) 0;
10417 wxString * _arg3 = (wxString *) &wxPyEmptyStr;
10418 PyObject * _obj0 = 0;
10419 PyObject * _obj3 = 0;
10420 char *_kwnames[] = { "filename","width","height","description", NULL };
10421 char _ptemp[128];
10422
10423 self = self;
10424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|OiiO:new_wxMetaFileDC",_kwnames,&_obj0,&_arg1,&_arg2,&_obj3))
10425 return NULL;
10426 if (_obj0)
10427 {
10428 #if PYTHON_API_VERSION >= 1009
10429 char* tmpPtr; int tmpSize;
10430 if (!PyString_Check(_obj0) && !PyUnicode_Check(_obj0)) {
10431 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10432 return NULL;
10433 }
10434 if (PyString_AsStringAndSize(_obj0, &tmpPtr, &tmpSize) == -1)
10435 return NULL;
10436 _arg0 = new wxString(tmpPtr, tmpSize);
10437 #else
10438 if (!PyString_Check(_obj0)) {
10439 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10440 return NULL;
10441 }
10442 _arg0 = new wxString(PyString_AS_STRING(_obj0), PyString_GET_SIZE(_obj0));
10443 #endif
10444 }
10445 if (_obj3)
10446 {
10447 #if PYTHON_API_VERSION >= 1009
10448 char* tmpPtr; int tmpSize;
10449 if (!PyString_Check(_obj3) && !PyUnicode_Check(_obj3)) {
10450 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10451 return NULL;
10452 }
10453 if (PyString_AsStringAndSize(_obj3, &tmpPtr, &tmpSize) == -1)
10454 return NULL;
10455 _arg3 = new wxString(tmpPtr, tmpSize);
10456 #else
10457 if (!PyString_Check(_obj3)) {
10458 PyErr_SetString(PyExc_TypeError, wxStringErrorMsg);
10459 return NULL;
10460 }
10461 _arg3 = new wxString(PyString_AS_STRING(_obj3), PyString_GET_SIZE(_obj3));
10462 #endif
10463 }
10464 {
10465 wxPy_BEGIN_ALLOW_THREADS;
10466 _result = (wxMetaFileDC *)new_wxMetaFileDC(*_arg0,_arg1,_arg2,*_arg3);
10467
10468 wxPy_END_ALLOW_THREADS;
10469 if (PyErr_Occurred()) return NULL;
10470 } if (_result) {
10471 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFileDC_p");
10472 _resultobj = Py_BuildValue("s",_ptemp);
10473 } else {
10474 Py_INCREF(Py_None);
10475 _resultobj = Py_None;
10476 }
10477 {
10478 if (_obj0)
10479 delete _arg0;
10480 }
10481 {
10482 if (_obj3)
10483 delete _arg3;
10484 }
10485 return _resultobj;
10486 }
10487
10488 #define wxMetaFileDC_Close(_swigobj) (_swigobj->Close())
10489 static PyObject *_wrap_wxMetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
10490 PyObject * _resultobj;
10491 wxMetaFile * _result;
10492 wxMetaFileDC * _arg0;
10493 PyObject * _argo0 = 0;
10494 char *_kwnames[] = { "self", NULL };
10495 char _ptemp[128];
10496
10497 self = self;
10498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxMetaFileDC_Close",_kwnames,&_argo0))
10499 return NULL;
10500 if (_argo0) {
10501 if (_argo0 == Py_None) { _arg0 = NULL; }
10502 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxMetaFileDC_p")) {
10503 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxMetaFileDC_Close. Expected _wxMetaFileDC_p.");
10504 return NULL;
10505 }
10506 }
10507 {
10508 wxPy_BEGIN_ALLOW_THREADS;
10509 _result = (wxMetaFile *)wxMetaFileDC_Close(_arg0);
10510
10511 wxPy_END_ALLOW_THREADS;
10512 if (PyErr_Occurred()) return NULL;
10513 } if (_result) {
10514 SWIG_MakePtr(_ptemp, (char *) _result,"_wxMetaFile_p");
10515 _resultobj = Py_BuildValue("s",_ptemp);
10516 } else {
10517 Py_INCREF(Py_None);
10518 _resultobj = Py_None;
10519 }
10520 return _resultobj;
10521 }
10522
10523 static void *SwigwxPaletteTowxGDIObject(void *ptr) {
10524 wxPalette *src;
10525 wxGDIObject *dest;
10526 src = (wxPalette *) ptr;
10527 dest = (wxGDIObject *) src;
10528 return (void *) dest;
10529 }
10530
10531 static void *SwigwxPaletteTowxObject(void *ptr) {
10532 wxPalette *src;
10533 wxObject *dest;
10534 src = (wxPalette *) ptr;
10535 dest = (wxObject *) src;
10536 return (void *) dest;
10537 }
10538
10539 #define new_wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxPalette(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10540 static PyObject *_wrap_new_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10541 PyObject * _resultobj;
10542 wxPalette * _result;
10543 int _arg0;
10544 byte * _arg1;
10545 byte * _arg2;
10546 byte * _arg3;
10547 PyObject * _obj1 = 0;
10548 PyObject * _obj2 = 0;
10549 PyObject * _obj3 = 0;
10550 char *_kwnames[] = { "choices","choices","choices", NULL };
10551 char _ptemp[128];
10552
10553 self = self;
10554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:new_wxPalette",_kwnames,&_obj1,&_obj2,&_obj3))
10555 return NULL;
10556 {
10557 _arg1 = byte_LIST_helper(_obj1);
10558 if (_arg1 == NULL) {
10559 return NULL;
10560 }
10561 }
10562 {
10563 _arg2 = byte_LIST_helper(_obj2);
10564 if (_arg2 == NULL) {
10565 return NULL;
10566 }
10567 }
10568 if (_obj3)
10569 {
10570 _arg3 = byte_LIST_helper(_obj3);
10571 if (_arg3 == NULL) {
10572 return NULL;
10573 }
10574 }
10575 {
10576 if (_obj1) {
10577 _arg0 = PyList_Size(_obj1);
10578 }
10579 else {
10580 _arg0 = 0;
10581 }
10582 }
10583 {
10584 wxPy_BEGIN_ALLOW_THREADS;
10585 _result = (wxPalette *)new_wxPalette(_arg0,_arg1,_arg2,_arg3);
10586
10587 wxPy_END_ALLOW_THREADS;
10588 if (PyErr_Occurred()) return NULL;
10589 } if (_result) {
10590 SWIG_MakePtr(_ptemp, (char *) _result,"_wxPalette_p");
10591 _resultobj = Py_BuildValue("s",_ptemp);
10592 } else {
10593 Py_INCREF(Py_None);
10594 _resultobj = Py_None;
10595 }
10596 {
10597 delete [] _arg1;
10598 }
10599 {
10600 delete [] _arg2;
10601 }
10602 {
10603 delete [] _arg3;
10604 }
10605 return _resultobj;
10606 }
10607
10608 #define delete_wxPalette(_swigobj) (delete _swigobj)
10609 static PyObject *_wrap_delete_wxPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
10610 PyObject * _resultobj;
10611 wxPalette * _arg0;
10612 PyObject * _argo0 = 0;
10613 char *_kwnames[] = { "self", NULL };
10614
10615 self = self;
10616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxPalette",_kwnames,&_argo0))
10617 return NULL;
10618 if (_argo0) {
10619 if (_argo0 == Py_None) { _arg0 = NULL; }
10620 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10621 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxPalette. Expected _wxPalette_p.");
10622 return NULL;
10623 }
10624 }
10625 {
10626 wxPy_BEGIN_ALLOW_THREADS;
10627 delete_wxPalette(_arg0);
10628
10629 wxPy_END_ALLOW_THREADS;
10630 if (PyErr_Occurred()) return NULL;
10631 } Py_INCREF(Py_None);
10632 _resultobj = Py_None;
10633 return _resultobj;
10634 }
10635
10636 #define wxPalette_GetPixel(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetPixel(_swigarg0,_swigarg1,_swigarg2))
10637 static PyObject *_wrap_wxPalette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10638 PyObject * _resultobj;
10639 int _result;
10640 wxPalette * _arg0;
10641 byte _arg1;
10642 byte _arg2;
10643 byte _arg3;
10644 PyObject * _argo0 = 0;
10645 char *_kwnames[] = { "self","red","green","blue", NULL };
10646
10647 self = self;
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Obbb:wxPalette_GetPixel",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3))
10649 return NULL;
10650 if (_argo0) {
10651 if (_argo0 == Py_None) { _arg0 = NULL; }
10652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetPixel. Expected _wxPalette_p.");
10654 return NULL;
10655 }
10656 }
10657 {
10658 wxPy_BEGIN_ALLOW_THREADS;
10659 _result = (int )wxPalette_GetPixel(_arg0,_arg1,_arg2,_arg3);
10660
10661 wxPy_END_ALLOW_THREADS;
10662 if (PyErr_Occurred()) return NULL;
10663 } _resultobj = Py_BuildValue("i",_result);
10664 return _resultobj;
10665 }
10666
10667 #define wxPalette_GetRGB(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->GetRGB(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10668 static PyObject *_wrap_wxPalette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
10669 PyObject * _resultobj;
10670 bool _result;
10671 wxPalette * _arg0;
10672 int _arg1;
10673 byte * _arg2;
10674 byte * _arg3;
10675 byte * _arg4;
10676 PyObject * _argo0 = 0;
10677 PyObject * _argo2 = 0;
10678 PyObject * _argo3 = 0;
10679 PyObject * _argo4 = 0;
10680 char *_kwnames[] = { "self","pixel","OUTPUT","OUTPUT","OUTPUT", NULL };
10681
10682 self = self;
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOOO:wxPalette_GetRGB",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3,&_argo4))
10684 return NULL;
10685 if (_argo0) {
10686 if (_argo0 == Py_None) { _arg0 = NULL; }
10687 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10688 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_GetRGB. Expected _wxPalette_p.");
10689 return NULL;
10690 }
10691 }
10692 if (_argo2) {
10693 if (_argo2 == Py_None) { _arg2 = NULL; }
10694 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_byte_p")) {
10695 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxPalette_GetRGB. Expected _byte_p.");
10696 return NULL;
10697 }
10698 }
10699 if (_argo3) {
10700 if (_argo3 == Py_None) { _arg3 = NULL; }
10701 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_byte_p")) {
10702 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxPalette_GetRGB. Expected _byte_p.");
10703 return NULL;
10704 }
10705 }
10706 if (_argo4) {
10707 if (_argo4 == Py_None) { _arg4 = NULL; }
10708 else if (SWIG_GetPtrObj(_argo4,(void **) &_arg4,"_byte_p")) {
10709 PyErr_SetString(PyExc_TypeError,"Type error in argument 5 of wxPalette_GetRGB. Expected _byte_p.");
10710 return NULL;
10711 }
10712 }
10713 {
10714 wxPy_BEGIN_ALLOW_THREADS;
10715 _result = (bool )wxPalette_GetRGB(_arg0,_arg1,_arg2,_arg3,_arg4);
10716
10717 wxPy_END_ALLOW_THREADS;
10718 if (PyErr_Occurred()) return NULL;
10719 } _resultobj = Py_BuildValue("i",_result);
10720 return _resultobj;
10721 }
10722
10723 #define wxPalette_Ok(_swigobj) (_swigobj->Ok())
10724 static PyObject *_wrap_wxPalette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
10725 PyObject * _resultobj;
10726 bool _result;
10727 wxPalette * _arg0;
10728 PyObject * _argo0 = 0;
10729 char *_kwnames[] = { "self", NULL };
10730
10731 self = self;
10732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxPalette_Ok",_kwnames,&_argo0))
10733 return NULL;
10734 if (_argo0) {
10735 if (_argo0 == Py_None) { _arg0 = NULL; }
10736 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxPalette_p")) {
10737 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxPalette_Ok. Expected _wxPalette_p.");
10738 return NULL;
10739 }
10740 }
10741 {
10742 wxPy_BEGIN_ALLOW_THREADS;
10743 _result = (bool )wxPalette_Ok(_arg0);
10744
10745 wxPy_END_ALLOW_THREADS;
10746 if (PyErr_Occurred()) return NULL;
10747 } _resultobj = Py_BuildValue("i",_result);
10748 return _resultobj;
10749 }
10750
10751 static void *SwigwxImageListTowxObject(void *ptr) {
10752 wxImageList *src;
10753 wxObject *dest;
10754 src = (wxImageList *) ptr;
10755 dest = (wxObject *) src;
10756 return (void *) dest;
10757 }
10758
10759 #define new_wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxImageList(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
10760 static PyObject *_wrap_new_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10761 PyObject * _resultobj;
10762 wxImageList * _result;
10763 int _arg0;
10764 int _arg1;
10765 int _arg2 = (int ) TRUE;
10766 int _arg3 = (int ) 1;
10767 char *_kwnames[] = { "width","height","mask","initialCount", NULL };
10768 char _ptemp[128];
10769
10770 self = self;
10771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"ii|ii:new_wxImageList",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
10772 return NULL;
10773 {
10774 wxPy_BEGIN_ALLOW_THREADS;
10775 _result = (wxImageList *)new_wxImageList(_arg0,_arg1,_arg2,_arg3);
10776
10777 wxPy_END_ALLOW_THREADS;
10778 if (PyErr_Occurred()) return NULL;
10779 } if (_result) {
10780 SWIG_MakePtr(_ptemp, (char *) _result,"_wxImageList_p");
10781 _resultobj = Py_BuildValue("s",_ptemp);
10782 } else {
10783 Py_INCREF(Py_None);
10784 _resultobj = Py_None;
10785 }
10786 return _resultobj;
10787 }
10788
10789 #define delete_wxImageList(_swigobj) (delete _swigobj)
10790 static PyObject *_wrap_delete_wxImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
10791 PyObject * _resultobj;
10792 wxImageList * _arg0;
10793 PyObject * _argo0 = 0;
10794 char *_kwnames[] = { "self", NULL };
10795
10796 self = self;
10797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxImageList",_kwnames,&_argo0))
10798 return NULL;
10799 if (_argo0) {
10800 if (_argo0 == Py_None) { _arg0 = NULL; }
10801 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10802 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxImageList. Expected _wxImageList_p.");
10803 return NULL;
10804 }
10805 }
10806 {
10807 wxPy_BEGIN_ALLOW_THREADS;
10808 delete_wxImageList(_arg0);
10809
10810 wxPy_END_ALLOW_THREADS;
10811 if (PyErr_Occurred()) return NULL;
10812 } Py_INCREF(Py_None);
10813 _resultobj = Py_None;
10814 return _resultobj;
10815 }
10816
10817 #define wxImageList_Add(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10818 static PyObject *_wrap_wxImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
10819 PyObject * _resultobj;
10820 int _result;
10821 wxImageList * _arg0;
10822 wxBitmap * _arg1;
10823 wxBitmap * _arg2 = (wxBitmap *) &wxNullBitmap;
10824 PyObject * _argo0 = 0;
10825 PyObject * _argo1 = 0;
10826 PyObject * _argo2 = 0;
10827 char *_kwnames[] = { "self","bitmap","mask", NULL };
10828
10829 self = self;
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO|O:wxImageList_Add",_kwnames,&_argo0,&_argo1,&_argo2))
10831 return NULL;
10832 if (_argo0) {
10833 if (_argo0 == Py_None) { _arg0 = NULL; }
10834 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10835 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Add. Expected _wxImageList_p.");
10836 return NULL;
10837 }
10838 }
10839 if (_argo1) {
10840 if (_argo1 == Py_None) { _arg1 = NULL; }
10841 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10842 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_Add. Expected _wxBitmap_p.");
10843 return NULL;
10844 }
10845 }
10846 if (_argo2) {
10847 if (_argo2 == Py_None) { _arg2 = NULL; }
10848 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10849 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Add. Expected _wxBitmap_p.");
10850 return NULL;
10851 }
10852 }
10853 {
10854 wxPy_BEGIN_ALLOW_THREADS;
10855 _result = (int )wxImageList_Add(_arg0,*_arg1,*_arg2);
10856
10857 wxPy_END_ALLOW_THREADS;
10858 if (PyErr_Occurred()) return NULL;
10859 } _resultobj = Py_BuildValue("i",_result);
10860 return _resultobj;
10861 }
10862
10863 #define wxImageList_AddWithColourMask(_swigobj,_swigarg0,_swigarg1) (_swigobj->Add(_swigarg0,_swigarg1))
10864 static PyObject *_wrap_wxImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
10865 PyObject * _resultobj;
10866 int _result;
10867 wxImageList * _arg0;
10868 wxBitmap * _arg1;
10869 wxColour * _arg2;
10870 PyObject * _argo0 = 0;
10871 PyObject * _argo1 = 0;
10872 wxColour temp;
10873 PyObject * _obj2 = 0;
10874 char *_kwnames[] = { "self","bitmap","maskColour", NULL };
10875
10876 self = self;
10877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OOO:wxImageList_AddWithColourMask",_kwnames,&_argo0,&_argo1,&_obj2))
10878 return NULL;
10879 if (_argo0) {
10880 if (_argo0 == Py_None) { _arg0 = NULL; }
10881 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10882 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddWithColourMask. Expected _wxImageList_p.");
10883 return NULL;
10884 }
10885 }
10886 if (_argo1) {
10887 if (_argo1 == Py_None) { _arg1 = NULL; }
10888 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxBitmap_p")) {
10889 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddWithColourMask. Expected _wxBitmap_p.");
10890 return NULL;
10891 }
10892 }
10893 {
10894 _arg2 = &temp;
10895 if (! wxColour_helper(_obj2, &_arg2))
10896 return NULL;
10897 }
10898 {
10899 wxPy_BEGIN_ALLOW_THREADS;
10900 _result = (int )wxImageList_AddWithColourMask(_arg0,*_arg1,*_arg2);
10901
10902 wxPy_END_ALLOW_THREADS;
10903 if (PyErr_Occurred()) return NULL;
10904 } _resultobj = Py_BuildValue("i",_result);
10905 return _resultobj;
10906 }
10907
10908 #define wxImageList_AddIcon(_swigobj,_swigarg0) (_swigobj->Add(_swigarg0))
10909 static PyObject *_wrap_wxImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
10910 PyObject * _resultobj;
10911 int _result;
10912 wxImageList * _arg0;
10913 wxIcon * _arg1;
10914 PyObject * _argo0 = 0;
10915 PyObject * _argo1 = 0;
10916 char *_kwnames[] = { "self","icon", NULL };
10917
10918 self = self;
10919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImageList_AddIcon",_kwnames,&_argo0,&_argo1))
10920 return NULL;
10921 if (_argo0) {
10922 if (_argo0 == Py_None) { _arg0 = NULL; }
10923 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10924 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_AddIcon. Expected _wxImageList_p.");
10925 return NULL;
10926 }
10927 }
10928 if (_argo1) {
10929 if (_argo1 == Py_None) { _arg1 = NULL; }
10930 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxIcon_p")) {
10931 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxImageList_AddIcon. Expected _wxIcon_p.");
10932 return NULL;
10933 }
10934 }
10935 {
10936 wxPy_BEGIN_ALLOW_THREADS;
10937 _result = (int )wxImageList_AddIcon(_arg0,*_arg1);
10938
10939 wxPy_END_ALLOW_THREADS;
10940 if (PyErr_Occurred()) return NULL;
10941 } _resultobj = Py_BuildValue("i",_result);
10942 return _resultobj;
10943 }
10944
10945 #define wxImageList_Replace(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->Replace(_swigarg0,_swigarg1,_swigarg2))
10946 static PyObject *_wrap_wxImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
10947 PyObject * _resultobj;
10948 bool _result;
10949 wxImageList * _arg0;
10950 int _arg1;
10951 wxBitmap * _arg2;
10952 wxBitmap * _arg3 = (wxBitmap *) &wxNullBitmap;
10953 PyObject * _argo0 = 0;
10954 PyObject * _argo2 = 0;
10955 PyObject * _argo3 = 0;
10956 char *_kwnames[] = { "self","index","bitmap","mask", NULL };
10957
10958 self = self;
10959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiO|O:wxImageList_Replace",_kwnames,&_argo0,&_arg1,&_argo2,&_argo3))
10960 return NULL;
10961 if (_argo0) {
10962 if (_argo0 == Py_None) { _arg0 = NULL; }
10963 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
10964 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Replace. Expected _wxImageList_p.");
10965 return NULL;
10966 }
10967 }
10968 if (_argo2) {
10969 if (_argo2 == Py_None) { _arg2 = NULL; }
10970 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxBitmap_p")) {
10971 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Replace. Expected _wxBitmap_p.");
10972 return NULL;
10973 }
10974 }
10975 if (_argo3) {
10976 if (_argo3 == Py_None) { _arg3 = NULL; }
10977 else if (SWIG_GetPtrObj(_argo3,(void **) &_arg3,"_wxBitmap_p")) {
10978 PyErr_SetString(PyExc_TypeError,"Type error in argument 4 of wxImageList_Replace. Expected _wxBitmap_p.");
10979 return NULL;
10980 }
10981 }
10982 {
10983 wxPy_BEGIN_ALLOW_THREADS;
10984 _result = (bool )wxImageList_Replace(_arg0,_arg1,*_arg2,*_arg3);
10985
10986 wxPy_END_ALLOW_THREADS;
10987 if (PyErr_Occurred()) return NULL;
10988 } _resultobj = Py_BuildValue("i",_result);
10989 return _resultobj;
10990 }
10991
10992 #define wxImageList_Draw(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5) (_swigobj->Draw(_swigarg0,_swigarg1,_swigarg2,_swigarg3,_swigarg4,_swigarg5))
10993 static PyObject *_wrap_wxImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
10994 PyObject * _resultobj;
10995 bool _result;
10996 wxImageList * _arg0;
10997 int _arg1;
10998 wxDC * _arg2;
10999 int _arg3;
11000 int _arg4;
11001 int _arg5 = (int ) (wxIMAGELIST_DRAW_NORMAL);
11002 bool _arg6 = (bool ) FALSE;
11003 PyObject * _argo0 = 0;
11004 PyObject * _argo2 = 0;
11005 int tempbool6 = (int) FALSE;
11006 char *_kwnames[] = { "self","index","dc","x","x","flags","solidBackground", NULL };
11007
11008 self = self;
11009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OiOii|ii:wxImageList_Draw",_kwnames,&_argo0,&_arg1,&_argo2,&_arg3,&_arg4,&_arg5,&tempbool6))
11010 return NULL;
11011 if (_argo0) {
11012 if (_argo0 == Py_None) { _arg0 = NULL; }
11013 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11014 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Draw. Expected _wxImageList_p.");
11015 return NULL;
11016 }
11017 }
11018 if (_argo2) {
11019 if (_argo2 == Py_None) { _arg2 = NULL; }
11020 else if (SWIG_GetPtrObj(_argo2,(void **) &_arg2,"_wxDC_p")) {
11021 PyErr_SetString(PyExc_TypeError,"Type error in argument 3 of wxImageList_Draw. Expected _wxDC_p.");
11022 return NULL;
11023 }
11024 }
11025 _arg6 = (bool ) tempbool6;
11026 {
11027 wxPy_BEGIN_ALLOW_THREADS;
11028 _result = (bool )wxImageList_Draw(_arg0,_arg1,*_arg2,_arg3,_arg4,_arg5,_arg6);
11029
11030 wxPy_END_ALLOW_THREADS;
11031 if (PyErr_Occurred()) return NULL;
11032 } _resultobj = Py_BuildValue("i",_result);
11033 return _resultobj;
11034 }
11035
11036 #define wxImageList_GetImageCount(_swigobj) (_swigobj->GetImageCount())
11037 static PyObject *_wrap_wxImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
11038 PyObject * _resultobj;
11039 int _result;
11040 wxImageList * _arg0;
11041 PyObject * _argo0 = 0;
11042 char *_kwnames[] = { "self", NULL };
11043
11044 self = self;
11045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_GetImageCount",_kwnames,&_argo0))
11046 return NULL;
11047 if (_argo0) {
11048 if (_argo0 == Py_None) { _arg0 = NULL; }
11049 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11050 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetImageCount. Expected _wxImageList_p.");
11051 return NULL;
11052 }
11053 }
11054 {
11055 wxPy_BEGIN_ALLOW_THREADS;
11056 _result = (int )wxImageList_GetImageCount(_arg0);
11057
11058 wxPy_END_ALLOW_THREADS;
11059 if (PyErr_Occurred()) return NULL;
11060 } _resultobj = Py_BuildValue("i",_result);
11061 return _resultobj;
11062 }
11063
11064 #define wxImageList_Remove(_swigobj,_swigarg0) (_swigobj->Remove(_swigarg0))
11065 static PyObject *_wrap_wxImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
11066 PyObject * _resultobj;
11067 bool _result;
11068 wxImageList * _arg0;
11069 int _arg1;
11070 PyObject * _argo0 = 0;
11071 char *_kwnames[] = { "self","index", NULL };
11072
11073 self = self;
11074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_Remove",_kwnames,&_argo0,&_arg1))
11075 return NULL;
11076 if (_argo0) {
11077 if (_argo0 == Py_None) { _arg0 = NULL; }
11078 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11079 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_Remove. Expected _wxImageList_p.");
11080 return NULL;
11081 }
11082 }
11083 {
11084 wxPy_BEGIN_ALLOW_THREADS;
11085 _result = (bool )wxImageList_Remove(_arg0,_arg1);
11086
11087 wxPy_END_ALLOW_THREADS;
11088 if (PyErr_Occurred()) return NULL;
11089 } _resultobj = Py_BuildValue("i",_result);
11090 return _resultobj;
11091 }
11092
11093 #define wxImageList_RemoveAll(_swigobj) (_swigobj->RemoveAll())
11094 static PyObject *_wrap_wxImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
11095 PyObject * _resultobj;
11096 bool _result;
11097 wxImageList * _arg0;
11098 PyObject * _argo0 = 0;
11099 char *_kwnames[] = { "self", NULL };
11100
11101 self = self;
11102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxImageList_RemoveAll",_kwnames,&_argo0))
11103 return NULL;
11104 if (_argo0) {
11105 if (_argo0 == Py_None) { _arg0 = NULL; }
11106 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11107 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_RemoveAll. Expected _wxImageList_p.");
11108 return NULL;
11109 }
11110 }
11111 {
11112 wxPy_BEGIN_ALLOW_THREADS;
11113 _result = (bool )wxImageList_RemoveAll(_arg0);
11114
11115 wxPy_END_ALLOW_THREADS;
11116 if (PyErr_Occurred()) return NULL;
11117 } _resultobj = Py_BuildValue("i",_result);
11118 return _resultobj;
11119 }
11120
11121 #define wxImageList_GetSize(_swigobj,_swigarg0,_swigarg1,_swigarg2) (_swigobj->GetSize(_swigarg0,_swigarg1,_swigarg2))
11122 static PyObject *_wrap_wxImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11123 PyObject * _resultobj;
11124 wxImageList * _arg0;
11125 int _arg1;
11126 int * _arg2;
11127 int temp;
11128 int * _arg3;
11129 int temp0;
11130 PyObject * _argo0 = 0;
11131 char *_kwnames[] = { "self","index", NULL };
11132
11133 self = self;
11134 {
11135 _arg2 = &temp;
11136 }
11137 {
11138 _arg3 = &temp0;
11139 }
11140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oi:wxImageList_GetSize",_kwnames,&_argo0,&_arg1))
11141 return NULL;
11142 if (_argo0) {
11143 if (_argo0 == Py_None) { _arg0 = NULL; }
11144 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImageList_p")) {
11145 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImageList_GetSize. Expected _wxImageList_p.");
11146 return NULL;
11147 }
11148 }
11149 {
11150 wxPy_BEGIN_ALLOW_THREADS;
11151 wxImageList_GetSize(_arg0,_arg1,*_arg2,*_arg3);
11152
11153 wxPy_END_ALLOW_THREADS;
11154 if (PyErr_Occurred()) return NULL;
11155 } Py_INCREF(Py_None);
11156 _resultobj = Py_None;
11157 {
11158 PyObject *o;
11159 o = PyInt_FromLong((long) (*_arg2));
11160 _resultobj = t_output_helper(_resultobj, o);
11161 }
11162 {
11163 PyObject *o;
11164 o = PyInt_FromLong((long) (*_arg3));
11165 _resultobj = t_output_helper(_resultobj, o);
11166 }
11167 return _resultobj;
11168 }
11169
11170 static void *SwigwxRegionTowxGDIObject(void *ptr) {
11171 wxRegion *src;
11172 wxGDIObject *dest;
11173 src = (wxRegion *) ptr;
11174 dest = (wxGDIObject *) src;
11175 return (void *) dest;
11176 }
11177
11178 static void *SwigwxRegionTowxObject(void *ptr) {
11179 wxRegion *src;
11180 wxObject *dest;
11181 src = (wxRegion *) ptr;
11182 dest = (wxObject *) src;
11183 return (void *) dest;
11184 }
11185
11186 #define new_wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3) (new wxRegion(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11187 static PyObject *_wrap_new_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11188 PyObject * _resultobj;
11189 wxRegion * _result;
11190 long _arg0 = (long ) 0;
11191 long _arg1 = (long ) 0;
11192 long _arg2 = (long ) 0;
11193 long _arg3 = (long ) 0;
11194 char *_kwnames[] = { "x","y","width","height", NULL };
11195 char _ptemp[128];
11196
11197 self = self;
11198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"|llll:new_wxRegion",_kwnames,&_arg0,&_arg1,&_arg2,&_arg3))
11199 return NULL;
11200 {
11201 wxPy_BEGIN_ALLOW_THREADS;
11202 _result = (wxRegion *)new_wxRegion(_arg0,_arg1,_arg2,_arg3);
11203
11204 wxPy_END_ALLOW_THREADS;
11205 if (PyErr_Occurred()) return NULL;
11206 } if (_result) {
11207 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegion_p");
11208 _resultobj = Py_BuildValue("s",_ptemp);
11209 } else {
11210 Py_INCREF(Py_None);
11211 _resultobj = Py_None;
11212 }
11213 return _resultobj;
11214 }
11215
11216 #define delete_wxRegion(_swigobj) (delete _swigobj)
11217 static PyObject *_wrap_delete_wxRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11218 PyObject * _resultobj;
11219 wxRegion * _arg0;
11220 PyObject * _argo0 = 0;
11221 char *_kwnames[] = { "self", NULL };
11222
11223 self = self;
11224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegion",_kwnames,&_argo0))
11225 return NULL;
11226 if (_argo0) {
11227 if (_argo0 == Py_None) { _arg0 = NULL; }
11228 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11229 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegion. Expected _wxRegion_p.");
11230 return NULL;
11231 }
11232 }
11233 {
11234 wxPy_BEGIN_ALLOW_THREADS;
11235 delete_wxRegion(_arg0);
11236
11237 wxPy_END_ALLOW_THREADS;
11238 if (PyErr_Occurred()) return NULL;
11239 } Py_INCREF(Py_None);
11240 _resultobj = Py_None;
11241 return _resultobj;
11242 }
11243
11244 #define wxRegion_Clear(_swigobj) (_swigobj->Clear())
11245 static PyObject *_wrap_wxRegion_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11246 PyObject * _resultobj;
11247 wxRegion * _arg0;
11248 PyObject * _argo0 = 0;
11249 char *_kwnames[] = { "self", NULL };
11250
11251 self = self;
11252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_Clear",_kwnames,&_argo0))
11253 return NULL;
11254 if (_argo0) {
11255 if (_argo0 == Py_None) { _arg0 = NULL; }
11256 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11257 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Clear. Expected _wxRegion_p.");
11258 return NULL;
11259 }
11260 }
11261 {
11262 wxPy_BEGIN_ALLOW_THREADS;
11263 wxRegion_Clear(_arg0);
11264
11265 wxPy_END_ALLOW_THREADS;
11266 if (PyErr_Occurred()) return NULL;
11267 } Py_INCREF(Py_None);
11268 _resultobj = Py_None;
11269 return _resultobj;
11270 }
11271
11272 #define wxRegion_Contains(_swigobj,_swigarg0,_swigarg1) (_swigobj->Contains(_swigarg0,_swigarg1))
11273 static PyObject *_wrap_wxRegion_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
11274 PyObject * _resultobj;
11275 wxRegionContain _result;
11276 wxRegion * _arg0;
11277 long _arg1;
11278 long _arg2;
11279 PyObject * _argo0 = 0;
11280 char *_kwnames[] = { "self","x","y", NULL };
11281
11282 self = self;
11283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oll:wxRegion_Contains",_kwnames,&_argo0,&_arg1,&_arg2))
11284 return NULL;
11285 if (_argo0) {
11286 if (_argo0 == Py_None) { _arg0 = NULL; }
11287 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11288 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Contains. Expected _wxRegion_p.");
11289 return NULL;
11290 }
11291 }
11292 {
11293 wxPy_BEGIN_ALLOW_THREADS;
11294 _result = (wxRegionContain )wxRegion_Contains(_arg0,_arg1,_arg2);
11295
11296 wxPy_END_ALLOW_THREADS;
11297 if (PyErr_Occurred()) return NULL;
11298 } _resultobj = Py_BuildValue("i",_result);
11299 return _resultobj;
11300 }
11301
11302 #define wxRegion_ContainsPoint(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11303 static PyObject *_wrap_wxRegion_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11304 PyObject * _resultobj;
11305 wxRegionContain _result;
11306 wxRegion * _arg0;
11307 wxPoint * _arg1;
11308 PyObject * _argo0 = 0;
11309 wxPoint temp;
11310 PyObject * _obj1 = 0;
11311 char *_kwnames[] = { "self","pt", NULL };
11312
11313 self = self;
11314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsPoint",_kwnames,&_argo0,&_obj1))
11315 return NULL;
11316 if (_argo0) {
11317 if (_argo0 == Py_None) { _arg0 = NULL; }
11318 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11319 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsPoint. Expected _wxRegion_p.");
11320 return NULL;
11321 }
11322 }
11323 {
11324 _arg1 = &temp;
11325 if (! wxPoint_helper(_obj1, &_arg1))
11326 return NULL;
11327 }
11328 {
11329 wxPy_BEGIN_ALLOW_THREADS;
11330 _result = (wxRegionContain )wxRegion_ContainsPoint(_arg0,*_arg1);
11331
11332 wxPy_END_ALLOW_THREADS;
11333 if (PyErr_Occurred()) return NULL;
11334 } _resultobj = Py_BuildValue("i",_result);
11335 return _resultobj;
11336 }
11337
11338 #define wxRegion_ContainsRect(_swigobj,_swigarg0) (_swigobj->Contains(_swigarg0))
11339 static PyObject *_wrap_wxRegion_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11340 PyObject * _resultobj;
11341 wxRegionContain _result;
11342 wxRegion * _arg0;
11343 wxRect * _arg1;
11344 PyObject * _argo0 = 0;
11345 wxRect temp;
11346 PyObject * _obj1 = 0;
11347 char *_kwnames[] = { "self","rect", NULL };
11348
11349 self = self;
11350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_ContainsRect",_kwnames,&_argo0,&_obj1))
11351 return NULL;
11352 if (_argo0) {
11353 if (_argo0 == Py_None) { _arg0 = NULL; }
11354 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11355 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRect. Expected _wxRegion_p.");
11356 return NULL;
11357 }
11358 }
11359 {
11360 _arg1 = &temp;
11361 if (! wxRect_helper(_obj1, &_arg1))
11362 return NULL;
11363 }
11364 {
11365 wxPy_BEGIN_ALLOW_THREADS;
11366 _result = (wxRegionContain )wxRegion_ContainsRect(_arg0,*_arg1);
11367
11368 wxPy_END_ALLOW_THREADS;
11369 if (PyErr_Occurred()) return NULL;
11370 } _resultobj = Py_BuildValue("i",_result);
11371 return _resultobj;
11372 }
11373
11374 #define wxRegion_ContainsRectDim(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Contains(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11375 static PyObject *_wrap_wxRegion_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
11376 PyObject * _resultobj;
11377 wxRegionContain _result;
11378 wxRegion * _arg0;
11379 long _arg1;
11380 long _arg2;
11381 long _arg3;
11382 long _arg4;
11383 PyObject * _argo0 = 0;
11384 char *_kwnames[] = { "self","x","y","w","h", NULL };
11385
11386 self = self;
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_ContainsRectDim",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11388 return NULL;
11389 if (_argo0) {
11390 if (_argo0 == Py_None) { _arg0 = NULL; }
11391 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11392 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_ContainsRectDim. Expected _wxRegion_p.");
11393 return NULL;
11394 }
11395 }
11396 {
11397 wxPy_BEGIN_ALLOW_THREADS;
11398 _result = (wxRegionContain )wxRegion_ContainsRectDim(_arg0,_arg1,_arg2,_arg3,_arg4);
11399
11400 wxPy_END_ALLOW_THREADS;
11401 if (PyErr_Occurred()) return NULL;
11402 } _resultobj = Py_BuildValue("i",_result);
11403 return _resultobj;
11404 }
11405
11406 #define wxRegion_GetBox(_swigobj) (_swigobj->GetBox())
11407 static PyObject *_wrap_wxRegion_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
11408 PyObject * _resultobj;
11409 wxRect * _result;
11410 wxRegion * _arg0;
11411 PyObject * _argo0 = 0;
11412 char *_kwnames[] = { "self", NULL };
11413 char _ptemp[128];
11414
11415 self = self;
11416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_GetBox",_kwnames,&_argo0))
11417 return NULL;
11418 if (_argo0) {
11419 if (_argo0 == Py_None) { _arg0 = NULL; }
11420 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11421 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_GetBox. Expected _wxRegion_p.");
11422 return NULL;
11423 }
11424 }
11425 {
11426 wxPy_BEGIN_ALLOW_THREADS;
11427 _result = new wxRect (wxRegion_GetBox(_arg0));
11428
11429 wxPy_END_ALLOW_THREADS;
11430 if (PyErr_Occurred()) return NULL;
11431 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
11432 _resultobj = Py_BuildValue("s",_ptemp);
11433 return _resultobj;
11434 }
11435
11436 #define wxRegion_Intersect(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Intersect(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11437 static PyObject *_wrap_wxRegion_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
11438 PyObject * _resultobj;
11439 bool _result;
11440 wxRegion * _arg0;
11441 long _arg1;
11442 long _arg2;
11443 long _arg3;
11444 long _arg4;
11445 PyObject * _argo0 = 0;
11446 char *_kwnames[] = { "self","x","y","width","height", NULL };
11447
11448 self = self;
11449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Intersect",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
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_Intersect. Expected _wxRegion_p.");
11455 return NULL;
11456 }
11457 }
11458 {
11459 wxPy_BEGIN_ALLOW_THREADS;
11460 _result = (bool )wxRegion_Intersect(_arg0,_arg1,_arg2,_arg3,_arg4);
11461
11462 wxPy_END_ALLOW_THREADS;
11463 if (PyErr_Occurred()) return NULL;
11464 } _resultobj = Py_BuildValue("i",_result);
11465 return _resultobj;
11466 }
11467
11468 #define wxRegion_IntersectRect(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11469 static PyObject *_wrap_wxRegion_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11470 PyObject * _resultobj;
11471 bool _result;
11472 wxRegion * _arg0;
11473 wxRect * _arg1;
11474 PyObject * _argo0 = 0;
11475 wxRect temp;
11476 PyObject * _obj1 = 0;
11477 char *_kwnames[] = { "self","rect", NULL };
11478
11479 self = self;
11480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRect",_kwnames,&_argo0,&_obj1))
11481 return NULL;
11482 if (_argo0) {
11483 if (_argo0 == Py_None) { _arg0 = NULL; }
11484 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11485 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRect. Expected _wxRegion_p.");
11486 return NULL;
11487 }
11488 }
11489 {
11490 _arg1 = &temp;
11491 if (! wxRect_helper(_obj1, &_arg1))
11492 return NULL;
11493 }
11494 {
11495 wxPy_BEGIN_ALLOW_THREADS;
11496 _result = (bool )wxRegion_IntersectRect(_arg0,*_arg1);
11497
11498 wxPy_END_ALLOW_THREADS;
11499 if (PyErr_Occurred()) return NULL;
11500 } _resultobj = Py_BuildValue("i",_result);
11501 return _resultobj;
11502 }
11503
11504 #define wxRegion_IntersectRegion(_swigobj,_swigarg0) (_swigobj->Intersect(_swigarg0))
11505 static PyObject *_wrap_wxRegion_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11506 PyObject * _resultobj;
11507 bool _result;
11508 wxRegion * _arg0;
11509 wxRegion * _arg1;
11510 PyObject * _argo0 = 0;
11511 PyObject * _argo1 = 0;
11512 char *_kwnames[] = { "self","region", NULL };
11513
11514 self = self;
11515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_IntersectRegion",_kwnames,&_argo0,&_argo1))
11516 return NULL;
11517 if (_argo0) {
11518 if (_argo0 == Py_None) { _arg0 = NULL; }
11519 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11520 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11521 return NULL;
11522 }
11523 }
11524 if (_argo1) {
11525 if (_argo1 == Py_None) { _arg1 = NULL; }
11526 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11527 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_IntersectRegion. Expected _wxRegion_p.");
11528 return NULL;
11529 }
11530 }
11531 {
11532 wxPy_BEGIN_ALLOW_THREADS;
11533 _result = (bool )wxRegion_IntersectRegion(_arg0,*_arg1);
11534
11535 wxPy_END_ALLOW_THREADS;
11536 if (PyErr_Occurred()) return NULL;
11537 } _resultobj = Py_BuildValue("i",_result);
11538 return _resultobj;
11539 }
11540
11541 #define wxRegion_IsEmpty(_swigobj) (_swigobj->IsEmpty())
11542 static PyObject *_wrap_wxRegion_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
11543 PyObject * _resultobj;
11544 bool _result;
11545 wxRegion * _arg0;
11546 PyObject * _argo0 = 0;
11547 char *_kwnames[] = { "self", NULL };
11548
11549 self = self;
11550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegion_IsEmpty",_kwnames,&_argo0))
11551 return NULL;
11552 if (_argo0) {
11553 if (_argo0 == Py_None) { _arg0 = NULL; }
11554 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11555 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_IsEmpty. Expected _wxRegion_p.");
11556 return NULL;
11557 }
11558 }
11559 {
11560 wxPy_BEGIN_ALLOW_THREADS;
11561 _result = (bool )wxRegion_IsEmpty(_arg0);
11562
11563 wxPy_END_ALLOW_THREADS;
11564 if (PyErr_Occurred()) return NULL;
11565 } _resultobj = Py_BuildValue("i",_result);
11566 return _resultobj;
11567 }
11568
11569 #define wxRegion_Union(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Union(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11570 static PyObject *_wrap_wxRegion_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
11571 PyObject * _resultobj;
11572 bool _result;
11573 wxRegion * _arg0;
11574 long _arg1;
11575 long _arg2;
11576 long _arg3;
11577 long _arg4;
11578 PyObject * _argo0 = 0;
11579 char *_kwnames[] = { "self","x","y","width","height", NULL };
11580
11581 self = self;
11582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Union",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11583 return NULL;
11584 if (_argo0) {
11585 if (_argo0 == Py_None) { _arg0 = NULL; }
11586 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11587 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Union. Expected _wxRegion_p.");
11588 return NULL;
11589 }
11590 }
11591 {
11592 wxPy_BEGIN_ALLOW_THREADS;
11593 _result = (bool )wxRegion_Union(_arg0,_arg1,_arg2,_arg3,_arg4);
11594
11595 wxPy_END_ALLOW_THREADS;
11596 if (PyErr_Occurred()) return NULL;
11597 } _resultobj = Py_BuildValue("i",_result);
11598 return _resultobj;
11599 }
11600
11601 #define wxRegion_UnionRect(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11602 static PyObject *_wrap_wxRegion_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11603 PyObject * _resultobj;
11604 bool _result;
11605 wxRegion * _arg0;
11606 wxRect * _arg1;
11607 PyObject * _argo0 = 0;
11608 wxRect temp;
11609 PyObject * _obj1 = 0;
11610 char *_kwnames[] = { "self","rect", NULL };
11611
11612 self = self;
11613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRect",_kwnames,&_argo0,&_obj1))
11614 return NULL;
11615 if (_argo0) {
11616 if (_argo0 == Py_None) { _arg0 = NULL; }
11617 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11618 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRect. Expected _wxRegion_p.");
11619 return NULL;
11620 }
11621 }
11622 {
11623 _arg1 = &temp;
11624 if (! wxRect_helper(_obj1, &_arg1))
11625 return NULL;
11626 }
11627 {
11628 wxPy_BEGIN_ALLOW_THREADS;
11629 _result = (bool )wxRegion_UnionRect(_arg0,*_arg1);
11630
11631 wxPy_END_ALLOW_THREADS;
11632 if (PyErr_Occurred()) return NULL;
11633 } _resultobj = Py_BuildValue("i",_result);
11634 return _resultobj;
11635 }
11636
11637 #define wxRegion_UnionRegion(_swigobj,_swigarg0) (_swigobj->Union(_swigarg0))
11638 static PyObject *_wrap_wxRegion_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11639 PyObject * _resultobj;
11640 bool _result;
11641 wxRegion * _arg0;
11642 wxRegion * _arg1;
11643 PyObject * _argo0 = 0;
11644 PyObject * _argo1 = 0;
11645 char *_kwnames[] = { "self","region", NULL };
11646
11647 self = self;
11648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_UnionRegion",_kwnames,&_argo0,&_argo1))
11649 return NULL;
11650 if (_argo0) {
11651 if (_argo0 == Py_None) { _arg0 = NULL; }
11652 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11653 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11654 return NULL;
11655 }
11656 }
11657 if (_argo1) {
11658 if (_argo1 == Py_None) { _arg1 = NULL; }
11659 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11660 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_UnionRegion. Expected _wxRegion_p.");
11661 return NULL;
11662 }
11663 }
11664 {
11665 wxPy_BEGIN_ALLOW_THREADS;
11666 _result = (bool )wxRegion_UnionRegion(_arg0,*_arg1);
11667
11668 wxPy_END_ALLOW_THREADS;
11669 if (PyErr_Occurred()) return NULL;
11670 } _resultobj = Py_BuildValue("i",_result);
11671 return _resultobj;
11672 }
11673
11674 #define wxRegion_Subtract(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Subtract(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11675 static PyObject *_wrap_wxRegion_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
11676 PyObject * _resultobj;
11677 bool _result;
11678 wxRegion * _arg0;
11679 long _arg1;
11680 long _arg2;
11681 long _arg3;
11682 long _arg4;
11683 PyObject * _argo0 = 0;
11684 char *_kwnames[] = { "self","x","y","width","height", NULL };
11685
11686 self = self;
11687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Subtract",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11688 return NULL;
11689 if (_argo0) {
11690 if (_argo0 == Py_None) { _arg0 = NULL; }
11691 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11692 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Subtract. Expected _wxRegion_p.");
11693 return NULL;
11694 }
11695 }
11696 {
11697 wxPy_BEGIN_ALLOW_THREADS;
11698 _result = (bool )wxRegion_Subtract(_arg0,_arg1,_arg2,_arg3,_arg4);
11699
11700 wxPy_END_ALLOW_THREADS;
11701 if (PyErr_Occurred()) return NULL;
11702 } _resultobj = Py_BuildValue("i",_result);
11703 return _resultobj;
11704 }
11705
11706 #define wxRegion_SubtractRect(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11707 static PyObject *_wrap_wxRegion_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11708 PyObject * _resultobj;
11709 bool _result;
11710 wxRegion * _arg0;
11711 wxRect * _arg1;
11712 PyObject * _argo0 = 0;
11713 wxRect temp;
11714 PyObject * _obj1 = 0;
11715 char *_kwnames[] = { "self","rect", NULL };
11716
11717 self = self;
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRect",_kwnames,&_argo0,&_obj1))
11719 return NULL;
11720 if (_argo0) {
11721 if (_argo0 == Py_None) { _arg0 = NULL; }
11722 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11723 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRect. Expected _wxRegion_p.");
11724 return NULL;
11725 }
11726 }
11727 {
11728 _arg1 = &temp;
11729 if (! wxRect_helper(_obj1, &_arg1))
11730 return NULL;
11731 }
11732 {
11733 wxPy_BEGIN_ALLOW_THREADS;
11734 _result = (bool )wxRegion_SubtractRect(_arg0,*_arg1);
11735
11736 wxPy_END_ALLOW_THREADS;
11737 if (PyErr_Occurred()) return NULL;
11738 } _resultobj = Py_BuildValue("i",_result);
11739 return _resultobj;
11740 }
11741
11742 #define wxRegion_SubtractRegion(_swigobj,_swigarg0) (_swigobj->Subtract(_swigarg0))
11743 static PyObject *_wrap_wxRegion_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11744 PyObject * _resultobj;
11745 bool _result;
11746 wxRegion * _arg0;
11747 wxRegion * _arg1;
11748 PyObject * _argo0 = 0;
11749 PyObject * _argo1 = 0;
11750 char *_kwnames[] = { "self","region", NULL };
11751
11752 self = self;
11753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_SubtractRegion",_kwnames,&_argo0,&_argo1))
11754 return NULL;
11755 if (_argo0) {
11756 if (_argo0 == Py_None) { _arg0 = NULL; }
11757 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11758 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11759 return NULL;
11760 }
11761 }
11762 if (_argo1) {
11763 if (_argo1 == Py_None) { _arg1 = NULL; }
11764 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11765 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_SubtractRegion. Expected _wxRegion_p.");
11766 return NULL;
11767 }
11768 }
11769 {
11770 wxPy_BEGIN_ALLOW_THREADS;
11771 _result = (bool )wxRegion_SubtractRegion(_arg0,*_arg1);
11772
11773 wxPy_END_ALLOW_THREADS;
11774 if (PyErr_Occurred()) return NULL;
11775 } _resultobj = Py_BuildValue("i",_result);
11776 return _resultobj;
11777 }
11778
11779 #define wxRegion_Xor(_swigobj,_swigarg0,_swigarg1,_swigarg2,_swigarg3) (_swigobj->Xor(_swigarg0,_swigarg1,_swigarg2,_swigarg3))
11780 static PyObject *_wrap_wxRegion_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
11781 PyObject * _resultobj;
11782 bool _result;
11783 wxRegion * _arg0;
11784 long _arg1;
11785 long _arg2;
11786 long _arg3;
11787 long _arg4;
11788 PyObject * _argo0 = 0;
11789 char *_kwnames[] = { "self","x","y","width","height", NULL };
11790
11791 self = self;
11792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Ollll:wxRegion_Xor",_kwnames,&_argo0,&_arg1,&_arg2,&_arg3,&_arg4))
11793 return NULL;
11794 if (_argo0) {
11795 if (_argo0 == Py_None) { _arg0 = NULL; }
11796 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11797 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_Xor. Expected _wxRegion_p.");
11798 return NULL;
11799 }
11800 }
11801 {
11802 wxPy_BEGIN_ALLOW_THREADS;
11803 _result = (bool )wxRegion_Xor(_arg0,_arg1,_arg2,_arg3,_arg4);
11804
11805 wxPy_END_ALLOW_THREADS;
11806 if (PyErr_Occurred()) return NULL;
11807 } _resultobj = Py_BuildValue("i",_result);
11808 return _resultobj;
11809 }
11810
11811 #define wxRegion_XorRect(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11812 static PyObject *_wrap_wxRegion_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11813 PyObject * _resultobj;
11814 bool _result;
11815 wxRegion * _arg0;
11816 wxRect * _arg1;
11817 PyObject * _argo0 = 0;
11818 wxRect temp;
11819 PyObject * _obj1 = 0;
11820 char *_kwnames[] = { "self","rect", NULL };
11821
11822 self = self;
11823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRect",_kwnames,&_argo0,&_obj1))
11824 return NULL;
11825 if (_argo0) {
11826 if (_argo0 == Py_None) { _arg0 = NULL; }
11827 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11828 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRect. Expected _wxRegion_p.");
11829 return NULL;
11830 }
11831 }
11832 {
11833 _arg1 = &temp;
11834 if (! wxRect_helper(_obj1, &_arg1))
11835 return NULL;
11836 }
11837 {
11838 wxPy_BEGIN_ALLOW_THREADS;
11839 _result = (bool )wxRegion_XorRect(_arg0,*_arg1);
11840
11841 wxPy_END_ALLOW_THREADS;
11842 if (PyErr_Occurred()) return NULL;
11843 } _resultobj = Py_BuildValue("i",_result);
11844 return _resultobj;
11845 }
11846
11847 #define wxRegion_XorRegion(_swigobj,_swigarg0) (_swigobj->Xor(_swigarg0))
11848 static PyObject *_wrap_wxRegion_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11849 PyObject * _resultobj;
11850 bool _result;
11851 wxRegion * _arg0;
11852 wxRegion * _arg1;
11853 PyObject * _argo0 = 0;
11854 PyObject * _argo1 = 0;
11855 char *_kwnames[] = { "self","region", NULL };
11856
11857 self = self;
11858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRegion_XorRegion",_kwnames,&_argo0,&_argo1))
11859 return NULL;
11860 if (_argo0) {
11861 if (_argo0 == Py_None) { _arg0 = NULL; }
11862 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11863 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegion_XorRegion. Expected _wxRegion_p.");
11864 return NULL;
11865 }
11866 }
11867 if (_argo1) {
11868 if (_argo1 == Py_None) { _arg1 = NULL; }
11869 else if (SWIG_GetPtrObj(_argo1,(void **) &_arg1,"_wxRegion_p")) {
11870 PyErr_SetString(PyExc_TypeError,"Type error in argument 2 of wxRegion_XorRegion. Expected _wxRegion_p.");
11871 return NULL;
11872 }
11873 }
11874 {
11875 wxPy_BEGIN_ALLOW_THREADS;
11876 _result = (bool )wxRegion_XorRegion(_arg0,*_arg1);
11877
11878 wxPy_END_ALLOW_THREADS;
11879 if (PyErr_Occurred()) return NULL;
11880 } _resultobj = Py_BuildValue("i",_result);
11881 return _resultobj;
11882 }
11883
11884 static void *SwigwxRegionIteratorTowxObject(void *ptr) {
11885 wxRegionIterator *src;
11886 wxObject *dest;
11887 src = (wxRegionIterator *) ptr;
11888 dest = (wxObject *) src;
11889 return (void *) dest;
11890 }
11891
11892 #define new_wxRegionIterator(_swigarg0) (new wxRegionIterator(_swigarg0))
11893 static PyObject *_wrap_new_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11894 PyObject * _resultobj;
11895 wxRegionIterator * _result;
11896 wxRegion * _arg0;
11897 PyObject * _argo0 = 0;
11898 char *_kwnames[] = { "region", NULL };
11899 char _ptemp[128];
11900
11901 self = self;
11902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:new_wxRegionIterator",_kwnames,&_argo0))
11903 return NULL;
11904 if (_argo0) {
11905 if (_argo0 == Py_None) { _arg0 = NULL; }
11906 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegion_p")) {
11907 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of new_wxRegionIterator. Expected _wxRegion_p.");
11908 return NULL;
11909 }
11910 }
11911 {
11912 wxPy_BEGIN_ALLOW_THREADS;
11913 _result = (wxRegionIterator *)new_wxRegionIterator(*_arg0);
11914
11915 wxPy_END_ALLOW_THREADS;
11916 if (PyErr_Occurred()) return NULL;
11917 } if (_result) {
11918 SWIG_MakePtr(_ptemp, (char *) _result,"_wxRegionIterator_p");
11919 _resultobj = Py_BuildValue("s",_ptemp);
11920 } else {
11921 Py_INCREF(Py_None);
11922 _resultobj = Py_None;
11923 }
11924 return _resultobj;
11925 }
11926
11927 #define delete_wxRegionIterator(_swigobj) (delete _swigobj)
11928 static PyObject *_wrap_delete_wxRegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
11929 PyObject * _resultobj;
11930 wxRegionIterator * _arg0;
11931 PyObject * _argo0 = 0;
11932 char *_kwnames[] = { "self", NULL };
11933
11934 self = self;
11935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:delete_wxRegionIterator",_kwnames,&_argo0))
11936 return NULL;
11937 if (_argo0) {
11938 if (_argo0 == Py_None) { _arg0 = NULL; }
11939 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11940 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of delete_wxRegionIterator. Expected _wxRegionIterator_p.");
11941 return NULL;
11942 }
11943 }
11944 {
11945 wxPy_BEGIN_ALLOW_THREADS;
11946 delete_wxRegionIterator(_arg0);
11947
11948 wxPy_END_ALLOW_THREADS;
11949 if (PyErr_Occurred()) return NULL;
11950 } Py_INCREF(Py_None);
11951 _resultobj = Py_None;
11952 return _resultobj;
11953 }
11954
11955 #define wxRegionIterator_GetX(_swigobj) (_swigobj->GetX())
11956 static PyObject *_wrap_wxRegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
11957 PyObject * _resultobj;
11958 long _result;
11959 wxRegionIterator * _arg0;
11960 PyObject * _argo0 = 0;
11961 char *_kwnames[] = { "self", NULL };
11962
11963 self = self;
11964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetX",_kwnames,&_argo0))
11965 return NULL;
11966 if (_argo0) {
11967 if (_argo0 == Py_None) { _arg0 = NULL; }
11968 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11969 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetX. Expected _wxRegionIterator_p.");
11970 return NULL;
11971 }
11972 }
11973 {
11974 wxPy_BEGIN_ALLOW_THREADS;
11975 _result = (long )wxRegionIterator_GetX(_arg0);
11976
11977 wxPy_END_ALLOW_THREADS;
11978 if (PyErr_Occurred()) return NULL;
11979 } _resultobj = Py_BuildValue("l",_result);
11980 return _resultobj;
11981 }
11982
11983 #define wxRegionIterator_GetY(_swigobj) (_swigobj->GetY())
11984 static PyObject *_wrap_wxRegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
11985 PyObject * _resultobj;
11986 long _result;
11987 wxRegionIterator * _arg0;
11988 PyObject * _argo0 = 0;
11989 char *_kwnames[] = { "self", NULL };
11990
11991 self = self;
11992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetY",_kwnames,&_argo0))
11993 return NULL;
11994 if (_argo0) {
11995 if (_argo0 == Py_None) { _arg0 = NULL; }
11996 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
11997 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetY. Expected _wxRegionIterator_p.");
11998 return NULL;
11999 }
12000 }
12001 {
12002 wxPy_BEGIN_ALLOW_THREADS;
12003 _result = (long )wxRegionIterator_GetY(_arg0);
12004
12005 wxPy_END_ALLOW_THREADS;
12006 if (PyErr_Occurred()) return NULL;
12007 } _resultobj = Py_BuildValue("l",_result);
12008 return _resultobj;
12009 }
12010
12011 #define wxRegionIterator_GetW(_swigobj) (_swigobj->GetW())
12012 static PyObject *_wrap_wxRegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
12013 PyObject * _resultobj;
12014 long _result;
12015 wxRegionIterator * _arg0;
12016 PyObject * _argo0 = 0;
12017 char *_kwnames[] = { "self", NULL };
12018
12019 self = self;
12020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetW",_kwnames,&_argo0))
12021 return NULL;
12022 if (_argo0) {
12023 if (_argo0 == Py_None) { _arg0 = NULL; }
12024 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12025 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetW. Expected _wxRegionIterator_p.");
12026 return NULL;
12027 }
12028 }
12029 {
12030 wxPy_BEGIN_ALLOW_THREADS;
12031 _result = (long )wxRegionIterator_GetW(_arg0);
12032
12033 wxPy_END_ALLOW_THREADS;
12034 if (PyErr_Occurred()) return NULL;
12035 } _resultobj = Py_BuildValue("l",_result);
12036 return _resultobj;
12037 }
12038
12039 #define wxRegionIterator_GetWidth(_swigobj) (_swigobj->GetWidth())
12040 static PyObject *_wrap_wxRegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12041 PyObject * _resultobj;
12042 long _result;
12043 wxRegionIterator * _arg0;
12044 PyObject * _argo0 = 0;
12045 char *_kwnames[] = { "self", NULL };
12046
12047 self = self;
12048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetWidth",_kwnames,&_argo0))
12049 return NULL;
12050 if (_argo0) {
12051 if (_argo0 == Py_None) { _arg0 = NULL; }
12052 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12053 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetWidth. Expected _wxRegionIterator_p.");
12054 return NULL;
12055 }
12056 }
12057 {
12058 wxPy_BEGIN_ALLOW_THREADS;
12059 _result = (long )wxRegionIterator_GetWidth(_arg0);
12060
12061 wxPy_END_ALLOW_THREADS;
12062 if (PyErr_Occurred()) return NULL;
12063 } _resultobj = Py_BuildValue("l",_result);
12064 return _resultobj;
12065 }
12066
12067 #define wxRegionIterator_GetH(_swigobj) (_swigobj->GetH())
12068 static PyObject *_wrap_wxRegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
12069 PyObject * _resultobj;
12070 long _result;
12071 wxRegionIterator * _arg0;
12072 PyObject * _argo0 = 0;
12073 char *_kwnames[] = { "self", NULL };
12074
12075 self = self;
12076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetH",_kwnames,&_argo0))
12077 return NULL;
12078 if (_argo0) {
12079 if (_argo0 == Py_None) { _arg0 = NULL; }
12080 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12081 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetH. Expected _wxRegionIterator_p.");
12082 return NULL;
12083 }
12084 }
12085 {
12086 wxPy_BEGIN_ALLOW_THREADS;
12087 _result = (long )wxRegionIterator_GetH(_arg0);
12088
12089 wxPy_END_ALLOW_THREADS;
12090 if (PyErr_Occurred()) return NULL;
12091 } _resultobj = Py_BuildValue("l",_result);
12092 return _resultobj;
12093 }
12094
12095 #define wxRegionIterator_GetHeight(_swigobj) (_swigobj->GetHeight())
12096 static PyObject *_wrap_wxRegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12097 PyObject * _resultobj;
12098 long _result;
12099 wxRegionIterator * _arg0;
12100 PyObject * _argo0 = 0;
12101 char *_kwnames[] = { "self", NULL };
12102
12103 self = self;
12104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetHeight",_kwnames,&_argo0))
12105 return NULL;
12106 if (_argo0) {
12107 if (_argo0 == Py_None) { _arg0 = NULL; }
12108 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12109 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetHeight. Expected _wxRegionIterator_p.");
12110 return NULL;
12111 }
12112 }
12113 {
12114 wxPy_BEGIN_ALLOW_THREADS;
12115 _result = (long )wxRegionIterator_GetHeight(_arg0);
12116
12117 wxPy_END_ALLOW_THREADS;
12118 if (PyErr_Occurred()) return NULL;
12119 } _resultobj = Py_BuildValue("l",_result);
12120 return _resultobj;
12121 }
12122
12123 #define wxRegionIterator_GetRect(_swigobj) (_swigobj->GetRect())
12124 static PyObject *_wrap_wxRegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12125 PyObject * _resultobj;
12126 wxRect * _result;
12127 wxRegionIterator * _arg0;
12128 PyObject * _argo0 = 0;
12129 char *_kwnames[] = { "self", NULL };
12130 char _ptemp[128];
12131
12132 self = self;
12133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_GetRect",_kwnames,&_argo0))
12134 return NULL;
12135 if (_argo0) {
12136 if (_argo0 == Py_None) { _arg0 = NULL; }
12137 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12138 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_GetRect. Expected _wxRegionIterator_p.");
12139 return NULL;
12140 }
12141 }
12142 {
12143 wxPy_BEGIN_ALLOW_THREADS;
12144 _result = new wxRect (wxRegionIterator_GetRect(_arg0));
12145
12146 wxPy_END_ALLOW_THREADS;
12147 if (PyErr_Occurred()) return NULL;
12148 } SWIG_MakePtr(_ptemp, (void *) _result,"_wxRect_p");
12149 _resultobj = Py_BuildValue("s",_ptemp);
12150 return _resultobj;
12151 }
12152
12153 #define wxRegionIterator_HaveRects(_swigobj) (_swigobj->HaveRects())
12154 static PyObject *_wrap_wxRegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
12155 PyObject * _resultobj;
12156 bool _result;
12157 wxRegionIterator * _arg0;
12158 PyObject * _argo0 = 0;
12159 char *_kwnames[] = { "self", NULL };
12160
12161 self = self;
12162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_HaveRects",_kwnames,&_argo0))
12163 return NULL;
12164 if (_argo0) {
12165 if (_argo0 == Py_None) { _arg0 = NULL; }
12166 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12167 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_HaveRects. Expected _wxRegionIterator_p.");
12168 return NULL;
12169 }
12170 }
12171 {
12172 wxPy_BEGIN_ALLOW_THREADS;
12173 _result = (bool )wxRegionIterator_HaveRects(_arg0);
12174
12175 wxPy_END_ALLOW_THREADS;
12176 if (PyErr_Occurred()) return NULL;
12177 } _resultobj = Py_BuildValue("i",_result);
12178 return _resultobj;
12179 }
12180
12181 #define wxRegionIterator_Reset(_swigobj) (_swigobj->Reset())
12182 static PyObject *_wrap_wxRegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
12183 PyObject * _resultobj;
12184 wxRegionIterator * _arg0;
12185 PyObject * _argo0 = 0;
12186 char *_kwnames[] = { "self", NULL };
12187
12188 self = self;
12189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Reset",_kwnames,&_argo0))
12190 return NULL;
12191 if (_argo0) {
12192 if (_argo0 == Py_None) { _arg0 = NULL; }
12193 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12194 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Reset. Expected _wxRegionIterator_p.");
12195 return NULL;
12196 }
12197 }
12198 {
12199 wxPy_BEGIN_ALLOW_THREADS;
12200 wxRegionIterator_Reset(_arg0);
12201
12202 wxPy_END_ALLOW_THREADS;
12203 if (PyErr_Occurred()) return NULL;
12204 } Py_INCREF(Py_None);
12205 _resultobj = Py_None;
12206 return _resultobj;
12207 }
12208
12209 static void wxRegionIterator_Next(wxRegionIterator *self) {
12210 (*self) ++;
12211 }
12212 static PyObject *_wrap_wxRegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
12213 PyObject * _resultobj;
12214 wxRegionIterator * _arg0;
12215 PyObject * _argo0 = 0;
12216 char *_kwnames[] = { "self", NULL };
12217
12218 self = self;
12219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxRegionIterator_Next",_kwnames,&_argo0))
12220 return NULL;
12221 if (_argo0) {
12222 if (_argo0 == Py_None) { _arg0 = NULL; }
12223 else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxRegionIterator_p")) {
12224 PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxRegionIterator_Next. Expected _wxRegionIterator_p.");
12225 return NULL;
12226 }
12227 }
12228 {
12229 wxPy_BEGIN_ALLOW_THREADS;
12230 wxRegionIterator_Next(_arg0);
12231
12232 wxPy_END_ALLOW_THREADS;
12233 if (PyErr_Occurred()) return NULL;
12234 } Py_INCREF(Py_None);
12235 _resultobj = Py_None;
12236 return _resultobj;
12237 }
12238
12239 static PyMethodDef gdicMethods[] = {
12240 { "wxRegionIterator_Next", (PyCFunction) _wrap_wxRegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
12241 { "wxRegionIterator_Reset", (PyCFunction) _wrap_wxRegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
12242 { "wxRegionIterator_HaveRects", (PyCFunction) _wrap_wxRegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
12243 { "wxRegionIterator_GetRect", (PyCFunction) _wrap_wxRegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
12244 { "wxRegionIterator_GetHeight", (PyCFunction) _wrap_wxRegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
12245 { "wxRegionIterator_GetH", (PyCFunction) _wrap_wxRegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
12246 { "wxRegionIterator_GetWidth", (PyCFunction) _wrap_wxRegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
12247 { "wxRegionIterator_GetW", (PyCFunction) _wrap_wxRegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
12248 { "wxRegionIterator_GetY", (PyCFunction) _wrap_wxRegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
12249 { "wxRegionIterator_GetX", (PyCFunction) _wrap_wxRegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
12250 { "delete_wxRegionIterator", (PyCFunction) _wrap_delete_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12251 { "new_wxRegionIterator", (PyCFunction) _wrap_new_wxRegionIterator, METH_VARARGS | METH_KEYWORDS },
12252 { "wxRegion_XorRegion", (PyCFunction) _wrap_wxRegion_XorRegion, METH_VARARGS | METH_KEYWORDS },
12253 { "wxRegion_XorRect", (PyCFunction) _wrap_wxRegion_XorRect, METH_VARARGS | METH_KEYWORDS },
12254 { "wxRegion_Xor", (PyCFunction) _wrap_wxRegion_Xor, METH_VARARGS | METH_KEYWORDS },
12255 { "wxRegion_SubtractRegion", (PyCFunction) _wrap_wxRegion_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
12256 { "wxRegion_SubtractRect", (PyCFunction) _wrap_wxRegion_SubtractRect, METH_VARARGS | METH_KEYWORDS },
12257 { "wxRegion_Subtract", (PyCFunction) _wrap_wxRegion_Subtract, METH_VARARGS | METH_KEYWORDS },
12258 { "wxRegion_UnionRegion", (PyCFunction) _wrap_wxRegion_UnionRegion, METH_VARARGS | METH_KEYWORDS },
12259 { "wxRegion_UnionRect", (PyCFunction) _wrap_wxRegion_UnionRect, METH_VARARGS | METH_KEYWORDS },
12260 { "wxRegion_Union", (PyCFunction) _wrap_wxRegion_Union, METH_VARARGS | METH_KEYWORDS },
12261 { "wxRegion_IsEmpty", (PyCFunction) _wrap_wxRegion_IsEmpty, METH_VARARGS | METH_KEYWORDS },
12262 { "wxRegion_IntersectRegion", (PyCFunction) _wrap_wxRegion_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
12263 { "wxRegion_IntersectRect", (PyCFunction) _wrap_wxRegion_IntersectRect, METH_VARARGS | METH_KEYWORDS },
12264 { "wxRegion_Intersect", (PyCFunction) _wrap_wxRegion_Intersect, METH_VARARGS | METH_KEYWORDS },
12265 { "wxRegion_GetBox", (PyCFunction) _wrap_wxRegion_GetBox, METH_VARARGS | METH_KEYWORDS },
12266 { "wxRegion_ContainsRectDim", (PyCFunction) _wrap_wxRegion_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
12267 { "wxRegion_ContainsRect", (PyCFunction) _wrap_wxRegion_ContainsRect, METH_VARARGS | METH_KEYWORDS },
12268 { "wxRegion_ContainsPoint", (PyCFunction) _wrap_wxRegion_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
12269 { "wxRegion_Contains", (PyCFunction) _wrap_wxRegion_Contains, METH_VARARGS | METH_KEYWORDS },
12270 { "wxRegion_Clear", (PyCFunction) _wrap_wxRegion_Clear, METH_VARARGS | METH_KEYWORDS },
12271 { "delete_wxRegion", (PyCFunction) _wrap_delete_wxRegion, METH_VARARGS | METH_KEYWORDS },
12272 { "new_wxRegion", (PyCFunction) _wrap_new_wxRegion, METH_VARARGS | METH_KEYWORDS },
12273 { "wxImageList_GetSize", (PyCFunction) _wrap_wxImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
12274 { "wxImageList_RemoveAll", (PyCFunction) _wrap_wxImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
12275 { "wxImageList_Remove", (PyCFunction) _wrap_wxImageList_Remove, METH_VARARGS | METH_KEYWORDS },
12276 { "wxImageList_GetImageCount", (PyCFunction) _wrap_wxImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
12277 { "wxImageList_Draw", (PyCFunction) _wrap_wxImageList_Draw, METH_VARARGS | METH_KEYWORDS },
12278 { "wxImageList_Replace", (PyCFunction) _wrap_wxImageList_Replace, METH_VARARGS | METH_KEYWORDS },
12279 { "wxImageList_AddIcon", (PyCFunction) _wrap_wxImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
12280 { "wxImageList_AddWithColourMask", (PyCFunction) _wrap_wxImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
12281 { "wxImageList_Add", (PyCFunction) _wrap_wxImageList_Add, METH_VARARGS | METH_KEYWORDS },
12282 { "delete_wxImageList", (PyCFunction) _wrap_delete_wxImageList, METH_VARARGS | METH_KEYWORDS },
12283 { "new_wxImageList", (PyCFunction) _wrap_new_wxImageList, METH_VARARGS | METH_KEYWORDS },
12284 { "wxPalette_Ok", (PyCFunction) _wrap_wxPalette_Ok, METH_VARARGS | METH_KEYWORDS },
12285 { "wxPalette_GetRGB", (PyCFunction) _wrap_wxPalette_GetRGB, METH_VARARGS | METH_KEYWORDS },
12286 { "wxPalette_GetPixel", (PyCFunction) _wrap_wxPalette_GetPixel, METH_VARARGS | METH_KEYWORDS },
12287 { "delete_wxPalette", (PyCFunction) _wrap_delete_wxPalette, METH_VARARGS | METH_KEYWORDS },
12288 { "new_wxPalette", (PyCFunction) _wrap_new_wxPalette, METH_VARARGS | METH_KEYWORDS },
12289 { "wxMetaFileDC_Close", (PyCFunction) _wrap_wxMetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
12290 { "new_wxMetaFileDC", (PyCFunction) _wrap_new_wxMetaFileDC, METH_VARARGS | METH_KEYWORDS },
12291 { "wxMetaFile_GetFileName", (PyCFunction) _wrap_wxMetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
12292 { "wxMetaFile_GetHeight", (PyCFunction) _wrap_wxMetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
12293 { "wxMetaFile_GetWidth", (PyCFunction) _wrap_wxMetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
12294 { "wxMetaFile_GetSize", (PyCFunction) _wrap_wxMetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
12295 { "wxMetaFile_SetClipboard", (PyCFunction) _wrap_wxMetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
12296 { "wxMetaFile_Ok", (PyCFunction) _wrap_wxMetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
12297 { "delete_wxMetaFile", (PyCFunction) _wrap_delete_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12298 { "new_wxMetaFile", (PyCFunction) _wrap_new_wxMetaFile, METH_VARARGS | METH_KEYWORDS },
12299 { "new_wxWindowDC", (PyCFunction) _wrap_new_wxWindowDC, METH_VARARGS | METH_KEYWORDS },
12300 { "new_wxPaintDC", (PyCFunction) _wrap_new_wxPaintDC, METH_VARARGS | METH_KEYWORDS },
12301 { "new_wxClientDC", (PyCFunction) _wrap_new_wxClientDC, METH_VARARGS | METH_KEYWORDS },
12302 { "wxScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12303 { "wxScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
12304 { "wxScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_wxScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
12305 { "new_wxScreenDC", (PyCFunction) _wrap_new_wxScreenDC, METH_VARARGS | METH_KEYWORDS },
12306 { "wxMemoryDC_SelectObject", (PyCFunction) _wrap_wxMemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
12307 { "new_wxMemoryDC", (PyCFunction) _wrap_new_wxMemoryDC, METH_VARARGS | METH_KEYWORDS },
12308 { "wxDC__DrawLineList", (PyCFunction) _wrap_wxDC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
12309 { "wxDC__DrawPointList", (PyCFunction) _wrap_wxDC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
12310 { "wxDC_GetHDC", (PyCFunction) _wrap_wxDC_GetHDC, METH_VARARGS | METH_KEYWORDS },
12311 { "wxDC_GetBoundingBox", (PyCFunction) _wrap_wxDC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12312 { "wxDC_ResetBoundingBox", (PyCFunction) _wrap_wxDC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
12313 { "wxDC_CalcBoundingBox", (PyCFunction) _wrap_wxDC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
12314 { "wxDC_SetAxisOrientation", (PyCFunction) _wrap_wxDC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
12315 { "wxDC_GetDeviceOrigin", (PyCFunction) _wrap_wxDC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12316 { "wxDC_SetLogicalOrigin", (PyCFunction) _wrap_wxDC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12317 { "wxDC_GetLogicalOrigin", (PyCFunction) _wrap_wxDC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
12318 { "wxDC_GetPPI", (PyCFunction) _wrap_wxDC_GetPPI, METH_VARARGS | METH_KEYWORDS },
12319 { "wxDC_GetDepth", (PyCFunction) _wrap_wxDC_GetDepth, METH_VARARGS | METH_KEYWORDS },
12320 { "wxDC_CanGetTextExtent", (PyCFunction) _wrap_wxDC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
12321 { "wxDC_CanDrawBitmap", (PyCFunction) _wrap_wxDC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
12322 { "wxDC_DrawBitmap", (PyCFunction) _wrap_wxDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
12323 { "wxDC_StartPage", (PyCFunction) _wrap_wxDC_StartPage, METH_VARARGS | METH_KEYWORDS },
12324 { "wxDC_StartDoc", (PyCFunction) _wrap_wxDC_StartDoc, METH_VARARGS | METH_KEYWORDS },
12325 { "wxDC_SetUserScale", (PyCFunction) _wrap_wxDC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
12326 { "wxDC_SetTextForeground", (PyCFunction) _wrap_wxDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
12327 { "wxDC_SetTextBackground", (PyCFunction) _wrap_wxDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
12328 { "wxDC_SetPen", (PyCFunction) _wrap_wxDC_SetPen, METH_VARARGS | METH_KEYWORDS },
12329 { "wxDC_SetOptimization", (PyCFunction) _wrap_wxDC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
12330 { "wxDC_SetMapMode", (PyCFunction) _wrap_wxDC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
12331 { "wxDC_SetLogicalScale", (PyCFunction) _wrap_wxDC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12332 { "wxDC_SetLogicalFunction", (PyCFunction) _wrap_wxDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12333 { "wxDC_SetFont", (PyCFunction) _wrap_wxDC_SetFont, METH_VARARGS | METH_KEYWORDS },
12334 { "wxDC_SetBrush", (PyCFunction) _wrap_wxDC_SetBrush, METH_VARARGS | METH_KEYWORDS },
12335 { "wxDC_SetPalette", (PyCFunction) _wrap_wxDC_SetPalette, METH_VARARGS | METH_KEYWORDS },
12336 { "wxDC_SetClippingRegionAsRegion", (PyCFunction) _wrap_wxDC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
12337 { "wxDC_SetClippingRegion", (PyCFunction) _wrap_wxDC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
12338 { "wxDC_SetBackgroundMode", (PyCFunction) _wrap_wxDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
12339 { "wxDC_SetBackground", (PyCFunction) _wrap_wxDC_SetBackground, METH_VARARGS | METH_KEYWORDS },
12340 { "wxDC_SetDeviceOrigin", (PyCFunction) _wrap_wxDC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
12341 { "wxDC_Ok", (PyCFunction) _wrap_wxDC_Ok, METH_VARARGS | METH_KEYWORDS },
12342 { "wxDC_MinY", (PyCFunction) _wrap_wxDC_MinY, METH_VARARGS | METH_KEYWORDS },
12343 { "wxDC_MinX", (PyCFunction) _wrap_wxDC_MinX, METH_VARARGS | METH_KEYWORDS },
12344 { "wxDC_MaxY", (PyCFunction) _wrap_wxDC_MaxY, METH_VARARGS | METH_KEYWORDS },
12345 { "wxDC_MaxX", (PyCFunction) _wrap_wxDC_MaxX, METH_VARARGS | METH_KEYWORDS },
12346 { "wxDC_LogicalToDeviceYRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
12347 { "wxDC_LogicalToDeviceY", (PyCFunction) _wrap_wxDC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
12348 { "wxDC_LogicalToDeviceXRel", (PyCFunction) _wrap_wxDC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
12349 { "wxDC_LogicalToDeviceX", (PyCFunction) _wrap_wxDC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
12350 { "wxDC_GetUserScale", (PyCFunction) _wrap_wxDC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
12351 { "wxDC_GetTextForeground", (PyCFunction) _wrap_wxDC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
12352 { "wxDC_GetFullTextExtent", (PyCFunction) _wrap_wxDC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
12353 { "wxDC_GetTextExtent", (PyCFunction) _wrap_wxDC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
12354 { "wxDC_GetTextBackground", (PyCFunction) _wrap_wxDC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
12355 { "wxDC_GetSizeMM", (PyCFunction) _wrap_wxDC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
12356 { "wxDC_GetSize", (PyCFunction) _wrap_wxDC_GetSize, METH_VARARGS | METH_KEYWORDS },
12357 { "wxDC_GetSizeTuple", (PyCFunction) _wrap_wxDC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
12358 { "wxDC_GetPixel", (PyCFunction) _wrap_wxDC_GetPixel, METH_VARARGS | METH_KEYWORDS },
12359 { "wxDC_GetPen", (PyCFunction) _wrap_wxDC_GetPen, METH_VARARGS | METH_KEYWORDS },
12360 { "wxDC_GetOptimization", (PyCFunction) _wrap_wxDC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
12361 { "wxDC_GetMapMode", (PyCFunction) _wrap_wxDC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
12362 { "wxDC_GetLogicalScale", (PyCFunction) _wrap_wxDC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
12363 { "wxDC_GetLogicalFunction", (PyCFunction) _wrap_wxDC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
12364 { "wxDC_GetFont", (PyCFunction) _wrap_wxDC_GetFont, METH_VARARGS | METH_KEYWORDS },
12365 { "wxDC_GetClippingBox", (PyCFunction) _wrap_wxDC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
12366 { "wxDC_GetCharWidth", (PyCFunction) _wrap_wxDC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
12367 { "wxDC_GetCharHeight", (PyCFunction) _wrap_wxDC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
12368 { "wxDC_GetBrush", (PyCFunction) _wrap_wxDC_GetBrush, METH_VARARGS | METH_KEYWORDS },
12369 { "wxDC_GetBackground", (PyCFunction) _wrap_wxDC_GetBackground, METH_VARARGS | METH_KEYWORDS },
12370 { "wxDC_FloodFill", (PyCFunction) _wrap_wxDC_FloodFill, METH_VARARGS | METH_KEYWORDS },
12371 { "wxDC_EndPage", (PyCFunction) _wrap_wxDC_EndPage, METH_VARARGS | METH_KEYWORDS },
12372 { "wxDC_EndDrawing", (PyCFunction) _wrap_wxDC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
12373 { "wxDC_EndDoc", (PyCFunction) _wrap_wxDC_EndDoc, METH_VARARGS | METH_KEYWORDS },
12374 { "wxDC_DrawText", (PyCFunction) _wrap_wxDC_DrawText, METH_VARARGS | METH_KEYWORDS },
12375 { "wxDC_DrawSpline", (PyCFunction) _wrap_wxDC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
12376 { "wxDC_DrawRoundedRectangle", (PyCFunction) _wrap_wxDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
12377 { "wxDC_DrawRotatedText", (PyCFunction) _wrap_wxDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
12378 { "wxDC_DrawRectangle", (PyCFunction) _wrap_wxDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
12379 { "wxDC_DrawPoint", (PyCFunction) _wrap_wxDC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
12380 { "wxDC_DrawPolygon", (PyCFunction) _wrap_wxDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
12381 { "wxDC_DrawLines", (PyCFunction) _wrap_wxDC_DrawLines, METH_VARARGS | METH_KEYWORDS },
12382 { "wxDC_DrawLine", (PyCFunction) _wrap_wxDC_DrawLine, METH_VARARGS | METH_KEYWORDS },
12383 { "wxDC_DrawIcon", (PyCFunction) _wrap_wxDC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
12384 { "wxDC_DrawEllipticArc", (PyCFunction) _wrap_wxDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
12385 { "wxDC_DrawEllipse", (PyCFunction) _wrap_wxDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
12386 { "wxDC_DrawCircle", (PyCFunction) _wrap_wxDC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
12387 { "wxDC_DrawArc", (PyCFunction) _wrap_wxDC_DrawArc, METH_VARARGS | METH_KEYWORDS },
12388 { "wxDC_DeviceToLogicalYRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
12389 { "wxDC_DeviceToLogicalY", (PyCFunction) _wrap_wxDC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
12390 { "wxDC_DeviceToLogicalXRel", (PyCFunction) _wrap_wxDC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
12391 { "wxDC_DeviceToLogicalX", (PyCFunction) _wrap_wxDC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
12392 { "wxDC_DestroyClippingRegion", (PyCFunction) _wrap_wxDC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
12393 { "wxDC_CrossHair", (PyCFunction) _wrap_wxDC_CrossHair, METH_VARARGS | METH_KEYWORDS },
12394 { "wxDC_Clear", (PyCFunction) _wrap_wxDC_Clear, METH_VARARGS | METH_KEYWORDS },
12395 { "wxDC_Blit", (PyCFunction) _wrap_wxDC_Blit, METH_VARARGS | METH_KEYWORDS },
12396 { "wxDC_BeginDrawing", (PyCFunction) _wrap_wxDC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
12397 { "delete_wxDC", (PyCFunction) _wrap_delete_wxDC, METH_VARARGS | METH_KEYWORDS },
12398 { "wxBrushList_GetCount", (PyCFunction) _wrap_wxBrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
12399 { "wxBrushList_RemoveBrush", (PyCFunction) _wrap_wxBrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
12400 { "wxBrushList_FindOrCreateBrush", (PyCFunction) _wrap_wxBrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
12401 { "wxBrushList_AddBrush", (PyCFunction) _wrap_wxBrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
12402 { "wxBrush_SetStyle", (PyCFunction) _wrap_wxBrush_SetStyle, METH_VARARGS | METH_KEYWORDS },
12403 { "wxBrush_SetStipple", (PyCFunction) _wrap_wxBrush_SetStipple, METH_VARARGS | METH_KEYWORDS },
12404 { "wxBrush_SetColour", (PyCFunction) _wrap_wxBrush_SetColour, METH_VARARGS | METH_KEYWORDS },
12405 { "wxBrush_Ok", (PyCFunction) _wrap_wxBrush_Ok, METH_VARARGS | METH_KEYWORDS },
12406 { "wxBrush_GetStyle", (PyCFunction) _wrap_wxBrush_GetStyle, METH_VARARGS | METH_KEYWORDS },
12407 { "wxBrush_GetStipple", (PyCFunction) _wrap_wxBrush_GetStipple, METH_VARARGS | METH_KEYWORDS },
12408 { "wxBrush_GetColour", (PyCFunction) _wrap_wxBrush_GetColour, METH_VARARGS | METH_KEYWORDS },
12409 { "delete_wxBrush", (PyCFunction) _wrap_delete_wxBrush, METH_VARARGS | METH_KEYWORDS },
12410 { "new_wxBrush", (PyCFunction) _wrap_new_wxBrush, METH_VARARGS | METH_KEYWORDS },
12411 { "wxPenList_GetCount", (PyCFunction) _wrap_wxPenList_GetCount, METH_VARARGS | METH_KEYWORDS },
12412 { "wxPenList_RemovePen", (PyCFunction) _wrap_wxPenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
12413 { "wxPenList_FindOrCreatePen", (PyCFunction) _wrap_wxPenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
12414 { "wxPenList_AddPen", (PyCFunction) _wrap_wxPenList_AddPen, METH_VARARGS | METH_KEYWORDS },
12415 { "wxPyPen_SetDashes", (PyCFunction) _wrap_wxPyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12416 { "delete_wxPyPen", (PyCFunction) _wrap_delete_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12417 { "new_wxPyPen", (PyCFunction) _wrap_new_wxPyPen, METH_VARARGS | METH_KEYWORDS },
12418 { "wxPen_SetStipple", (PyCFunction) _wrap_wxPen_SetStipple, METH_VARARGS | METH_KEYWORDS },
12419 { "wxPen_GetStipple", (PyCFunction) _wrap_wxPen_GetStipple, METH_VARARGS | METH_KEYWORDS },
12420 { "wxPen_SetDashes", (PyCFunction) _wrap_wxPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
12421 { "wxPen_SetWidth", (PyCFunction) _wrap_wxPen_SetWidth, METH_VARARGS | METH_KEYWORDS },
12422 { "wxPen_SetStyle", (PyCFunction) _wrap_wxPen_SetStyle, METH_VARARGS | METH_KEYWORDS },
12423 { "wxPen_SetJoin", (PyCFunction) _wrap_wxPen_SetJoin, METH_VARARGS | METH_KEYWORDS },
12424 { "wxPen_SetColour", (PyCFunction) _wrap_wxPen_SetColour, METH_VARARGS | METH_KEYWORDS },
12425 { "wxPen_SetCap", (PyCFunction) _wrap_wxPen_SetCap, METH_VARARGS | METH_KEYWORDS },
12426 { "wxPen_Ok", (PyCFunction) _wrap_wxPen_Ok, METH_VARARGS | METH_KEYWORDS },
12427 { "wxPen_GetWidth", (PyCFunction) _wrap_wxPen_GetWidth, METH_VARARGS | METH_KEYWORDS },
12428 { "wxPen_GetStyle", (PyCFunction) _wrap_wxPen_GetStyle, METH_VARARGS | METH_KEYWORDS },
12429 { "wxPen_GetJoin", (PyCFunction) _wrap_wxPen_GetJoin, METH_VARARGS | METH_KEYWORDS },
12430 { "wxPen_GetColour", (PyCFunction) _wrap_wxPen_GetColour, METH_VARARGS | METH_KEYWORDS },
12431 { "wxPen_GetCap", (PyCFunction) _wrap_wxPen_GetCap, METH_VARARGS | METH_KEYWORDS },
12432 { "delete_wxPen", (PyCFunction) _wrap_delete_wxPen, METH_VARARGS | METH_KEYWORDS },
12433 { "new_wxPen", (PyCFunction) _wrap_new_wxPen, METH_VARARGS | METH_KEYWORDS },
12434 { "wxColourDatabase_Append", (PyCFunction) _wrap_wxColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
12435 { "wxColourDatabase_FindName", (PyCFunction) _wrap_wxColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
12436 { "wxColourDatabase_FindColour", (PyCFunction) _wrap_wxColourDatabase_FindColour, METH_VARARGS | METH_KEYWORDS },
12437 { "wxColour_Get", (PyCFunction) _wrap_wxColour_Get, METH_VARARGS | METH_KEYWORDS },
12438 { "wxColour_Set", (PyCFunction) _wrap_wxColour_Set, METH_VARARGS | METH_KEYWORDS },
12439 { "wxColour_Ok", (PyCFunction) _wrap_wxColour_Ok, METH_VARARGS | METH_KEYWORDS },
12440 { "wxColour_Blue", (PyCFunction) _wrap_wxColour_Blue, METH_VARARGS | METH_KEYWORDS },
12441 { "wxColour_Green", (PyCFunction) _wrap_wxColour_Green, METH_VARARGS | METH_KEYWORDS },
12442 { "wxColour_Red", (PyCFunction) _wrap_wxColour_Red, METH_VARARGS | METH_KEYWORDS },
12443 { "delete_wxColour", (PyCFunction) _wrap_delete_wxColour, METH_VARARGS | METH_KEYWORDS },
12444 { "new_wxColour", (PyCFunction) _wrap_new_wxColour, METH_VARARGS | METH_KEYWORDS },
12445 { "wxFontList_GetCount", (PyCFunction) _wrap_wxFontList_GetCount, METH_VARARGS | METH_KEYWORDS },
12446 { "wxFontList_RemoveFont", (PyCFunction) _wrap_wxFontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
12447 { "wxFontList_FindOrCreateFont", (PyCFunction) _wrap_wxFontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
12448 { "wxFontList_AddFont", (PyCFunction) _wrap_wxFontList_AddFont, METH_VARARGS | METH_KEYWORDS },
12449 { "wxFont_SetDefaultEncoding", (PyCFunction) _wrap_wxFont_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
12450 { "wxFont_GetDefaultEncoding", (PyCFunction) _wrap_wxFont_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
12451 { "wxFont_GetWeightString", (PyCFunction) _wrap_wxFont_GetWeightString, METH_VARARGS | METH_KEYWORDS },
12452 { "wxFont_GetStyleString", (PyCFunction) _wrap_wxFont_GetStyleString, METH_VARARGS | METH_KEYWORDS },
12453 { "wxFont_GetFamilyString", (PyCFunction) _wrap_wxFont_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
12454 { "wxFont_SetNativeFontInfo", (PyCFunction) _wrap_wxFont_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12455 { "wxFont_SetEncoding", (PyCFunction) _wrap_wxFont_SetEncoding, METH_VARARGS | METH_KEYWORDS },
12456 { "wxFont_SetUnderlined", (PyCFunction) _wrap_wxFont_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
12457 { "wxFont_SetFaceName", (PyCFunction) _wrap_wxFont_SetFaceName, METH_VARARGS | METH_KEYWORDS },
12458 { "wxFont_SetWeight", (PyCFunction) _wrap_wxFont_SetWeight, METH_VARARGS | METH_KEYWORDS },
12459 { "wxFont_SetStyle", (PyCFunction) _wrap_wxFont_SetStyle, METH_VARARGS | METH_KEYWORDS },
12460 { "wxFont_SetFamily", (PyCFunction) _wrap_wxFont_SetFamily, METH_VARARGS | METH_KEYWORDS },
12461 { "wxFont_SetPointSize", (PyCFunction) _wrap_wxFont_SetPointSize, METH_VARARGS | METH_KEYWORDS },
12462 { "wxFont_GetNativeFontInfo", (PyCFunction) _wrap_wxFont_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
12463 { "wxFont_GetEncoding", (PyCFunction) _wrap_wxFont_GetEncoding, METH_VARARGS | METH_KEYWORDS },
12464 { "wxFont_GetFaceName", (PyCFunction) _wrap_wxFont_GetFaceName, METH_VARARGS | METH_KEYWORDS },
12465 { "wxFont_GetUnderlined", (PyCFunction) _wrap_wxFont_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
12466 { "wxFont_GetWeight", (PyCFunction) _wrap_wxFont_GetWeight, METH_VARARGS | METH_KEYWORDS },
12467 { "wxFont_GetStyle", (PyCFunction) _wrap_wxFont_GetStyle, METH_VARARGS | METH_KEYWORDS },
12468 { "wxFont_GetFamily", (PyCFunction) _wrap_wxFont_GetFamily, METH_VARARGS | METH_KEYWORDS },
12469 { "wxFont_GetPointSize", (PyCFunction) _wrap_wxFont_GetPointSize, METH_VARARGS | METH_KEYWORDS },
12470 { "wxFont_Ok", (PyCFunction) _wrap_wxFont_Ok, METH_VARARGS | METH_KEYWORDS },
12471 { "delete_wxFont", (PyCFunction) _wrap_delete_wxFont, METH_VARARGS | METH_KEYWORDS },
12472 { "new_wxFontFromNativeInfo", (PyCFunction) _wrap_new_wxFontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
12473 { "new_wxFont", (PyCFunction) _wrap_new_wxFont, METH_VARARGS | METH_KEYWORDS },
12474 { "wxFontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_wxFontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
12475 { "wxFontMapper_SetConfigPath", (PyCFunction) _wrap_wxFontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
12476 { "wxFontMapper_SetConfig", (PyCFunction) _wrap_wxFontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
12477 { "wxFontMapper_SetDialogTitle", (PyCFunction) _wrap_wxFontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
12478 { "wxFontMapper_SetDialogParent", (PyCFunction) _wrap_wxFontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
12479 { "wxFontMapper_GetEncodingDescription", (PyCFunction) _wrap_wxFontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
12480 { "wxFontMapper_GetEncodingName", (PyCFunction) _wrap_wxFontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
12481 { "wxFontMapper_CharsetToEncoding", (PyCFunction) _wrap_wxFontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
12482 { "wxFontMapper_IsEncodingAvailable", (PyCFunction) _wrap_wxFontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
12483 { "wxFontMapper_GetAltForEncoding", (PyCFunction) _wrap_wxFontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
12484 { "delete_wxFontMapper", (PyCFunction) _wrap_delete_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
12485 { "new_wxFontMapper", (PyCFunction) _wrap_new_wxFontMapper, METH_VARARGS | METH_KEYWORDS },
12486 { "wxNativeFontInfo___str__", (PyCFunction) _wrap_wxNativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
12487 { "wxNativeFontInfo_ToString", (PyCFunction) _wrap_wxNativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
12488 { "wxNativeFontInfo_FromString", (PyCFunction) _wrap_wxNativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
12489 { "wxCursor_SetSize", (PyCFunction) _wrap_wxCursor_SetSize, METH_VARARGS | METH_KEYWORDS },
12490 { "wxCursor_SetDepth", (PyCFunction) _wrap_wxCursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
12491 { "wxCursor_SetHeight", (PyCFunction) _wrap_wxCursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
12492 { "wxCursor_SetWidth", (PyCFunction) _wrap_wxCursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
12493 { "wxCursor_GetDepth", (PyCFunction) _wrap_wxCursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
12494 { "wxCursor_GetHeight", (PyCFunction) _wrap_wxCursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
12495 { "wxCursor_GetWidth", (PyCFunction) _wrap_wxCursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
12496 { "wxCursor_Ok", (PyCFunction) _wrap_wxCursor_Ok, METH_VARARGS | METH_KEYWORDS },
12497 { "wxCursor_SetHandle", (PyCFunction) _wrap_wxCursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
12498 { "wxCursor_GetHandle", (PyCFunction) _wrap_wxCursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
12499 { "delete_wxCursor", (PyCFunction) _wrap_delete_wxCursor, METH_VARARGS | METH_KEYWORDS },
12500 { "new_wxCursor", (PyCFunction) _wrap_new_wxCursor, METH_VARARGS | METH_KEYWORDS },
12501 { "wxIcon_CopyFromBitmap", (PyCFunction) _wrap_wxIcon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
12502 { "wxIcon_SetSize", (PyCFunction) _wrap_wxIcon_SetSize, METH_VARARGS | METH_KEYWORDS },
12503 { "wxIcon_SetDepth", (PyCFunction) _wrap_wxIcon_SetDepth, METH_VARARGS | METH_KEYWORDS },
12504 { "wxIcon_SetHeight", (PyCFunction) _wrap_wxIcon_SetHeight, METH_VARARGS | METH_KEYWORDS },
12505 { "wxIcon_SetWidth", (PyCFunction) _wrap_wxIcon_SetWidth, METH_VARARGS | METH_KEYWORDS },
12506 { "wxIcon_GetDepth", (PyCFunction) _wrap_wxIcon_GetDepth, METH_VARARGS | METH_KEYWORDS },
12507 { "wxIcon_GetHeight", (PyCFunction) _wrap_wxIcon_GetHeight, METH_VARARGS | METH_KEYWORDS },
12508 { "wxIcon_GetWidth", (PyCFunction) _wrap_wxIcon_GetWidth, METH_VARARGS | METH_KEYWORDS },
12509 { "wxIcon_Ok", (PyCFunction) _wrap_wxIcon_Ok, METH_VARARGS | METH_KEYWORDS },
12510 { "wxIcon_SetHandle", (PyCFunction) _wrap_wxIcon_SetHandle, METH_VARARGS | METH_KEYWORDS },
12511 { "wxIcon_GetHandle", (PyCFunction) _wrap_wxIcon_GetHandle, METH_VARARGS | METH_KEYWORDS },
12512 { "wxIcon_LoadFile", (PyCFunction) _wrap_wxIcon_LoadFile, METH_VARARGS | METH_KEYWORDS },
12513 { "delete_wxIcon", (PyCFunction) _wrap_delete_wxIcon, METH_VARARGS | METH_KEYWORDS },
12514 { "new_wxIcon", (PyCFunction) _wrap_new_wxIcon, METH_VARARGS | METH_KEYWORDS },
12515 { "wxMask_Destroy", (PyCFunction) _wrap_wxMask_Destroy, METH_VARARGS | METH_KEYWORDS },
12516 { "new_wxMask", (PyCFunction) _wrap_new_wxMask, METH_VARARGS | METH_KEYWORDS },
12517 { "wxBitmap_SetQuality", (PyCFunction) _wrap_wxBitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
12518 { "wxBitmap_GetQuality", (PyCFunction) _wrap_wxBitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
12519 { "wxBitmap_CopyFromCursor", (PyCFunction) _wrap_wxBitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
12520 { "wxBitmap_CopyFromIcon", (PyCFunction) _wrap_wxBitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
12521 { "wxBitmap_GetSubBitmap", (PyCFunction) _wrap_wxBitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
12522 { "wxBitmap_SetSize", (PyCFunction) _wrap_wxBitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
12523 { "wxBitmap_SetDepth", (PyCFunction) _wrap_wxBitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
12524 { "wxBitmap_SetHeight", (PyCFunction) _wrap_wxBitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
12525 { "wxBitmap_SetWidth", (PyCFunction) _wrap_wxBitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
12526 { "wxBitmap_GetDepth", (PyCFunction) _wrap_wxBitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
12527 { "wxBitmap_GetHeight", (PyCFunction) _wrap_wxBitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
12528 { "wxBitmap_GetWidth", (PyCFunction) _wrap_wxBitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
12529 { "wxBitmap_Ok", (PyCFunction) _wrap_wxBitmap_Ok, METH_VARARGS | METH_KEYWORDS },
12530 { "wxBitmap_SetHandle", (PyCFunction) _wrap_wxBitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
12531 { "wxBitmap_GetHandle", (PyCFunction) _wrap_wxBitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
12532 { "wxBitmap_SetPalette", (PyCFunction) _wrap_wxBitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
12533 { "wxBitmap_SetMask", (PyCFunction) _wrap_wxBitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
12534 { "wxBitmap_SaveFile", (PyCFunction) _wrap_wxBitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
12535 { "wxBitmap_LoadFile", (PyCFunction) _wrap_wxBitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
12536 { "wxBitmap_GetMask", (PyCFunction) _wrap_wxBitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
12537 { "wxBitmap_GetPalette", (PyCFunction) _wrap_wxBitmap_GetPalette, METH_VARARGS | METH_KEYWORDS },
12538 { "delete_wxBitmap", (PyCFunction) _wrap_delete_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12539 { "new_wxBitmap", (PyCFunction) _wrap_new_wxBitmap, METH_VARARGS | METH_KEYWORDS },
12540 { "wxGDIObject_IsNull", (PyCFunction) _wrap_wxGDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
12541 { "wxGDIObject_SetVisible", (PyCFunction) _wrap_wxGDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
12542 { "wxGDIObject_GetVisible", (PyCFunction) _wrap_wxGDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
12543 { "delete_wxGDIObject", (PyCFunction) _wrap_delete_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12544 { "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
12545 { "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
12546 { "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
12547 { "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
12548 { "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
12549 { "wxEmptyIcon", (PyCFunction) _wrap_wxEmptyIcon, METH_VARARGS | METH_KEYWORDS },
12550 { "wxMaskColour", (PyCFunction) _wrap_wxMaskColour, METH_VARARGS | METH_KEYWORDS },
12551 { "wxBitmapFromBits", (PyCFunction) _wrap_wxBitmapFromBits, METH_VARARGS | METH_KEYWORDS },
12552 { "wxBitmapFromIcon", (PyCFunction) _wrap_wxBitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
12553 { "wxBitmapFromXPMData", (PyCFunction) _wrap_wxBitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
12554 { "wxEmptyBitmap", (PyCFunction) _wrap_wxEmptyBitmap, METH_VARARGS | METH_KEYWORDS },
12555 { NULL, NULL }
12556 };
12557 #ifdef __cplusplus
12558 }
12559 #endif
12560 /*
12561 * This table is used by the pointer type-checker
12562 */
12563 static struct { char *n1; char *n2; void *(*pcnv)(void *); } _swig_mapping[] = {
12564 { "_signed_long","_long",0},
12565 { "_wxPrintQuality","_wxCoord",0},
12566 { "_wxPrintQuality","_int",0},
12567 { "_wxPrintQuality","_signed_int",0},
12568 { "_wxPrintQuality","_unsigned_int",0},
12569 { "_wxPrintQuality","_wxWindowID",0},
12570 { "_wxPrintQuality","_uint",0},
12571 { "_wxPrintQuality","_EBool",0},
12572 { "_wxPrintQuality","_size_t",0},
12573 { "_wxPrintQuality","_time_t",0},
12574 { "_wxPen","_wxPyPen",SwigwxPyPenTowxPen},
12575 { "_byte","_unsigned_char",0},
12576 { "_long","_unsigned_long",0},
12577 { "_long","_signed_long",0},
12578 { "_wxGDIObject","_wxRegion",SwigwxRegionTowxGDIObject},
12579 { "_wxGDIObject","_wxPalette",SwigwxPaletteTowxGDIObject},
12580 { "_wxGDIObject","_wxBrush",SwigwxBrushTowxGDIObject},
12581 { "_wxGDIObject","_wxPyPen",SwigwxPyPenTowxGDIObject},
12582 { "_wxGDIObject","_wxPen",SwigwxPenTowxGDIObject},
12583 { "_wxGDIObject","_wxFont",SwigwxFontTowxGDIObject},
12584 { "_wxGDIObject","_wxCursor",SwigwxCursorTowxGDIObject},
12585 { "_wxGDIObject","_wxIcon",SwigwxIconTowxGDIObject},
12586 { "_wxGDIObject","_wxBitmap",SwigwxBitmapTowxGDIObject},
12587 { "_wxDC","_wxMetaFileDC",SwigwxMetaFileDCTowxDC},
12588 { "_wxDC","_wxWindowDC",SwigwxWindowDCTowxDC},
12589 { "_wxDC","_wxPaintDC",SwigwxPaintDCTowxDC},
12590 { "_wxDC","_wxClientDC",SwigwxClientDCTowxDC},
12591 { "_wxDC","_wxScreenDC",SwigwxScreenDCTowxDC},
12592 { "_wxDC","_wxMemoryDC",SwigwxMemoryDCTowxDC},
12593 { "_size_t","_wxCoord",0},
12594 { "_size_t","_wxPrintQuality",0},
12595 { "_size_t","_time_t",0},
12596 { "_size_t","_unsigned_int",0},
12597 { "_size_t","_int",0},
12598 { "_size_t","_wxWindowID",0},
12599 { "_size_t","_uint",0},
12600 { "_uint","_wxCoord",0},
12601 { "_uint","_wxPrintQuality",0},
12602 { "_uint","_time_t",0},
12603 { "_uint","_size_t",0},
12604 { "_uint","_unsigned_int",0},
12605 { "_uint","_int",0},
12606 { "_uint","_wxWindowID",0},
12607 { "_wxChar","_char",0},
12608 { "_char","_wxChar",0},
12609 { "_struct_wxNativeFontInfo","_wxNativeFontInfo",0},
12610 { "_EBool","_wxCoord",0},
12611 { "_EBool","_wxPrintQuality",0},
12612 { "_EBool","_signed_int",0},
12613 { "_EBool","_int",0},
12614 { "_EBool","_wxWindowID",0},
12615 { "_unsigned_long","_long",0},
12616 { "_wxNativeFontInfo","_struct_wxNativeFontInfo",0},
12617 { "_signed_int","_wxCoord",0},
12618 { "_signed_int","_wxPrintQuality",0},
12619 { "_signed_int","_EBool",0},
12620 { "_signed_int","_wxWindowID",0},
12621 { "_signed_int","_int",0},
12622 { "_WXTYPE","_short",0},
12623 { "_WXTYPE","_signed_short",0},
12624 { "_WXTYPE","_unsigned_short",0},
12625 { "_unsigned_short","_WXTYPE",0},
12626 { "_unsigned_short","_short",0},
12627 { "_wxObject","_wxRegionIterator",SwigwxRegionIteratorTowxObject},
12628 { "_wxObject","_wxRegion",SwigwxRegionTowxObject},
12629 { "_wxObject","_wxImageList",SwigwxImageListTowxObject},
12630 { "_wxObject","_wxPalette",SwigwxPaletteTowxObject},
12631 { "_wxObject","_wxMetaFileDC",SwigwxMetaFileDCTowxObject},
12632 { "_wxObject","_wxMetaFile",SwigwxMetaFileTowxObject},
12633 { "_wxObject","_wxWindowDC",SwigwxWindowDCTowxObject},
12634 { "_wxObject","_wxPaintDC",SwigwxPaintDCTowxObject},
12635 { "_wxObject","_wxClientDC",SwigwxClientDCTowxObject},
12636 { "_wxObject","_wxScreenDC",SwigwxScreenDCTowxObject},
12637 { "_wxObject","_wxMemoryDC",SwigwxMemoryDCTowxObject},
12638 { "_wxObject","_wxDC",SwigwxDCTowxObject},
12639 { "_wxObject","_wxBrushList",SwigwxBrushListTowxObject},
12640 { "_wxObject","_wxBrush",SwigwxBrushTowxObject},
12641 { "_wxObject","_wxPenList",SwigwxPenListTowxObject},
12642 { "_wxObject","_wxPyPen",SwigwxPyPenTowxObject},
12643 { "_wxObject","_wxPen",SwigwxPenTowxObject},
12644 { "_wxObject","_wxColourDatabase",SwigwxColourDatabaseTowxObject},
12645 { "_wxObject","_wxColour",SwigwxColourTowxObject},
12646 { "_wxObject","_wxFontList",SwigwxFontListTowxObject},
12647 { "_wxObject","_wxFont",SwigwxFontTowxObject},
12648 { "_wxObject","_wxCursor",SwigwxCursorTowxObject},
12649 { "_wxObject","_wxIcon",SwigwxIconTowxObject},
12650 { "_wxObject","_wxMask",SwigwxMaskTowxObject},
12651 { "_wxObject","_wxBitmap",SwigwxBitmapTowxObject},
12652 { "_wxObject","_wxGDIObject",SwigwxGDIObjectTowxObject},
12653 { "_signed_short","_WXTYPE",0},
12654 { "_signed_short","_short",0},
12655 { "_unsigned_char","_byte",0},
12656 { "_unsigned_int","_wxCoord",0},
12657 { "_unsigned_int","_wxPrintQuality",0},
12658 { "_unsigned_int","_time_t",0},
12659 { "_unsigned_int","_size_t",0},
12660 { "_unsigned_int","_uint",0},
12661 { "_unsigned_int","_wxWindowID",0},
12662 { "_unsigned_int","_int",0},
12663 { "_short","_WXTYPE",0},
12664 { "_short","_unsigned_short",0},
12665 { "_short","_signed_short",0},
12666 { "_wxWindowID","_wxCoord",0},
12667 { "_wxWindowID","_wxPrintQuality",0},
12668 { "_wxWindowID","_time_t",0},
12669 { "_wxWindowID","_size_t",0},
12670 { "_wxWindowID","_EBool",0},
12671 { "_wxWindowID","_uint",0},
12672 { "_wxWindowID","_int",0},
12673 { "_wxWindowID","_signed_int",0},
12674 { "_wxWindowID","_unsigned_int",0},
12675 { "_int","_wxCoord",0},
12676 { "_int","_wxPrintQuality",0},
12677 { "_int","_time_t",0},
12678 { "_int","_size_t",0},
12679 { "_int","_EBool",0},
12680 { "_int","_uint",0},
12681 { "_int","_wxWindowID",0},
12682 { "_int","_unsigned_int",0},
12683 { "_int","_signed_int",0},
12684 { "_time_t","_wxCoord",0},
12685 { "_time_t","_wxPrintQuality",0},
12686 { "_time_t","_unsigned_int",0},
12687 { "_time_t","_int",0},
12688 { "_time_t","_wxWindowID",0},
12689 { "_time_t","_uint",0},
12690 { "_time_t","_size_t",0},
12691 { "_wxCoord","_int",0},
12692 { "_wxCoord","_signed_int",0},
12693 { "_wxCoord","_unsigned_int",0},
12694 { "_wxCoord","_wxWindowID",0},
12695 { "_wxCoord","_uint",0},
12696 { "_wxCoord","_EBool",0},
12697 { "_wxCoord","_size_t",0},
12698 { "_wxCoord","_time_t",0},
12699 { "_wxCoord","_wxPrintQuality",0},
12700 {0,0,0}};
12701
12702 static PyObject *SWIG_globals;
12703 #ifdef __cplusplus
12704 extern "C"
12705 #endif
12706 SWIGEXPORT(void) initgdic() {
12707 PyObject *m, *d;
12708 SWIG_globals = SWIG_newvarlink();
12709 m = Py_InitModule("gdic", gdicMethods);
12710 d = PyModule_GetDict(m);
12711 PyDict_SetItemString(d,"wxFONTFAMILY_DEFAULT", PyInt_FromLong((long) wxFONTFAMILY_DEFAULT));
12712 PyDict_SetItemString(d,"wxFONTFAMILY_DECORATIVE", PyInt_FromLong((long) wxFONTFAMILY_DECORATIVE));
12713 PyDict_SetItemString(d,"wxFONTFAMILY_ROMAN", PyInt_FromLong((long) wxFONTFAMILY_ROMAN));
12714 PyDict_SetItemString(d,"wxFONTFAMILY_SCRIPT", PyInt_FromLong((long) wxFONTFAMILY_SCRIPT));
12715 PyDict_SetItemString(d,"wxFONTFAMILY_SWISS", PyInt_FromLong((long) wxFONTFAMILY_SWISS));
12716 PyDict_SetItemString(d,"wxFONTFAMILY_MODERN", PyInt_FromLong((long) wxFONTFAMILY_MODERN));
12717 PyDict_SetItemString(d,"wxFONTFAMILY_TELETYPE", PyInt_FromLong((long) wxFONTFAMILY_TELETYPE));
12718 PyDict_SetItemString(d,"wxFONTFAMILY_MAX", PyInt_FromLong((long) wxFONTFAMILY_MAX));
12719 PyDict_SetItemString(d,"wxFONTSTYLE_NORMAL", PyInt_FromLong((long) wxFONTSTYLE_NORMAL));
12720 PyDict_SetItemString(d,"wxFONTSTYLE_ITALIC", PyInt_FromLong((long) wxFONTSTYLE_ITALIC));
12721 PyDict_SetItemString(d,"wxFONTSTYLE_SLANT", PyInt_FromLong((long) wxFONTSTYLE_SLANT));
12722 PyDict_SetItemString(d,"wxFONTSTYLE_MAX", PyInt_FromLong((long) wxFONTSTYLE_MAX));
12723 PyDict_SetItemString(d,"wxFONTWEIGHT_NORMAL", PyInt_FromLong((long) wxFONTWEIGHT_NORMAL));
12724 PyDict_SetItemString(d,"wxFONTWEIGHT_LIGHT", PyInt_FromLong((long) wxFONTWEIGHT_LIGHT));
12725 PyDict_SetItemString(d,"wxFONTWEIGHT_BOLD", PyInt_FromLong((long) wxFONTWEIGHT_BOLD));
12726 PyDict_SetItemString(d,"wxFONTWEIGHT_MAX", PyInt_FromLong((long) wxFONTWEIGHT_MAX));
12727 PyDict_SetItemString(d,"wxFONTENCODING_SYSTEM", PyInt_FromLong((long) wxFONTENCODING_SYSTEM));
12728 PyDict_SetItemString(d,"wxFONTENCODING_DEFAULT", PyInt_FromLong((long) wxFONTENCODING_DEFAULT));
12729 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_1", PyInt_FromLong((long) wxFONTENCODING_ISO8859_1));
12730 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_2", PyInt_FromLong((long) wxFONTENCODING_ISO8859_2));
12731 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_3", PyInt_FromLong((long) wxFONTENCODING_ISO8859_3));
12732 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_4", PyInt_FromLong((long) wxFONTENCODING_ISO8859_4));
12733 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_5", PyInt_FromLong((long) wxFONTENCODING_ISO8859_5));
12734 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_6", PyInt_FromLong((long) wxFONTENCODING_ISO8859_6));
12735 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_7", PyInt_FromLong((long) wxFONTENCODING_ISO8859_7));
12736 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_8", PyInt_FromLong((long) wxFONTENCODING_ISO8859_8));
12737 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_9", PyInt_FromLong((long) wxFONTENCODING_ISO8859_9));
12738 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_10", PyInt_FromLong((long) wxFONTENCODING_ISO8859_10));
12739 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_11", PyInt_FromLong((long) wxFONTENCODING_ISO8859_11));
12740 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_12", PyInt_FromLong((long) wxFONTENCODING_ISO8859_12));
12741 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_13", PyInt_FromLong((long) wxFONTENCODING_ISO8859_13));
12742 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_14", PyInt_FromLong((long) wxFONTENCODING_ISO8859_14));
12743 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_15", PyInt_FromLong((long) wxFONTENCODING_ISO8859_15));
12744 PyDict_SetItemString(d,"wxFONTENCODING_ISO8859_MAX", PyInt_FromLong((long) wxFONTENCODING_ISO8859_MAX));
12745 PyDict_SetItemString(d,"wxFONTENCODING_KOI8", PyInt_FromLong((long) wxFONTENCODING_KOI8));
12746 PyDict_SetItemString(d,"wxFONTENCODING_ALTERNATIVE", PyInt_FromLong((long) wxFONTENCODING_ALTERNATIVE));
12747 PyDict_SetItemString(d,"wxFONTENCODING_BULGARIAN", PyInt_FromLong((long) wxFONTENCODING_BULGARIAN));
12748 PyDict_SetItemString(d,"wxFONTENCODING_CP437", PyInt_FromLong((long) wxFONTENCODING_CP437));
12749 PyDict_SetItemString(d,"wxFONTENCODING_CP850", PyInt_FromLong((long) wxFONTENCODING_CP850));
12750 PyDict_SetItemString(d,"wxFONTENCODING_CP852", PyInt_FromLong((long) wxFONTENCODING_CP852));
12751 PyDict_SetItemString(d,"wxFONTENCODING_CP855", PyInt_FromLong((long) wxFONTENCODING_CP855));
12752 PyDict_SetItemString(d,"wxFONTENCODING_CP866", PyInt_FromLong((long) wxFONTENCODING_CP866));
12753 PyDict_SetItemString(d,"wxFONTENCODING_CP874", PyInt_FromLong((long) wxFONTENCODING_CP874));
12754 PyDict_SetItemString(d,"wxFONTENCODING_CP932", PyInt_FromLong((long) wxFONTENCODING_CP932));
12755 PyDict_SetItemString(d,"wxFONTENCODING_CP936", PyInt_FromLong((long) wxFONTENCODING_CP936));
12756 PyDict_SetItemString(d,"wxFONTENCODING_CP949", PyInt_FromLong((long) wxFONTENCODING_CP949));
12757 PyDict_SetItemString(d,"wxFONTENCODING_CP950", PyInt_FromLong((long) wxFONTENCODING_CP950));
12758 PyDict_SetItemString(d,"wxFONTENCODING_CP1250", PyInt_FromLong((long) wxFONTENCODING_CP1250));
12759 PyDict_SetItemString(d,"wxFONTENCODING_CP1251", PyInt_FromLong((long) wxFONTENCODING_CP1251));
12760 PyDict_SetItemString(d,"wxFONTENCODING_CP1252", PyInt_FromLong((long) wxFONTENCODING_CP1252));
12761 PyDict_SetItemString(d,"wxFONTENCODING_CP1253", PyInt_FromLong((long) wxFONTENCODING_CP1253));
12762 PyDict_SetItemString(d,"wxFONTENCODING_CP1254", PyInt_FromLong((long) wxFONTENCODING_CP1254));
12763 PyDict_SetItemString(d,"wxFONTENCODING_CP1255", PyInt_FromLong((long) wxFONTENCODING_CP1255));
12764 PyDict_SetItemString(d,"wxFONTENCODING_CP1256", PyInt_FromLong((long) wxFONTENCODING_CP1256));
12765 PyDict_SetItemString(d,"wxFONTENCODING_CP1257", PyInt_FromLong((long) wxFONTENCODING_CP1257));
12766 PyDict_SetItemString(d,"wxFONTENCODING_CP12_MAX", PyInt_FromLong((long) wxFONTENCODING_CP12_MAX));
12767 PyDict_SetItemString(d,"wxFONTENCODING_UTF7", PyInt_FromLong((long) wxFONTENCODING_UTF7));
12768 PyDict_SetItemString(d,"wxFONTENCODING_UTF8", PyInt_FromLong((long) wxFONTENCODING_UTF8));
12769 PyDict_SetItemString(d,"wxFONTENCODING_UNICODE", PyInt_FromLong((long) wxFONTENCODING_UNICODE));
12770 PyDict_SetItemString(d,"wxFONTENCODING_MAX", PyInt_FromLong((long) wxFONTENCODING_MAX));
12771 PyDict_SetItemString(d,"cvar", SWIG_globals);
12772 SWIG_addvarlink(SWIG_globals,"wxNORMAL_FONT",_wrap_wxNORMAL_FONT_get, _wrap_wxNORMAL_FONT_set);
12773 SWIG_addvarlink(SWIG_globals,"wxSMALL_FONT",_wrap_wxSMALL_FONT_get, _wrap_wxSMALL_FONT_set);
12774 SWIG_addvarlink(SWIG_globals,"wxITALIC_FONT",_wrap_wxITALIC_FONT_get, _wrap_wxITALIC_FONT_set);
12775 SWIG_addvarlink(SWIG_globals,"wxSWISS_FONT",_wrap_wxSWISS_FONT_get, _wrap_wxSWISS_FONT_set);
12776 SWIG_addvarlink(SWIG_globals,"wxRED_PEN",_wrap_wxRED_PEN_get, _wrap_wxRED_PEN_set);
12777 SWIG_addvarlink(SWIG_globals,"wxCYAN_PEN",_wrap_wxCYAN_PEN_get, _wrap_wxCYAN_PEN_set);
12778 SWIG_addvarlink(SWIG_globals,"wxGREEN_PEN",_wrap_wxGREEN_PEN_get, _wrap_wxGREEN_PEN_set);
12779 SWIG_addvarlink(SWIG_globals,"wxBLACK_PEN",_wrap_wxBLACK_PEN_get, _wrap_wxBLACK_PEN_set);
12780 SWIG_addvarlink(SWIG_globals,"wxWHITE_PEN",_wrap_wxWHITE_PEN_get, _wrap_wxWHITE_PEN_set);
12781 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_PEN",_wrap_wxTRANSPARENT_PEN_get, _wrap_wxTRANSPARENT_PEN_set);
12782 SWIG_addvarlink(SWIG_globals,"wxBLACK_DASHED_PEN",_wrap_wxBLACK_DASHED_PEN_get, _wrap_wxBLACK_DASHED_PEN_set);
12783 SWIG_addvarlink(SWIG_globals,"wxGREY_PEN",_wrap_wxGREY_PEN_get, _wrap_wxGREY_PEN_set);
12784 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_PEN",_wrap_wxMEDIUM_GREY_PEN_get, _wrap_wxMEDIUM_GREY_PEN_set);
12785 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_PEN",_wrap_wxLIGHT_GREY_PEN_get, _wrap_wxLIGHT_GREY_PEN_set);
12786 SWIG_addvarlink(SWIG_globals,"wxBLUE_BRUSH",_wrap_wxBLUE_BRUSH_get, _wrap_wxBLUE_BRUSH_set);
12787 SWIG_addvarlink(SWIG_globals,"wxGREEN_BRUSH",_wrap_wxGREEN_BRUSH_get, _wrap_wxGREEN_BRUSH_set);
12788 SWIG_addvarlink(SWIG_globals,"wxWHITE_BRUSH",_wrap_wxWHITE_BRUSH_get, _wrap_wxWHITE_BRUSH_set);
12789 SWIG_addvarlink(SWIG_globals,"wxBLACK_BRUSH",_wrap_wxBLACK_BRUSH_get, _wrap_wxBLACK_BRUSH_set);
12790 SWIG_addvarlink(SWIG_globals,"wxTRANSPARENT_BRUSH",_wrap_wxTRANSPARENT_BRUSH_get, _wrap_wxTRANSPARENT_BRUSH_set);
12791 SWIG_addvarlink(SWIG_globals,"wxCYAN_BRUSH",_wrap_wxCYAN_BRUSH_get, _wrap_wxCYAN_BRUSH_set);
12792 SWIG_addvarlink(SWIG_globals,"wxRED_BRUSH",_wrap_wxRED_BRUSH_get, _wrap_wxRED_BRUSH_set);
12793 SWIG_addvarlink(SWIG_globals,"wxGREY_BRUSH",_wrap_wxGREY_BRUSH_get, _wrap_wxGREY_BRUSH_set);
12794 SWIG_addvarlink(SWIG_globals,"wxMEDIUM_GREY_BRUSH",_wrap_wxMEDIUM_GREY_BRUSH_get, _wrap_wxMEDIUM_GREY_BRUSH_set);
12795 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY_BRUSH",_wrap_wxLIGHT_GREY_BRUSH_get, _wrap_wxLIGHT_GREY_BRUSH_set);
12796 SWIG_addvarlink(SWIG_globals,"wxBLACK",_wrap_wxBLACK_get, _wrap_wxBLACK_set);
12797 SWIG_addvarlink(SWIG_globals,"wxWHITE",_wrap_wxWHITE_get, _wrap_wxWHITE_set);
12798 SWIG_addvarlink(SWIG_globals,"wxRED",_wrap_wxRED_get, _wrap_wxRED_set);
12799 SWIG_addvarlink(SWIG_globals,"wxBLUE",_wrap_wxBLUE_get, _wrap_wxBLUE_set);
12800 SWIG_addvarlink(SWIG_globals,"wxGREEN",_wrap_wxGREEN_get, _wrap_wxGREEN_set);
12801 SWIG_addvarlink(SWIG_globals,"wxCYAN",_wrap_wxCYAN_get, _wrap_wxCYAN_set);
12802 SWIG_addvarlink(SWIG_globals,"wxLIGHT_GREY",_wrap_wxLIGHT_GREY_get, _wrap_wxLIGHT_GREY_set);
12803 SWIG_addvarlink(SWIG_globals,"wxSTANDARD_CURSOR",_wrap_wxSTANDARD_CURSOR_get, _wrap_wxSTANDARD_CURSOR_set);
12804 SWIG_addvarlink(SWIG_globals,"wxHOURGLASS_CURSOR",_wrap_wxHOURGLASS_CURSOR_get, _wrap_wxHOURGLASS_CURSOR_set);
12805 SWIG_addvarlink(SWIG_globals,"wxCROSS_CURSOR",_wrap_wxCROSS_CURSOR_get, _wrap_wxCROSS_CURSOR_set);
12806 SWIG_addvarlink(SWIG_globals,"wxNullBitmap",_wrap_wxNullBitmap_get, _wrap_wxNullBitmap_set);
12807 SWIG_addvarlink(SWIG_globals,"wxNullIcon",_wrap_wxNullIcon_get, _wrap_wxNullIcon_set);
12808 SWIG_addvarlink(SWIG_globals,"wxNullCursor",_wrap_wxNullCursor_get, _wrap_wxNullCursor_set);
12809 SWIG_addvarlink(SWIG_globals,"wxNullPen",_wrap_wxNullPen_get, _wrap_wxNullPen_set);
12810 SWIG_addvarlink(SWIG_globals,"wxNullBrush",_wrap_wxNullBrush_get, _wrap_wxNullBrush_set);
12811 SWIG_addvarlink(SWIG_globals,"wxNullPalette",_wrap_wxNullPalette_get, _wrap_wxNullPalette_set);
12812 SWIG_addvarlink(SWIG_globals,"wxNullFont",_wrap_wxNullFont_get, _wrap_wxNullFont_set);
12813 SWIG_addvarlink(SWIG_globals,"wxNullColour",_wrap_wxNullColour_get, _wrap_wxNullColour_set);
12814 SWIG_addvarlink(SWIG_globals,"wxTheFontList",_wrap_wxTheFontList_get, _wrap_wxTheFontList_set);
12815 SWIG_addvarlink(SWIG_globals,"wxThePenList",_wrap_wxThePenList_get, _wrap_wxThePenList_set);
12816 SWIG_addvarlink(SWIG_globals,"wxTheBrushList",_wrap_wxTheBrushList_get, _wrap_wxTheBrushList_set);
12817 SWIG_addvarlink(SWIG_globals,"wxTheColourDatabase",_wrap_wxTheColourDatabase_get, _wrap_wxTheColourDatabase_set);
12818 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_NORMAL", PyInt_FromLong((long) wxIMAGELIST_DRAW_NORMAL));
12819 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_TRANSPARENT", PyInt_FromLong((long) wxIMAGELIST_DRAW_TRANSPARENT));
12820 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_SELECTED", PyInt_FromLong((long) wxIMAGELIST_DRAW_SELECTED));
12821 PyDict_SetItemString(d,"wxIMAGELIST_DRAW_FOCUSED", PyInt_FromLong((long) wxIMAGELIST_DRAW_FOCUSED));
12822 PyDict_SetItemString(d,"wxIMAGE_LIST_NORMAL", PyInt_FromLong((long) wxIMAGE_LIST_NORMAL));
12823 PyDict_SetItemString(d,"wxIMAGE_LIST_SMALL", PyInt_FromLong((long) wxIMAGE_LIST_SMALL));
12824 PyDict_SetItemString(d,"wxIMAGE_LIST_STATE", PyInt_FromLong((long) wxIMAGE_LIST_STATE));
12825 PyDict_SetItemString(d,"wxOutRegion", PyInt_FromLong((long) wxOutRegion));
12826 PyDict_SetItemString(d,"wxPartRegion", PyInt_FromLong((long) wxPartRegion));
12827 PyDict_SetItemString(d,"wxInRegion", PyInt_FromLong((long) wxInRegion));
12828 {
12829 int i;
12830 for (i = 0; _swig_mapping[i].n1; i++)
12831 SWIG_RegisterMapping(_swig_mapping[i].n1,_swig_mapping[i].n2,_swig_mapping[i].pcnv);
12832 }
12833 }