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