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