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