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