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